[03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:37]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]OFD Sender: No OFD packet to send [03:41:44]OFD Sender: No OFD packet to send [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]OFD Sender: No OFD packet to send [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:19]accept exits with 8 [04:30:19]New connection [04:30:19]New thread 3067170148 created [04:30:19]Thread 3067313508 joined [04:30:19]Waiting for new connection... [04:30:19] Sock 8.Parse request [04:30:19]Sock 8.Check first char [04:30:19]Sock 8.First char is OK [04:30:19]request: POST /json_proto HTTP/1.0 [04:30:19]Method: POST [04:30:19]URL: /json_proto [04:30:19]Method is POST - this is cgi request [04:30:19]url: /json_proto [04:30:19]query_string will be loaded in cgi processing [04:30:19]execute_cgi json_proto POST (null) [04:30:19]execute_cgi path=json_proto method=POST [04:30:19]POST find Content-Length [04:30:19]Host: 172.17.41.136:8080 [04:30:19]Content-Length: 591 [04:30:19]Content-Type: application/json [04:30:19] [04:30:19]POST finish read [04:30:19]Found Content-Length = 591 [04:30:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343961", "tax_sys" : 0, "items" : [ { "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:30:19]execute_script... [04:30: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 : (3)343961", "tax_sys" : 0, "items" : [ { "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:30:19]POST & json_proto [04:30:19]process_json_proto [04:30:19]json parsed OK: [04:30:19]protocol is kg_v1.0 [04:30:19]action value=close_receipt [04:30:19]process_action close_receipt [04:30:19]cmd_close_receipt [04:30:19]MH_GetDate [04:30:19]Write to MH i2c: F0 00 00 D6 06 CB [04:30:19]Write i2c OK [04:30:19]MH_I2C_Read... [04:30:19]Read from MH i2c: F0 [04:30:19]MH_I2C_Read... [04:30:19]Read from MH i2c: F0 09 00 [04:30:19]MH_I2C_Read... [04:30:19]Read from MH i2c: F0 09 00 D6 06 00 DC EE F0 66 1B D0 5A 64 9D [04:30:19]GetLastDocTimeStamp 1727061067 [04:30:19]current date 1727065820 [04:30:19]FM_GetShiftState [04:30:19]SAM_PROTO_GetShiftState [04:30:19]wFMCommunicate request_size=4 [04:30:19]MH_SAM_APDU [04:30:19]CAPDU: 80 13 01 00 [04:30:19]Write to MH i2c: E2 08 00 D7 06 80 13 01 00 00 00 00 00 5A [04:30:19]Write i2c OK [04:30:19]MH_I2C_Read... [04:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:30:19]Read from MH i2c: E2 [04:30:19]MH_I2C_Read... [04:30:19]Read from MH i2c: E2 0E 00 [04:30:19]MH_I2C_Read... [04:30:19]Read from MH i2c: E2 0E 00 D7 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 9B [04:30:19]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [04:30:19]wFMCommunicate OK [04:30:19]SAM_PROTO_GetShiftState done [04:30:19]FM_GetShiftState done [04:30:19]opened in 1727052070 [04:30:19]opened+sec_in_day 1727138470 [04:30:19]quantity*price = 4500 [04:30:19]sum+1 = 4501 [04:30:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 18 23.09.2024 04:30 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115535 ФПД: 222731718673007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T043020&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115535&fm=222731718673007&tin=02508201610067®Number=0000000000091831&sum=4500 0 [04:30:20]StoreToDocumentArchive [04:30:20]shift 472 fd 115535 [04:30:20]save to /storage/0472/doc_00115535 [04:30:20]save last doc name /storage/0472/doc_00115535 to /storage/kkm_last_doc_name [04:30:20]save OK [04:30:20]Clear old archive folders... [04:30:20]ProcessDocumentItem done err = 0, tmpTLVsize=266 [04:30:20]tlvbuf is 011DEAB0 [04:30:20]SAM_PROTO_ClearQueue [04:30:20]wFMCommunicate request_size=4 [04:30:20]MH_SAM_APDU [04:30:20]CAPDU: 80 09 00 00 [04:30:20]Write to MH i2c: E2 08 00 E4 06 80 09 00 00 00 00 00 00 5C [04:30:20]Write i2c OK [04:30:20]MH_I2C_Read... [04:30:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:30:20]Read from MH i2c: E2 [04:30:20]MH_I2C_Read... [04:30:20]Read from MH i2c: E2 03 00 [04:30:20]MH_I2C_Read... [04:30:20]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [04:30:20]RAPDU: 90 00 [04:30:20]wFMCommunicate OK [04:30:20]SAM_PROTO_ClearQueue done [04:30:20]KKMCreateOFDPacket [04:30:20]OFDProtocolAddRootSTLVToBuf [04:30:20]FM_MakeSignedData [04:30:20]FM_MakeSignedData [04:30:20]SAM_PROTO_SignData [04:30:20]wFMCommunicate request_size=4 [04:30:20]MH_SAM_APDU [04:30:20]CAPDU: 80 0D 01 02 [04:30:20]Write to MH i2c: E2 08 00 E5 06 80 0D 01 02 00 00 00 00 64 [04:30:20]Write i2c OK [04:30:20]MH_I2C_Read... [04:30:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:30:20]Read from MH i2c: E2 [04:30:20]MH_I2C_Read... [04:30:20]Read from MH i2c: E2 03 00 [04:30:20]MH_I2C_Read... [04:30:20]Read from MH i2c: E2 03 00 E5 06 00 90 00 5F [04:30:20]RAPDU: 90 00 [04:30:20]wFMCommunicate OK [04:30:20]wFMCommunicate request_size=255 [04:30:20]MH_SAM_APDU [04:30:20]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 DC EE F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [04:30:20]Write to MH i2c: E2 02 01 E6 06 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 DC EE F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 1F [04:30:20]Write i2c OK [04:30:20]MH_I2C_Read... [04:30:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:30:21]Read from MH i2c: E2 [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: E2 03 00 [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: E2 03 00 E6 06 00 90 00 60 [04:30:21]RAPDU: 90 00 [04:30:21]wFMCommunicate OK [04:30:21]wFMCommunicate request_size=25 [04:30:21]MH_SAM_APDU [04:30:21]CAPDU: 80 0D 02 02 14 33 30 10 04 04 00 4F C3 01 00 35 04 06 00 CA 92 C4 F8 C2 6F [04:30:21]Write to MH i2c: E2 1C 00 E7 06 80 0D 02 02 14 00 33 30 10 04 04 00 4F C3 01 00 35 04 06 00 CA 92 C4 F8 C2 6F 00 00 A5 [04:30:21]Write i2c OK [04:30:21]MH_I2C_Read... [04:30:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:30:21]Read from MH i2c: E2 [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: E2 03 00 [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: E2 03 00 E7 06 00 90 00 61 [04:30:21]RAPDU: 90 00 [04:30:21]wFMCommunicate OK [04:30:21]wFMCommunicate request_size=4 [04:30:21]MH_SAM_APDU [04:30:21]CAPDU: 80 0D 03 02 [04:30:21]Write to MH i2c: E2 08 00 E8 06 80 0D 03 02 00 00 00 00 69 [04:30:21]Write i2c OK [04:30:21]MH_I2C_Read... [04:30:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:30:21]Read from MH i2c: E2 [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: E2 0B 00 [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: E2 0B 00 E8 06 00 D1 E7 E5 0F 2A 8D 18 E7 90 00 CC [04:30:21]RAPDU: D1 E7 E5 0F 2A 8D 18 E7 90 00 [04:30:21]wFMCommunicate OK [04:30:21]SAM_PROTO_SignData done [04:30:21]FM_MakeSignedData done [04:30:21]CreateOFDProtocolMessage [04:30:21]wFMCommunicate request_size=4 [04:30:21]MH_SAM_APDU [04:30:21]CAPDU: 80 11 00 00 [04:30:21]Write to MH i2c: E2 08 00 E9 06 80 11 00 00 00 00 00 00 69 [04:30:21]Write i2c OK [04:30:21]MH_I2C_Read... [04:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:30:21]Read from MH i2c: E2 [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: E2 17 00 [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: E2 17 00 E9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B7 [04:30:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:30:21]wFMCommunicate OK [04:30:21]CreateOFDProtocolMessage done [04:30:21]OFDSenderStorePacket 115535 [04:30:21]StoreOFDPacket docnum=115535 [04:30:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 BA 4A 16 01 BF 0D 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 DC EE F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4F C3 01 00 35 04 06 00 CA 92 C4 F8 C2 6F D1 E7 E5 0F 2A 8D 18 E7 [04:30:21]CheckFolder [04:30:21]dirname=/storage/ofd_packets [04:30:21]CheckFolder done [04:30:21]ProducePacketName [04:30:21]name=ofd_packets/00115535 [04:30:21]NVStorageSaveData ofd_packets/00115535 [04:30:21]File name is /storage/ofd_packets/00115535 [04:30:21]Write 316 bytes [04:30:21]NVStorageSaveData done [04:30:21]OFDSenderStorePacket done [04:30:21]KKMCreateOFDPacket done [04:30:21]NVStorageSaveData kkm_last_timestamp [04:30:21]File name is /storage/kkm_last_timestamp [04:30:21]Write 4 bytes [04:30:21]NVStorageSaveData done [04:30:21]ExternCall_PrintAddStr [04:30:21]wPrintStart [04:30:21]Write to MH i2c: 01 00 00 EA 06 F0 [04:30:21]Write i2c OK [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: 01 [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: 01 07 00 [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: 01 07 00 EA 06 00 00 00 00 00 FF 0F 05 [04:30:21]RasterBufferAndPrint [04:30:21]line Счет N : (3)343961 [04:30:21]line ИНН: 02508201610067 [04:30:21]line Контрольно-Кассовый Чек [04:30:21]line ПРОДАЖА [04:30:21]line Товар: 42069942 [04:30:21]line Жев Orbit White Fresh Mint [04:30:21]line 1.000 * 45.00 [04:30:21]line = 45.00 [04:30:21]line НДС 12% НСП 1% [04:30:21]line > о реализуемом товаре [04:30:21]line ИТОГО: 45.00 [04:30:21]line НСП 1% : 0.40 [04:30:21]line НДС 12% : 4.78 [04:30:21]line Наличными: 45.00 [04:30:21]line Безнал.: 0.00 [04:30:21]line Место: АЗС № 90 "Партнер Нефть" [04:30:21]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [04:30:21]line СНО: Общий режим [04:30:21]line Чек 18 23.09.2024 04:30 [04:30:21]line Смена: 472 ФФД: 1.0 [04:30:21]line ЗНМ: 0300000120 [04:30:21]line РНМ: 0000000000091831 [04:30:21]line Версия ККМ: 001 [04:30:21]line ФМ: 0000000000871830 [04:30:21]line ФД: 115535 [04:30:21]line ФПД: 222731718673007 [04:30:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T043020&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115535&fm=222731718673007&tin=02508201610067®Number=0000000000091831&sum=4500 [04:30:21]line 0 [04:30:21]written 0, free lines is 4095 [04:30:21]OFD Sender: Processing packet 115535 [packets to send 481, broken 480] [04:30:21]ProducePacketName [04:30:21]name=ofd_packets/00115535 [04:30:21]OFD Sender: To server: pG, [04:30:21]CommunicateWithHost lk.salyk.kg:30040 [04:30:21]ConnectInit lk.salyk.kg [04:30:21]Connected sock=10 [04:30: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 38 33 30 1E 01 00 00 BA 4A 16 01 BF 0D 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 DC EE F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4F C3 01 00 35 04 06 00 CA 92 C4 F8 C2 6F D1 E7 E5 0F 2A 8D 18 E7 [04:30:21]Write to MH i2c: 01 00 00 11 07 18 [04:30:21]Write i2c OK [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: 01 [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: 01 07 00 [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: 01 07 00 11 07 00 00 00 00 00 81 0C AC [04:30:21]RasterBufferAndPrint [04:30:21]line [04:30:21]line [04:30:21]line [04:30:21]line [04:30:21]line [04:30:21]written 0, free lines is 3205 [04:30:21]MH_Cut [04:30:21]Write to MH i2c: D1 01 00 18 07 01 F1 [04:30:21]Write i2c OK [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: D1 [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: D1 01 00 [04:30:21]MH_I2C_Read... [04:30:21]Read from MH i2c: D1 01 00 18 07 00 F0 [04:30:21]Write to MH i2c: 01 00 00 19 07 20 [04:30:21]Write i2c OK [04:30:21]MH_I2C_Read... [04:30:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 85 4C 47 00 90 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 38 33 30 10 04 04 00 4F C3 01 00 F4 03 04 00 20 94 F0 66 B6 04 01 00 00 73 28 97 5B 2C 18 A2 9B [04:30:21]CommunicateWithHost err = 0 [04:30:21]CheckOFDResponse [04:30:21]1017 (14) - 77093643461234 [04:30:21]1041 (16) - 0000000000871830 [04:30:21]1040 (4) - 115535 [04:30:21]1012 (4) - 22.09.2024 22:03 [04:30:21]1206 (1) - 0 [04:30:21]OFD Sender: Remove packet 115535 [04:30:21]ProducePacketName [04:30:21]name=ofd_packets/00115535 [04:30:21]NVStorageDeleteData [04:30:22]OFD Sender: No OFD packet to send [04:30:22]*** Cut start [04:30:22]*** Partial cut [04:30:22]*** CUTSNS_PIN = 1 [04:30:22]*** CUTSNS_PIN = 0 [04:30:23]*** Brake cut motor [04:30:23]Read from MH i2c: 01 [04:30:23]MH_I2C_Read... [04:30:23]*** Stop cut motor [04:30:23]*** Cut end [04:30:23]Read from MH i2c: 01 07 00 [04:30:23]MH_I2C_Read... [04:30:23]Read from MH i2c: 01 07 00 19 07 00 00 00 00 00 FF 0F 35 [04:30:23]process_action close_receipt done [04:30:23]requested_data is exist [04:30:23]produce_requested_data [04:30:23]requested_item fm.sn is exist - process it [04:30:23]wFMCommunicate request_size=4 [04:30:23]MH_SAM_APDU [04:30:23]CAPDU: 80 11 00 00 [04:30:23]Write to MH i2c: E2 08 00 1A 07 80 11 00 00 00 00 00 00 9B [04:30:23]Write i2c OK [04:30:23]MH_I2C_Read... [04:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:30:23]Read from MH i2c: E2 [04:30:23]MH_I2C_Read... [04:30:23]Read from MH i2c: E2 17 00 [04:30:23]MH_I2C_Read... [04:30:23]Read from MH i2c: E2 17 00 1A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E9 [04:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:30:23]wFMCommunicate OK [04:30:23]requested_item fd.num is exist - process it [04:30:23]SAM_PROTO_GetFieldsCounters [04:30:23]wFMCommunicate request_size=4 [04:30:23]MH_SAM_APDU [04:30:23]CAPDU: 80 13 00 00 [04:30:23]Write to MH i2c: E2 08 00 1B 07 80 13 00 00 00 00 00 00 9E [04:30:23]Write i2c OK [04:30:23]MH_I2C_Read... [04:30:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:30:23]Read from MH i2c: E2 [04:30:23]MH_I2C_Read... [04:30:23]Read from MH i2c: E2 62 00 [04:30:23]MH_I2C_Read... [04:30:23]Read from MH i2c: E2 62 00 1B 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4F C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [04:30: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4F C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:30:23]wFMCommunicate OK [04:30:23]SAM_PROTO_GetFieldsCounters done [04:30:23]requested_item shift.num is exist - process it [04:30:23]requested_item shift.opened is exist - process it [04:30:23]req_shift_opened [04:30:23]FM_GetShiftState [04:30:23]SAM_PROTO_GetShiftState [04:30:23]wFMCommunicate request_size=4 [04:30:23]MH_SAM_APDU [04:30:23]CAPDU: 80 13 01 00 [04:30:23]Write to MH i2c: E2 08 00 1C 07 80 13 01 00 00 00 00 00 A0 [04:30:23]Write i2c OK [04:30:23]MH_I2C_Read... [04:30:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:30:23]Read from MH i2c: E2 [04:30:23]MH_I2C_Read... [04:30:23]Read from MH i2c: E2 0E 00 [04:30:23]MH_I2C_Read... [04:30:23]Read from MH i2c: E2 0E 00 1C 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E1 [04:30:23]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [04:30:23]wFMCommunicate OK [04:30:23]SAM_PROTO_GetShiftState done [04:30:23]FM_GetShiftState done [04:30:23]req_shift_opened done [04:30:23]requested_item shift.open_date is exist - process it [04:30:23]req_shift_open_date [04:30:23]req_shift_open_date done [04:30:23]produce_requested_data done [04:30:23]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115535,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [04:30:23]process_action_free close_receipt [04:30:23]json_value_free [04:30:23]json_value_free done [04:30:23]process_json_proto returns [04:30:23]Send response to host [04:30:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115535,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [04:30:23]free response buf [04:30:23]execute_script done [04:30:23]execute_script returns [04:30:23]free content buf [04:30:23]Sock 8.Close socket [04:30:23]Sock 8.Thread stoped [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:41:59]accept exits with 9 [04:41:59]New connection [04:41:59]New thread 3067313508 created [04:41:59]Thread 3067170148 joined [04:41:59]Waiting for new connection... [04:41:59] Sock 9.Parse request [04:41:59]Sock 9.Check first char [04:41:59]Sock 9.First char is OK [04:41:59]request: POST /json_proto HTTP/1.0 [04:41:59]Method: POST [04:41:59]URL: /json_proto [04:41:59]Method is POST - this is cgi request [04:41:59]url: /json_proto [04:41:59]query_string will be loaded in cgi processing [04:41:59]execute_cgi json_proto POST (null) [04:41:59]execute_cgi path=json_proto method=POST [04:41:59]POST find Content-Length [04:41:59]Host: 172.17.41.136:8080 [04:41:59]Content-Length: 828 [04:41:59]Content-Type: application/json [04:41:59] [04:41:59]POST finish read [04:41:59]Found Content-Length = 828 [04:41:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343962", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 620.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:41:59]execute_script... [04:41:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343962", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 620.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:41:59]POST & json_proto [04:41:59]process_json_proto [04:41:59]json parsed OK: [04:41:59]protocol is kg_v1.0 [04:41:59]action value=close_receipt [04:41:59]process_action close_receipt [04:41:59]cmd_close_receipt [04:41:59]MH_GetDate [04:41:59]Write to MH i2c: F0 00 00 1D 07 13 [04:41:59]Write i2c OK [04:41:59]MH_I2C_Read... [04:41:59]Read from MH i2c: F0 [04:41:59]MH_I2C_Read... [04:41:59]Read from MH i2c: F0 09 00 [04:41:59]MH_I2C_Read... [04:41:59]Read from MH i2c: F0 09 00 1D 07 00 98 F1 F0 66 1B D0 5A 64 A4 [04:41:59]GetLastDocTimeStamp 1727065820 [04:41:59]current date 1727066520 [04:41:59]FM_GetShiftState [04:41:59]SAM_PROTO_GetShiftState [04:41:59]wFMCommunicate request_size=4 [04:41:59]MH_SAM_APDU [04:41:59]CAPDU: 80 13 01 00 [04:41:59]Write to MH i2c: E2 08 00 1E 07 80 13 01 00 00 00 00 00 A2 [04:41:59]Write i2c OK [04:41:59]MH_I2C_Read... [04:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:41:59]Read from MH i2c: E2 [04:41:59]MH_I2C_Read... [04:41:59]Read from MH i2c: E2 0E 00 [04:41:59]MH_I2C_Read... [04:41:59]Read from MH i2c: E2 0E 00 1E 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E3 [04:41:59]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [04:41:59]wFMCommunicate OK [04:41:59]SAM_PROTO_GetShiftState done [04:41:59]FM_GetShiftState done [04:41:59]opened in 1727052070 [04:41:59]opened+sec_in_day 1727138470 [04:41:59]quantity*price = 51000 [04:41:59]sum+1 = 51001 [04:41:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 620.00 НСП 1% : 5.48 НДС 12% : 65.84 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 19 23.09.2024 04:42 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115536 ФПД: 27648656456953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T044200&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115536&fm=27648656456953&tin=02508201610067®Number=0000000000091831&sum=62000 0 [04:42:00]StoreToDocumentArchive [04:42:00]shift 472 fd 115536 [04:42:00]save to /storage/0472/doc_00115536 [04:42:00]save last doc name /storage/0472/doc_00115536 to /storage/kkm_last_doc_name [04:42:00]save OK [04:42:00]Clear old archive folders... [04:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=358 [04:42:00]tlvbuf is 011DC800 [04:42:00]SAM_PROTO_ClearQueue [04:42:00]wFMCommunicate request_size=4 [04:42:00]MH_SAM_APDU [04:42:00]CAPDU: 80 09 00 00 [04:42:00]Write to MH i2c: E2 08 00 2B 07 80 09 00 00 00 00 00 00 A4 [04:42:00]Write i2c OK [04:42:00]MH_I2C_Read... [04:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:42:00]Read from MH i2c: E2 [04:42:00]MH_I2C_Read... [04:42:00]Read from MH i2c: E2 03 00 [04:42:00]MH_I2C_Read... [04:42:00]Read from MH i2c: E2 03 00 2B 07 00 90 00 A6 [04:42:00]RAPDU: 90 00 [04:42:00]wFMCommunicate OK [04:42:00]SAM_PROTO_ClearQueue done [04:42:00]KKMCreateOFDPacket [04:42:00]OFDProtocolAddRootSTLVToBuf [04:42:00]FM_MakeSignedData [04:42:00]FM_MakeSignedData [04:42:00]SAM_PROTO_SignData [04:42:00]wFMCommunicate request_size=4 [04:42:00]MH_SAM_APDU [04:42:00]CAPDU: 80 0D 01 02 [04:42:00]Write to MH i2c: E2 08 00 2C 07 80 0D 01 02 00 00 00 00 AC [04:42:00]Write i2c OK [04:42:00]MH_I2C_Read... [04:42:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:42:01]Read from MH i2c: E2 [04:42:01]MH_I2C_Read... [04:42:01]Read from MH i2c: E2 03 00 [04:42:01]MH_I2C_Read... [04:42:01]Read from MH i2c: E2 03 00 2C 07 00 90 00 A7 [04:42:01]RAPDU: 90 00 [04:42:01]wFMCommunicate OK [04:42:01]wFMCommunicate request_size=255 [04:42:01]MH_SAM_APDU [04:42:01]CAPDU: 80 0D 02 02 FA 03 00 66 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 [04:42:01]Write to MH i2c: E2 02 01 2D 07 80 0D 02 02 FA 00 03 00 66 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 00 00 06 [04:42:01]Write i2c OK [04:42:01]MH_I2C_Read... [04:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:42:01]Read from MH i2c: E2 [04:42:01]MH_I2C_Read... [04:42:01]Read from MH i2c: E2 03 00 [04:42:01]MH_I2C_Read... [04:42:01]Read from MH i2c: E2 03 00 2D 07 00 90 00 A8 [04:42:01]RAPDU: 90 00 [04:42:01]wFMCommunicate OK [04:42:01]wFMCommunicate request_size=117 [04:42:01]MH_SAM_APDU [04:42:01]CAPDU: 80 0D 02 02 70 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 98 F1 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 50 C3 01 00 35 04 06 00 19 25 74 58 BC F9 [04:42:01]Write to MH i2c: E2 78 00 2E 07 80 0D 02 02 70 00 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 98 F1 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 50 C3 01 00 35 04 06 00 19 25 74 58 BC F9 00 00 7A [04:42:01]Write i2c OK [04:42:01]MH_I2C_Read... [04:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:42:01]Read from MH i2c: E2 [04:42:01]MH_I2C_Read... [04:42:01]Read from MH i2c: E2 03 00 [04:42:01]MH_I2C_Read... [04:42:01]Read from MH i2c: E2 03 00 2E 07 00 90 00 A9 [04:42:01]RAPDU: 90 00 [04:42:01]wFMCommunicate OK [04:42:01]wFMCommunicate request_size=4 [04:42:01]MH_SAM_APDU [04:42:01]CAPDU: 80 0D 03 02 [04:42:01]Write to MH i2c: E2 08 00 2F 07 80 0D 03 02 00 00 00 00 B1 [04:42:01]Write i2c OK [04:42:01]MH_I2C_Read... [04:42:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:42:01]Read from MH i2c: E2 [04:42:01]MH_I2C_Read... [04:42:01]Read from MH i2c: E2 0B 00 [04:42:01]MH_I2C_Read... [04:42:01]Read from MH i2c: E2 0B 00 2F 07 00 B4 63 F6 EC 96 41 A4 81 90 00 A7 [04:42:01]RAPDU: B4 63 F6 EC 96 41 A4 81 90 00 [04:42:01]wFMCommunicate OK [04:42:01]SAM_PROTO_SignData done [04:42:01]FM_MakeSignedData done [04:42:01]CreateOFDProtocolMessage [04:42:01]wFMCommunicate request_size=4 [04:42:01]MH_SAM_APDU [04:42:01]CAPDU: 80 11 00 00 [04:42:01]Write to MH i2c: E2 08 00 30 07 80 11 00 00 00 00 00 00 B1 [04:42:01]Write i2c OK [04:42:01]MH_I2C_Read... [04:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:42:01]Read from MH i2c: E2 [04:42:01]MH_I2C_Read... [04:42:01]Read from MH i2c: E2 17 00 [04:42:01]MH_I2C_Read... [04:42:01]Read from MH i2c: E2 17 00 30 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FF [04:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:42:01]wFMCommunicate OK [04:42:01]CreateOFDProtocolMessage done [04:42:01]OFDSenderStorePacket 115536 [04:42:01]StoreOFDPacket docnum=115536 [04:42:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 7A 01 00 00 44 4F 72 01 5A D2 5A 03 01 00 03 00 66 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 98 F1 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 50 C3 01 00 35 04 06 00 19 25 74 58 BC F9 B4 63 F6 EC 96 41 A4 81 [04:42:01]CheckFolder [04:42:01]dirname=/storage/ofd_packets [04:42:01]CheckFolder done [04:42:01]ProducePacketName [04:42:01]name=ofd_packets/00115536 [04:42:01]NVStorageSaveData ofd_packets/00115536 [04:42:01]File name is /storage/ofd_packets/00115536 [04:42:01]Write 408 bytes [04:42:01]NVStorageSaveData done [04:42:01]OFDSenderStorePacket done [04:42:01]KKMCreateOFDPacket done [04:42:01]NVStorageSaveData kkm_last_timestamp [04:42:01]File name is /storage/kkm_last_timestamp [04:42:01]Write 4 bytes [04:42:01]NVStorageSaveData done [04:42:01]ExternCall_PrintAddStr [04:42:01]wPrintStart [04:42:01]Write to MH i2c: 01 00 00 31 07 38 [04:42:01]Write i2c OK [04:42:01]MH_I2C_Read... [04:42:01]Read from MH i2c: 01 [04:42:01]MH_I2C_Read... [04:42:01]Read from MH i2c: 01 07 00 [04:42:01]MH_I2C_Read... [04:42:01]Read from MH i2c: 01 07 00 31 07 00 00 00 00 00 FF 0F 4D [04:42:01]RasterBufferAndPrint [04:42:01]line Счет N : (3)343962 [04:42:01]line ИНН: 02508201610067 [04:42:01]line Контрольно-Кассовый Чек [04:42:01]line ПРОДАЖА [04:42:01]line Товар: 4700002083327 [04:42:01]line Водка Level 0,5 [04:42:01]line 1.000 * 510.00 [04:42:01]line = 510.00 [04:42:01]line НДС 12% НСП 1% [04:42:01]line > о реализуемом товаре [04:42:01]line Товар: 4870001570071 [04:42:01]line Напиток Pepsi 1л [04:42:01]line 1.000 * 110.00 [04:42:01]line = 110.00 [04:42:01]line НДС 12% НСП 1% [04:42:01]line > о реализуемом товаре [04:42:01]line ИТОГО: 620.00 [04:42:01]line НСП 1% : 5.48 [04:42:01]line НДС 12% : 65.84 [04:42:01]line Наличными: 620.00 [04:42:01]line Безнал.: 0.00 [04:42:01]line Место: АЗС № 90 "Партнер Нефть" [04:42:01]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [04:42:01]line СНО: Общий режим [04:42:01]line Чек 19 23.09.2024 04:42 [04:42:01]line Смена: 472 ФФД: 1.0 [04:42:01]line ЗНМ: 0300000120 [04:42:01]line РНМ: 0000000000091831 [04:42:01]line Версия ККМ: 001 [04:42:01]line ФМ: 0000000000871830 [04:42:01]line ФД: 115536 [04:42:01]line ФПД: 27648656456953 [04:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T044200&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115536&fm=27648656456953&tin=02508201610067®Number=0000000000091831&sum=62000 [04:42:01]line 0 [04:42:01]OFD Sender: Processing packet 115536 [packets to send 481, broken 480] [04:42:01]ProducePacketName [04:42:01]name=ofd_packets/00115536 [04:42:01]OFD Sender: To server: pG, [04:42:01]CommunicateWithHost lk.salyk.kg:30040 [04:42:01]ConnectInit lk.salyk.kg [04:42:01]written 0, free lines is 4095 [04:42:02]Connected sock=10 [04:42: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 38 33 30 7A 01 00 00 44 4F 72 01 5A D2 5A 03 01 00 03 00 66 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 98 F1 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 50 C3 01 00 35 04 06 00 19 25 74 58 BC F9 B4 63 F6 EC 96 41 A4 81 [04:42:02]Write to MH i2c: 01 00 00 5E 07 65 [04:42:02]Write i2c OK [04:42:02]MH_I2C_Read... [04:42:02]Read from MH i2c: 01 [04:42:02]MH_I2C_Read... [04:42:02]Read from MH i2c: 01 07 00 [04:42:02]MH_I2C_Read... [04:42:02]Read from MH i2c: 01 07 00 5E 07 00 00 00 00 00 07 0C 7F [04:42:02]RasterBufferAndPrint [04:42:02]line [04:42:02]line [04:42:02]line [04:42:02]line [04:42:02]line [04:42:02]written 0, free lines is 3082 [04:42:02]MH_Cut [04:42:02]Write to MH i2c: D1 01 00 65 07 01 3E [04:42:02]Write i2c OK [04:42:02]MH_I2C_Read... [04:42:02]Read from MH i2c: D1 [04:42:02]MH_I2C_Read... [04:42:02]Read from MH i2c: D1 01 00 [04:42:02]MH_I2C_Read... [04:42:02]Read from MH i2c: D1 01 00 65 07 00 3D [04:42:02]Write to MH i2c: 01 00 00 66 07 6D [04:42:02]Write i2c OK [04:42:02]MH_I2C_Read... [04:42:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 41 BE 47 00 7A 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 38 33 30 10 04 04 00 50 C3 01 00 F4 03 04 00 DC 96 F0 66 B6 04 01 00 00 4A A4 E8 76 3F 57 75 0C [04:42:02]CommunicateWithHost err = 0 [04:42:02]CheckOFDResponse [04:42:02]1017 (14) - 77093643461234 [04:42:02]1041 (16) - 0000000000871830 [04:42:02]1040 (4) - 115536 [04:42:02]1012 (4) - 22.09.2024 22:14 [04:42:02]1206 (1) - 0 [04:42:02]OFD Sender: Remove packet 115536 [04:42:02]ProducePacketName [04:42:02]name=ofd_packets/00115536 [04:42:02]NVStorageDeleteData [04:42:02]OFD Sender: No OFD packet to send [04:42:03]*** Cut start [04:42:03]*** Partial cut [04:42:03]*** CUTSNS_PIN = 1 [04:42:03]*** CUTSNS_PIN = 0 [04:42:04]*** Brake cut motor [04:42:04]Read from MH i2c: 01 [04:42:04]MH_I2C_Read... [04:42:04]*** Stop cut motor [04:42:04]*** Cut end [04:42:04]Read from MH i2c: 01 07 00 [04:42:04]MH_I2C_Read... [04:42:04]Read from MH i2c: 01 07 00 66 07 00 00 00 00 00 FF 0F 82 [04:42:04]process_action close_receipt done [04:42:04]requested_data is exist [04:42:04]produce_requested_data [04:42:04]requested_item fm.sn is exist - process it [04:42:04]wFMCommunicate request_size=4 [04:42:04]MH_SAM_APDU [04:42:04]CAPDU: 80 11 00 00 [04:42:04]Write to MH i2c: E2 08 00 67 07 80 11 00 00 00 00 00 00 E8 [04:42:04]Write i2c OK [04:42:04]MH_I2C_Read... [04:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:42:04]Read from MH i2c: E2 [04:42:04]MH_I2C_Read... [04:42:04]Read from MH i2c: E2 17 00 [04:42:04]MH_I2C_Read... [04:42:04]Read from MH i2c: E2 17 00 67 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 36 [04:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:42:04]wFMCommunicate OK [04:42:04]requested_item fd.num is exist - process it [04:42:04]SAM_PROTO_GetFieldsCounters [04:42:04]wFMCommunicate request_size=4 [04:42:04]MH_SAM_APDU [04:42:04]CAPDU: 80 13 00 00 [04:42:04]Write to MH i2c: E2 08 00 68 07 80 13 00 00 00 00 00 00 EB [04:42:04]Write i2c OK [04:42:04]MH_I2C_Read... [04:42:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:42:04]Read from MH i2c: E2 [04:42:04]MH_I2C_Read... [04:42:04]Read from MH i2c: E2 62 00 [04:42:04]MH_I2C_Read... [04:42:04]Read from MH i2c: E2 62 00 68 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 50 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [04:42: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 50 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:42:04]wFMCommunicate OK [04:42:04]SAM_PROTO_GetFieldsCounters done [04:42:04]requested_item shift.num is exist - process it [04:42:04]requested_item shift.opened is exist - process it [04:42:04]req_shift_opened [04:42:04]FM_GetShiftState [04:42:04]SAM_PROTO_GetShiftState [04:42:04]wFMCommunicate request_size=4 [04:42:04]MH_SAM_APDU [04:42:04]CAPDU: 80 13 01 00 [04:42:04]Write to MH i2c: E2 08 00 69 07 80 13 01 00 00 00 00 00 ED [04:42:04]Write i2c OK [04:42:04]MH_I2C_Read... [04:42:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:42:04]Read from MH i2c: E2 [04:42:04]MH_I2C_Read... [04:42:04]Read from MH i2c: E2 0E 00 [04:42:04]MH_I2C_Read... [04:42:04]Read from MH i2c: E2 0E 00 69 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 2E [04:42:04]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [04:42:04]wFMCommunicate OK [04:42:04]SAM_PROTO_GetShiftState done [04:42:04]FM_GetShiftState done [04:42:04]req_shift_opened done [04:42:04]requested_item shift.open_date is exist - process it [04:42:04]req_shift_open_date [04:42:04]req_shift_open_date done [04:42:04]produce_requested_data done [04:42:04]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115536,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [04:42:04]process_action_free close_receipt [04:42:04]json_value_free [04:42:04]json_value_free done [04:42:04]process_json_proto returns [04:42:04]Send response to host [04:42:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115536,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [04:42:04]free response buf [04:42:04]execute_script done [04:42:04]execute_script returns [04:42:04]free content buf [04:42:04]Sock 9.Close socket [04:42:04]Sock 9.Thread stoped [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:09]accept exits with 8 [05:09:09]New connection [05:09:09]New thread 3067170148 created [05:09:09]Thread 3067313508 joined [05:09:09]Waiting for new connection... [05:09:09] Sock 8.Parse request [05:09:09]Sock 8.Check first char [05:09:09]Sock 8.First char is OK [05:09:09]request: POST /json_proto HTTP/1.0 [05:09:09]Method: POST [05:09:09]URL: /json_proto [05:09:09]Method is POST - this is cgi request [05:09:09]url: /json_proto [05:09:09]query_string will be loaded in cgi processing [05:09:09]execute_cgi json_proto POST (null) [05:09:09]execute_cgi path=json_proto method=POST [05:09:09]POST find Content-Length [05:09:09]Host: 172.17.41.136:8080 [05:09:09]Content-Length: 952 [05:09:09]Content-Type: application/json [05:09:09] [05:09:09]POST finish read [05:09:09]Found Content-Length = 952 [05:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343963", "tax_sys" : 0, "items" : [ { "code": "4700002083266", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u0442\u0438\u043B\u043B\u0430 \u0413\u0443\u043D\u043D 0,5\u043B", "price" : 450.00, "quantity" : 2.000, "sum" : 900.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 9.000, "sum" : 63.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 963.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:09:09]execute_script... [05:09:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343963", "tax_sys" : 0, "items" : [ { "code": "4700002083266", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u0442\u0438\u043B\u043B\u0430 \u0413\u0443\u043D\u043D 0,5\u043B", "price" : 450.00, "quantity" : 2.000, "sum" : 900.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 9.000, "sum" : 63.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 963.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:09:09]POST & json_proto [05:09:09]process_json_proto [05:09:09]json parsed OK: [05:09:09]protocol is kg_v1.0 [05:09:09]action value=close_receipt [05:09:09]process_action close_receipt [05:09:09]cmd_close_receipt [05:09:09]MH_GetDate [05:09:09]Write to MH i2c: F0 00 00 6A 07 60 [05:09:09]Write i2c OK [05:09:09]MH_I2C_Read... [05:09:09]Read from MH i2c: F0 [05:09:09]MH_I2C_Read... [05:09:09]Read from MH i2c: F0 09 00 [05:09:09]MH_I2C_Read... [05:09:09]Read from MH i2c: F0 09 00 6A 07 00 F6 F7 F0 66 1B D0 5A 64 55 [05:09:09]GetLastDocTimeStamp 1727066520 [05:09:09]current date 1727068150 [05:09:09]FM_GetShiftState [05:09:09]SAM_PROTO_GetShiftState [05:09:09]wFMCommunicate request_size=4 [05:09:09]MH_SAM_APDU [05:09:09]CAPDU: 80 13 01 00 [05:09:09]Write to MH i2c: E2 08 00 6B 07 80 13 01 00 00 00 00 00 EF [05:09:09]Write i2c OK [05:09:09]MH_I2C_Read... [05:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:09:09]Read from MH i2c: E2 [05:09:09]MH_I2C_Read... [05:09:09]Read from MH i2c: E2 0E 00 [05:09:09]MH_I2C_Read... [05:09:09]Read from MH i2c: E2 0E 00 6B 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 30 [05:09:09]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [05:09:09]wFMCommunicate OK [05:09:09]SAM_PROTO_GetShiftState done [05:09:09]FM_GetShiftState done [05:09:09]opened in 1727052070 [05:09:09]opened+sec_in_day 1727138470 [05:09:09]quantity*price = 90000 [05:09:09]sum+1 = 90001 [05:09:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 9.000 * 7.00 = 63.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 963.00 НСП 1% : 8.52 НДС 12% : 102.26 Наличными: 963.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 20 23.09.2024 05:09 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115537 ФПД: 221559096430924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T050910&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115537&fm=221559096430924&tin=02508201610067®Number=0000000000091831&sum=96300 0 [05:09:10]StoreToDocumentArchive [05:09:10]shift 472 fd 115537 [05:09:10]save to /storage/0472/doc_00115537 [05:09:10]save last doc name /storage/0472/doc_00115537 to /storage/kkm_last_doc_name [05:09:10]save OK [05:09:10]Clear old archive folders... [05:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=397 [05:09:10]tlvbuf is 011A7A00 [05:09:10]SAM_PROTO_ClearQueue [05:09:10]wFMCommunicate request_size=4 [05:09:10]MH_SAM_APDU [05:09:10]CAPDU: 80 09 00 00 [05:09:10]Write to MH i2c: E2 08 00 78 07 80 09 00 00 00 00 00 00 F1 [05:09:10]Write i2c OK [05:09:10]MH_I2C_Read... [05:09:10]Read from MH i2c: E2 [05:09:10]MH_I2C_Read... [05:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:09:10]Read from MH i2c: E2 03 00 [05:09:10]MH_I2C_Read... [05:09:10]Read from MH i2c: E2 03 00 78 07 00 90 00 F3 [05:09:10]RAPDU: 90 00 [05:09:10]wFMCommunicate OK [05:09:10]SAM_PROTO_ClearQueue done [05:09:10]KKMCreateOFDPacket [05:09:10]OFDProtocolAddRootSTLVToBuf [05:09:10]FM_MakeSignedData [05:09:10]FM_MakeSignedData [05:09:10]SAM_PROTO_SignData [05:09:10]wFMCommunicate request_size=4 [05:09:10]MH_SAM_APDU [05:09:10]CAPDU: 80 0D 01 02 [05:09:10]Write to MH i2c: E2 08 00 79 07 80 0D 01 02 00 00 00 00 F9 [05:09:10]Write i2c OK [05:09:10]MH_I2C_Read... [05:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:09:10]Read from MH i2c: E2 [05:09:10]MH_I2C_Read... [05:09:10]Read from MH i2c: E2 03 00 [05:09:10]MH_I2C_Read... [05:09:10]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [05:09:10]RAPDU: 90 00 [05:09:10]wFMCommunicate OK [05:09:10]wFMCommunicate request_size=255 [05:09:10]MH_SAM_APDU [05:09:10]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 90 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 78 01 00 00 00 EB 03 26 00 [05:09:10]Write to MH i2c: E2 02 01 7A 07 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 90 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 78 01 00 00 00 EB 03 26 00 00 00 CE [05:09:10]Write i2c OK [05:09:10]MH_I2C_Read... [05:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:09:11]Read from MH i2c: E2 [05:09:11]MH_I2C_Read... [05:09:11]Read from MH i2c: E2 03 00 [05:09:11]MH_I2C_Read... [05:09:11]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [05:09:11]RAPDU: 90 00 [05:09:11]wFMCommunicate OK [05:09:11]wFMCommunicate request_size=156 [05:09:11]MH_SAM_APDU [05:09:11]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 27 00 00 00 00 07 04 06 00 2C 78 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 F6 F7 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 51 C3 01 00 35 04 06 00 C9 81 BF 3D 51 4C [05:09:11]Write to MH i2c: E2 9F 00 7B 07 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 27 00 00 00 00 07 04 06 00 2C 78 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 F6 F7 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 51 C3 01 00 35 04 06 00 C9 81 BF 3D 51 4C 00 00 88 [05:09:11]Write i2c OK [05:09:11]MH_I2C_Read... [05:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:09:11]Read from MH i2c: E2 [05:09:11]MH_I2C_Read... [05:09:11]Read from MH i2c: E2 03 00 [05:09:11]MH_I2C_Read... [05:09:11]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [05:09:11]RAPDU: 90 00 [05:09:11]wFMCommunicate OK [05:09:11]wFMCommunicate request_size=4 [05:09:11]MH_SAM_APDU [05:09:11]CAPDU: 80 0D 03 02 [05:09:11]Write to MH i2c: E2 08 00 7C 07 80 0D 03 02 00 00 00 00 FE [05:09:11]Write i2c OK [05:09:11]MH_I2C_Read... [05:09:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:09:11]Read from MH i2c: E2 [05:09:11]MH_I2C_Read... [05:09:11]Read from MH i2c: E2 0B 00 [05:09:11]MH_I2C_Read... [05:09:11]Read from MH i2c: E2 0B 00 7C 07 00 A9 5D 96 64 CA 9D 9A 72 90 00 72 [05:09:11]RAPDU: A9 5D 96 64 CA 9D 9A 72 90 00 [05:09:11]wFMCommunicate OK [05:09:11]SAM_PROTO_SignData done [05:09:11]FM_MakeSignedData done [05:09:11]CreateOFDProtocolMessage [05:09:11]wFMCommunicate request_size=4 [05:09:11]MH_SAM_APDU [05:09:11]CAPDU: 80 11 00 00 [05:09:11]Write to MH i2c: E2 08 00 7D 07 80 11 00 00 00 00 00 00 FE [05:09:11]Write i2c OK [05:09:11]MH_I2C_Read... [05:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:09:11]Read from MH i2c: E2 [05:09:11]MH_I2C_Read... [05:09:11]Read from MH i2c: E2 17 00 [05:09:11]MH_I2C_Read... [05:09:11]Read from MH i2c: E2 17 00 7D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4C [05:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:09:11]wFMCommunicate OK [05:09:11]CreateOFDProtocolMessage done [05:09:11]OFDSenderStorePacket 115537 [05:09:11]StoreOFDPacket docnum=115537 [05:09:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A1 01 00 00 56 5B 99 01 66 4F 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 90 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 78 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 27 00 00 00 00 07 04 06 00 2C 78 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 F6 F7 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 51 C3 01 00 35 04 06 00 C9 81 BF 3D 51 4C A9 5D 96 64 CA 9D 9A 72 [05:09:11]CheckFolder [05:09:11]dirname=/storage/ofd_packets [05:09:11]CheckFolder done [05:09:11]ProducePacketName [05:09:11]name=ofd_packets/00115537 [05:09:11]NVStorageSaveData ofd_packets/00115537 [05:09:11]File name is /storage/ofd_packets/00115537 [05:09:11]Write 447 bytes [05:09:11]NVStorageSaveData done [05:09:11]OFDSenderStorePacket done [05:09:11]KKMCreateOFDPacket done [05:09:11]NVStorageSaveData kkm_last_timestamp [05:09:11]File name is /storage/kkm_last_timestamp [05:09:11]Write 4 bytes [05:09:11]NVStorageSaveData done [05:09:11]ExternCall_PrintAddStr [05:09:11]wPrintStart [05:09:11]Write to MH i2c: 01 00 00 7E 07 85 [05:09:11]OFD Sender: Processing packet 115537 [packets to send 481, broken 480] [05:09:11]ProducePacketName [05:09:11]name=ofd_packets/00115537 [05:09:11]OFD Sender: To server: pG, [05:09:11]CommunicateWithHost lk.salyk.kg:30040 [05:09:11]ConnectInit lk.salyk.kg [05:09:11]Write i2c OK [05:09:11]MH_I2C_Read... [05:09:11]Read from MH i2c: 01 [05:09:11]MH_I2C_Read... [05:09:11]Read from MH i2c: 01 07 00 [05:09:11]MH_I2C_Read... [05:09:11]Read from MH i2c: 01 07 00 7E 07 00 00 00 00 00 FF 0F 9A [05:09:11]RasterBufferAndPrint [05:09:11]line Счет N : (3)343963 [05:09:11]line ИНН: 02508201610067 [05:09:11]line Контрольно-Кассовый Чек [05:09:11]line ПРОДАЖА [05:09:11]line Товар: 4700002083266 [05:09:11]line Водка Атилла Гунн 0,5л [05:09:11]line 2.000 * 450.00 [05:09:11]line = 900.00 [05:09:11]line НДС 12% НСП 1% [05:09:11]line > о реализуемом товаре [05:09:11]line Товар: 2000053020015 [05:09:11]line Бумажные стаканы 250мл 1шт [05:09:11]line 9.000 * 7.00 [05:09:11]line = 63.00 [05:09:11]line НДС 12% НСП 1% [05:09:11]line > о реализуемом товаре [05:09:11]line ИТОГО: 963.00 [05:09:11]line НСП 1% : 8.52 [05:09:11]line НДС 12% : 102.26 [05:09:11]line Наличными: 963.00 [05:09:11]line Безнал.: 0.00 [05:09:11]line Место: АЗС № 90 "Партнер Нефть" [05:09:11]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [05:09:11]line СНО: Общий режим [05:09:11]line Чек 20 23.09.2024 05:09 [05:09:11]line Смена: 472 ФФД: 1.0 [05:09:11]line ЗНМ: 0300000120 [05:09:11]line РНМ: 0000000000091831 [05:09:11]line Версия ККМ: 001 [05:09:11]line ФМ: 0000000000871830 [05:09:11]line ФД: 115537 [05:09:11]line ФПД: 221559096430924 [05:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T050910&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115537&fm=221559096430924&tin=02508201610067®Number=0000000000091831&sum=96300 [05:09:11]line 0 [05:09:11]written 0, free lines is 4095 [05:09:12]Connected sock=10 [05:09:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A1 01 00 00 56 5B 99 01 66 4F 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 90 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 78 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 27 00 00 00 00 07 04 06 00 2C 78 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 F6 F7 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 51 C3 01 00 35 04 06 00 C9 81 BF 3D 51 4C A9 5D 96 64 CA 9D 9A 72 [05:09:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 8C 8A 47 00 D0 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 38 33 30 10 04 04 00 51 C3 01 00 F4 03 04 00 3A 9D F0 66 B6 04 01 00 00 72 73 35 7E DC 42 39 A0 [05:09:12]CommunicateWithHost err = 0 [05:09:12]CheckOFDResponse [05:09:12]1017 (14) - 77093643461234 [05:09:12]1041 (16) - 0000000000871830 [05:09:12]1040 (4) - 115537 [05:09:12]1012 (4) - 22.09.2024 22:42 [05:09:12]1206 (1) - 0 [05:09:12]OFD Sender: Remove packet 115537 [05:09:12]ProducePacketName [05:09:12]name=ofd_packets/00115537 [05:09:12]NVStorageDeleteData [05:09:12]Write to MH i2c: 01 00 00 AC 07 B3 [05:09:12]Write i2c OK [05:09:12]MH_I2C_Read... [05:09:12]Read from MH i2c: 01 [05:09:12]MH_I2C_Read... [05:09:12]Read from MH i2c: 01 07 00 [05:09:12]MH_I2C_Read... [05:09:12]Read from MH i2c: 01 07 00 AC 07 00 00 00 00 00 FC 0B C1 [05:09:12]RasterBufferAndPrint [05:09:12]line [05:09:12]line [05:09:12]line [05:09:12]line [05:09:12]line [05:09:12]written 0, free lines is 3070 [05:09:12]MH_Cut [05:09:12]Write to MH i2c: D1 01 00 B3 07 01 8C [05:09:12]Write i2c OK [05:09:12]MH_I2C_Read... [05:09:12]Read from MH i2c: D1 [05:09:12]MH_I2C_Read... [05:09:12]Read from MH i2c: D1 01 00 [05:09:12]MH_I2C_Read... [05:09:12]Read from MH i2c: D1 01 00 B3 07 00 8B [05:09:12]Write to MH i2c: 01 00 00 B4 07 BB [05:09:12]Write i2c OK [05:09:12]MH_I2C_Read... [05:09:12]OFD Sender: No OFD packet to send [05:09:13]*** Cut start [05:09:13]*** Partial cut [05:09:13]*** CUTSNS_PIN = 1 [05:09:13]*** CUTSNS_PIN = 0 [05:09:14]*** Brake cut motor [05:09:14]Read from MH i2c: 01 [05:09:14]MH_I2C_Read... [05:09:14]*** Stop cut motor [05:09:14]*** Cut end [05:09:14]Read from MH i2c: 01 07 00 [05:09:14]MH_I2C_Read... [05:09:14]Read from MH i2c: 01 07 00 B4 07 00 00 00 00 00 FF 0F D0 [05:09:14]process_action close_receipt done [05:09:14]requested_data is exist [05:09:14]produce_requested_data [05:09:14]requested_item fm.sn is exist - process it [05:09:14]wFMCommunicate request_size=4 [05:09:14]MH_SAM_APDU [05:09:14]CAPDU: 80 11 00 00 [05:09:14]Write to MH i2c: E2 08 00 B5 07 80 11 00 00 00 00 00 00 36 [05:09:14]Write i2c OK [05:09:14]MH_I2C_Read... [05:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:09:14]Read from MH i2c: E2 [05:09:14]MH_I2C_Read... [05:09:14]Read from MH i2c: E2 17 00 [05:09:14]MH_I2C_Read... [05:09:14]Read from MH i2c: E2 17 00 B5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 84 [05:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:09:14]wFMCommunicate OK [05:09:14]requested_item fd.num is exist - process it [05:09:14]SAM_PROTO_GetFieldsCounters [05:09:14]wFMCommunicate request_size=4 [05:09:14]MH_SAM_APDU [05:09:14]CAPDU: 80 13 00 00 [05:09:14]Write to MH i2c: E2 08 00 B6 07 80 13 00 00 00 00 00 00 39 [05:09:14]Write i2c OK [05:09:14]MH_I2C_Read... [05:09:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:09:14]Read from MH i2c: E2 [05:09:14]MH_I2C_Read... [05:09:14]Read from MH i2c: E2 62 00 [05:09:14]MH_I2C_Read... [05:09:14]Read from MH i2c: E2 62 00 B6 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 51 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [05:09: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 51 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:09:14]wFMCommunicate OK [05:09:14]SAM_PROTO_GetFieldsCounters done [05:09:14]requested_item shift.num is exist - process it [05:09:14]requested_item shift.opened is exist - process it [05:09:14]req_shift_opened [05:09:14]FM_GetShiftState [05:09:14]SAM_PROTO_GetShiftState [05:09:14]wFMCommunicate request_size=4 [05:09:14]MH_SAM_APDU [05:09:14]CAPDU: 80 13 01 00 [05:09:14]Write to MH i2c: E2 08 00 B7 07 80 13 01 00 00 00 00 00 3B [05:09:14]Write i2c OK [05:09:14]MH_I2C_Read... [05:09:14]Read from MH i2c: E2 [05:09:14]MH_I2C_Read... [05:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:09:14]Read from MH i2c: E2 0E 00 [05:09:14]MH_I2C_Read... [05:09:14]Read from MH i2c: E2 0E 00 B7 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7C [05:09:14]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [05:09:14]wFMCommunicate OK [05:09:14]SAM_PROTO_GetShiftState done [05:09:14]FM_GetShiftState done [05:09:14]req_shift_opened done [05:09:14]requested_item shift.open_date is exist - process it [05:09:14]req_shift_open_date [05:09:14]req_shift_open_date done [05:09:14]produce_requested_data done [05:09:14]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115537,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [05:09:14]process_action_free close_receipt [05:09:14]json_value_free [05:09:14]json_value_free done [05:09:14]process_json_proto returns [05:09:14]Send response to host [05:09:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115537,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [05:09:14]free response buf [05:09:14]execute_script done [05:09:14]execute_script returns [05:09:14]free content buf [05:09:14]Sock 8.Close socket [05:09:14]Sock 8.Thread stoped [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:49]accept exits with 9 [05:11:49]New connection [05:11:49]New thread 3067313508 created [05:11:49]Thread 3067170148 joined [05:11:49]Waiting for new connection... [05:11:49] Sock 9.Parse request [05:11:49]Sock 9.Check first char [05:11:49]Sock 9.First char is OK [05:11:49]request: POST /json_proto HTTP/1.0 [05:11:49]Method: POST [05:11:49]URL: /json_proto [05:11:49]Method is POST - this is cgi request [05:11:49]url: /json_proto [05:11:49]query_string will be loaded in cgi processing [05:11:49]execute_cgi json_proto POST (null) [05:11:49]execute_cgi path=json_proto method=POST [05:11:49]POST find Content-Length [05:11:49]Host: 172.17.41.136:8080 [05:11:49]Content-Length: 953 [05:11:49]Content-Type: application/json [05:11:49] [05:11:49]POST finish read [05:11:49]Found Content-Length = 953 [05:11:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343964", "tax_sys" : 0, "items" : [ { "code": "4700000480081", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 \u0411\u0410\u0417\u0410\u041B\u041A\u041E\u0413\u041E\u041B\u042C\u041D\u041E\u0415 URBAN 312 0,", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 217.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:11:49]execute_script... [05:11:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343964", "tax_sys" : 0, "items" : [ { "code": "4700000480081", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 \u0411\u0410\u0417\u0410\u041B\u041A\u041E\u0413\u041E\u041B\u042C\u041D\u041E\u0415 URBAN 312 0,", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 217.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:11:49]POST & json_proto [05:11:49]process_json_proto [05:11:49]json parsed OK: [05:11:49]protocol is kg_v1.0 [05:11:49]action value=close_receipt [05:11:49]process_action close_receipt [05:11:49]cmd_close_receipt [05:11:49]MH_GetDate [05:11:49]Write to MH i2c: F0 00 00 B8 07 AE [05:11:49]Write i2c OK [05:11:49]MH_I2C_Read... [05:11:49]Read from MH i2c: F0 [05:11:49]MH_I2C_Read... [05:11:49]Read from MH i2c: F0 09 00 [05:11:49]MH_I2C_Read... [05:11:49]Read from MH i2c: F0 09 00 B8 07 00 96 F8 F0 66 1B D0 5A 64 44 [05:11:49]GetLastDocTimeStamp 1727068150 [05:11:49]current date 1727068310 [05:11:49]FM_GetShiftState [05:11:49]SAM_PROTO_GetShiftState [05:11:49]wFMCommunicate request_size=4 [05:11:49]MH_SAM_APDU [05:11:49]CAPDU: 80 13 01 00 [05:11:49]Write to MH i2c: E2 08 00 B9 07 80 13 01 00 00 00 00 00 3D [05:11:49]Write i2c OK [05:11:49]MH_I2C_Read... [05:11:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:11:49]Read from MH i2c: E2 [05:11:49]MH_I2C_Read... [05:11:49]Read from MH i2c: E2 0E 00 [05:11:49]MH_I2C_Read... [05:11:49]Read from MH i2c: E2 0E 00 B9 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7E [05:11:49]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [05:11:49]wFMCommunicate OK [05:11:49]SAM_PROTO_GetShiftState done [05:11:49]FM_GetShiftState done [05:11:49]opened in 1727052070 [05:11:49]opened+sec_in_day 1727138470 [05:11:49]quantity*price = 10700 [05:11:49]sum+1 = 10701 [05:11:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 217.00 НСП 1% : 1.92 НДС 12% : 23.04 Наличными: 217.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 21 23.09.2024 05:11 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115538 ФПД: 149573933947217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T051150&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115538&fm=149573933947217&tin=02508201610067®Number=0000000000091831&sum=21700 0 [05:11:50]StoreToDocumentArchive [05:11:50]shift 472 fd 115538 [05:11:50]save to /storage/0472/doc_00115538 [05:11:50]save last doc name /storage/0472/doc_00115538 to /storage/kkm_last_doc_name [05:11:50]save OK [05:11:50]Clear old archive folders... [05:11:50]ProcessDocumentItem done err = 0, tmpTLVsize=403 [05:11:50]tlvbuf is 0121BE60 [05:11:50]SAM_PROTO_ClearQueue [05:11:50]wFMCommunicate request_size=4 [05:11:50]MH_SAM_APDU [05:11:50]CAPDU: 80 09 00 00 [05:11:50]Write to MH i2c: E2 08 00 C6 07 80 09 00 00 00 00 00 00 3F [05:11:50]Write i2c OK [05:11:50]MH_I2C_Read... [05:11:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:11:50]Read from MH i2c: E2 [05:11:50]MH_I2C_Read... [05:11:50]Read from MH i2c: E2 03 00 [05:11:50]MH_I2C_Read... [05:11:50]Read from MH i2c: E2 03 00 C6 07 00 90 00 41 [05:11:50]RAPDU: 90 00 [05:11:50]wFMCommunicate OK [05:11:50]SAM_PROTO_ClearQueue done [05:11:50]KKMCreateOFDPacket [05:11:50]OFDProtocolAddRootSTLVToBuf [05:11:50]FM_MakeSignedData [05:11:50]FM_MakeSignedData [05:11:50]SAM_PROTO_SignData [05:11:50]wFMCommunicate request_size=4 [05:11:50]MH_SAM_APDU [05:11:50]CAPDU: 80 0D 01 02 [05:11:50]Write to MH i2c: E2 08 00 C7 07 80 0D 01 02 00 00 00 00 47 [05:11:50]Write i2c OK [05:11:50]MH_I2C_Read... [05:11:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:11:50]Read from MH i2c: E2 [05:11:50]MH_I2C_Read... [05:11:50]Read from MH i2c: E2 03 00 [05:11:50]MH_I2C_Read... [05:11:50]Read from MH i2c: E2 03 00 C7 07 00 90 00 42 [05:11:50]RAPDU: 90 00 [05:11:50]wFMCommunicate OK [05:11:50]wFMCommunicate request_size=255 [05:11:50]MH_SAM_APDU [05:11:50]CAPDU: 80 0D 02 02 FA 03 00 93 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 54 00 00 [05:11:50]Write to MH i2c: E2 02 01 C8 07 80 0D 02 02 FA 00 03 00 93 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 54 00 00 00 00 1A [05:11:50]Write i2c OK [05:11:50]MH_I2C_Read... [05:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:11:51]Read from MH i2c: E2 [05:11:51]MH_I2C_Read... [05:11:51]Read from MH i2c: E2 03 00 [05:11:51]MH_I2C_Read... [05:11:51]Read from MH i2c: E2 03 00 C8 07 00 90 00 43 [05:11:51]RAPDU: 90 00 [05:11:51]wFMCommunicate OK [05:11:51]wFMCommunicate request_size=162 [05:11:51]MH_SAM_APDU [05:11:51]CAPDU: 80 0D 02 02 9D 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 09 00 00 00 00 07 04 06 00 C4 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 96 F8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 52 C3 01 00 35 04 06 00 88 09 65 33 59 51 [05:11:51]Write to MH i2c: E2 A5 00 C9 07 80 0D 02 02 9D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 09 00 00 00 00 07 04 06 00 C4 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 96 F8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 52 C3 01 00 35 04 06 00 88 09 65 33 59 51 00 00 55 [05:11:51]Write i2c OK [05:11:51]MH_I2C_Read... [05:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:11:51]Read from MH i2c: E2 [05:11:51]MH_I2C_Read... [05:11:51]Read from MH i2c: E2 03 00 [05:11:51]MH_I2C_Read... [05:11:51]Read from MH i2c: E2 03 00 C9 07 00 90 00 44 [05:11:51]RAPDU: 90 00 [05:11:51]wFMCommunicate OK [05:11:51]wFMCommunicate request_size=4 [05:11:51]MH_SAM_APDU [05:11:51]CAPDU: 80 0D 03 02 [05:11:51]Write to MH i2c: E2 08 00 CA 07 80 0D 03 02 00 00 00 00 4C [05:11:51]Write i2c OK [05:11:51]MH_I2C_Read... [05:11:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:11:51]Read from MH i2c: E2 [05:11:51]MH_I2C_Read... [05:11:51]Read from MH i2c: E2 0B 00 [05:11:51]MH_I2C_Read... [05:11:51]Read from MH i2c: E2 0B 00 CA 07 00 15 9E 4E 0C 88 62 CA EC 90 00 FA [05:11:51]RAPDU: 15 9E 4E 0C 88 62 CA EC 90 00 [05:11:51]wFMCommunicate OK [05:11:51]SAM_PROTO_SignData done [05:11:51]FM_MakeSignedData done [05:11:51]CreateOFDProtocolMessage [05:11:51]wFMCommunicate request_size=4 [05:11:51]MH_SAM_APDU [05:11:51]CAPDU: 80 11 00 00 [05:11:51]Write to MH i2c: E2 08 00 CB 07 80 11 00 00 00 00 00 00 4C [05:11:51]Write i2c OK [05:11:51]MH_I2C_Read... [05:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:11:51]Read from MH i2c: E2 [05:11:51]MH_I2C_Read... [05:11:51]Read from MH i2c: E2 17 00 [05:11:51]MH_I2C_Read... [05:11:51]Read from MH i2c: E2 17 00 CB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9A [05:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:11:51]wFMCommunicate OK [05:11:51]CreateOFDProtocolMessage done [05:11:51]OFDSenderStorePacket 115538 [05:11:51]StoreOFDPacket docnum=115538 [05:11:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A7 01 00 00 88 46 9F 01 71 A5 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 09 00 00 00 00 07 04 06 00 C4 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 96 F8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 52 C3 01 00 35 04 06 00 88 09 65 33 59 51 15 9E 4E 0C 88 62 CA EC [05:11:51]CheckFolder [05:11:51]dirname=/storage/ofd_packets [05:11:51]CheckFolder done [05:11:51]ProducePacketName [05:11:51]name=ofd_packets/00115538 [05:11:51]NVStorageSaveData ofd_packets/00115538 [05:11:51]File name is /storage/ofd_packets/00115538 [05:11:51]Write 453 bytes [05:11:51]NVStorageSaveData done [05:11:51]OFDSenderStorePacket done [05:11:51]KKMCreateOFDPacket done [05:11:51]NVStorageSaveData kkm_last_timestamp [05:11:51]File name is /storage/kkm_last_timestamp [05:11:51]Write 4 bytes [05:11:51]NVStorageSaveData done [05:11:51]ExternCall_PrintAddStr [05:11:51]wPrintStart [05:11:51]Write to MH i2c: 01 00 00 CC 07 D3 [05:11:51]Write i2c OK [05:11:51]MH_I2C_Read... [05:11:51]Read from MH i2c: 01 [05:11:51]MH_I2C_Read... [05:11:51]Read from MH i2c: 01 07 00 [05:11:51]MH_I2C_Read... [05:11:51]Read from MH i2c: 01 07 00 CC 07 00 00 00 00 00 FF 0F E8 [05:11:51]RasterBufferAndPrint [05:11:51]line Счет N : (3)343964 [05:11:51]line ИНН: 02508201610067 [05:11:51]line Контрольно-Кассовый Чек [05:11:51]line ПРОДАЖА [05:11:51]line Товар: 4700000480081 [05:11:51]line ПИВО СВЕТЛОЕ БАЗАЛКОГОЛЬНОЕ URBAN 312 0, [05:11:51]line 1.000 * 107.00 [05:11:51]line = 107.00 [05:11:51]line НДС 12% НСП 1% [05:11:51]line > о реализуемом товаре [05:11:51]line Товар: 4870001570071 [05:11:51]line Напиток Pepsi 1л [05:11:51]line 1.000 * 110.00 [05:11:51]line = 110.00 [05:11:51]line НДС 12% НСП 1% [05:11:51]line > о реализуемом товаре [05:11:51]line ИТОГО: 217.00 [05:11:51]line НСП 1% : 1.92 [05:11:51]line НДС 12% : 23.04 [05:11:51]line Наличными: 217.00 [05:11:51]line Безнал.: 0.00 [05:11:51]line Место: АЗС № 90 "Партнер Нефть" [05:11:51]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [05:11:51]line СНО: Общий режим [05:11:51]line Чек 21 23.09.2024 05:11 [05:11:51]line Смена: 472 ФФД: 1.0 [05:11:51]line ЗНМ: 0300000120 [05:11:51]line РНМ: 0000000000091831 [05:11:51]line Версия ККМ: 001 [05:11:51]line ФМ: 0000000000871830 [05:11:51]line ФД: 115538 [05:11:51]line ФПД: 149573933947217 [05:11:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T051150&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115538&fm=149573933947217&tin=02508201610067®Number=0000000000091831&sum=21700 [05:11:51]line 0 [05:11:51]OFD Sender: Processing packet 115538 [packets to send 481, broken 480] [05:11:51]ProducePacketName [05:11:51]name=ofd_packets/00115538 [05:11:51]OFD Sender: To server: pG, [05:11:51]CommunicateWithHost lk.salyk.kg:30040 [05:11:51]ConnectInit lk.salyk.kg [05:11:51]written 0, free lines is 4095 [05:11:52]Connected sock=10 [05:11:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A7 01 00 00 88 46 9F 01 71 A5 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 09 00 00 00 00 07 04 06 00 C4 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 96 F8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 52 C3 01 00 35 04 06 00 88 09 65 33 59 51 15 9E 4E 0C 88 62 CA EC [05:11:52]Write to MH i2c: 01 00 00 FA 07 01 [05:11:52]Write i2c OK [05:11:52]MH_I2C_Read... [05:11:52]Read from MH i2c: 01 [05:11:52]MH_I2C_Read... [05:11:52]Read from MH i2c: 01 07 00 [05:11:52]MH_I2C_Read... [05:11:52]Read from MH i2c: 01 07 00 FA 07 00 00 00 00 00 D4 0B E7 [05:11:52]RasterBufferAndPrint [05:11:52]line [05:11:52]line [05:11:52]line [05:11:52]line [05:11:52]line [05:11:52]written 0, free lines is 3032 [05:11:52]MH_Cut [05:11:52]Write to MH i2c: D1 01 00 01 08 01 DB [05:11:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 FA CF 47 00 3B 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 52 C3 01 00 F4 03 04 00 DA 9D F0 66 B6 04 01 00 00 5B 74 B9 C7 04 30 AE CF [05:11:52]CommunicateWithHost err = 0 [05:11:52]CheckOFDResponse [05:11:52]1017 (14) - 77093643461234 [05:11:52]1041 (16) - 0000000000871830 [05:11:52]1040 (4) - 115538 [05:11:52]1012 (4) - 22.09.2024 22:44 [05:11:52]1206 (1) - 0 [05:11:52]OFD Sender: Remove packet 115538 [05:11:52]ProducePacketName [05:11:52]name=ofd_packets/00115538 [05:11:52]NVStorageDeleteData [05:11:52]Write i2c OK [05:11:52]MH_I2C_Read... [05:11:52]Read from MH i2c: D1 [05:11:52]MH_I2C_Read... [05:11:52]Read from MH i2c: D1 01 00 [05:11:52]MH_I2C_Read... [05:11:52]Read from MH i2c: D1 01 00 01 08 00 DA [05:11:52]Write to MH i2c: 01 00 00 02 08 0A [05:11:52]Write i2c OK [05:11:52]MH_I2C_Read... [05:11:52]OFD Sender: No OFD packet to send [05:11:53]*** Cut start [05:11:53]*** Partial cut [05:11:53]*** CUTSNS_PIN = 1 [05:11:53]*** CUTSNS_PIN = 0 [05:11:54]*** Brake cut motor [05:11:54]Read from MH i2c: 01 [05:11:54]MH_I2C_Read... [05:11:54]*** Stop cut motor [05:11:54]*** Cut end [05:11:54]Read from MH i2c: 01 07 00 [05:11:54]MH_I2C_Read... [05:11:54]Read from MH i2c: 01 07 00 02 08 00 00 00 00 00 FF 0F 1F [05:11:54]process_action close_receipt done [05:11:54]requested_data is exist [05:11:54]produce_requested_data [05:11:54]requested_item fm.sn is exist - process it [05:11:54]wFMCommunicate request_size=4 [05:11:54]MH_SAM_APDU [05:11:54]CAPDU: 80 11 00 00 [05:11:54]Write to MH i2c: E2 08 00 03 08 80 11 00 00 00 00 00 00 85 [05:11:54]Write i2c OK [05:11:54]MH_I2C_Read... [05:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:11:54]Read from MH i2c: E2 [05:11:54]MH_I2C_Read... [05:11:54]Read from MH i2c: E2 17 00 [05:11:54]MH_I2C_Read... [05:11:54]Read from MH i2c: E2 17 00 03 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D3 [05:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:11:54]wFMCommunicate OK [05:11:54]requested_item fd.num is exist - process it [05:11:54]SAM_PROTO_GetFieldsCounters [05:11:54]wFMCommunicate request_size=4 [05:11:54]MH_SAM_APDU [05:11:54]CAPDU: 80 13 00 00 [05:11:54]Write to MH i2c: E2 08 00 04 08 80 13 00 00 00 00 00 00 88 [05:11:54]Write i2c OK [05:11:54]MH_I2C_Read... [05:11:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:11:54]Read from MH i2c: E2 [05:11:54]MH_I2C_Read... [05:11:54]Read from MH i2c: E2 62 00 [05:11:54]MH_I2C_Read... [05:11:54]Read from MH i2c: E2 62 00 04 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 52 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [05:11:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 52 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:11:54]wFMCommunicate OK [05:11:54]SAM_PROTO_GetFieldsCounters done [05:11:54]requested_item shift.num is exist - process it [05:11:54]requested_item shift.opened is exist - process it [05:11:54]req_shift_opened [05:11:54]FM_GetShiftState [05:11:54]SAM_PROTO_GetShiftState [05:11:54]wFMCommunicate request_size=4 [05:11:54]MH_SAM_APDU [05:11:54]CAPDU: 80 13 01 00 [05:11:54]Write to MH i2c: E2 08 00 05 08 80 13 01 00 00 00 00 00 8A [05:11:54]Write i2c OK [05:11:54]MH_I2C_Read... [05:11:54]Read from MH i2c: E2 [05:11:54]MH_I2C_Read... [05:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:11:54]Read from MH i2c: E2 0E 00 [05:11:54]MH_I2C_Read... [05:11:54]Read from MH i2c: E2 0E 00 05 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CB [05:11:54]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [05:11:54]wFMCommunicate OK [05:11:54]SAM_PROTO_GetShiftState done [05:11:54]FM_GetShiftState done [05:11:54]req_shift_opened done [05:11:54]requested_item shift.open_date is exist - process it [05:11:54]req_shift_open_date [05:11:54]req_shift_open_date done [05:11:54]produce_requested_data done [05:11:54]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115538,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [05:11:54]process_action_free close_receipt [05:11:54]json_value_free [05:11:54]json_value_free done [05:11:54]process_json_proto returns [05:11:54]Send response to host [05:11:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115538,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [05:11:54]free response buf [05:11:54]execute_script done [05:11:54]execute_script returns [05:11:54]free content buf [05:11:54]Sock 9.Close socket [05:11:54]Sock 9.Thread stoped [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]accept exits with 8 [05:12:17]New connection [05:12:17]New thread 3067170148 created [05:12:17]Thread 3067313508 joined [05:12:17]Waiting for new connection... [05:12:17] Sock 8.Parse request [05:12:17]Sock 8.Check first char [05:12:17]Sock 8.First char is OK [05:12:17]request: POST /json_proto HTTP/1.0 [05:12:17]Method: POST [05:12:17]URL: /json_proto [05:12:17]Method is POST - this is cgi request [05:12:17]url: /json_proto [05:12:17]query_string will be loaded in cgi processing [05:12:17]execute_cgi json_proto POST (null) [05:12:17]execute_cgi path=json_proto method=POST [05:12:17]POST find Content-Length [05:12:17]Host: 172.17.41.136:8080 [05:12:17]Content-Length: 642 [05:12:17]Content-Type: application/json [05:12:17] [05:12:17]POST finish read [05:12:17]Found Content-Length = 642 [05:12:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343965", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 560.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:12:17]execute_script... [05:12:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343965", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 560.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:12:17]POST & json_proto [05:12:17]process_json_proto [05:12:17]json parsed OK: [05:12:17]protocol is kg_v1.0 [05:12:17]action value=close_receipt [05:12:17]process_action close_receipt [05:12:17]cmd_close_receipt [05:12:17]MH_GetDate [05:12:17]Write to MH i2c: F0 00 00 06 08 FD [05:12:17]Write i2c OK [05:12:17]MH_I2C_Read... [05:12:17]Read from MH i2c: F0 [05:12:17]MH_I2C_Read... [05:12:17]Read from MH i2c: F0 09 00 [05:12:17]MH_I2C_Read... [05:12:17]Read from MH i2c: F0 09 00 06 08 00 B2 F8 F0 66 1B D0 5A 64 AF [05:12:17]GetLastDocTimeStamp 1727068310 [05:12:17]current date 1727068338 [05:12:17]FM_GetShiftState [05:12:17]SAM_PROTO_GetShiftState [05:12:17]wFMCommunicate request_size=4 [05:12:17]MH_SAM_APDU [05:12:17]CAPDU: 80 13 01 00 [05:12:17]Write to MH i2c: E2 08 00 07 08 80 13 01 00 00 00 00 00 8C [05:12:17]Write i2c OK [05:12:17]MH_I2C_Read... [05:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:12:17]Read from MH i2c: E2 [05:12:17]MH_I2C_Read... [05:12:17]Read from MH i2c: E2 0E 00 [05:12:17]MH_I2C_Read... [05:12:17]Read from MH i2c: E2 0E 00 07 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CD [05:12:17]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [05:12:17]wFMCommunicate OK [05:12:17]SAM_PROTO_GetShiftState done [05:12:17]FM_GetShiftState done [05:12:17]opened in 1727052070 [05:12:17]opened+sec_in_day 1727138470 [05:12:17]quantity*price = 56000 [05:12:17]sum+1 = 56001 [05:12:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 560.00 НСП 1% : 4.96 НДС 12% : 59.47 Наличными: 560.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 22 23.09.2024 05:12 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115539 ФПД: 256367359701391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T051218&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115539&fm=256367359701391&tin=02508201610067®Number=0000000000091831&sum=56000 0 [05:12:18]StoreToDocumentArchive [05:12:18]shift 472 fd 115539 [05:12:18]save to /storage/0472/doc_00115539 [05:12:18]save last doc name /storage/0472/doc_00115539 to /storage/kkm_last_doc_name [05:12:18]save OK [05:12:18]Clear old archive folders... [05:12:18]ProcessDocumentItem done err = 0, tmpTLVsize=282 [05:12:18]tlvbuf is 012080F0 [05:12:18]SAM_PROTO_ClearQueue [05:12:18]wFMCommunicate request_size=4 [05:12:18]MH_SAM_APDU [05:12:18]CAPDU: 80 09 00 00 [05:12:18]Write to MH i2c: E2 08 00 14 08 80 09 00 00 00 00 00 00 8E [05:12:18]Write i2c OK [05:12:18]MH_I2C_Read... [05:12:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:12:18]Read from MH i2c: E2 [05:12:18]MH_I2C_Read... [05:12:18]Read from MH i2c: E2 03 00 [05:12:18]MH_I2C_Read... [05:12:18]Read from MH i2c: E2 03 00 14 08 00 90 00 90 [05:12:18]RAPDU: 90 00 [05:12:18]wFMCommunicate OK [05:12:18]SAM_PROTO_ClearQueue done [05:12:18]KKMCreateOFDPacket [05:12:18]OFDProtocolAddRootSTLVToBuf [05:12:18]FM_MakeSignedData [05:12:18]FM_MakeSignedData [05:12:18]SAM_PROTO_SignData [05:12:18]wFMCommunicate request_size=4 [05:12:18]MH_SAM_APDU [05:12:18]CAPDU: 80 0D 01 02 [05:12:18]Write to MH i2c: E2 08 00 15 08 80 0D 01 02 00 00 00 00 96 [05:12:18]Write i2c OK [05:12:18]MH_I2C_Read... [05:12:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:12:18]Read from MH i2c: E2 [05:12:18]MH_I2C_Read... [05:12:18]Read from MH i2c: E2 03 00 [05:12:18]MH_I2C_Read... [05:12:18]Read from MH i2c: E2 03 00 15 08 00 90 00 91 [05:12:18]RAPDU: 90 00 [05:12:18]wFMCommunicate OK [05:12:18]wFMCommunicate request_size=255 [05:12:18]MH_SAM_APDU [05:12:18]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 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 3B 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 16 00 00 00 F4 03 04 00 B2 F8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 [05:12:18]Write to MH i2c: E2 02 01 16 08 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 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 3B 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 16 00 00 00 F4 03 04 00 B2 F8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 00 00 1B [05:12:18]Write i2c OK [05:12:18]MH_I2C_Read... [05:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:12:18]Read from MH i2c: E2 [05:12:18]MH_I2C_Read... [05:12:18]Read from MH i2c: E2 03 00 [05:12:18]MH_I2C_Read... [05:12:18]Read from MH i2c: E2 03 00 16 08 00 90 00 92 [05:12:18]RAPDU: 90 00 [05:12:18]wFMCommunicate OK [05:12:18]wFMCommunicate request_size=41 [05:12:18]MH_SAM_APDU [05:12:18]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 53 C3 01 00 35 04 06 00 E9 2A 2D 68 31 8F [05:12:18]Write to MH i2c: E2 2C 00 17 08 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 53 C3 01 00 35 04 06 00 E9 2A 2D 68 31 8F 00 00 E2 [05:12:18]Write i2c OK [05:12:18]MH_I2C_Read... [05:12:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:12:19]Read from MH i2c: E2 [05:12:19]MH_I2C_Read... [05:12:19]Read from MH i2c: E2 03 00 [05:12:19]MH_I2C_Read... [05:12:19]Read from MH i2c: E2 03 00 17 08 00 90 00 93 [05:12:19]RAPDU: 90 00 [05:12:19]wFMCommunicate OK [05:12:19]wFMCommunicate request_size=4 [05:12:19]MH_SAM_APDU [05:12:19]CAPDU: 80 0D 03 02 [05:12:19]Write to MH i2c: E2 08 00 18 08 80 0D 03 02 00 00 00 00 9B [05:12:19]Write i2c OK [05:12:19]MH_I2C_Read... [05:12:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:12:19]Read from MH i2c: E2 [05:12:19]MH_I2C_Read... [05:12:19]Read from MH i2c: E2 0B 00 [05:12:19]MH_I2C_Read... [05:12:19]Read from MH i2c: E2 0B 00 18 08 00 28 C0 9B CE 23 EE 29 19 90 00 40 [05:12:19]RAPDU: 28 C0 9B CE 23 EE 29 19 90 00 [05:12:19]wFMCommunicate OK [05:12:19]SAM_PROTO_SignData done [05:12:19]FM_MakeSignedData done [05:12:19]CreateOFDProtocolMessage [05:12:19]wFMCommunicate request_size=4 [05:12:19]MH_SAM_APDU [05:12:19]CAPDU: 80 11 00 00 [05:12:19]Write to MH i2c: E2 08 00 19 08 80 11 00 00 00 00 00 00 9B [05:12:19]Write i2c OK [05:12:19]MH_I2C_Read... [05:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:12:19]Read from MH i2c: E2 [05:12:19]MH_I2C_Read... [05:12:19]Read from MH i2c: E2 17 00 [05:12:19]MH_I2C_Read... [05:12:19]Read from MH i2c: E2 17 00 19 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E9 [05:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:12:19]wFMCommunicate OK [05:12:19]CreateOFDProtocolMessage done [05:12:19]OFDSenderStorePacket 115539 [05:12:19]StoreOFDPacket docnum=115539 [05:12:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 01 00 00 EA 83 26 01 BC AE 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 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 3B 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 16 00 00 00 F4 03 04 00 B2 F8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 53 C3 01 00 35 04 06 00 E9 2A 2D 68 31 8F 28 C0 9B CE 23 EE 29 19 [05:12:19]CheckFolder [05:12:19]dirname=/storage/ofd_packets [05:12:19]CheckFolder done [05:12:19]ProducePacketName [05:12:19]name=ofd_packets/00115539 [05:12:19]NVStorageSaveData ofd_packets/00115539 [05:12:19]File name is /storage/ofd_packets/00115539 [05:12:19]Write 332 bytes [05:12:19]NVStorageSaveData done [05:12:19]OFDSenderStorePacket done [05:12:19]KKMCreateOFDPacket done [05:12:19]NVStorageSaveData kkm_last_timestamp [05:12:19]File name is /storage/kkm_last_timestamp [05:12:19]Write 4 bytes [05:12:19]NVStorageSaveData done [05:12:19]ExternCall_PrintAddStr [05:12:19]wPrintStart [05:12:19]Write to MH i2c: 01 00 00 1A 08 22 [05:12:19]Write i2c OK [05:12:19]MH_I2C_Read... [05:12:19]Read from MH i2c: 01 [05:12:19]MH_I2C_Read... [05:12:19]Read from MH i2c: 01 07 00 [05:12:19]MH_I2C_Read... [05:12:19]Read from MH i2c: 01 07 00 1A 08 00 00 00 00 00 FF 0F 37 [05:12:19]RasterBufferAndPrint [05:12:19]line Счет N : (3)343965 [05:12:19]line ИНН: 02508201610067 [05:12:19]line Контрольно-Кассовый Чек [05:12:19]line ПРОДАЖА [05:12:19]line Товар: 4700003150936 [05:12:19]line Новая Водка Organic 40% 0,48л [05:12:19]line 1.000 * 560.00 [05:12:19]line = 560.00 [05:12:19]line НДС 12% НСП 1% [05:12:19]line > о реализуемом товаре [05:12:19]line ИТОГО: 560.00 [05:12:19]line НСП 1% : 4.96 [05:12:19]line НДС 12% : 59.47 [05:12:19]line Наличными: 560.00 [05:12:19]line Безнал.: 0.00 [05:12:19]line Место: АЗС № 90 "Партнер Нефть" [05:12:19]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [05:12:19]line СНО: Общий режим [05:12:19]line Чек 22 23.09.2024 05:12 [05:12:19]line Смена: 472 ФФД: 1.0 [05:12:19]line ЗНМ: 0300000120 [05:12:19]line РНМ: 0000000000091831 [05:12:19]line Версия ККМ: 001 [05:12:19]line ФМ: 0000000000871830 [05:12:19]line ФД: 115539 [05:12:19]line ФПД: 256367359701391 [05:12:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T051218&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115539&fm=256367359701391&tin=02508201610067®Number=0000000000091831&sum=56000 [05:12:19]line 0 [05:12:19]written 0, free lines is 4095 [05:12:19]OFD Sender: Processing packet 115539 [packets to send 481, broken 480] [05:12:19]ProducePacketName [05:12:19]name=ofd_packets/00115539 [05:12:19]OFD Sender: To server: pG, [05:12:19]CommunicateWithHost lk.salyk.kg:30040 [05:12:19]ConnectInit lk.salyk.kg [05:12:19]Connected sock=10 [05: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 38 33 30 2E 01 00 00 EA 83 26 01 BC AE 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 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 3B 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 16 00 00 00 F4 03 04 00 B2 F8 F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 53 C3 01 00 35 04 06 00 E9 2A 2D 68 31 8F 28 C0 9B CE 23 EE 29 19 [05:12:19]Write to MH i2c: 01 00 00 42 08 4A [05:12:19]Write i2c OK [05:12:19]MH_I2C_Read... [05:12:19]Read from MH i2c: 01 [05:12:19]MH_I2C_Read... [05:12:19]Read from MH i2c: 01 07 00 [05:12:19]MH_I2C_Read... [05:12:19]Read from MH i2c: 01 07 00 42 08 00 00 00 00 00 5B 0C B8 [05:12:19]RasterBufferAndPrint [05:12:19]line [05:12:19]line [05:12:19]line [05:12:19]line [05:12:19]line [05:12:19]written 0, free lines is 3167 [05:12:19]MH_Cut [05:12:19]Write to MH i2c: D1 01 00 49 08 01 23 [05:12:19]Write i2c OK [05:12:19]MH_I2C_Read... [05:12:19]Read from MH i2c: D1 [05:12:19]MH_I2C_Read... [05:12:19]Read from MH i2c: D1 01 00 [05:12:19]MH_I2C_Read... [05:12:19]Read from MH i2c: D1 01 00 49 08 00 22 [05:12:19]Write to MH i2c: 01 00 00 4A 08 52 [05:12:19]Write i2c OK [05:12:19]MH_I2C_Read... [05: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 38 33 30 4F 00 00 00 46 08 47 00 F5 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 38 33 30 10 04 04 00 53 C3 01 00 F4 03 04 00 F6 9D F0 66 B6 04 01 00 00 D6 DF 1E 80 BE D0 31 6B [05:12:19]CommunicateWithHost err = 0 [05:12:19]CheckOFDResponse [05:12:19]1017 (14) - 77093643461234 [05:12:19]1041 (16) - 0000000000871830 [05:12:19]1040 (4) - 115539 [05:12:19]1012 (4) - 22.09.2024 22:45 [05:12:19]1206 (1) - 0 [05:12:19]OFD Sender: Remove packet 115539 [05:12:19]ProducePacketName [05:12:19]name=ofd_packets/00115539 [05:12:19]NVStorageDeleteData [05:12:20]OFD Sender: No OFD packet to send [05:12:20]*** Cut start [05:12:20]*** Partial cut [05:12:20]*** CUTSNS_PIN = 1 [05:12:20]*** CUTSNS_PIN = 0 [05:12:21]*** Brake cut motor [05:12:21]Read from MH i2c: 01 [05:12:21]MH_I2C_Read... [05:12:21]*** Stop cut motor [05:12:21]*** Cut end [05:12:21]Read from MH i2c: 01 07 00 [05:12:21]MH_I2C_Read... [05:12:21]Read from MH i2c: 01 07 00 4A 08 00 00 00 00 00 FF 0F 67 [05:12:21]process_action close_receipt done [05:12:21]requested_data is exist [05:12:21]produce_requested_data [05:12:21]requested_item fm.sn is exist - process it [05:12:21]wFMCommunicate request_size=4 [05:12:21]MH_SAM_APDU [05:12:21]CAPDU: 80 11 00 00 [05:12:21]Write to MH i2c: E2 08 00 4B 08 80 11 00 00 00 00 00 00 CD [05:12:21]Write i2c OK [05:12:21]MH_I2C_Read... [05:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:12:21]Read from MH i2c: E2 [05:12:21]MH_I2C_Read... [05:12:21]Read from MH i2c: E2 17 00 [05:12:21]MH_I2C_Read... [05:12:21]Read from MH i2c: E2 17 00 4B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1B [05:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:12:21]wFMCommunicate OK [05:12:21]requested_item fd.num is exist - process it [05:12:21]SAM_PROTO_GetFieldsCounters [05:12:21]wFMCommunicate request_size=4 [05:12:21]MH_SAM_APDU [05:12:21]CAPDU: 80 13 00 00 [05:12:21]Write to MH i2c: E2 08 00 4C 08 80 13 00 00 00 00 00 00 D0 [05:12:21]Write i2c OK [05:12:21]MH_I2C_Read... [05:12:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:12:21]Read from MH i2c: E2 [05:12:21]MH_I2C_Read... [05:12:21]Read from MH i2c: E2 62 00 [05:12:21]MH_I2C_Read... [05:12:21]Read from MH i2c: E2 62 00 4C 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 53 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [05:12: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 53 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:12:21]wFMCommunicate OK [05:12:21]SAM_PROTO_GetFieldsCounters done [05:12:21]requested_item shift.num is exist - process it [05:12:21]requested_item shift.opened is exist - process it [05:12:21]req_shift_opened [05:12:21]FM_GetShiftState [05:12:21]SAM_PROTO_GetShiftState [05:12:21]wFMCommunicate request_size=4 [05:12:21]MH_SAM_APDU [05:12:21]CAPDU: 80 13 01 00 [05:12:21]Write to MH i2c: E2 08 00 4D 08 80 13 01 00 00 00 00 00 D2 [05:12:21]Write i2c OK [05:12:21]MH_I2C_Read... [05:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:12:21]Read from MH i2c: E2 [05:12:21]MH_I2C_Read... [05:12:21]Read from MH i2c: E2 0E 00 [05:12:21]MH_I2C_Read... [05:12:21]Read from MH i2c: E2 0E 00 4D 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 13 [05:12:21]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [05:12:21]wFMCommunicate OK [05:12:21]SAM_PROTO_GetShiftState done [05:12:21]FM_GetShiftState done [05:12:21]req_shift_opened done [05:12:21]requested_item shift.open_date is exist - process it [05:12:21]req_shift_open_date [05:12:21]req_shift_open_date done [05:12:21]produce_requested_data done [05:12:21]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115539,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [05:12:21]process_action_free close_receipt [05:12:21]json_value_free [05:12:21]json_value_free done [05:12:21]process_json_proto returns [05:12:21]Send response to host [05:12:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115539,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [05:12:21]free response buf [05:12:21]execute_script done [05:12:21]execute_script returns [05:12:21]free content buf [05:12:21]Sock 8.Close socket [05:12:21]Sock 8.Thread stoped [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:12]accept exits with 9 [05:28:12]New connection [05:28:12]New thread 3067313508 created [05:28:12]Thread 3067170148 joined [05:28:12]Waiting for new connection... [05:28:12] Sock 9.Parse request [05:28:12]Sock 9.Check first char [05:28:12]Sock 9.First char is OK [05:28:12]request: POST /json_proto HTTP/1.0 [05:28:12]Method: POST [05:28:12]URL: /json_proto [05:28:12]Method is POST - this is cgi request [05:28:12]url: /json_proto [05:28:12]query_string will be loaded in cgi processing [05:28:12]execute_cgi json_proto POST (null) [05:28:12]execute_cgi path=json_proto method=POST [05:28:12]POST find Content-Length [05:28:12]Host: 172.17.41.136:8080 [05:28:12]Content-Length: 890 [05:28:12]Content-Type: application/json [05:28:12] [05:28:12]POST finish read [05:28:12]Found Content-Length = 890 [05:28:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343966", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:28:12]execute_script... [05:28:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343966", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:28:12]POST & json_proto [05:28:12]process_json_proto [05:28:12]json parsed OK: [05:28:12]protocol is kg_v1.0 [05:28:12]action value=close_receipt [05:28:12]process_action close_receipt [05:28:12]cmd_close_receipt [05:28:12]MH_GetDate [05:28:12]Write to MH i2c: F0 00 00 4E 08 45 [05:28:12]Write i2c OK [05:28:12]MH_I2C_Read... [05:28:12]Read from MH i2c: F0 [05:28:12]MH_I2C_Read... [05:28:12]Read from MH i2c: F0 09 00 [05:28:12]MH_I2C_Read... [05:28:12]Read from MH i2c: F0 09 00 4E 08 00 6D FC F0 66 1B D0 5A 64 B6 [05:28:12]GetLastDocTimeStamp 1727068338 [05:28:12]current date 1727069293 [05:28:12]FM_GetShiftState [05:28:12]SAM_PROTO_GetShiftState [05:28:12]wFMCommunicate request_size=4 [05:28:12]MH_SAM_APDU [05:28:12]CAPDU: 80 13 01 00 [05:28:12]Write to MH i2c: E2 08 00 4F 08 80 13 01 00 00 00 00 00 D4 [05:28:12]Write i2c OK [05:28:12]MH_I2C_Read... [05:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:28:12]Read from MH i2c: E2 [05:28:12]MH_I2C_Read... [05:28:12]Read from MH i2c: E2 0E 00 [05:28:12]MH_I2C_Read... [05:28:12]Read from MH i2c: E2 0E 00 4F 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 15 [05:28:12]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [05:28:12]wFMCommunicate OK [05:28:12]SAM_PROTO_GetShiftState done [05:28:12]FM_GetShiftState done [05:28:12]opened in 1727052070 [05:28:12]opened+sec_in_day 1727138470 [05:28:12]quantity*price = 8000 [05:28:12]sum+1 = 8001 [05:28:12]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001154059 Напиток Lipton IceTea 0,5л зел чай 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 23 23.09.2024 05:28 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115540 ФПД: 200319831641374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T052813&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115540&fm=200319831641374&tin=02508201610067®Number=0000000000091831&sum=15500 0 [05:28:13]StoreToDocumentArchive [05:28:13]shift 472 fd 115540 [05:28:13]save to /storage/0472/doc_00115540 [05:28:13]save last doc name /storage/0472/doc_00115540 to /storage/kkm_last_doc_name [05:28:13]save OK [05:28:13]Clear old archive folders... [05:28:13]ProcessDocumentItem done err = 0, tmpTLVsize=388 [05:28:13]tlvbuf is 011F4590 [05:28:13]SAM_PROTO_ClearQueue [05:28:13]wFMCommunicate request_size=4 [05:28:13]MH_SAM_APDU [05:28:13]CAPDU: 80 09 00 00 [05:28:13]Write to MH i2c: E2 08 00 5C 08 80 09 00 00 00 00 00 00 D6 [05:28:13]Write i2c OK [05:28:13]MH_I2C_Read... [05:28:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:28:13]Read from MH i2c: E2 [05:28:13]MH_I2C_Read... [05:28:13]Read from MH i2c: E2 03 00 [05:28:13]MH_I2C_Read... [05:28:13]Read from MH i2c: E2 03 00 5C 08 00 90 00 D8 [05:28:13]RAPDU: 90 00 [05:28:13]wFMCommunicate OK [05:28:13]SAM_PROTO_ClearQueue done [05:28:13]KKMCreateOFDPacket [05:28:13]OFDProtocolAddRootSTLVToBuf [05:28:13]FM_MakeSignedData [05:28:13]FM_MakeSignedData [05:28:13]SAM_PROTO_SignData [05:28:13]wFMCommunicate request_size=4 [05:28:13]MH_SAM_APDU [05:28:13]CAPDU: 80 0D 01 02 [05:28:13]Write to MH i2c: E2 08 00 5D 08 80 0D 01 02 00 00 00 00 DE [05:28:13]Write i2c OK [05:28:13]MH_I2C_Read... [05:28:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:28:13]Read from MH i2c: E2 [05:28:13]MH_I2C_Read... [05:28:13]Read from MH i2c: E2 03 00 [05:28:13]MH_I2C_Read... [05:28:13]Read from MH i2c: E2 03 00 5D 08 00 90 00 D9 [05:28:13]RAPDU: 90 00 [05:28:13]wFMCommunicate OK [05:28:13]wFMCommunicate request_size=255 [05:28:13]MH_SAM_APDU [05:28:13]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [05:28:13]Write to MH i2c: E2 02 01 5E 08 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 7E [05:28:13]Write i2c OK [05:28:13]MH_I2C_Read... [05:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:28:14]Read from MH i2c: E2 [05:28:14]MH_I2C_Read... [05:28:14]Read from MH i2c: E2 03 00 [05:28:14]MH_I2C_Read... [05:28:14]Read from MH i2c: E2 03 00 5E 08 00 90 00 DA [05:28:14]RAPDU: 90 00 [05:28:14]wFMCommunicate OK [05:28:14]wFMCommunicate request_size=147 [05:28:14]MH_SAM_APDU [05:28:14]CAPDU: 80 0D 02 02 8E F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 6D FC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 54 C3 01 00 35 04 06 00 B6 30 98 68 0D 1E [05:28:14]Write to MH i2c: E2 96 00 5F 08 80 0D 02 02 8E 00 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 6D FC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 54 C3 01 00 35 04 06 00 B6 30 98 68 0D 1E 00 00 BF [05:28:14]Write i2c OK [05:28:14]MH_I2C_Read... [05:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:28:14]Read from MH i2c: E2 [05:28:14]MH_I2C_Read... [05:28:14]Read from MH i2c: E2 03 00 [05:28:14]MH_I2C_Read... [05:28:14]Read from MH i2c: E2 03 00 5F 08 00 90 00 DB [05:28:14]RAPDU: 90 00 [05:28:14]wFMCommunicate OK [05:28:14]wFMCommunicate request_size=4 [05:28:14]MH_SAM_APDU [05:28:14]CAPDU: 80 0D 03 02 [05:28:14]Write to MH i2c: E2 08 00 60 08 80 0D 03 02 00 00 00 00 E3 [05:28:14]Write i2c OK [05:28:14]MH_I2C_Read... [05:28:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:28:14]Read from MH i2c: E2 [05:28:14]MH_I2C_Read... [05:28:14]Read from MH i2c: E2 0B 00 [05:28:14]MH_I2C_Read... [05:28:14]Read from MH i2c: E2 0B 00 60 08 00 35 60 C4 F6 9B 98 9D BC 90 00 BF [05:28:14]RAPDU: 35 60 C4 F6 9B 98 9D BC 90 00 [05:28:14]wFMCommunicate OK [05:28:14]SAM_PROTO_SignData done [05:28:14]FM_MakeSignedData done [05:28:14]CreateOFDProtocolMessage [05:28:14]wFMCommunicate request_size=4 [05:28:14]MH_SAM_APDU [05:28:14]CAPDU: 80 11 00 00 [05:28:14]Write to MH i2c: E2 08 00 61 08 80 11 00 00 00 00 00 00 E3 [05:28:14]Write i2c OK [05:28:14]MH_I2C_Read... [05:28:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:28:14]Read from MH i2c: E2 [05:28:14]MH_I2C_Read... [05:28:14]Read from MH i2c: E2 17 00 [05:28:14]MH_I2C_Read... [05:28:14]Read from MH i2c: E2 17 00 61 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 31 [05:28:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:28:14]wFMCommunicate OK [05:28:14]CreateOFDProtocolMessage done [05:28:14]OFDSenderStorePacket 115540 [05:28:14]StoreOFDPacket docnum=115540 [05:28:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 98 01 00 00 2E EF 90 01 3C F0 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 6D FC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 54 C3 01 00 35 04 06 00 B6 30 98 68 0D 1E 35 60 C4 F6 9B 98 9D BC [05:28:14]CheckFolder [05:28:14]dirname=/storage/ofd_packets [05:28:14]CheckFolder done [05:28:14]ProducePacketName [05:28:14]name=ofd_packets/00115540 [05:28:14]NVStorageSaveData ofd_packets/00115540 [05:28:14]File name is /storage/ofd_packets/00115540 [05:28:14]Write 438 bytes [05:28:14]NVStorageSaveData done [05:28:14]OFDSenderStorePacket done [05:28:14]KKMCreateOFDPacket done [05:28:14]NVStorageSaveData kkm_last_timestamp [05:28:14]File name is /storage/kkm_last_timestamp [05:28:14]Write 4 bytes [05:28:14]NVStorageSaveData done [05:28:14]ExternCall_PrintAddStr [05:28:14]wPrintStart [05:28:14]Write to MH i2c: 01 00 00 62 08 6A [05:28:14]Write i2c OK [05:28:14]MH_I2C_Read... [05:28:14]Read from MH i2c: 01 [05:28:14]MH_I2C_Read... [05:28:14]Read from MH i2c: 01 07 00 [05:28:14]MH_I2C_Read... [05:28:14]Read from MH i2c: 01 07 00 62 08 00 00 00 00 00 FF 0F 7F [05:28:14]RasterBufferAndPrint [05:28:14]line Счет N : (3)343966 [05:28:14]line ИНН: 02508201610067 [05:28:14]line Контрольно-Кассовый Чек [05:28:14]line ПРОДАЖА [05:28:14]line Товар: 4870001570057 [05:28:14]line Напиток Pepsi 0,5л [05:28:14]line 1.000 * 80.00 [05:28:14]line = 80.00 [05:28:14]line НДС 12% НСП 1% [05:28:14]line > о реализуемом товаре [05:28:14]line Товар: 4870001154059 [05:28:14]line Напиток Lipton IceTea 0,5л зел чай [05:28:14]line 1.000 * 75.00 [05:28:14]line = 75.00 [05:28:14]line НДС 12% НСП 1% [05:28:14]line > о реализуемом товаре [05:28:14]line ИТОГО: 155.00 [05:28:14]line НСП 1% : 1.37 [05:28:14]line НДС 12% : 16.46 [05:28:14]line Наличными: 155.00 [05:28:14]line Безнал.: 0.00 [05:28:14]line Место: АЗС № 90 "Партнер Нефть" [05:28:14]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [05:28:14]line СНО: Общий режим [05:28:14]line Чек 23 23.09.2024 05:28 [05:28:14]line Смена: 472 ФФД: 1.0 [05:28:14]line ЗНМ: 0300000120 [05:28:14]line РНМ: 0000000000091831 [05:28:14]line Версия ККМ: 001 [05:28:14]line ФМ: 0000000000871830 [05:28:14]line ФД: 115540 [05:28:14]line ФПД: 200319831641374 [05:28:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T052813&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115540&fm=200319831641374&tin=02508201610067®Number=0000000000091831&sum=15500 [05:28:14]OFD Sender: Processing packet 115540 [packets to send 481, broken 480] [05:28:14]ProducePacketName [05:28:14]name=ofd_packets/00115540 [05:28:14]OFD Sender: To server: pG, [05:28:14]CommunicateWithHost lk.salyk.kg:30040 [05:28:14]ConnectInit lk.salyk.kg [05:28:14]line 0 [05:28:14]written 0, free lines is 4095 [05:28:15]Connected sock=10 [05:28: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 38 33 30 98 01 00 00 2E EF 90 01 3C F0 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 6D FC F0 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 54 C3 01 00 35 04 06 00 B6 30 98 68 0D 1E 35 60 C4 F6 9B 98 9D BC [05:28:15]Write to MH i2c: 01 00 00 90 08 98 [05:28:15]Write i2c OK [05:28:15]MH_I2C_Read... [05:28:15]Read from MH i2c: 01 [05:28:15]MH_I2C_Read... [05:28:15]Read from MH i2c: 01 07 00 [05:28:15]MH_I2C_Read... [05:28:15]Read from MH i2c: 01 07 00 90 08 00 00 00 00 00 F9 0B A3 [05:28:15]RasterBufferAndPrint [05:28:15]line [05:28:15]line [05:28:15]line [05:28:15]line [05:28:15]line [05:28:15]written 0, free lines is 3067 [05:28:15]MH_Cut [05:28:15]Write to MH i2c: D1 01 00 97 08 01 71 [05:28:15]Write i2c OK [05:28:15]MH_I2C_Read... [05:28:15]Read from MH i2c: D1 [05:28:15]MH_I2C_Read... [05:28:15]Read from MH i2c: D1 01 00 [05:28:15]MH_I2C_Read... [05:28:15]Read from MH i2c: D1 01 00 97 08 00 70 [05:28:15]Write to MH i2c: 01 00 00 98 08 A0 [05:28:15]Write i2c OK [05:28:15]MH_I2C_Read... [05:28:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 25 61 47 00 33 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 54 C3 01 00 F4 03 04 00 B1 A1 F0 66 B6 04 01 00 00 AF 81 02 FB 64 C5 B1 20 [05:28:15]CommunicateWithHost err = 0 [05:28:15]CheckOFDResponse [05:28:15]1017 (14) - 77093643461234 [05:28:15]1041 (16) - 0000000000871830 [05:28:15]1040 (4) - 115540 [05:28:15]1012 (4) - 22.09.2024 23:01 [05:28:15]1206 (1) - 0 [05:28:15]OFD Sender: Remove packet 115540 [05:28:15]ProducePacketName [05:28:15]name=ofd_packets/00115540 [05:28:15]NVStorageDeleteData [05:28:15]OFD Sender: No OFD packet to send [05:28:16]*** Cut start [05:28:16]*** Partial cut [05:28:16]*** CUTSNS_PIN = 1 [05:28:16]*** CUTSNS_PIN = 0 [05:28:17]*** Brake cut motor [05:28:17]Read from MH i2c: 01 [05:28:17]MH_I2C_Read... [05:28:17]*** Stop cut motor [05:28:17]*** Cut end [05:28:17]Read from MH i2c: 01 07 00 [05:28:17]MH_I2C_Read... [05:28:17]Read from MH i2c: 01 07 00 98 08 00 00 00 00 00 FF 0F B5 [05:28:17]process_action close_receipt done [05:28:17]requested_data is exist [05:28:17]produce_requested_data [05:28:17]requested_item fm.sn is exist - process it [05:28:17]wFMCommunicate request_size=4 [05:28:17]MH_SAM_APDU [05:28:17]CAPDU: 80 11 00 00 [05:28:17]Write to MH i2c: E2 08 00 99 08 80 11 00 00 00 00 00 00 1B [05:28:17]Write i2c OK [05:28:17]MH_I2C_Read... [05:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:28:17]Read from MH i2c: E2 [05:28:17]MH_I2C_Read... [05:28:17]Read from MH i2c: E2 17 00 [05:28:17]MH_I2C_Read... [05:28:17]Read from MH i2c: E2 17 00 99 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 69 [05:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:28:17]wFMCommunicate OK [05:28:17]requested_item fd.num is exist - process it [05:28:17]SAM_PROTO_GetFieldsCounters [05:28:17]wFMCommunicate request_size=4 [05:28:17]MH_SAM_APDU [05:28:17]CAPDU: 80 13 00 00 [05:28:17]Write to MH i2c: E2 08 00 9A 08 80 13 00 00 00 00 00 00 1E [05:28:17]Write i2c OK [05:28:17]MH_I2C_Read... [05:28:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:28:17]Read from MH i2c: E2 [05:28:17]MH_I2C_Read... [05:28:17]Read from MH i2c: E2 62 00 [05:28:17]MH_I2C_Read... [05:28:17]Read from MH i2c: E2 62 00 9A 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 54 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [05:28: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 54 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:28:17]wFMCommunicate OK [05:28:17]SAM_PROTO_GetFieldsCounters done [05:28:17]requested_item shift.num is exist - process it [05:28:17]requested_item shift.opened is exist - process it [05:28:17]req_shift_opened [05:28:17]FM_GetShiftState [05:28:17]SAM_PROTO_GetShiftState [05:28:17]wFMCommunicate request_size=4 [05:28:17]MH_SAM_APDU [05:28:17]CAPDU: 80 13 01 00 [05:28:17]Write to MH i2c: E2 08 00 9B 08 80 13 01 00 00 00 00 00 20 [05:28:17]Write i2c OK [05:28:17]MH_I2C_Read... [05:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:28:17]Read from MH i2c: E2 [05:28:17]MH_I2C_Read... [05:28:17]Read from MH i2c: E2 0E 00 [05:28:17]MH_I2C_Read... [05:28:17]Read from MH i2c: E2 0E 00 9B 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 61 [05:28:17]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [05:28:17]wFMCommunicate OK [05:28:17]SAM_PROTO_GetShiftState done [05:28:17]FM_GetShiftState done [05:28:17]req_shift_opened done [05:28:17]requested_item shift.open_date is exist - process it [05:28:17]req_shift_open_date [05:28:17]req_shift_open_date done [05:28:17]produce_requested_data done [05:28:17]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115540,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [05:28:17]process_action_free close_receipt [05:28:17]json_value_free [05:28:17]json_value_free done [05:28:17]process_json_proto returns [05:28:17]Send response to host [05:28:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115540,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [05:28:17]free response buf [05:28:17]execute_script done [05:28:17]execute_script returns [05:28:17]free content buf [05:28:17]Sock 9.Close socket [05:28:17]Sock 9.Thread stoped [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03: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:50]accept exits with 8 [06:06:50]New connection [06:06:50]New thread 3067170148 created [06:06:50]Thread 3067313508 joined [06:06:50]Waiting for new connection... [06:06:50] Sock 8.Parse request [06:06:50]Sock 8.Check first char [06:06:50]Sock 8.First char is OK [06:06:50]request: POST /json_proto HTTP/1.0 [06:06:50]Method: POST [06:06:50]URL: /json_proto [06:06:50]Method is POST - this is cgi request [06:06:50]url: /json_proto [06:06:50]query_string will be loaded in cgi processing [06:06:50]execute_cgi json_proto POST (null) [06:06:50]execute_cgi path=json_proto method=POST [06:06:50]POST find Content-Length [06:06:50]Host: 172.17.41.136:8080 [06:06:50]Content-Length: 1470 [06:06:50]Content-Type: application/json [06:06:50] [06:06:50]POST finish read [06:06:50]Found Content-Length = 1470 [06:06:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343967", "tax_sys" : 0, "items" : [ { "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 519.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:06:50]execute_script... [06: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 : (3)343967", "tax_sys" : 0, "items" : [ { "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 519.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:06:50]POST & json_proto [06:06:50]process_json_proto [06:06:50]json parsed OK: [06:06:50]protocol is kg_v1.0 [06:06:50]action value=close_receipt [06:06:50]process_action close_receipt [06:06:50]cmd_close_receipt [06:06:50]MH_GetDate [06:06:50]Write to MH i2c: F0 00 00 9C 08 93 [06:06:50]Write i2c OK [06:06:50]MH_I2C_Read... [06:06:50]Read from MH i2c: F0 [06:06:50]MH_I2C_Read... [06:06:50]Read from MH i2c: F0 09 00 [06:06:50]MH_I2C_Read... [06:06:50]Read from MH i2c: F0 09 00 9C 08 00 7B 05 F1 66 1B D0 5A 64 1C [06:06:50]GetLastDocTimeStamp 1727069293 [06:06:50]current date 1727071611 [06:06:50]FM_GetShiftState [06:06:50]SAM_PROTO_GetShiftState [06:06:50]wFMCommunicate request_size=4 [06:06:50]MH_SAM_APDU [06:06:50]CAPDU: 80 13 01 00 [06:06:50]Write to MH i2c: E2 08 00 9D 08 80 13 01 00 00 00 00 00 22 [06:06:50]Write i2c OK [06:06:50]MH_I2C_Read... [06:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:50]Read from MH i2c: E2 [06:06:50]MH_I2C_Read... [06:06:50]Read from MH i2c: E2 0E 00 [06:06:50]MH_I2C_Read... [06:06:50]Read from MH i2c: E2 0E 00 9D 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 63 [06:06:50]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [06:06:50]wFMCommunicate OK [06:06:50]SAM_PROTO_GetShiftState done [06:06:50]FM_GetShiftState done [06:06:50]opened in 1727052070 [06:06:50]opened+sec_in_day 1727138470 [06:06:50]quantity*price = 21000 [06:06:50]sum+1 = 21001 [06:06:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 519.00 НСП 1% : 4.59 НДС 12% : 55.12 Наличными: 519.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 24 23.09.2024 06:06 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115541 ФПД: 53972280875942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T060651&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115541&fm=53972280875942&tin=02508201610067®Number=0000000000091831&sum=51900 0 [06:06:51]StoreToDocumentArchive [06:06:51]shift 472 fd 115541 [06:06:51]save to /storage/0472/doc_00115541 [06:06:51]save last doc name /storage/0472/doc_00115541 to /storage/kkm_last_doc_name [06:06:51]save OK [06:06:51]Clear old archive folders... [06:06:51]ProcessDocumentItem done err = 0, tmpTLVsize=632 [06:06:51]tlvbuf is 011CC260 [06:06:51]SAM_PROTO_ClearQueue [06:06:51]wFMCommunicate request_size=4 [06:06:51]MH_SAM_APDU [06:06:51]CAPDU: 80 09 00 00 [06:06:51]Write to MH i2c: E2 08 00 AA 08 80 09 00 00 00 00 00 00 24 [06:06:51]Write i2c OK [06:06:51]MH_I2C_Read... [06:06:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:06:51]Read from MH i2c: E2 [06:06:51]MH_I2C_Read... [06:06:51]Read from MH i2c: E2 03 00 [06:06:51]MH_I2C_Read... [06:06:51]Read from MH i2c: E2 03 00 AA 08 00 90 00 26 [06:06:51]RAPDU: 90 00 [06:06:51]wFMCommunicate OK [06:06:51]SAM_PROTO_ClearQueue done [06:06:51]KKMCreateOFDPacket [06:06:51]OFDProtocolAddRootSTLVToBuf [06:06:51]FM_MakeSignedData [06:06:51]FM_MakeSignedData [06:06:51]SAM_PROTO_SignData [06:06:51]wFMCommunicate request_size=4 [06:06:51]MH_SAM_APDU [06:06:51]CAPDU: 80 0D 01 02 [06:06:51]Write to MH i2c: E2 08 00 AB 08 80 0D 01 02 00 00 00 00 2C [06:06:51]Write i2c OK [06:06:51]MH_I2C_Read... [06:06:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:06:51]Read from MH i2c: E2 [06:06:51]MH_I2C_Read... [06:06:51]Read from MH i2c: E2 03 00 [06:06:51]MH_I2C_Read... [06:06:51]Read from MH i2c: E2 03 00 AB 08 00 90 00 27 [06:06:51]RAPDU: 90 00 [06:06:51]wFMCommunicate OK [06:06:51]wFMCommunicate request_size=255 [06:06:51]MH_SAM_APDU [06:06:51]CAPDU: 80 0D 02 02 FA 03 00 78 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 [06:06:51]Write to MH i2c: E2 02 01 AC 08 80 0D 02 02 FA 00 03 00 78 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 00 00 2F [06:06:51]Write i2c OK [06:06:51]MH_I2C_Read... [06:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:51]Read from MH i2c: E2 [06:06:51]MH_I2C_Read... [06:06:51]Read from MH i2c: E2 03 00 [06:06:51]MH_I2C_Read... [06:06:51]Read from MH i2c: E2 03 00 AC 08 00 90 00 28 [06:06:51]RAPDU: 90 00 [06:06:51]wFMCommunicate OK [06:06:51]wFMCommunicate request_size=255 [06:06:51]MH_SAM_APDU [06:06:51]CAPDU: 80 0D 02 02 FA 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 01 [06:06:51]Write to MH i2c: E2 02 01 AD 08 80 0D 02 02 FA 00 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 01 00 00 83 [06:06:51]Write i2c OK [06:06:51]MH_I2C_Read... [06:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:52]Read from MH i2c: E2 [06:06:52]MH_I2C_Read... [06:06:52]Read from MH i2c: E2 03 00 [06:06:52]MH_I2C_Read... [06:06:52]Read from MH i2c: E2 03 00 AD 08 00 90 00 29 [06:06:52]RAPDU: 90 00 [06:06:52]wFMCommunicate OK [06:06:52]wFMCommunicate request_size=141 [06:06:52]MH_SAM_APDU [06:06:52]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 15 00 00 00 00 07 04 06 00 BC CA 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 7B 05 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 55 C3 01 00 35 04 06 00 31 16 66 A1 1B A6 [06:06:52]Write to MH i2c: E2 90 00 AE 08 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 15 00 00 00 00 07 04 06 00 BC CA 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 7B 05 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 55 C3 01 00 35 04 06 00 31 16 66 A1 1B A6 00 00 78 [06:06:52]Write i2c OK [06:06:52]MH_I2C_Read... [06:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:52]Read from MH i2c: E2 [06:06:52]MH_I2C_Read... [06:06:52]Read from MH i2c: E2 03 00 [06:06:52]MH_I2C_Read... [06:06:52]Read from MH i2c: E2 03 00 AE 08 00 90 00 2A [06:06:52]RAPDU: 90 00 [06:06:52]wFMCommunicate OK [06:06:52]wFMCommunicate request_size=4 [06:06:52]MH_SAM_APDU [06:06:52]CAPDU: 80 0D 03 02 [06:06:52]Write to MH i2c: E2 08 00 AF 08 80 0D 03 02 00 00 00 00 32 [06:06:52]Write i2c OK [06:06:52]MH_I2C_Read... [06:06:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:06:52]Read from MH i2c: E2 [06:06:52]MH_I2C_Read... [06:06:52]Read from MH i2c: E2 0B 00 [06:06:52]MH_I2C_Read... [06:06:52]Read from MH i2c: E2 0B 00 AF 08 00 D0 64 0A 46 70 BA 08 FF 90 00 E8 [06:06:52]RAPDU: D0 64 0A 46 70 BA 08 FF 90 00 [06:06:52]wFMCommunicate OK [06:06:52]SAM_PROTO_SignData done [06:06:52]FM_MakeSignedData done [06:06:52]CreateOFDProtocolMessage [06:06:52]wFMCommunicate request_size=4 [06:06:52]MH_SAM_APDU [06:06:52]CAPDU: 80 11 00 00 [06:06:52]Write to MH i2c: E2 08 00 B0 08 80 11 00 00 00 00 00 00 32 [06:06:52]Write i2c OK [06:06:52]MH_I2C_Read... [06:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:52]Read from MH i2c: E2 [06:06:52]MH_I2C_Read... [06:06:52]Read from MH i2c: E2 17 00 [06:06:52]MH_I2C_Read... [06:06:52]Read from MH i2c: E2 17 00 B0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 80 [06:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:06:52]wFMCommunicate OK [06:06:52]CreateOFDProtocolMessage done [06:06:52]OFDSenderStorePacket 115541 [06:06:52]StoreOFDPacket docnum=115541 [06:06:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8C 02 00 00 E1 64 84 02 43 12 5A 03 01 00 03 00 78 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 15 00 00 00 00 07 04 06 00 BC CA 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 7B 05 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 55 C3 01 00 35 04 06 00 31 16 66 A1 1B A6 D0 64 0A 46 70 BA 08 FF [06:06:52]CheckFolder [06:06:52]dirname=/storage/ofd_packets [06:06:52]CheckFolder done [06:06:52]ProducePacketName [06:06:52]name=ofd_packets/00115541 [06:06:52]NVStorageSaveData ofd_packets/00115541 [06:06:52]File name is /storage/ofd_packets/00115541 [06:06:52]Write 682 bytes [06:06:52]NVStorageSaveData done [06:06:52]OFDSenderStorePacket done [06:06:52]KKMCreateOFDPacket done [06:06:52]NVStorageSaveData kkm_last_timestamp [06:06:52]File name is /storage/kkm_last_timestamp [06:06:52]Write 4 bytes [06:06:52]NVStorageSaveData done [06:06:52]ExternCall_PrintAddStr [06:06:52]wPrintStart [06:06:52]Write to MH i2c: 01 00 00 B1 08 B9 [06:06:52]Write i2c OK [06:06:52]MH_I2C_Read... [06:06:52]Read from MH i2c: 01 [06:06:52]MH_I2C_Read... [06:06:52]Read from MH i2c: 01 07 00 [06:06:52]MH_I2C_Read... [06:06:52]Read from MH i2c: 01 07 00 B1 08 00 00 00 00 00 FF 0F CE [06:06:52]RasterBufferAndPrint [06:06:52]line Счет N : (3)343967 [06:06:52]line ИНН: 02508201610067 [06:06:52]line Контрольно-Кассовый Чек [06:06:52]line ПРОДАЖА [06:06:52]line Товар: 4607018771791 [06:06:52]line Минеральная вода Ессентуки 17 0,45л ст [06:06:52]line 2.000 * 105.00 [06:06:52]line = 210.00 [06:06:52]line НДС 12% НСП 1% [06:06:52]line > о реализуемом товаре [06:06:52]line Товар: 4870001570057 [06:06:52]line Напиток Pepsi 0,5л [06:06:52]line 1.000 * 80.00 [06:06:52]line = 80.00 [06:06:52]line НДС 12% НСП 1% [06:06:52]line > о реализуемом товаре [06:06:52]line Товар: 4600682557456 [06:06:52]line Напиток FLash up energy эн ж/б 0,5/0,45л [06:06:52]line 1.000 * 85.00 [06:06:52]line = 85.00 [06:06:52]line НДС 12% НСП 1% [06:06:52]line > о реализуемом товаре [06:06:52]line Товар: 48743570 [06:06:52]line Сигареты Winston XStyle Blue [06:06:52]line 1.000 * 144.00 [06:06:52]line = 144.00 [06:06:52]line НДС 12% НСП 1% [06:06:52]line > о реализуемом товаре [06:06:52]line ИТОГО: 519.00 [06:06:52]line НСП 1% : 4.59 [06:06:52]line НДС 12% : 55.12 [06:06:52]line Наличными: 519.00 [06:06:52]line Безнал.: 0.00 [06:06:52]line Место: АЗС № 90 "Партнер Нефть" [06:06:52]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [06:06:52]line СНО: Общий режим [06:06:52]line Чек 24 23.09.2024 06:06 [06:06:52]line Смена: 472 ФФД: 1.0 [06:06:52]line ЗНМ: 0300000120 [06:06:52]line РНМ: 0000000000091831 [06:06:52]line Версия ККМ: 001 [06:06:52]line ФМ: 0000000000871830 [06:06:52]line ФД: 115541 [06:06:52]line ФПД: 53972280875942 [06:06:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T060651&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115541&fm=53972280875942&tin=02508201610067®Number=0000000000091831&sum=51900 [06:06:52]OFD Sender: Processing packet 115541 [packets to send 481, broken 480] [06:06:52]ProducePacketName [06:06:52]name=ofd_packets/00115541 [06:06:52]OFD Sender: To server: pG, [06:06:52]CommunicateWithHost lk.salyk.kg:30040 [06:06:52]ConnectInit lk.salyk.kg [06:06:52]line 0 [06:06:52]written 0, free lines is 4095 [06:06:53]Connected sock=10 [06:06:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8C 02 00 00 E1 64 84 02 43 12 5A 03 01 00 03 00 78 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 15 00 00 00 00 07 04 06 00 BC CA 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 7B 05 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 55 C3 01 00 35 04 06 00 31 16 66 A1 1B A6 D0 64 0A 46 70 BA 08 FF [06:06:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 78 35 47 00 9F 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 38 33 30 10 04 04 00 55 C3 01 00 F4 03 04 00 BF AA F0 66 B6 04 01 00 00 B6 22 3B DC 6B D8 C5 BA [06:06:53]CommunicateWithHost err = 0 [06:06:53]CheckOFDResponse [06:06:53]1017 (14) - 77093643461234 [06:06:53]1041 (16) - 0000000000871830 [06:06:53]1040 (4) - 115541 [06:06:53]1012 (4) - 22.09.2024 23:39 [06:06:53]1206 (1) - 0 [06:06:53]OFD Sender: Remove packet 115541 [06:06:53]ProducePacketName [06:06:53]name=ofd_packets/00115541 [06:06:53]NVStorageDeleteData [06:06:53]Write to MH i2c: 01 00 00 EC 08 F4 [06:06:53]Write i2c OK [06:06:53]MH_I2C_Read... [06:06:53]Read from MH i2c: 01 [06:06:53]MH_I2C_Read... [06:06:53]Read from MH i2c: 01 07 00 [06:06:53]MH_I2C_Read... [06:06:53]Read from MH i2c: 01 07 00 EC 08 00 00 00 00 00 CE 0A D3 [06:06:53]RasterBufferAndPrint [06:06:53]line [06:06:53]line [06:06:53]line [06:06:53]line [06:06:53]line [06:06:53]written 0, free lines is 2770 [06:06:53]MH_Cut [06:06:53]Write to MH i2c: D1 01 00 F3 08 01 CD [06:06:53]Write i2c OK [06:06:53]MH_I2C_Read... [06:06:53]Read from MH i2c: D1 [06:06:53]MH_I2C_Read... [06:06:53]Read from MH i2c: D1 01 00 [06:06:53]MH_I2C_Read... [06:06:53]Read from MH i2c: D1 01 00 F3 08 00 CC [06:06:53]Write to MH i2c: 01 00 00 F4 08 FC [06:06:53]Write i2c OK [06:06:53]MH_I2C_Read... [06:06:53]OFD Sender: No OFD packet to send [06:06:55]*** Cut start [06:06:55]*** Partial cut [06:06:55]*** CUTSNS_PIN = 1 [06:06:55]*** CUTSNS_PIN = 0 [06:06:55]*** Brake cut motor [06:06:55]Read from MH i2c: 01 [06:06:55]MH_I2C_Read... [06:06:55]*** Stop cut motor [06:06:55]*** Cut end [06:06:55]Read from MH i2c: 01 07 00 [06:06:55]MH_I2C_Read... [06:06:55]Read from MH i2c: 01 07 00 F4 08 00 00 00 00 00 FF 0F 11 [06:06:55]process_action close_receipt done [06:06:55]requested_data is exist [06:06:55]produce_requested_data [06:06:55]requested_item fm.sn is exist - process it [06:06:55]wFMCommunicate request_size=4 [06:06:55]MH_SAM_APDU [06:06:55]CAPDU: 80 11 00 00 [06:06:55]Write to MH i2c: E2 08 00 F5 08 80 11 00 00 00 00 00 00 77 [06:06:55]Write i2c OK [06:06:55]MH_I2C_Read... [06:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:55]Read from MH i2c: E2 [06:06:55]MH_I2C_Read... [06:06:55]Read from MH i2c: E2 17 00 [06:06:55]MH_I2C_Read... [06:06:55]Read from MH i2c: E2 17 00 F5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C5 [06:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:06:56]wFMCommunicate OK [06:06:56]requested_item fd.num is exist - process it [06:06:56]SAM_PROTO_GetFieldsCounters [06:06:56]wFMCommunicate request_size=4 [06:06:56]MH_SAM_APDU [06:06:56]CAPDU: 80 13 00 00 [06:06:56]Write to MH i2c: E2 08 00 F6 08 80 13 00 00 00 00 00 00 7A [06:06:56]Write i2c OK [06:06:56]MH_I2C_Read... [06:06:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:06:56]Read from MH i2c: E2 [06:06:56]MH_I2C_Read... [06:06:56]Read from MH i2c: E2 62 00 [06:06:56]MH_I2C_Read... [06:06:56]Read from MH i2c: E2 62 00 F6 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 55 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [06:06: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 55 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:06:56]wFMCommunicate OK [06:06:56]SAM_PROTO_GetFieldsCounters done [06:06:56]requested_item shift.num is exist - process it [06:06:56]requested_item shift.opened is exist - process it [06:06:56]req_shift_opened [06:06:56]FM_GetShiftState [06:06:56]SAM_PROTO_GetShiftState [06:06:56]wFMCommunicate request_size=4 [06:06:56]MH_SAM_APDU [06:06:56]CAPDU: 80 13 01 00 [06:06:56]Write to MH i2c: E2 08 00 F7 08 80 13 01 00 00 00 00 00 7C [06:06:56]Write i2c OK [06:06:56]MH_I2C_Read... [06:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:56]Read from MH i2c: E2 [06:06:56]MH_I2C_Read... [06:06:56]Read from MH i2c: E2 0E 00 [06:06:56]MH_I2C_Read... [06:06:56]Read from MH i2c: E2 0E 00 F7 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 BD [06:06:56]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [06:06:56]wFMCommunicate OK [06:06:56]SAM_PROTO_GetShiftState done [06:06:56]FM_GetShiftState done [06:06:56]req_shift_opened done [06:06:56]requested_item shift.open_date is exist - process it [06:06:56]req_shift_open_date [06:06:56]req_shift_open_date done [06:06:56]produce_requested_data done [06:06:56]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115541,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [06:06:56]process_action_free close_receipt [06:06:56]json_value_free [06:06:56]json_value_free done [06:06:56]process_json_proto returns [06:06:56]Send response to host [06:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115541,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [06:06:56]free response buf [06:06:56]execute_script done [06:06:56]execute_script returns [06:06:56]free content buf [06:06:56]Sock 8.Close socket [06:06:56]Sock 8.Thread stoped [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:05]accept exits with 9 [06:44:05]New connection [06:44:05]New thread 3067313508 created [06:44:05]Thread 3067170148 joined [06:44:05]Waiting for new connection... [06:44:05] Sock 9.Parse request [06:44:05]Sock 9.Check first char [06:44:05]Sock 9.First char is OK [06:44:05]request: POST /json_proto HTTP/1.0 [06:44:05]Method: POST [06:44:05]URL: /json_proto [06:44:05]Method is POST - this is cgi request [06:44:05]url: /json_proto [06:44:05]query_string will be loaded in cgi processing [06:44:05]execute_cgi json_proto POST (null) [06:44:05]execute_cgi path=json_proto method=POST [06:44:05]POST find Content-Length [06:44:05]Host: 172.17.41.136:8080 [06:44:05]Content-Length: 929 [06:44:05]Content-Type: application/json [06:44:05] [06:44:05]POST finish read [06:44:05]Found Content-Length = 929 [06:44:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343968", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:05]execute_script... [06: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 : (3)343968", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:05]POST & json_proto [06:44:05]process_json_proto [06:44:05]json parsed OK: [06:44:05]protocol is kg_v1.0 [06:44:05]action value=close_receipt [06:44:05]process_action close_receipt [06:44:05]cmd_close_receipt [06:44:05]MH_GetDate [06:44:05]Write to MH i2c: F0 00 00 F8 08 EF [06:44:05]Write i2c OK [06:44:05]MH_I2C_Read... [06:44:05]Read from MH i2c: F0 [06:44:05]MH_I2C_Read... [06:44:05]Read from MH i2c: F0 09 00 [06:44:05]MH_I2C_Read... [06:44:05]Read from MH i2c: F0 09 00 F8 08 00 37 0E F1 66 1B D0 5A 64 3D [06:44:05]GetLastDocTimeStamp 1727071611 [06:44:05]current date 1727073847 [06:44:05]FM_GetShiftState [06:44:05]SAM_PROTO_GetShiftState [06:44:05]wFMCommunicate request_size=4 [06:44:05]MH_SAM_APDU [06:44:05]CAPDU: 80 13 01 00 [06:44:05]Write to MH i2c: E2 08 00 F9 08 80 13 01 00 00 00 00 00 7E [06:44:05]Write i2c OK [06:44:05]MH_I2C_Read... [06:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:05]Read from MH i2c: E2 [06:44:05]MH_I2C_Read... [06:44:05]Read from MH i2c: E2 0E 00 [06:44:05]MH_I2C_Read... [06:44:05]Read from MH i2c: E2 0E 00 F9 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 BF [06:44:05]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [06:44:05]wFMCommunicate OK [06:44:05]SAM_PROTO_GetShiftState done [06:44:05]FM_GetShiftState done [06:44:05]opened in 1727052070 [06:44:05]opened+sec_in_day 1727138470 [06:44:05]quantity*price = 7000 [06:44:05]sum+1 = 7001 [06:44:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4670003190013 Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л 1.000 * 225.00 = 225.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 295.00 НСП 1% : 2.61 НДС 12% : 31.32 Наличными: 295.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 25 23.09.2024 06:44 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115542 ФПД: 153451298943500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T064407&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115542&fm=153451298943500&tin=02508201610067®Number=0000000000091831&sum=29500 0 [06:44:06]StoreToDocumentArchive [06:44:06]shift 472 fd 115542 [06:44:06]save to /storage/0472/doc_00115542 [06:44:06]save last doc name /storage/0472/doc_00115542 to /storage/kkm_last_doc_name [06:44:06]save OK [06:44:06]Clear old archive folders... [06:44:06]ProcessDocumentItem done err = 0, tmpTLVsize=401 [06:44:06]tlvbuf is 011F56A0 [06:44:06]SAM_PROTO_ClearQueue [06:44:06]wFMCommunicate request_size=4 [06:44:06]MH_SAM_APDU [06:44:06]CAPDU: 80 09 00 00 [06:44:06]Write to MH i2c: E2 08 00 06 09 80 09 00 00 00 00 00 00 81 [06:44:06]Write i2c OK [06:44:06]MH_I2C_Read... [06:44:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:44:06]Read from MH i2c: E2 [06:44:06]MH_I2C_Read... [06:44:06]Read from MH i2c: E2 03 00 [06:44:06]MH_I2C_Read... [06:44:06]Read from MH i2c: E2 03 00 06 09 00 90 00 83 [06:44:06]RAPDU: 90 00 [06:44:06]wFMCommunicate OK [06:44:06]SAM_PROTO_ClearQueue done [06:44:06]KKMCreateOFDPacket [06:44:06]OFDProtocolAddRootSTLVToBuf [06:44:06]FM_MakeSignedData [06:44:06]FM_MakeSignedData [06:44:06]SAM_PROTO_SignData [06:44:06]wFMCommunicate request_size=4 [06:44:06]MH_SAM_APDU [06:44:06]CAPDU: 80 0D 01 02 [06:44:06]Write to MH i2c: E2 08 00 07 09 80 0D 01 02 00 00 00 00 89 [06:44:06]Write i2c OK [06:44:06]MH_I2C_Read... [06:44:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:44:06]Read from MH i2c: E2 [06:44:06]MH_I2C_Read... [06:44:06]Read from MH i2c: E2 03 00 [06:44:06]MH_I2C_Read... [06:44:06]Read from MH i2c: E2 03 00 07 09 00 90 00 84 [06:44:06]RAPDU: 90 00 [06:44:06]wFMCommunicate OK [06:44:06]wFMCommunicate request_size=255 [06:44:06]MH_SAM_APDU [06:44:06]CAPDU: 80 0D 02 02 FA 03 00 91 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 [06:44:06]Write to MH i2c: E2 02 01 08 09 80 0D 02 02 FA 00 03 00 91 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 00 00 DA [06:44:06]Write i2c OK [06:44:06]MH_I2C_Read... [06:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:07]Read from MH i2c: E2 [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: E2 03 00 [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: E2 03 00 08 09 00 90 00 85 [06:44:07]RAPDU: 90 00 [06:44:07]wFMCommunicate OK [06:44:07]wFMCommunicate request_size=160 [06:44:07]MH_SAM_APDU [06:44:07]CAPDU: 80 0D 02 02 9B EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 00 00 07 04 06 00 3C 73 00 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 37 0E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 56 C3 01 00 35 04 06 00 8B 90 2A 29 F2 0C [06:44:07]Write to MH i2c: E2 A3 00 09 09 80 0D 02 02 9B 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 00 00 07 04 06 00 3C 73 00 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 37 0E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 56 C3 01 00 35 04 06 00 8B 90 2A 29 F2 0C 00 00 08 [06:44:07]Write i2c OK [06:44:07]MH_I2C_Read... [06:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:07]Read from MH i2c: E2 [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: E2 03 00 [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: E2 03 00 09 09 00 90 00 86 [06:44:07]RAPDU: 90 00 [06:44:07]wFMCommunicate OK [06:44:07]wFMCommunicate request_size=4 [06:44:07]MH_SAM_APDU [06:44:07]CAPDU: 80 0D 03 02 [06:44:07]Write to MH i2c: E2 08 00 0A 09 80 0D 03 02 00 00 00 00 8E [06:44:07]Write i2c OK [06:44:07]MH_I2C_Read... [06:44:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:44:07]Read from MH i2c: E2 [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: E2 0B 00 [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: E2 0B 00 0A 09 00 8B 20 F4 0E 33 E4 7F EA 90 00 BC [06:44:07]RAPDU: 8B 20 F4 0E 33 E4 7F EA 90 00 [06:44:07]wFMCommunicate OK [06:44:07]SAM_PROTO_SignData done [06:44:07]FM_MakeSignedData done [06:44:07]CreateOFDProtocolMessage [06:44:07]wFMCommunicate request_size=4 [06:44:07]MH_SAM_APDU [06:44:07]CAPDU: 80 11 00 00 [06:44:07]Write to MH i2c: E2 08 00 0B 09 80 11 00 00 00 00 00 00 8E [06:44:07]Write i2c OK [06:44:07]MH_I2C_Read... [06:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:07]Read from MH i2c: E2 [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: E2 17 00 [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: E2 17 00 0B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 DC [06:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:44:07]wFMCommunicate OK [06:44:07]CreateOFDProtocolMessage done [06:44:07]OFDSenderStorePacket 115542 [06:44:07]StoreOFDPacket docnum=115542 [06:44:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A5 01 00 00 EF 85 9D 01 D2 08 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 00 00 07 04 06 00 3C 73 00 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 37 0E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 56 C3 01 00 35 04 06 00 8B 90 2A 29 F2 0C 8B 20 F4 0E 33 E4 7F EA [06:44:07]CheckFolder [06:44:07]dirname=/storage/ofd_packets [06:44:07]CheckFolder done [06:44:07]ProducePacketName [06:44:07]name=ofd_packets/00115542 [06:44:07]NVStorageSaveData ofd_packets/00115542 [06:44:07]File name is /storage/ofd_packets/00115542 [06:44:07]Write 451 bytes [06:44:07]NVStorageSaveData done [06:44:07]OFDSenderStorePacket done [06:44:07]KKMCreateOFDPacket done [06:44:07]NVStorageSaveData kkm_last_timestamp [06:44:07]File name is /storage/kkm_last_timestamp [06:44:07]Write 4 bytes [06:44:07]NVStorageSaveData done [06:44:07]ExternCall_PrintAddStr [06:44:07]wPrintStart [06:44:07]Write to MH i2c: 01 00 00 0C 09 15 [06:44:07]Write i2c OK [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: 01 [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: 01 07 00 [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: 01 07 00 0C 09 00 00 00 00 00 FF 0F 2A [06:44:07]RasterBufferAndPrint [06:44:07]line Счет N : (3)343968 [06:44:07]line ИНН: 02508201610067 [06:44:07]line Контрольно-Кассовый Чек [06:44:07]line ПРОДАЖА [06:44:07]line Товар: 4700000310326 [06:44:07]line Вода Адыгене 1л б/г [06:44:07]line 2.000 * 35.00 [06:44:07]line = 70.00 [06:44:07]line НДС 12% НСП 1% [06:44:07]line > о реализуемом товаре [06:44:07]line Товар: 4670003190013 [06:44:07]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [06:44:07]line 1.000 * 225.00 [06:44:07]line = 225.00 [06:44:07]line НДС 12% НСП 1% [06:44:07]line > о реализуемом товаре [06:44:07]line ИТОГО: 295.00 [06:44:07]line НСП 1% : 2.61 [06:44:07]line НДС 12% : 31.32 [06:44:07]line Наличными: 295.00 [06:44:07]line Безнал.: 0.00 [06:44:07]line Место: АЗС № 90 "Партнер Нефть" [06:44:07]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [06:44:07]line СНО: Общий режим [06:44:07]line Чек 25 23.09.2024 06:44 [06:44:07]line Смена: 472 ФФД: 1.0 [06:44:07]line ЗНМ: 0300000120 [06:44:07]line РНМ: 0000000000091831 [06:44:07]line Версия ККМ: 001 [06:44:07]line ФМ: 0000000000871830 [06:44:07]line ФД: 115542 [06:44:07]line ФПД: 153451298943500 [06:44:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T064407&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115542&fm=153451298943500&tin=02508201610067®Number=0000000000091831&sum=29500 [06:44:07]line 0 [06:44:07]OFD Sender: Processing packet 115542 [packets to send 481, broken 480] [06:44:07]ProducePacketName [06:44:07]name=ofd_packets/00115542 [06:44:07]OFD Sender: To server: pG, [06:44:07]CommunicateWithHost lk.salyk.kg:30040 [06:44:07]ConnectInit lk.salyk.kg [06:44:07]written 0, free lines is 4095 [06:44:08]Connected sock=10 [06:44: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 38 33 30 A5 01 00 00 EF 85 9D 01 D2 08 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 00 00 07 04 06 00 3C 73 00 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 37 0E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 56 C3 01 00 35 04 06 00 8B 90 2A 29 F2 0C 8B 20 F4 0E 33 E4 7F EA [06:44:08]Write to MH i2c: 01 00 00 3A 09 43 [06:44:08]Write i2c OK [06:44:08]MH_I2C_Read... [06:44:08]Read from MH i2c: 01 [06:44:08]MH_I2C_Read... [06:44:08]Read from MH i2c: 01 07 00 [06:44:08]MH_I2C_Read... [06:44:08]Read from MH i2c: 01 07 00 3A 09 00 00 00 00 00 F7 0B 4C [06:44:08]RasterBufferAndPrint [06:44:08]line [06:44:08]line [06:44:08]line [06:44:08]line [06:44:08]line [06:44:08]written 0, free lines is 3066 [06:44:08]MH_Cut [06:44:08]Write to MH i2c: D1 01 00 41 09 01 1C [06:44:08]Write i2c OK [06:44:08]MH_I2C_Read... [06:44:08]Read from MH i2c: D1 [06:44:08]MH_I2C_Read... [06:44:08]Read from MH i2c: D1 01 00 [06:44:08]MH_I2C_Read... [06:44:08]Read from MH i2c: D1 01 00 41 09 00 1B [06:44:08]Write to MH i2c: 01 00 00 42 09 4B [06:44:08]Write i2c OK [06:44:08]MH_I2C_Read... [06: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 38 33 30 4F 00 00 00 B0 A1 47 00 F7 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 56 C3 01 00 F4 03 04 00 7A B3 F0 66 B6 04 01 00 00 80 31 43 98 C1 81 56 0C [06:44:08]CommunicateWithHost err = 0 [06:44:08]CheckOFDResponse [06:44:08]1017 (14) - 77093643461234 [06:44:08]1041 (16) - 0000000000871830 [06:44:08]1040 (4) - 115542 [06:44:08]1012 (4) - 23.09.2024 00:16 [06:44:08]1206 (1) - 0 [06:44:08]OFD Sender: Remove packet 115542 [06:44:08]ProducePacketName [06:44:08]name=ofd_packets/00115542 [06:44:08]NVStorageDeleteData [06:44:08]OFD Sender: No OFD packet to send [06:44:09]*** Cut start [06:44:09]*** Partial cut [06:44:09]*** CUTSNS_PIN = 1 [06:44:09]*** CUTSNS_PIN = 0 [06:44:10]*** Brake cut motor [06:44:10]Read from MH i2c: 01 [06:44:10]MH_I2C_Read... [06:44:10]*** Stop cut motor [06:44:10]*** Cut end [06:44:10]Read from MH i2c: 01 07 00 [06:44:10]MH_I2C_Read... [06:44:10]Read from MH i2c: 01 07 00 42 09 00 00 00 00 00 FF 0F 60 [06:44:10]process_action close_receipt done [06:44:10]requested_data is exist [06:44:10]produce_requested_data [06:44:10]requested_item fm.sn is exist - process it [06:44:10]wFMCommunicate request_size=4 [06:44:10]MH_SAM_APDU [06:44:10]CAPDU: 80 11 00 00 [06:44:10]Write to MH i2c: E2 08 00 43 09 80 11 00 00 00 00 00 00 C6 [06:44:10]Write i2c OK [06:44:10]MH_I2C_Read... [06:44:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:10]Read from MH i2c: E2 [06:44:10]MH_I2C_Read... [06:44:10]Read from MH i2c: E2 17 00 [06:44:10]MH_I2C_Read... [06:44:10]Read from MH i2c: E2 17 00 43 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 14 [06:44:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:44:10]wFMCommunicate OK [06:44:10]requested_item fd.num is exist - process it [06:44:10]SAM_PROTO_GetFieldsCounters [06:44:10]wFMCommunicate request_size=4 [06:44:10]MH_SAM_APDU [06:44:10]CAPDU: 80 13 00 00 [06:44:10]Write to MH i2c: E2 08 00 44 09 80 13 00 00 00 00 00 00 C9 [06:44:10]Write i2c OK [06:44:10]MH_I2C_Read... [06:44:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:44:10]Read from MH i2c: E2 [06:44:10]MH_I2C_Read... [06:44:10]Read from MH i2c: E2 62 00 [06:44:10]MH_I2C_Read... [06:44:10]Read from MH i2c: E2 62 00 44 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 56 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [06:44: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 56 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:44:10]wFMCommunicate OK [06:44:10]SAM_PROTO_GetFieldsCounters done [06:44:10]requested_item shift.num is exist - process it [06:44:10]requested_item shift.opened is exist - process it [06:44:10]req_shift_opened [06:44:10]FM_GetShiftState [06:44:10]SAM_PROTO_GetShiftState [06:44:10]wFMCommunicate request_size=4 [06:44:10]MH_SAM_APDU [06:44:10]CAPDU: 80 13 01 00 [06:44:10]Write to MH i2c: E2 08 00 45 09 80 13 01 00 00 00 00 00 CB [06:44:10]Write i2c OK [06:44:10]MH_I2C_Read... [06:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:10]Read from MH i2c: E2 [06:44:10]MH_I2C_Read... [06:44:10]Read from MH i2c: E2 0E 00 [06:44:10]MH_I2C_Read... [06:44:10]Read from MH i2c: E2 0E 00 45 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 0C [06:44:10]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [06:44:10]wFMCommunicate OK [06:44:10]SAM_PROTO_GetShiftState done [06:44:10]FM_GetShiftState done [06:44:10]req_shift_opened done [06:44:10]requested_item shift.open_date is exist - process it [06:44:10]req_shift_open_date [06:44:10]req_shift_open_date done [06:44:10]produce_requested_data done [06:44:10]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115542,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [06:44:10]process_action_free close_receipt [06:44:10]json_value_free [06:44:10]json_value_free done [06:44:10]process_json_proto returns [06:44:10]Send response to host [06:44:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115542,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [06:44:10]free response buf [06:44:10]execute_script done [06:44:10]execute_script returns [06:44:10]free content buf [06:44:10]Sock 9.Close socket [06:44:10]Sock 9.Thread stoped [06:44:13]OFD Sender: No OFD packet to send [06:44:18]OFD Sender: No OFD packet to send [06:44:23]OFD Sender: No OFD packet to send [06:44:28]OFD Sender: No OFD packet to send [06:44:33]OFD Sender: No OFD packet to send [06:44:38]OFD Sender: No OFD packet to send [06:44:43]OFD Sender: No OFD packet to send [06:44:48]OFD Sender: No OFD packet to send [06:44:53]OFD Sender: No OFD packet to send [06:44:58]OFD Sender: No OFD packet to send [06:45:03]OFD Sender: No OFD packet to send [06:45:08]OFD Sender: No OFD packet to send [06:45:13]OFD Sender: No OFD packet to send [06:45:18]OFD Sender: No OFD packet to send [06:45:23]OFD Sender: No OFD packet to send [06:45:28]OFD Sender: No OFD packet to send [06:45:33]OFD Sender: No OFD packet to send [06:45:38]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:51]accept exits with 8 [06:45:51]New connection [06:45:51]New thread 3067170148 created [06:45:51]Thread 3067313508 joined [06:45:51]Waiting for new connection... [06:45:51] Sock 8.Parse request [06:45:51]Sock 8.Check first char [06:45:51]Sock 8.First char is OK [06:45:51]request: POST /json_proto HTTP/1.0 [06:45:51]Method: POST [06:45:51]URL: /json_proto [06:45:51]Method is POST - this is cgi request [06:45:51]url: /json_proto [06:45:51]query_string will be loaded in cgi processing [06:45:51]execute_cgi json_proto POST (null) [06:45:51]execute_cgi path=json_proto method=POST [06:45:51]POST find Content-Length [06:45:51]Host: 172.17.41.136:8080 [06:45:51]Content-Length: 1444 [06:45:51]Content-Type: application/json [06:45:51] [06:45:51]POST finish read [06:45:51]Found Content-Length = 1444 [06:45:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343969", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 2.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 540.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:51]execute_script... [06:45:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343969", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 2.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 540.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:51]POST & json_proto [06:45:51]process_json_proto [06:45:51]json parsed OK: [06:45:51]protocol is kg_v1.0 [06:45:51]action value=close_receipt [06:45:51]process_action close_receipt [06:45:51]cmd_close_receipt [06:45:51]MH_GetDate [06:45:51]Write to MH i2c: F0 00 00 46 09 3E [06:45:51]Write i2c OK [06:45:51]MH_I2C_Read... [06:45:51]Read from MH i2c: F0 [06:45:51]MH_I2C_Read... [06:45:51]Read from MH i2c: F0 09 00 [06:45:51]MH_I2C_Read... [06:45:51]Read from MH i2c: F0 09 00 46 09 00 A1 0E F1 66 1B D0 5A 64 F6 [06:45:51]GetLastDocTimeStamp 1727073847 [06:45:51]current date 1727073953 [06:45:51]FM_GetShiftState [06:45:51]SAM_PROTO_GetShiftState [06:45:51]wFMCommunicate request_size=4 [06:45:51]MH_SAM_APDU [06:45:51]CAPDU: 80 13 01 00 [06:45:52]Write to MH i2c: E2 08 00 47 09 80 13 01 00 00 00 00 00 CD [06:45:52]Write i2c OK [06:45:52]MH_I2C_Read... [06:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:52]Read from MH i2c: E2 [06:45:52]MH_I2C_Read... [06:45:52]Read from MH i2c: E2 0E 00 [06:45:52]MH_I2C_Read... [06:45:52]Read from MH i2c: E2 0E 00 47 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 0E [06:45:52]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [06:45:52]wFMCommunicate OK [06:45:52]SAM_PROTO_GetShiftState done [06:45:52]FM_GetShiftState done [06:45:52]opened in 1727052070 [06:45:52]opened+sec_in_day 1727138470 [06:45:52]quantity*price = 6000 [06:45:52]sum+1 = 6001 [06:45:52]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002326172 Вода ASU пит н.газ лимон ПЭТ 1л 2.000 * 100.00 = 200.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870002329487 Напиток Pepsi 1,5л 1.000 * 175.00 = 175.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 540.00 НСП 1% : 4.78 НДС 12% : 57.34 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 26 23.09.2024 06:45 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115543 ФПД: 63001285653077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T064553&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115543&fm=63001285653077&tin=02508201610067®Number=0000000000091831&sum=54000 0 [06:45:53]StoreToDocumentArchive [06:45:53]shift 472 fd 115543 [06:45:53]save to /storage/0472/doc_00115543 [06:45:53]save last doc name /storage/0472/doc_00115543 to /storage/kkm_last_doc_name [06:45:53]save OK [06:45:53]Clear old archive folders... [06:45:53]ProcessDocumentItem done err = 0, tmpTLVsize=600 [06:45:53]tlvbuf is 011A8A10 [06:45:53]SAM_PROTO_ClearQueue [06:45:53]wFMCommunicate request_size=4 [06:45:53]MH_SAM_APDU [06:45:53]CAPDU: 80 09 00 00 [06:45:53]Write to MH i2c: E2 08 00 54 09 80 09 00 00 00 00 00 00 CF [06:45:53]Write i2c OK [06:45:53]MH_I2C_Read... [06:45:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:45:53]Read from MH i2c: E2 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 54 09 00 90 00 D1 [06:45:53]RAPDU: 90 00 [06:45:53]wFMCommunicate OK [06:45:53]SAM_PROTO_ClearQueue done [06:45:53]KKMCreateOFDPacket [06:45:53]OFDProtocolAddRootSTLVToBuf [06:45:53]FM_MakeSignedData [06:45:53]FM_MakeSignedData [06:45:53]SAM_PROTO_SignData [06:45:53]wFMCommunicate request_size=4 [06:45:53]MH_SAM_APDU [06:45:53]CAPDU: 80 0D 01 02 [06:45:53]Write to MH i2c: E2 08 00 55 09 80 0D 01 02 00 00 00 00 D7 [06:45:53]Write i2c OK [06:45:53]MH_I2C_Read... [06:45:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:45:53]Read from MH i2c: E2 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 55 09 00 90 00 D2 [06:45:53]RAPDU: 90 00 [06:45:53]wFMCommunicate OK [06:45:53]wFMCommunicate request_size=255 [06:45:53]MH_SAM_APDU [06:45:53]CAPDU: 80 0D 02 02 FA 03 00 58 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 [06:45:53]Write to MH i2c: E2 02 01 56 09 80 0D 02 02 FA 00 03 00 58 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 00 00 D3 [06:45:53]Write i2c OK [06:45:53]MH_I2C_Read... [06:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:53]Read from MH i2c: E2 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 56 09 00 90 00 D3 [06:45:53]RAPDU: 90 00 [06:45:53]wFMCommunicate OK [06:45:53]wFMCommunicate request_size=255 [06:45:53]MH_SAM_APDU [06:45:53]CAPDU: 80 0D 02 02 FA 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 [06:45:53]Write to MH i2c: E2 02 01 57 09 80 0D 02 02 FA 00 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 00 C6 [06:45:53]Write i2c OK [06:45:53]MH_I2C_Read... [06:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:53]Read from MH i2c: E2 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 [06:45:53]MH_I2C_Read... [06:45:53]Read from MH i2c: E2 03 00 57 09 00 90 00 D4 [06:45:53]RAPDU: 90 00 [06:45:53]wFMCommunicate OK [06:45:53]wFMCommunicate request_size=109 [06:45:53]MH_SAM_APDU [06:45:53]CAPDU: 80 0D 02 02 68 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 A1 0E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 57 C3 01 00 35 04 06 00 39 4C A1 40 72 55 [06:45:53]Write to MH i2c: E2 70 00 58 09 80 0D 02 02 68 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 A1 0E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 57 C3 01 00 35 04 06 00 39 4C A1 40 72 55 00 00 0D [06:45:53]Write i2c OK [06:45:53]MH_I2C_Read... [06:45:54]OFD Sender: No OFD packet to send [06:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:54]Read from MH i2c: E2 [06:45:54]MH_I2C_Read... [06:45:54]Read from MH i2c: E2 03 00 [06:45:54]MH_I2C_Read... [06:45:54]Read from MH i2c: E2 03 00 58 09 00 90 00 D5 [06:45:54]RAPDU: 90 00 [06:45:54]wFMCommunicate OK [06:45:54]wFMCommunicate request_size=4 [06:45:54]MH_SAM_APDU [06:45:54]CAPDU: 80 0D 03 02 [06:45:54]Write to MH i2c: E2 08 00 59 09 80 0D 03 02 00 00 00 00 DD [06:45:54]Write i2c OK [06:45:54]MH_I2C_Read... [06:45:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:45:54]Read from MH i2c: E2 [06:45:54]MH_I2C_Read... [06:45:54]Read from MH i2c: E2 0B 00 [06:45:54]MH_I2C_Read... [06:45:54]Read from MH i2c: E2 0B 00 59 09 00 A2 DB 8B 83 22 DC F0 3A 90 00 91 [06:45:54]RAPDU: A2 DB 8B 83 22 DC F0 3A 90 00 [06:45:54]wFMCommunicate OK [06:45:54]SAM_PROTO_SignData done [06:45:54]FM_MakeSignedData done [06:45:54]CreateOFDProtocolMessage [06:45:54]wFMCommunicate request_size=4 [06:45:54]MH_SAM_APDU [06:45:54]CAPDU: 80 11 00 00 [06:45:54]Write to MH i2c: E2 08 00 5A 09 80 11 00 00 00 00 00 00 DD [06:45:54]Write i2c OK [06:45:54]MH_I2C_Read... [06:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:54]Read from MH i2c: E2 [06:45:54]MH_I2C_Read... [06:45:54]Read from MH i2c: E2 17 00 [06:45:54]MH_I2C_Read... [06:45:54]Read from MH i2c: E2 17 00 5A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2B [06:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:45:54]wFMCommunicate OK [06:45:54]CreateOFDProtocolMessage done [06:45:54]OFDSenderStorePacket 115543 [06:45:54]StoreOFDPacket docnum=115543 [06:45:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 6C 02 00 00 E5 DF 64 02 53 C8 5A 03 01 00 03 00 58 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 A1 0E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 57 C3 01 00 35 04 06 00 39 4C A1 40 72 55 A2 DB 8B 83 22 DC F0 3A [06:45:54]CheckFolder [06:45:54]dirname=/storage/ofd_packets [06:45:54]CheckFolder done [06:45:54]ProducePacketName [06:45:54]name=ofd_packets/00115543 [06:45:54]NVStorageSaveData ofd_packets/00115543 [06:45:54]File name is /storage/ofd_packets/00115543 [06:45:54]Write 650 bytes [06:45:54]NVStorageSaveData done [06:45:54]OFDSenderStorePacket done [06:45:54]KKMCreateOFDPacket done [06:45:54]NVStorageSaveData kkm_last_timestamp [06:45:54]File name is /storage/kkm_last_timestamp [06:45:54]Write 4 bytes [06:45:54]NVStorageSaveData done [06:45:54]ExternCall_PrintAddStr [06:45:54]wPrintStart [06:45:54]Write to MH i2c: 01 00 00 5B 09 64 [06:45:54]Write i2c OK [06:45:54]MH_I2C_Read... [06:45:54]Read from MH i2c: 01 [06:45:54]MH_I2C_Read... [06:45:54]Read from MH i2c: 01 07 00 [06:45:54]MH_I2C_Read... [06:45:54]Read from MH i2c: 01 07 00 5B 09 00 00 00 00 00 FF 0F 79 [06:45:54]RasterBufferAndPrint [06:45:54]line Счет N : (3)343969 [06:45:54]line ИНН: 02508201610067 [06:45:54]line Контрольно-Кассовый Чек [06:45:54]line ПРОДАЖА [06:45:54]line Товар: 4700000160204 [06:45:54]line Вода Легенда 1,5л [06:45:54]line 1.000 * 60.00 [06:45:54]line = 60.00 [06:45:54]line НДС 12% НСП 1% [06:45:54]line > о реализуемом товаре [06:45:54]line Товар: 4870002326172 [06:45:54]line Вода ASU пит н.газ лимон ПЭТ 1л [06:45:54]line 2.000 * 100.00 [06:45:54]line = 200.00 [06:45:54]line НДС 12% НСП 1% [06:45:54]line > о реализуемом товаре [06:45:54]line Товар: 5449000054227 [06:45:54]line Напиток Кока-Кола 1л [06:45:54]line 1.000 * 105.00 [06:45:54]line = 105.00 [06:45:54]line НДС 12% НСП 1% [06:45:54]line > о реализуемом товаре [06:45:54]line Товар: 4870002329487 [06:45:54]line Напиток Pepsi 1,5л [06:45:54]line 1.000 * 175.00 [06:45:54]line = 175.00 [06:45:54]line НДС 12% НСП 1% [06:45:54]line > о реализуемом товаре [06:45:54]line ИТОГО: 540.00 [06:45:54]line НСП 1% : 4.78 [06:45:54]line НДС 12% : 57.34 [06:45:54]line Наличными: 540.00 [06:45:54]line Безнал.: 0.00 [06:45:54]line Место: АЗС № 90 "Партнер Нефть" [06:45:54]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [06:45:54]line СНО: Общий режим [06:45:54]line Чек 26 23.09.2024 06:45 [06:45:54]line Смена: 472 ФФД: 1.0 [06:45:54]line ЗНМ: 0300000120 [06:45:54]line РНМ: 0000000000091831 [06:45:54]line Версия ККМ: 001 [06:45:54]line ФМ: 0000000000871830 [06:45:54]line ФД: 115543 [06:45:54]line ФПД: 63001285653077 [06:45:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T064553&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115543&fm=63001285653077&tin=02508201610067®Number=0000000000091831&sum=54000 [06:45:54]line 0 [06:45:54]OFD Sender: Processing packet 115543 [packets to send 481, broken 480] [06:45:54]ProducePacketName [06:45:54]name=ofd_packets/00115543 [06:45:54]OFD Sender: To server: pG, [06:45:54]CommunicateWithHost lk.salyk.kg:30040 [06:45:54]ConnectInit lk.salyk.kg [06:45:54]written 0, free lines is 4095 [06:45:54]Connected sock=10 [06: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 38 33 30 6C 02 00 00 E5 DF 64 02 53 C8 5A 03 01 00 03 00 58 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 A1 0E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 57 C3 01 00 35 04 06 00 39 4C A1 40 72 55 A2 DB 8B 83 22 DC F0 3A [06:45:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0D BA 47 00 B0 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 57 C3 01 00 F4 03 04 00 E5 B3 F0 66 B6 04 01 00 00 7B 9F 66 AF DC CF 6E 0F [06:45:55]CommunicateWithHost err = 0 [06:45:55]CheckOFDResponse [06:45:55]1017 (14) - 77093643461234 [06:45:55]1041 (16) - 0000000000871830 [06:45:55]1040 (4) - 115543 [06:45:55]1012 (4) - 23.09.2024 00:18 [06:45:55]1206 (1) - 0 [06:45:55]OFD Sender: Remove packet 115543 [06:45:55]ProducePacketName [06:45:55]name=ofd_packets/00115543 [06:45:55]NVStorageDeleteData [06:45:55]Write to MH i2c: 01 00 00 95 09 9E [06:45:55]Write i2c OK [06:45:55]MH_I2C_Read... [06:45:55]Read from MH i2c: 01 [06:45:55]MH_I2C_Read... [06:45:55]Read from MH i2c: 01 07 00 [06:45:55]MH_I2C_Read... [06:45:55]Read from MH i2c: 01 07 00 95 09 00 00 00 00 00 D7 0A 86 [06:45:55]RasterBufferAndPrint [06:45:55]line [06:45:55]line [06:45:55]line [06:45:55]line [06:45:55]line [06:45:55]written 0, free lines is 2778 [06:45:55]MH_Cut [06:45:55]Write to MH i2c: D1 01 00 9C 09 01 77 [06:45:55]Write i2c OK [06:45:55]MH_I2C_Read... [06:45:55]Read from MH i2c: D1 [06:45:55]MH_I2C_Read... [06:45:55]Read from MH i2c: D1 01 00 [06:45:55]MH_I2C_Read... [06:45:55]Read from MH i2c: D1 01 00 9C 09 00 76 [06:45:55]Write to MH i2c: 01 00 00 9D 09 A6 [06:45:55]Write i2c OK [06:45:55]MH_I2C_Read... [06:45:55]OFD Sender: No OFD packet to send [06:45:56]*** Cut start [06:45:56]*** Partial cut [06:45:56]*** CUTSNS_PIN = 1 [06:45:57]*** CUTSNS_PIN = 0 [06:45:57]*** Brake cut motor [06:45:57]Read from MH i2c: 01 [06:45:57]MH_I2C_Read... [06:45:57]*** Stop cut motor [06:45:57]*** Cut end [06:45:57]Read from MH i2c: 01 07 00 [06:45:57]MH_I2C_Read... [06:45:57]Read from MH i2c: 01 07 00 9D 09 00 00 00 00 00 FF 0F BB [06:45:57]process_action close_receipt done [06:45:57]requested_data is exist [06:45:57]produce_requested_data [06:45:57]requested_item fm.sn is exist - process it [06:45:57]wFMCommunicate request_size=4 [06:45:57]MH_SAM_APDU [06:45:57]CAPDU: 80 11 00 00 [06:45:57]Write to MH i2c: E2 08 00 9E 09 80 11 00 00 00 00 00 00 21 [06:45:57]Write i2c OK [06:45:57]MH_I2C_Read... [06:45:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:57]Read from MH i2c: E2 [06:45:57]MH_I2C_Read... [06:45:57]Read from MH i2c: E2 17 00 [06:45:57]MH_I2C_Read... [06:45:57]Read from MH i2c: E2 17 00 9E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6F [06:45:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:45:57]wFMCommunicate OK [06:45:57]requested_item fd.num is exist - process it [06:45:57]SAM_PROTO_GetFieldsCounters [06:45:57]wFMCommunicate request_size=4 [06:45:57]MH_SAM_APDU [06:45:57]CAPDU: 80 13 00 00 [06:45:57]Write to MH i2c: E2 08 00 9F 09 80 13 00 00 00 00 00 00 24 [06:45:57]Write i2c OK [06:45:57]MH_I2C_Read... [06:45:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:45:57]Read from MH i2c: E2 [06:45:57]MH_I2C_Read... [06:45:57]Read from MH i2c: E2 62 00 [06:45:57]MH_I2C_Read... [06:45:57]Read from MH i2c: E2 62 00 9F 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 57 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [06:45: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 57 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:45:57]wFMCommunicate OK [06:45:57]SAM_PROTO_GetFieldsCounters done [06:45:57]requested_item shift.num is exist - process it [06:45:57]requested_item shift.opened is exist - process it [06:45:57]req_shift_opened [06:45:57]FM_GetShiftState [06:45:57]SAM_PROTO_GetShiftState [06:45:57]wFMCommunicate request_size=4 [06:45:57]MH_SAM_APDU [06:45:57]CAPDU: 80 13 01 00 [06:45:57]Write to MH i2c: E2 08 00 A0 09 80 13 01 00 00 00 00 00 26 [06:45:57]Write i2c OK [06:45:57]MH_I2C_Read... [06:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:57]Read from MH i2c: E2 [06:45:57]MH_I2C_Read... [06:45:57]Read from MH i2c: E2 0E 00 [06:45:57]MH_I2C_Read... [06:45:57]Read from MH i2c: E2 0E 00 A0 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 67 [06:45:57]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [06:45:57]wFMCommunicate OK [06:45:57]SAM_PROTO_GetShiftState done [06:45:57]FM_GetShiftState done [06:45:57]req_shift_opened done [06:45:57]requested_item shift.open_date is exist - process it [06:45:57]req_shift_open_date [06:45:57]req_shift_open_date done [06:45:57]produce_requested_data done [06:45:57]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115543,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [06:45:57]process_action_free close_receipt [06:45:57]json_value_free [06:45:57]json_value_free done [06:45:57]process_json_proto returns [06:45:57]Send response to host [06:45:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115543,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [06:45:57]free response buf [06:45:57]execute_script done [06:45:57]execute_script returns [06:45:57]free content buf [06:45:57]Sock 8.Close socket [06:45:57]Sock 8.Thread stoped [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]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:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]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:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:54]ConnectInit Can't connect to host [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:18]accept exits with 9 [07:19:18]New connection [07:19:18]New thread 3067313508 created [07:19:18]Thread 3067170148 joined [07:19:18]Waiting for new connection... [07:19:18] Sock 9.Parse request [07:19:18]Sock 9.Check first char [07:19:18]Sock 9.First char is OK [07:19:18]request: POST /json_proto HTTP/1.0 [07:19:18]Method: POST [07:19:18]URL: /json_proto [07:19:18]Method is POST - this is cgi request [07:19:18]url: /json_proto [07:19:18]query_string will be loaded in cgi processing [07:19:18]execute_cgi json_proto POST (null) [07:19:18]execute_cgi path=json_proto method=POST [07:19:18]POST find Content-Length [07:19:18]Host: 172.17.41.136:8080 [07:19:18]Content-Length: 2104 [07:19:18]Content-Type: application/json [07:19:18] [07:19:18]POST finish read [07:19:18]Found Content-Length = 2104 [07:19:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343970", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077634222", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D 135 \u0433\u0440", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 709.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:18]execute_script... [07:19:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343970", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077634222", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D 135 \u0433\u0440", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 709.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:18]POST & json_proto [07:19:18]process_json_proto [07:19:18]json parsed OK: [07:19:18]protocol is kg_v1.0 [07:19:18]action value=close_receipt [07:19:18]process_action close_receipt [07:19:18]cmd_close_receipt [07:19:18]MH_GetDate [07:19:18]Write to MH i2c: F0 00 00 A1 09 99 [07:19:18]Write i2c OK [07:19:18]MH_I2C_Read... [07:19:18]Read from MH i2c: F0 [07:19:18]MH_I2C_Read... [07:19:18]Read from MH i2c: F0 09 00 [07:19:18]MH_I2C_Read... [07:19:18]Read from MH i2c: F0 09 00 A1 09 00 78 16 F1 66 1B D0 5A 64 30 [07:19:18]GetLastDocTimeStamp 1727073953 [07:19:18]current date 1727075960 [07:19:18]FM_GetShiftState [07:19:18]SAM_PROTO_GetShiftState [07:19:18]wFMCommunicate request_size=4 [07:19:18]MH_SAM_APDU [07:19:18]CAPDU: 80 13 01 00 [07:19:18]Write to MH i2c: E2 08 00 A2 09 80 13 01 00 00 00 00 00 28 [07:19:18]Write i2c OK [07:19:18]MH_I2C_Read... [07:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:18]Read from MH i2c: E2 [07:19:18]MH_I2C_Read... [07:19:18]Read from MH i2c: E2 0E 00 [07:19:18]MH_I2C_Read... [07:19:18]Read from MH i2c: E2 0E 00 A2 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 69 [07:19:18]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [07:19:18]wFMCommunicate OK [07:19:18]SAM_PROTO_GetShiftState done [07:19:18]FM_GetShiftState done [07:19:18]opened in 1727052070 [07:19:18]opened+sec_in_day 1727138470 [07:19:18]quantity*price = 8500 [07:19:18]sum+1 = 8501 [07:19:18]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741231 Сигареты Winston Super Slims Silver 1.000 * 139.00 = 139.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4860019001346 Вода Боржоми 0,5л ст 1.000 * 160.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000273680 Сок Piko Pulpy красный виноград ПЭТ 0,5л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4823077634222 Печ LOVITA Джелли Кукис апельсин 135 гр 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 709.00 НСП 1% : 6.27 НДС 12% : 75.29 Наличными: 709.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 27 23.09.2024 07:19 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115544 ФПД: 141798327171556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T071920&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115544&fm=141798327171556&tin=02508201610067®Number=0000000000091831&sum=70900 0 [07:19:20]StoreToDocumentArchive [07:19:20]shift 472 fd 115544 [07:19:20]save to /storage/0472/doc_00115544 [07:19:20]save last doc name /storage/0472/doc_00115544 to /storage/kkm_last_doc_name [07:19:20]save OK [07:19:20]Clear old archive folders... [07:19:20]ProcessDocumentItem done err = 0, tmpTLVsize=880 [07:19:20]tlvbuf is 0120F880 [07:19:20]SAM_PROTO_ClearQueue [07:19:20]wFMCommunicate request_size=4 [07:19:20]MH_SAM_APDU [07:19:20]CAPDU: 80 09 00 00 [07:19:20]Write to MH i2c: E2 08 00 AF 09 80 09 00 00 00 00 00 00 2A [07:19:20]Write i2c OK [07:19:20]MH_I2C_Read... [07:19:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:19:20]Read from MH i2c: E2 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 03 00 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 03 00 AF 09 00 90 00 2C [07:19:20]RAPDU: 90 00 [07:19:20]wFMCommunicate OK [07:19:20]SAM_PROTO_ClearQueue done [07:19:20]KKMCreateOFDPacket [07:19:20]OFDProtocolAddRootSTLVToBuf [07:19:20]FM_MakeSignedData [07:19:20]FM_MakeSignedData [07:19:20]SAM_PROTO_SignData [07:19:20]wFMCommunicate request_size=4 [07:19:20]MH_SAM_APDU [07:19:20]CAPDU: 80 0D 01 02 [07:19:20]Write to MH i2c: E2 08 00 B0 09 80 0D 01 02 00 00 00 00 32 [07:19:20]Write i2c OK [07:19:20]MH_I2C_Read... [07:19:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:19:20]Read from MH i2c: E2 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 03 00 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 03 00 B0 09 00 90 00 2D [07:19:20]RAPDU: 90 00 [07:19:20]wFMCommunicate OK [07:19:20]wFMCommunicate request_size=255 [07:19:20]MH_SAM_APDU [07:19:20]CAPDU: 80 0D 02 02 FA 03 00 70 03 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 [07:19:20]Write to MH i2c: E2 02 01 B1 09 80 0D 02 02 FA 00 03 00 70 03 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 00 00 DD [07:19:20]Write i2c OK [07:19:20]MH_I2C_Read... [07:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:20]Read from MH i2c: E2 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 03 00 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 03 00 B1 09 00 90 00 2E [07:19:20]RAPDU: 90 00 [07:19:20]wFMCommunicate OK [07:19:20]wFMCommunicate request_size=255 [07:19:20]MH_SAM_APDU [07:19:20]CAPDU: 80 0D 02 02 FA 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 [07:19:20]Write to MH i2c: E2 02 01 B2 09 80 0D 02 02 FA 00 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 00 00 74 [07:19:20]Write i2c OK [07:19:20]MH_I2C_Read... [07:19:20]OFD Sender: No OFD packet to send [07:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:20]Read from MH i2c: E2 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 03 00 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 03 00 B2 09 00 90 00 2F [07:19:20]RAPDU: 90 00 [07:19:20]wFMCommunicate OK [07:19:20]wFMCommunicate request_size=255 [07:19:20]MH_SAM_APDU [07:19:20]CAPDU: 80 0D 02 02 FA 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 32 32 06 04 3F 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 [07:19:20]Write to MH i2c: E2 02 01 B3 09 80 0D 02 02 FA 00 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 32 32 06 04 3F 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 00 00 C4 [07:19:20]Write i2c OK [07:19:20]MH_I2C_Read... [07:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:20]Read from MH i2c: E2 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 03 00 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 03 00 B3 09 00 90 00 30 [07:19:21]RAPDU: 90 00 [07:19:21]wFMCommunicate OK [07:19:21]wFMCommunicate request_size=139 [07:19:21]MH_SAM_APDU [07:19:21]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 F4 14 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 78 16 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 58 C3 01 00 35 04 06 00 80 F6 FE EB B9 E4 [07:19:21]Write to MH i2c: E2 8E 00 B4 09 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 F4 14 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 78 16 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 58 C3 01 00 35 04 06 00 80 F6 FE EB B9 E4 00 00 E8 [07:19:21]Write i2c OK [07:19:21]MH_I2C_Read... [07:19:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:21]Read from MH i2c: E2 [07:19:21]MH_I2C_Read... [07:19:21]Read from MH i2c: E2 03 00 [07:19:21]MH_I2C_Read... [07:19:21]Read from MH i2c: E2 03 00 B4 09 00 90 00 31 [07:19:21]RAPDU: 90 00 [07:19:21]wFMCommunicate OK [07:19:21]wFMCommunicate request_size=4 [07:19:21]MH_SAM_APDU [07:19:21]CAPDU: 80 0D 03 02 [07:19:21]Write to MH i2c: E2 08 00 B5 09 80 0D 03 02 00 00 00 00 39 [07:19:21]Write i2c OK [07:19:21]MH_I2C_Read... [07:19:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:19:21]Read from MH i2c: E2 [07:19:21]MH_I2C_Read... [07:19:21]Read from MH i2c: E2 0B 00 [07:19:21]MH_I2C_Read... [07:19:21]Read from MH i2c: E2 0B 00 B5 09 00 11 73 1B 7C A4 CF 94 2C 90 00 88 [07:19:21]RAPDU: 11 73 1B 7C A4 CF 94 2C 90 00 [07:19:21]wFMCommunicate OK [07:19:21]SAM_PROTO_SignData done [07:19:21]FM_MakeSignedData done [07:19:21]CreateOFDProtocolMessage [07:19:21]wFMCommunicate request_size=4 [07:19:21]MH_SAM_APDU [07:19:21]CAPDU: 80 11 00 00 [07:19:21]Write to MH i2c: E2 08 00 B6 09 80 11 00 00 00 00 00 00 39 [07:19:21]Write i2c OK [07:19:21]MH_I2C_Read... [07:19:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:21]Read from MH i2c: E2 [07:19:21]MH_I2C_Read... [07:19:21]Read from MH i2c: E2 17 00 [07:19:21]MH_I2C_Read... [07:19:21]Read from MH i2c: E2 17 00 B6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 87 [07:19:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:19:21]wFMCommunicate OK [07:19:21]CreateOFDProtocolMessage done [07:19:21]OFDSenderStorePacket 115544 [07:19:21]StoreOFDPacket docnum=115544 [07:19:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 84 03 00 00 77 92 7C 03 FB 92 5A 03 01 00 03 00 70 03 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 32 32 06 04 3F 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 F4 14 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 78 16 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 58 C3 01 00 35 04 06 00 80 F6 FE EB B9 E4 11 73 1B 7C A4 CF 94 2C [07:19:21]CheckFolder [07:19:21]dirname=/storage/ofd_packets [07:19:21]CheckFolder done [07:19:21]ProducePacketName [07:19:21]name=ofd_packets/00115544 [07:19:21]NVStorageSaveData ofd_packets/00115544 [07:19:21]File name is /storage/ofd_packets/00115544 [07:19:21]Write 930 bytes [07:19:21]NVStorageSaveData done [07:19:21]OFDSenderStorePacket done [07:19:21]KKMCreateOFDPacket done [07:19:21]NVStorageSaveData kkm_last_timestamp [07:19:21]File name is /storage/kkm_last_timestamp [07:19:21]Write 4 bytes [07:19:21]NVStorageSaveData done [07:19:21]ExternCall_PrintAddStr [07:19:21]wPrintStart [07:19:21]Write to MH i2c: 01 00 00 B7 09 C0 [07:19:21]Write i2c OK [07:19:21]MH_I2C_Read... [07:19:21]Read from MH i2c: 01 [07:19:21]MH_I2C_Read... [07:19:21]Read from MH i2c: 01 07 00 [07:19:21]MH_I2C_Read... [07:19:21]Read from MH i2c: 01 07 00 B7 09 00 00 00 00 00 FF 0F D5 [07:19:21]RasterBufferAndPrint [07:19:21]line Счет N : (3)343970 [07:19:21]line ИНН: 02508201610067 [07:19:21]line Контрольно-Кассовый Чек [07:19:21]line ПРОДАЖА [07:19:21]line Товар: 4660085515163 [07:19:21]line Шок Батончик Сникерс супер 95/80г [07:19:21]line 1.000 * 85.00 [07:19:21]line = 85.00 [07:19:21]line НДС 12% НСП 1% [07:19:21]line > о реализуемом товаре [07:19:21]line Товар: 48741231 [07:19:21]line Сигареты Winston Super Slims Silver [07:19:21]line 1.000 * 139.00 [07:19:21]line = 139.00 [07:19:21]line НДС 12% НСП 1% [07:19:21]line > о реализуемом товаре [07:19:21]line Товар: 4870001570071 [07:19:21]line Напиток Pepsi 1л [07:19:21]line 1.000 * 110.00 [07:19:21]line = 110.00 [07:19:21]line НДС 12% НСП 1% [07:19:21]line > о реализуемом товаре [07:19:21]line Товар: 4860019001346 [07:19:21]line Вода Боржоми 0,5л ст [07:19:21]line 1.000 * 160.00 [07:19:21]line = 160.00 [07:19:21]line НДС 12% НСП 1% [07:19:21]line > о реализуемом товаре [07:19:21]line Товар: 5449000273680 [07:19:21]line Сок Piko Pulpy красный виноград ПЭТ 0,5л [07:19:21]line 1.000 * 100.00 [07:19:21]line = 100.00 [07:19:21]line НДС 12% НСП 1% [07:19:21]line > о реализуемом товаре [07:19:21]line Товар: 4823077634222 [07:19:21]line Печ LOVITA Джелли Кукис апельсин 135 гр [07:19:21]line 1.000 * 115.00 [07:19:21]line = 115.00 [07:19:21]line НДС 12% НСП 1% [07:19:21]line > о реализуемом товаре [07:19:21]line ИТОГО: 709.00 [07:19:21]line НСП 1% : 6.27 [07:19:21]line НДС 12% : 75.29 [07:19:21]line Наличными: 709.00 [07:19:21]line Безнал.: 0.00 [07:19:21]line Место: АЗС № 90 "Партнер Нефть" [07:19:21]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:19:21]line СНО: Общий режим [07:19:21]line Чек 27 23.09.2024 07:19 [07:19:21]line Смена: 472 ФФД: 1.0 [07:19:21]line ЗНМ: 0300000120 [07:19:21]line РНМ: 0000000000091831 [07:19:21]line Версия ККМ: 001 [07:19:21]line ФМ: 0000000000871830 [07:19:21]line ФД: 115544 [07:19:21]line ФПД: 141798327171556 [07:19:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T071920&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115544&fm=141798327171556&tin=02508201610067®Number=0000000000091831&sum=70900 [07:19:21]OFD Sender: Processing packet 115544 [packets to send 481, broken 480] [07:19:21]ProducePacketName [07:19:21]name=ofd_packets/00115544 [07:19:21]OFD Sender: To server: pG, [07:19:21]CommunicateWithHost lk.salyk.kg:30040 [07:19:21]ConnectInit lk.salyk.kg [07:19:21]line 0 [07:19:21]written 0, free lines is 4095 [07:19:21]Connected sock=10 [07:19: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 38 33 30 84 03 00 00 77 92 7C 03 FB 92 5A 03 01 00 03 00 70 03 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 32 32 06 04 3F 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 F4 14 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 78 16 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 58 C3 01 00 35 04 06 00 80 F6 FE EB B9 E4 11 73 1B 7C A4 CF 94 2C [07:19:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9D 20 47 00 FC 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 38 33 30 10 04 04 00 58 C3 01 00 F4 03 04 00 BC BB F0 66 B6 04 01 00 00 7D EB 8B F7 52 98 CB 89 [07:19:22]CommunicateWithHost err = 0 [07:19:22]CheckOFDResponse [07:19:22]1017 (14) - 77093643461234 [07:19:22]1041 (16) - 0000000000871830 [07:19:22]1040 (4) - 115544 [07:19:22]1012 (4) - 23.09.2024 00:52 [07:19:22]1206 (1) - 0 [07:19:22]OFD Sender: Remove packet 115544 [07:19:22]ProducePacketName [07:19:22]name=ofd_packets/00115544 [07:19:22]NVStorageDeleteData [07:19:22]Write to MH i2c: 01 00 00 00 0A 0A [07:19:22]Write i2c OK [07:19:22]MH_I2C_Read... [07:19:22]Read from MH i2c: 01 [07:19:22]MH_I2C_Read... [07:19:22]Read from MH i2c: 01 07 00 [07:19:22]MH_I2C_Read... [07:19:22]Read from MH i2c: 01 07 00 00 0A 00 00 00 00 00 AA 09 C4 [07:19:22]RasterBufferAndPrint [07:19:22]line [07:19:22]line [07:19:22]line [07:19:22]line [07:19:22]line [07:19:22]written 0, free lines is 2479 [07:19:22]MH_Cut [07:19:22]Write to MH i2c: D1 01 00 07 0A 01 E3 [07:19:22]Write i2c OK [07:19:22]MH_I2C_Read... [07:19:22]Read from MH i2c: D1 [07:19:22]MH_I2C_Read... [07:19:22]Read from MH i2c: D1 01 00 [07:19:22]MH_I2C_Read... [07:19:22]Read from MH i2c: D1 01 00 07 0A 00 E2 [07:19:22]Write to MH i2c: 01 00 00 08 0A 12 [07:19:22]Write i2c OK [07:19:22]MH_I2C_Read... [07:19:22]OFD Sender: No OFD packet to send [07:19:24]*** Cut start [07:19:24]*** Partial cut [07:19:24]*** CUTSNS_PIN = 1 [07:19:24]*** CUTSNS_PIN = 0 [07:19:24]*** Brake cut motor [07:19:25]Read from MH i2c: 01 [07:19:25]MH_I2C_Read... [07:19:25]*** Stop cut motor [07:19:25]*** Cut end [07:19:25]Read from MH i2c: 01 07 00 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: 01 07 00 08 0A 00 00 00 00 00 FF 0F 27 [07:19:25]process_action close_receipt done [07:19:25]requested_data is exist [07:19:25]produce_requested_data [07:19:25]requested_item fm.sn is exist - process it [07:19:25]wFMCommunicate request_size=4 [07:19:25]MH_SAM_APDU [07:19:25]CAPDU: 80 11 00 00 [07:19:25]Write to MH i2c: E2 08 00 09 0A 80 11 00 00 00 00 00 00 8D [07:19:25]Write i2c OK [07:19:25]MH_I2C_Read... [07:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:25]Read from MH i2c: E2 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 17 00 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 17 00 09 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 DB [07:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:19:25]wFMCommunicate OK [07:19:25]requested_item fd.num is exist - process it [07:19:25]SAM_PROTO_GetFieldsCounters [07:19:25]wFMCommunicate request_size=4 [07:19:25]MH_SAM_APDU [07:19:25]CAPDU: 80 13 00 00 [07:19:25]Write to MH i2c: E2 08 00 0A 0A 80 13 00 00 00 00 00 00 90 [07:19:25]Write i2c OK [07:19:25]MH_I2C_Read... [07:19:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:25]Read from MH i2c: E2 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 62 00 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 62 00 0A 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 58 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [07:19: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 58 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:19:25]wFMCommunicate OK [07:19:25]SAM_PROTO_GetFieldsCounters done [07:19:25]requested_item shift.num is exist - process it [07:19:25]requested_item shift.opened is exist - process it [07:19:25]req_shift_opened [07:19:25]FM_GetShiftState [07:19:25]SAM_PROTO_GetShiftState [07:19:25]wFMCommunicate request_size=4 [07:19:25]MH_SAM_APDU [07:19:25]CAPDU: 80 13 01 00 [07:19:25]Write to MH i2c: E2 08 00 0B 0A 80 13 01 00 00 00 00 00 92 [07:19:25]Write i2c OK [07:19:25]MH_I2C_Read... [07:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:25]Read from MH i2c: E2 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 0E 00 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 0E 00 0B 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D3 [07:19:25]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [07:19:25]wFMCommunicate OK [07:19:25]SAM_PROTO_GetShiftState done [07:19:25]FM_GetShiftState done [07:19:25]req_shift_opened done [07:19:25]requested_item shift.open_date is exist - process it [07:19:25]req_shift_open_date [07:19:25]req_shift_open_date done [07:19:25]produce_requested_data done [07:19:25]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115544,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [07:19:25]process_action_free close_receipt [07:19:25]json_value_free [07:19:25]json_value_free done [07:19:25]process_json_proto returns [07:19:25]Send response to host [07:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115544,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [07:19:25]free response buf [07:19:25]execute_script done [07:19:25]execute_script returns [07:19:25]free content buf [07:19:25]Sock 9.Close socket [07:19:25]Sock 9.Thread stoped [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:36]accept exits with 8 [07:20:36]New connection [07:20:36]New thread 3067170148 created [07:20:36]Thread 3067313508 joined [07:20:36]Waiting for new connection... [07:20:36] Sock 8.Parse request [07:20:36]Sock 8.Check first char [07:20:36]Sock 8.First char is OK [07:20:36]request: POST /json_proto HTTP/1.0 [07:20:36]Method: POST [07:20:36]URL: /json_proto [07:20:36]Method is POST - this is cgi request [07:20:36]url: /json_proto [07:20:36]query_string will be loaded in cgi processing [07:20:36]execute_cgi json_proto POST (null) [07:20:36]execute_cgi path=json_proto method=POST [07:20:36]POST find Content-Length [07:20:36]Host: 172.17.41.136:8080 [07:20:36]Content-Length: 646 [07:20:36]Content-Type: application/json [07:20:36] [07:20:36]POST finish read [07:20:36]Found Content-Length = 646 [07:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343971", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:20:36]execute_script... [07:20:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343971", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:20:36]POST & json_proto [07:20:36]process_json_proto [07:20:36]json parsed OK: [07:20:36]protocol is kg_v1.0 [07:20:36]action value=close_receipt [07:20:36]process_action close_receipt [07:20:36]cmd_close_receipt [07:20:36]MH_GetDate [07:20:36]Write to MH i2c: F0 00 00 0C 0A 05 [07:20:36]Write i2c OK [07:20:36]MH_I2C_Read... [07:20:36]Read from MH i2c: F0 [07:20:36]MH_I2C_Read... [07:20:36]Read from MH i2c: F0 09 00 [07:20:36]MH_I2C_Read... [07:20:36]Read from MH i2c: F0 09 00 0C 0A 00 C5 16 F1 66 1B D0 5A 64 E9 [07:20:36]GetLastDocTimeStamp 1727075960 [07:20:36]current date 1727076037 [07:20:36]FM_GetShiftState [07:20:36]SAM_PROTO_GetShiftState [07:20:36]wFMCommunicate request_size=4 [07:20:36]MH_SAM_APDU [07:20:36]CAPDU: 80 13 01 00 [07:20:36]Write to MH i2c: E2 08 00 0D 0A 80 13 01 00 00 00 00 00 94 [07:20:36]Write i2c OK [07:20:36]MH_I2C_Read... [07:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:36]Read from MH i2c: E2 [07:20:36]MH_I2C_Read... [07:20:36]Read from MH i2c: E2 0E 00 [07:20:36]MH_I2C_Read... [07:20:36]Read from MH i2c: E2 0E 00 0D 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D5 [07:20:36]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [07:20:36]wFMCommunicate OK [07:20:36]SAM_PROTO_GetShiftState done [07:20:36]FM_GetShiftState done [07:20:36]opened in 1727052070 [07:20:36]opened+sec_in_day 1727138470 [07:20:36]quantity*price = 26000 [07:20:36]sum+1 = 26001 [07:20:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 28 23.09.2024 07:20 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115545 ФПД: 193529838331179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T072037&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115545&fm=193529838331179&tin=02508201610067®Number=0000000000091831&sum=26000 0 [07:20:37]StoreToDocumentArchive [07:20:37]shift 472 fd 115545 [07:20:37]save to /storage/0472/doc_00115545 [07:20:37]save last doc name /storage/0472/doc_00115545 to /storage/kkm_last_doc_name [07:20:37]save OK [07:20:37]Clear old archive folders... [07:20:37]ProcessDocumentItem done err = 0, tmpTLVsize=282 [07:20:37]tlvbuf is 0121C240 [07:20:37]SAM_PROTO_ClearQueue [07:20:37]wFMCommunicate request_size=4 [07:20:37]MH_SAM_APDU [07:20:37]CAPDU: 80 09 00 00 [07:20:37]Write to MH i2c: E2 08 00 1A 0A 80 09 00 00 00 00 00 00 96 [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:20:37]Read from MH i2c: E2 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 03 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 03 00 1A 0A 00 90 00 98 [07:20:37]RAPDU: 90 00 [07:20:37]wFMCommunicate OK [07:20:37]SAM_PROTO_ClearQueue done [07:20:37]KKMCreateOFDPacket [07:20:37]OFDProtocolAddRootSTLVToBuf [07:20:37]FM_MakeSignedData [07:20:37]FM_MakeSignedData [07:20:37]SAM_PROTO_SignData [07:20:37]wFMCommunicate request_size=4 [07:20:37]MH_SAM_APDU [07:20:37]CAPDU: 80 0D 01 02 [07:20:37]Write to MH i2c: E2 08 00 1B 0A 80 0D 01 02 00 00 00 00 9E [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:20:37]Read from MH i2c: E2 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 03 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 03 00 1B 0A 00 90 00 99 [07:20:37]RAPDU: 90 00 [07:20:37]wFMCommunicate OK [07:20:37]wFMCommunicate request_size=255 [07:20:37]MH_SAM_APDU [07:20:37]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C5 16 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 [07:20:37]Write to MH i2c: E2 02 01 1C 0A 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C5 16 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 00 00 8B [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:37]Read from MH i2c: E2 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 03 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 03 00 1C 0A 00 90 00 9A [07:20:37]RAPDU: 90 00 [07:20:37]wFMCommunicate OK [07:20:37]wFMCommunicate request_size=41 [07:20:37]MH_SAM_APDU [07:20:37]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 59 C3 01 00 35 04 06 00 B0 03 AD 44 65 2B [07:20:37]Write to MH i2c: E2 2C 00 1D 0A 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 59 C3 01 00 35 04 06 00 B0 03 AD 44 65 2B 00 00 BC [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:37]Read from MH i2c: E2 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 03 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 03 00 1D 0A 00 90 00 9B [07:20:37]RAPDU: 90 00 [07:20:37]wFMCommunicate OK [07:20:37]wFMCommunicate request_size=4 [07:20:37]MH_SAM_APDU [07:20:37]CAPDU: 80 0D 03 02 [07:20:37]Write to MH i2c: E2 08 00 1E 0A 80 0D 03 02 00 00 00 00 A3 [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:20:37]Read from MH i2c: E2 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 0B 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 0B 00 1E 0A 00 47 9F D9 AD 14 7F 44 33 90 00 1A [07:20:37]RAPDU: 47 9F D9 AD 14 7F 44 33 90 00 [07:20:37]wFMCommunicate OK [07:20:37]SAM_PROTO_SignData done [07:20:37]FM_MakeSignedData done [07:20:37]CreateOFDProtocolMessage [07:20:37]wFMCommunicate request_size=4 [07:20:37]MH_SAM_APDU [07:20:37]CAPDU: 80 11 00 00 [07:20:37]Write to MH i2c: E2 08 00 1F 0A 80 11 00 00 00 00 00 00 A3 [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:37]Read from MH i2c: E2 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 17 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 17 00 1F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F1 [07:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:20:37]wFMCommunicate OK [07:20:37]CreateOFDProtocolMessage done [07:20:37]OFDSenderStorePacket 115545 [07:20:37]StoreOFDPacket docnum=115545 [07:20:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 01 00 00 A5 71 26 01 D1 99 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C5 16 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 59 C3 01 00 35 04 06 00 B0 03 AD 44 65 2B 47 9F D9 AD 14 7F 44 33 [07:20:37]CheckFolder [07:20:37]dirname=/storage/ofd_packets [07:20:37]CheckFolder done [07:20:37]ProducePacketName [07:20:37]name=ofd_packets/00115545 [07:20:37]NVStorageSaveData ofd_packets/00115545 [07:20:37]File name is /storage/ofd_packets/00115545 [07:20:37]Write 332 bytes [07:20:37]NVStorageSaveData done [07:20:37]OFDSenderStorePacket done [07:20:37]KKMCreateOFDPacket done [07:20:37]NVStorageSaveData kkm_last_timestamp [07:20:37]File name is /storage/kkm_last_timestamp [07:20:37]Write 4 bytes [07:20:37]NVStorageSaveData done [07:20:37]ExternCall_PrintAddStr [07:20:37]wPrintStart [07:20:37]Write to MH i2c: 01 00 00 20 0A 2A [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: 01 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: 01 07 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: 01 07 00 20 0A 00 00 00 00 00 FF 0F 3F [07:20:37]RasterBufferAndPrint [07:20:37]line Счет N : (3)343971 [07:20:37]line ИНН: 02508201610067 [07:20:37]line Контрольно-Кассовый Чек [07:20:37]line ПРОДАЖА [07:20:37]line Товар: 2000036220012 [07:20:37]line Кофе Капучино XL(GABB TRADE) [07:20:37]line 2.000 * 130.00 [07:20:37]line = 260.00 [07:20:37]line НДС 12% НСП 1% [07:20:37]line > о реализуемом товаре [07:20:37]line ИТОГО: 260.00 [07:20:37]line НСП 1% : 2.30 [07:20:37]line НДС 12% : 27.61 [07:20:37]line Наличными: 260.00 [07:20:37]line Безнал.: 0.00 [07:20:37]line Место: АЗС № 90 "Партнер Нефть" [07:20:37]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:20:37]line СНО: Общий режим [07:20:37]line Чек 28 23.09.2024 07:20 [07:20:37]line Смена: 472 ФФД: 1.0 [07:20:37]line ЗНМ: 0300000120 [07:20:37]line РНМ: 0000000000091831 [07:20:37]line Версия ККМ: 001 [07:20:37]line ФМ: 0000000000871830 [07:20:37]line ФД: 115545 [07:20:37]line ФПД: 193529838331179 [07:20:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T072037&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115545&fm=193529838331179&tin=02508201610067®Number=0000000000091831&sum=26000 [07:20:38]line 0 [07:20:38]OFD Sender: Processing packet 115545 [packets to send 481, broken 480] [07:20:38]ProducePacketName [07:20:38]name=ofd_packets/00115545 [07:20:38]OFD Sender: To server: pG, [07:20:38]CommunicateWithHost lk.salyk.kg:30040 [07:20:38]ConnectInit lk.salyk.kg [07:20:38]written 0, free lines is 4095 [07:20:38]Connected sock=10 [07:20: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 38 33 30 2E 01 00 00 A5 71 26 01 D1 99 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C5 16 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 59 C3 01 00 35 04 06 00 B0 03 AD 44 65 2B 47 9F D9 AD 14 7F 44 33 [07:20:38]Write to MH i2c: 01 00 00 48 0A 52 [07:20:38]Write i2c OK [07:20:38]MH_I2C_Read... [07:20:38]Read from MH i2c: 01 [07:20:38]MH_I2C_Read... [07:20:38]Read from MH i2c: 01 07 00 [07:20:38]MH_I2C_Read... [07:20:38]Read from MH i2c: 01 07 00 48 0A 00 00 00 00 00 62 0C C7 [07:20:38]RasterBufferAndPrint [07:20:38]line [07:20:38]line [07:20:38]line [07:20:38]line [07:20:38]line [07:20:38]written 0, free lines is 3174 [07:20:38]MH_Cut [07:20:38]Write to MH i2c: D1 01 00 4F 0A 01 2B [07:20:38]Write i2c OK [07:20:38]MH_I2C_Read... [07:20:38]Read from MH i2c: D1 [07:20:38]MH_I2C_Read... [07:20:38]Read from MH i2c: D1 01 00 [07:20:38]MH_I2C_Read... [07:20:38]Read from MH i2c: D1 01 00 4F 0A 00 2A [07:20:38]Write to MH i2c: 01 00 00 50 0A 5A [07:20:38]Write i2c OK [07:20:38]MH_I2C_Read... [07:20:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 68 FE 47 00 1D 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 38 33 30 10 04 04 00 59 C3 01 00 F4 03 04 00 09 BC F0 66 B6 04 01 00 00 91 F9 1C B5 90 32 96 66 [07:20:38]CommunicateWithHost err = 0 [07:20:38]CheckOFDResponse [07:20:38]1017 (14) - 77093643461234 [07:20:38]1041 (16) - 0000000000871830 [07:20:38]1040 (4) - 115545 [07:20:38]1012 (4) - 23.09.2024 00:53 [07:20:38]1206 (1) - 0 [07:20:38]OFD Sender: Remove packet 115545 [07:20:38]ProducePacketName [07:20:38]name=ofd_packets/00115545 [07:20:38]NVStorageDeleteData [07:20:39]OFD Sender: No OFD packet to send [07:20:39]*** Cut start [07:20:39]*** Partial cut [07:20:39]*** CUTSNS_PIN = 1 [07:20:40]*** CUTSNS_PIN = 0 [07:20:40]*** Brake cut motor [07:20:40]Read from MH i2c: 01 [07:20:40]MH_I2C_Read... [07:20:40]*** Stop cut motor [07:20:40]*** Cut end [07:20:40]Read from MH i2c: 01 07 00 [07:20:40]MH_I2C_Read... [07:20:40]Read from MH i2c: 01 07 00 50 0A 00 00 00 00 00 FF 0F 6F [07:20:40]process_action close_receipt done [07:20:40]requested_data is exist [07:20:40]produce_requested_data [07:20:40]requested_item fm.sn is exist - process it [07:20:40]wFMCommunicate request_size=4 [07:20:40]MH_SAM_APDU [07:20:40]CAPDU: 80 11 00 00 [07:20:40]Write to MH i2c: E2 08 00 51 0A 80 11 00 00 00 00 00 00 D5 [07:20:40]Write i2c OK [07:20:40]MH_I2C_Read... [07:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:40]Read from MH i2c: E2 [07:20:40]MH_I2C_Read... [07:20:40]Read from MH i2c: E2 17 00 [07:20:40]MH_I2C_Read... [07:20:40]Read from MH i2c: E2 17 00 51 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 23 [07:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:20:40]wFMCommunicate OK [07:20:40]requested_item fd.num is exist - process it [07:20:40]SAM_PROTO_GetFieldsCounters [07:20:40]wFMCommunicate request_size=4 [07:20:40]MH_SAM_APDU [07:20:40]CAPDU: 80 13 00 00 [07:20:40]Write to MH i2c: E2 08 00 52 0A 80 13 00 00 00 00 00 00 D8 [07:20:40]Write i2c OK [07:20:40]MH_I2C_Read... [07:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:20:40]Read from MH i2c: E2 [07:20:40]MH_I2C_Read... [07:20:40]Read from MH i2c: E2 62 00 [07:20:40]MH_I2C_Read... [07:20:40]Read from MH i2c: E2 62 00 52 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 59 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [07:20: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 59 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:20:40]wFMCommunicate OK [07:20:40]SAM_PROTO_GetFieldsCounters done [07:20:40]requested_item shift.num is exist - process it [07:20:40]requested_item shift.opened is exist - process it [07:20:40]req_shift_opened [07:20:40]FM_GetShiftState [07:20:40]SAM_PROTO_GetShiftState [07:20:40]wFMCommunicate request_size=4 [07:20:40]MH_SAM_APDU [07:20:40]CAPDU: 80 13 01 00 [07:20:40]Write to MH i2c: E2 08 00 53 0A 80 13 01 00 00 00 00 00 DA [07:20:40]Write i2c OK [07:20:40]MH_I2C_Read... [07:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:40]Read from MH i2c: E2 [07:20:40]MH_I2C_Read... [07:20:40]Read from MH i2c: E2 0E 00 [07:20:40]MH_I2C_Read... [07:20:40]Read from MH i2c: E2 0E 00 53 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1B [07:20:40]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [07:20:40]wFMCommunicate OK [07:20:40]SAM_PROTO_GetShiftState done [07:20:40]FM_GetShiftState done [07:20:40]req_shift_opened done [07:20:40]requested_item shift.open_date is exist - process it [07:20:40]req_shift_open_date [07:20:40]req_shift_open_date done [07:20:40]produce_requested_data done [07:20:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115545,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [07:20:40]process_action_free close_receipt [07:20:40]json_value_free [07:20:40]json_value_free done [07:20:40]process_json_proto returns [07:20:40]Send response to host [07:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115545,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [07:20:40]free response buf [07:20:40]execute_script done [07:20:40]execute_script returns [07:20:40]free content buf [07:20:40]Sock 8.Close socket [07:20:40]Sock 8.Thread stoped [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:50]accept exits with 9 [07:50:50]New connection [07:50:50]New thread 3067313508 created [07:50:50]Thread 3067170148 joined [07:50:50]Waiting for new connection... [07:50:50] Sock 9.Parse request [07:50:50]Sock 9.Check first char [07:50:50]Sock 9.First char is OK [07:50:50]request: POST /json_proto HTTP/1.0 [07:50:50]Method: POST [07:50:50]URL: /json_proto [07:50:50]Method is POST - this is cgi request [07:50:50]url: /json_proto [07:50:50]query_string will be loaded in cgi processing [07:50:50]execute_cgi json_proto POST (null) [07:50:50]execute_cgi path=json_proto method=POST [07:50:50]POST find Content-Length [07:50:50]Host: 172.17.41.136:8080 [07:50:50]Content-Length: 756 [07:50:50]Content-Type: application/json [07:50:50] [07:50:50]POST finish read [07:50:50]Found Content-Length = 756 [07:50:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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\u000A30052205", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:50]execute_script... [07:50: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)24617414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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\u000A30052205", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:50]POST & json_proto [07:50:50]process_json_proto [07:50:50]json parsed OK: [07:50:50]protocol is kg_v1.0 [07:50:50]action value=close_receipt [07:50:50]process_action close_receipt [07:50:50]cmd_close_receipt [07:50:50]MH_GetDate [07:50:50]Write to MH i2c: F0 00 00 54 0A 4D [07:50:50]Write i2c OK [07:50:50]MH_I2C_Read... [07:50:50]Read from MH i2c: F0 [07:50:50]MH_I2C_Read... [07:50:50]Read from MH i2c: F0 09 00 [07:50:50]MH_I2C_Read... [07:50:50]Read from MH i2c: F0 09 00 54 0A 00 DC 1D F1 66 1B D0 5A 64 4F [07:50:50]GetLastDocTimeStamp 1727076037 [07:50:50]current date 1727077852 [07:50:50]FM_GetShiftState [07:50:50]SAM_PROTO_GetShiftState [07:50:50]wFMCommunicate request_size=4 [07:50:50]MH_SAM_APDU [07:50:50]CAPDU: 80 13 01 00 [07:50:50]Write to MH i2c: E2 08 00 55 0A 80 13 01 00 00 00 00 00 DC [07:50:50]Write i2c OK [07:50:50]MH_I2C_Read... [07:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:50]Read from MH i2c: E2 [07:50:50]MH_I2C_Read... [07:50:50]Read from MH i2c: E2 0E 00 [07:50:50]MH_I2C_Read... [07:50:50]Read from MH i2c: E2 0E 00 55 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1D [07:50:50]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [07:50:50]wFMCommunicate OK [07:50:50]SAM_PROTO_GetShiftState done [07:50:50]FM_GetShiftState done [07:50:50]opened in 1727052070 [07:50:50]opened+sec_in_day 1727138470 [07:50:50]quantity*price = 0 [07:50:50]sum+1 = 1 [07:50:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 29 23.09.2024 07:50 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30052205 ФМ: 0000000000871830 ФД: 115546 ФПД: 92313407743546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T075052&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115546&fm=92313407743546&tin=02508201610067®Number=0000000000091831&sum=0 [07:50:51]StoreToDocumentArchive [07:50:51]shift 472 fd 115546 [07:50:51]save to /storage/0472/doc_00115546 [07:50:51]save last doc name /storage/0472/doc_00115546 to /storage/kkm_last_doc_name [07:50:51]save OK [07:50:51]Clear old archive folders... [07:50:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:50:51]tlvbuf is 011FC390 [07:50:51]SAM_PROTO_ClearQueue [07:50:51]wFMCommunicate request_size=4 [07:50:51]MH_SAM_APDU [07:50:51]CAPDU: 80 09 00 00 [07:50:51]Write to MH i2c: E2 08 00 62 0A 80 09 00 00 00 00 00 00 DE [07:50:51]Write i2c OK [07:50:51]MH_I2C_Read... [07:50:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:51]Read from MH i2c: E2 [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: E2 03 00 [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: E2 03 00 62 0A 00 90 00 E0 [07:50:51]RAPDU: 90 00 [07:50:51]wFMCommunicate OK [07:50:51]SAM_PROTO_ClearQueue done [07:50:51]KKMCreateOFDPacket [07:50:51]OFDProtocolAddRootSTLVToBuf [07:50:51]FM_MakeSignedData [07:50:51]FM_MakeSignedData [07:50:51]SAM_PROTO_SignData [07:50:51]wFMCommunicate request_size=4 [07:50:51]MH_SAM_APDU [07:50:51]CAPDU: 80 0D 01 02 [07:50:51]Write to MH i2c: E2 08 00 63 0A 80 0D 01 02 00 00 00 00 E6 [07:50:51]Write i2c OK [07:50:51]MH_I2C_Read... [07:50:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:51]Read from MH i2c: E2 [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: E2 03 00 [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: E2 03 00 63 0A 00 90 00 E1 [07:50:51]RAPDU: 90 00 [07:50:51]wFMCommunicate OK [07:50:51]wFMCommunicate request_size=255 [07:50:51]MH_SAM_APDU [07:50:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1D 00 00 00 F4 03 04 00 DC 1D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5A C3 01 00 35 04 06 00 53 [07:50:51]Write to MH i2c: E2 02 01 64 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1D 00 00 00 F4 03 04 00 DC 1D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5A C3 01 00 35 04 06 00 53 00 00 71 [07:50:51]Write i2c OK [07:50:51]MH_I2C_Read... [07:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:52]Read from MH i2c: E2 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 03 00 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 03 00 64 0A 00 90 00 E2 [07:50:52]RAPDU: 90 00 [07:50:52]wFMCommunicate OK [07:50:52]wFMCommunicate request_size=10 [07:50:52]MH_SAM_APDU [07:50:52]CAPDU: 80 0D 02 02 05 F5 63 E0 66 3A [07:50:52]Write to MH i2c: E2 0D 00 65 0A 80 0D 02 02 05 00 F5 63 E0 66 3A 00 00 CB [07:50:52]Write i2c OK [07:50:52]MH_I2C_Read... [07:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:52]Read from MH i2c: E2 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 03 00 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 03 00 65 0A 00 90 00 E3 [07:50:52]RAPDU: 90 00 [07:50:52]wFMCommunicate OK [07:50:52]wFMCommunicate request_size=4 [07:50:52]MH_SAM_APDU [07:50:52]CAPDU: 80 0D 03 02 [07:50:52]Write to MH i2c: E2 08 00 66 0A 80 0D 03 02 00 00 00 00 EB [07:50:52]Write i2c OK [07:50:52]MH_I2C_Read... [07:50:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:52]Read from MH i2c: E2 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 0B 00 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 0B 00 66 0A 00 51 FA 6D 31 A0 8D 87 54 90 00 DD [07:50:52]RAPDU: 51 FA 6D 31 A0 8D 87 54 90 00 [07:50:52]wFMCommunicate OK [07:50:52]SAM_PROTO_SignData done [07:50:52]FM_MakeSignedData done [07:50:52]CreateOFDProtocolMessage [07:50:52]wFMCommunicate request_size=4 [07:50:52]MH_SAM_APDU [07:50:52]CAPDU: 80 11 00 00 [07:50:52]Write to MH i2c: E2 08 00 67 0A 80 11 00 00 00 00 00 00 EB [07:50:52]Write i2c OK [07:50:52]MH_I2C_Read... [07:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:52]Read from MH i2c: E2 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: E2 17 00 [07:50:52]MH_I2C_Read... [07:50:52]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 38 33 30 90 00 39 [07:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:50:52]wFMCommunicate OK [07:50:52]CreateOFDProtocolMessage done [07:50:52]OFDSenderStorePacket 115546 [07:50:52]StoreOFDPacket docnum=115546 [07:50:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 54 8F 07 01 78 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1D 00 00 00 F4 03 04 00 DC 1D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5A C3 01 00 35 04 06 00 53 F5 63 E0 66 3A 51 FA 6D 31 A0 8D 87 54 [07:50:52]CheckFolder [07:50:52]dirname=/storage/ofd_packets [07:50:52]CheckFolder done [07:50:52]ProducePacketName [07:50:52]name=ofd_packets/00115546 [07:50:52]NVStorageSaveData ofd_packets/00115546 [07:50:52]File name is /storage/ofd_packets/00115546 [07:50:52]Write 301 bytes [07:50:52]NVStorageSaveData done [07:50:52]OFDSenderStorePacket done [07:50:52]KKMCreateOFDPacket done [07:50:52]NVStorageSaveData kkm_last_timestamp [07:50:52]File name is /storage/kkm_last_timestamp [07:50:52]Write 4 bytes [07:50:52]NVStorageSaveData done [07:50:52]ExternCall_PrintAddStr [07:50:52]wPrintStart [07:50:52]Write to MH i2c: 01 00 00 68 0A 72 [07:50:52]Write i2c OK [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: 01 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: 01 07 00 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: 01 07 00 68 0A 00 00 00 00 00 FF 0F 87 [07:50:52]RasterBufferAndPrint [07:50:52]line Счет N : (1)24617414 [07:50:52]line ИНН: 02508201610067 [07:50:52]line Контрольно-Кассовый Чек [07:50:52]line ПРОДАЖА [07:50:52]line ТРК (МРК, ГНК) : 53 [07:50:52]line Товар: 2710124130 [07:50:52]line Аи-92-К-5 [07:50:52]line 15.000 * 0.00 [07:50:52]line = 0.00 [07:50:52]line НДС 12% НСП 1% [07:50:52]line > о реализуемом товаре [07:50:52]line ИТОГО: 0.00 [07:50:52]line НСП 1% : 0.00 [07:50:52]line НДС 12% : 0.00 [07:50:52]line Наличными: 0.00 [07:50:52]line Безнал.: 0.00 [07:50:52]line Место: АЗС № 90 "Партнер Нефть" [07:50:52]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:50:52]line СНО: Общий режим [07:50:52]line Чек 29 23.09.2024 07:50 [07:50:52]line Смена: 472 ФФД: 1.0 [07:50:52]line ЗНМ: 0300000120 [07:50:52]line РНМ: 0000000000091831 [07:50:52]line Версия ККМ: 001 [07:50:52]line Талоны: ТК ГПНА Online [07:50:52]line 30052205 [07:50:52]line ФМ: 0000000000871830 [07:50:52]line ФД: 115546 [07:50:52]line ФПД: 92313407743546 [07:50:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T075052&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115546&fm=92313407743546&tin=02508201610067®Number=0000000000091831&sum=0 [07:50:52]written 0, free lines is 4095 [07:50:52]OFD Sender: Processing packet 115546 [packets to send 481, broken 480] [07:50:52]ProducePacketName [07:50:52]name=ofd_packets/00115546 [07:50:52]OFD Sender: To server: pG, [07:50:52]CommunicateWithHost lk.salyk.kg:30040 [07:50:52]ConnectInit lk.salyk.kg [07:50:52]Connected sock=10 [07:50:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 54 8F 07 01 78 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1D 00 00 00 F4 03 04 00 DC 1D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5A C3 01 00 35 04 06 00 53 F5 63 E0 66 3A 51 FA 6D 31 A0 8D 87 54 [07:50:52]Write to MH i2c: 01 00 00 91 0A 9B [07:50:52]Write i2c OK [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: 01 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: 01 07 00 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: 01 07 00 91 0A 00 00 00 00 00 5B 0C 09 [07:50:52]RasterBufferAndPrint [07:50:52]line [07:50:52]line [07:50:52]line [07:50:52]line [07:50:52]line [07:50:52]written 0, free lines is 3168 [07:50:52]MH_Cut [07:50:52]Write to MH i2c: D1 01 00 98 0A 01 74 [07:50:52]Write i2c OK [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: D1 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: D1 01 00 [07:50:52]MH_I2C_Read... [07:50:52]Read from MH i2c: D1 01 00 98 0A 00 73 [07:50:52]Write to MH i2c: 01 00 00 99 0A A3 [07:50:52]Write i2c OK [07:50:52]MH_I2C_Read... [07:50:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D8 48 47 00 CE C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5A C3 01 00 F4 03 04 00 1F C3 F0 66 B6 04 01 00 00 9A DF 41 4D 84 64 37 81 [07:50:52]CommunicateWithHost err = 0 [07:50:52]CheckOFDResponse [07:50:52]1017 (14) - 77093643461234 [07:50:52]1041 (16) - 0000000000871830 [07:50:52]1040 (4) - 115546 [07:50:52]1012 (4) - 23.09.2024 01:23 [07:50:52]1206 (1) - 0 [07:50:52]OFD Sender: Remove packet 115546 [07:50:52]ProducePacketName [07:50:52]name=ofd_packets/00115546 [07:50:52]NVStorageDeleteData [07:50:53]OFD Sender: No OFD packet to send [07:50:54]*** Cut start [07:50:54]*** Partial cut [07:50:54]*** CUTSNS_PIN = 1 [07:50:54]*** CUTSNS_PIN = 0 [07:50:54]*** Brake cut motor [07:50:54]Read from MH i2c: 01 [07:50:54]MH_I2C_Read... [07:50:54]*** Stop cut motor [07:50:54]*** Cut end [07:50:54]Read from MH i2c: 01 07 00 [07:50:54]MH_I2C_Read... [07:50:54]Read from MH i2c: 01 07 00 99 0A 00 00 00 00 00 FF 0F B8 [07:50:54]process_action close_receipt done [07:50:54]requested_data is exist [07:50:54]produce_requested_data [07:50:54]requested_item fm.sn is exist - process it [07:50:54]wFMCommunicate request_size=4 [07:50:54]MH_SAM_APDU [07:50:54]CAPDU: 80 11 00 00 [07:50:54]Write to MH i2c: E2 08 00 9A 0A 80 11 00 00 00 00 00 00 1E [07:50:54]Write i2c OK [07:50:54]MH_I2C_Read... [07:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:54]Read from MH i2c: E2 [07:50:54]MH_I2C_Read... [07:50:54]Read from MH i2c: E2 17 00 [07:50:54]MH_I2C_Read... [07:50:54]Read from MH i2c: E2 17 00 9A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6C [07:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:50:54]wFMCommunicate OK [07:50:54]requested_item fd.num is exist - process it [07:50:54]SAM_PROTO_GetFieldsCounters [07:50:54]wFMCommunicate request_size=4 [07:50:54]MH_SAM_APDU [07:50:54]CAPDU: 80 13 00 00 [07:50:54]Write to MH i2c: E2 08 00 9B 0A 80 13 00 00 00 00 00 00 21 [07:50:54]Write i2c OK [07:50:54]MH_I2C_Read... [07:50:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:54]Read from MH i2c: E2 [07:50:54]MH_I2C_Read... [07:50:54]Read from MH i2c: E2 62 00 [07:50:54]MH_I2C_Read... [07:50:54]Read from MH i2c: E2 62 00 9B 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5A C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [07:50: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5A C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:50:54]wFMCommunicate OK [07:50:54]SAM_PROTO_GetFieldsCounters done [07:50:54]requested_item shift.num is exist - process it [07:50:54]requested_item shift.opened is exist - process it [07:50:54]req_shift_opened [07:50:54]FM_GetShiftState [07:50:54]SAM_PROTO_GetShiftState [07:50:54]wFMCommunicate request_size=4 [07:50:54]MH_SAM_APDU [07:50:54]CAPDU: 80 13 01 00 [07:50:54]Write to MH i2c: E2 08 00 9C 0A 80 13 01 00 00 00 00 00 23 [07:50:54]Write i2c OK [07:50:54]MH_I2C_Read... [07:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:55]Read from MH i2c: E2 [07:50:55]MH_I2C_Read... [07:50:55]Read from MH i2c: E2 0E 00 [07:50:55]MH_I2C_Read... [07:50:55]Read from MH i2c: E2 0E 00 9C 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 64 [07:50:55]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [07:50:55]wFMCommunicate OK [07:50:55]SAM_PROTO_GetShiftState done [07:50:55]FM_GetShiftState done [07:50:55]req_shift_opened done [07:50:55]requested_item shift.open_date is exist - process it [07:50:55]req_shift_open_date [07:50:55]req_shift_open_date done [07:50:55]produce_requested_data done [07:50:55]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115546,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [07:50:55]process_action_free close_receipt [07:50:55]json_value_free [07:50:55]json_value_free done [07:50:55]process_json_proto returns [07:50:55]Send response to host [07:50:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115546,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [07:50:55]free response buf [07:50:55]execute_script done [07:50:55]execute_script returns [07:50:55]free content buf [07:50:55]Sock 9.Close socket [07:50:55]Sock 9.Thread stoped [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]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:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:41]accept exits with 8 [07:59:41]New connection [07:59:41]New thread 3067170148 created [07:59:41]Thread 3067313508 joined [07:59:41]Waiting for new connection... [07:59:41] Sock 8.Parse request [07:59:41]Sock 8.Check first char [07:59:41]Sock 8.First char is OK [07:59:41]request: POST /json_proto HTTP/1.0 [07:59:41]Method: POST [07:59:41]URL: /json_proto [07:59:41]Method is POST - this is cgi request [07:59:41]url: /json_proto [07:59:41]query_string will be loaded in cgi processing [07:59:41]execute_cgi json_proto POST (null) [07:59:41]execute_cgi path=json_proto method=POST [07:59:41]POST find Content-Length [07:59:41]Host: 172.17.41.136:8080 [07:59:41]Content-Length: 756 [07:59:41]Content-Type: application/json [07:59:41] [07:59:41]POST finish read [07:59:41]Found Content-Length = 756 [07:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30128112", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:41]execute_script... [07:59:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30128112", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:41]POST & json_proto [07:59:41]process_json_proto [07:59:41]json parsed OK: [07:59:41]protocol is kg_v1.0 [07:59:41]action value=close_receipt [07:59:41]process_action close_receipt [07:59:41]cmd_close_receipt [07:59:41]MH_GetDate [07:59:41]Write to MH i2c: F0 00 00 9D 0A 96 [07:59:41]Write i2c OK [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: F0 [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: F0 09 00 [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: F0 09 00 9D 0A 00 EF 1F F1 66 1B D0 5A 64 AD [07:59:41]GetLastDocTimeStamp 1727077852 [07:59:41]current date 1727078383 [07:59:41]FM_GetShiftState [07:59:41]SAM_PROTO_GetShiftState [07:59:41]wFMCommunicate request_size=4 [07:59:41]MH_SAM_APDU [07:59:41]CAPDU: 80 13 01 00 [07:59:41]Write to MH i2c: E2 08 00 9E 0A 80 13 01 00 00 00 00 00 25 [07:59:41]Write i2c OK [07:59:41]MH_I2C_Read... [07:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:41]Read from MH i2c: E2 [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: E2 0E 00 [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: E2 0E 00 9E 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 66 [07:59:41]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [07:59:41]wFMCommunicate OK [07:59:41]SAM_PROTO_GetShiftState done [07:59:41]FM_GetShiftState done [07:59:41]opened in 1727052070 [07:59:41]opened+sec_in_day 1727138470 [07:59:41]quantity*price = 0 [07:59:41]sum+1 = 1 [07:59:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 30 23.09.2024 07:59 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30128112 ФМ: 0000000000871830 ФД: 115547 ФПД: 184683497077400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T075943&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115547&fm=184683497077400&tin=02508201610067®Number=0000000000091831&sum=0 [07:59:42]StoreToDocumentArchive [07:59:42]shift 472 fd 115547 [07:59:42]save to /storage/0472/doc_00115547 [07:59:42]save last doc name /storage/0472/doc_00115547 to /storage/kkm_last_doc_name [07:59:42]save OK [07:59:42]Clear old archive folders... [07:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:59:42]tlvbuf is 011A8380 [07:59:42]SAM_PROTO_ClearQueue [07:59:42]wFMCommunicate request_size=4 [07:59:42]MH_SAM_APDU [07:59:42]CAPDU: 80 09 00 00 [07:59:42]Write to MH i2c: E2 08 00 AB 0A 80 09 00 00 00 00 00 00 27 [07:59:42]Write i2c OK [07:59:42]MH_I2C_Read... [07:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:42]Read from MH i2c: E2 [07:59:42]MH_I2C_Read... [07:59:42]Read from MH i2c: E2 03 00 [07:59:42]MH_I2C_Read... [07:59:42]Read from MH i2c: E2 03 00 AB 0A 00 90 00 29 [07:59:42]RAPDU: 90 00 [07:59:42]wFMCommunicate OK [07:59:42]SAM_PROTO_ClearQueue done [07:59:42]KKMCreateOFDPacket [07:59:42]OFDProtocolAddRootSTLVToBuf [07:59:42]FM_MakeSignedData [07:59:42]FM_MakeSignedData [07:59:42]SAM_PROTO_SignData [07:59:42]wFMCommunicate request_size=4 [07:59:42]MH_SAM_APDU [07:59:42]CAPDU: 80 0D 01 02 [07:59:42]Write to MH i2c: E2 08 00 AC 0A 80 0D 01 02 00 00 00 00 2F [07:59:42]Write i2c OK [07:59:42]MH_I2C_Read... [07:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:42]Read from MH i2c: E2 [07:59:42]MH_I2C_Read... [07:59:42]Read from MH i2c: E2 03 00 [07:59:42]MH_I2C_Read... [07:59:42]Read from MH i2c: E2 03 00 AC 0A 00 90 00 2A [07:59:42]RAPDU: 90 00 [07:59:42]wFMCommunicate OK [07:59:42]wFMCommunicate request_size=255 [07:59:42]MH_SAM_APDU [07:59:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 EF 1F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5B C3 01 00 35 04 06 00 A7 [07:59:42]Write to MH i2c: E2 02 01 AD 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 EF 1F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5B C3 01 00 35 04 06 00 A7 00 00 C1 [07:59:42]Write i2c OK [07:59:42]MH_I2C_Read... [07:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:42]Read from MH i2c: E2 [07:59:42]MH_I2C_Read... [07:59:42]Read from MH i2c: E2 03 00 [07:59:42]MH_I2C_Read... [07:59:42]Read from MH i2c: E2 03 00 AD 0A 00 90 00 2B [07:59:42]RAPDU: 90 00 [07:59:42]wFMCommunicate OK [07:59:42]wFMCommunicate request_size=10 [07:59:42]MH_SAM_APDU [07:59:42]CAPDU: 80 0D 02 02 05 F7 FA 3D 3A 98 [07:59:42]Write to MH i2c: E2 0D 00 AE 0A 80 0D 02 02 05 00 F7 FA 3D 3A 98 00 00 3C [07:59:42]Write i2c OK [07:59:42]MH_I2C_Read... [07:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:42]Read from MH i2c: E2 [07:59:42]MH_I2C_Read... [07:59:42]Read from MH i2c: E2 03 00 [07:59:42]MH_I2C_Read... [07:59:42]Read from MH i2c: E2 03 00 AE 0A 00 90 00 2C [07:59:42]RAPDU: 90 00 [07:59:42]wFMCommunicate OK [07:59:42]wFMCommunicate request_size=4 [07:59:42]MH_SAM_APDU [07:59:42]CAPDU: 80 0D 03 02 [07:59:42]Write to MH i2c: E2 08 00 AF 0A 80 0D 03 02 00 00 00 00 34 [07:59:42]Write i2c OK [07:59:42]MH_I2C_Read... [07:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:42]Read from MH i2c: E2 [07:59:42]MH_I2C_Read... [07:59:42]Read from MH i2c: E2 0B 00 [07:59:42]MH_I2C_Read... [07:59:42]Read from MH i2c: E2 0B 00 AF 0A 00 F0 6C BB A8 DE 0E 26 FC 90 00 02 [07:59:42]RAPDU: F0 6C BB A8 DE 0E 26 FC 90 00 [07:59:42]wFMCommunicate OK [07:59:42]SAM_PROTO_SignData done [07:59:42]FM_MakeSignedData done [07:59:42]CreateOFDProtocolMessage [07:59:42]wFMCommunicate request_size=4 [07:59:42]MH_SAM_APDU [07:59:42]CAPDU: 80 11 00 00 [07:59:42]Write to MH i2c: E2 08 00 B0 0A 80 11 00 00 00 00 00 00 34 [07:59:42]Write i2c OK [07:59:42]MH_I2C_Read... [07:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:42]Read from MH i2c: E2 [07:59:42]MH_I2C_Read... [07:59:42]Read from MH i2c: E2 17 00 [07:59:42]MH_I2C_Read... [07:59:42]Read from MH i2c: E2 17 00 B0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 82 [07:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:59:42]wFMCommunicate OK [07:59:42]CreateOFDProtocolMessage done [07:59:42]OFDSenderStorePacket 115547 [07:59:42]StoreOFDPacket docnum=115547 [07:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 16 1F 07 01 EC C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 EF 1F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5B C3 01 00 35 04 06 00 A7 F7 FA 3D 3A 98 F0 6C BB A8 DE 0E 26 FC [07:59:42]CheckFolder [07:59:42]dirname=/storage/ofd_packets [07:59:42]CheckFolder done [07:59:42]ProducePacketName [07:59:42]name=ofd_packets/00115547 [07:59:42]NVStorageSaveData ofd_packets/00115547 [07:59:42]File name is /storage/ofd_packets/00115547 [07:59:42]Write 301 bytes [07:59:42]NVStorageSaveData done [07:59:42]OFDSenderStorePacket done [07:59:42]KKMCreateOFDPacket done [07:59:42]NVStorageSaveData kkm_last_timestamp [07:59:42]File name is /storage/kkm_last_timestamp [07:59:42]Write 4 bytes [07:59:42]NVStorageSaveData done [07:59:42]ExternCall_PrintAddStr [07:59:42]wPrintStart [07:59:42]Write to MH i2c: 01 00 00 B1 0A BB [07:59:42]Write i2c OK [07:59:42]MH_I2C_Read... [07:59:42]Read from MH i2c: 01 [07:59:42]MH_I2C_Read... [07:59:42]Read from MH i2c: 01 07 00 [07:59:42]MH_I2C_Read... [07:59:42]Read from MH i2c: 01 07 00 B1 0A 00 00 00 00 00 FF 0F D0 [07:59:42]RasterBufferAndPrint [07:59:42]line Счет N : (1)24617420 [07:59:42]line ИНН: 02508201610067 [07:59:42]line Контрольно-Кассовый Чек [07:59:42]line ПРОДАЖА [07:59:42]line ТРК (МРК, ГНК) : 33 [07:59:42]line Товар: 2710124130 [07:59:42]line Аи-92-К-5 [07:59:42]line 20.000 * 0.00 [07:59:42]line = 0.00 [07:59:42]line НДС 12% НСП 1% [07:59:42]line > о реализуемом товаре [07:59:42]line ИТОГО: 0.00 [07:59:42]line НСП 1% : 0.00 [07:59:42]line НДС 12% : 0.00 [07:59:42]line Наличными: 0.00 [07:59:42]line Безнал.: 0.00 [07:59:42]line Место: АЗС № 90 "Партнер Нефть" [07:59:42]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:59:42]line СНО: Общий режим [07:59:42]line Чек 30 23.09.2024 07:59 [07:59:42]line Смена: 472 ФФД: 1.0 [07:59:42]line ЗНМ: 0300000120 [07:59:42]line РНМ: 0000000000091831 [07:59:42]line Версия ККМ: 001 [07:59:42]line Талоны: ТК ГПНА Online [07:59:42]line 30128112 [07:59:42]line ФМ: 0000000000871830 [07:59:42]line ФД: 115547 [07:59:42]line ФПД: 184683497077400 [07:59:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T075943&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115547&fm=184683497077400&tin=02508201610067®Number=0000000000091831&sum=0 [07:59:42]written 0, free lines is 4095 [07:59:43]OFD Sender: Processing packet 115547 [packets to send 481, broken 480] [07:59:43]ProducePacketName [07:59:43]name=ofd_packets/00115547 [07:59:43]OFD Sender: To server: pG, [07:59:43]CommunicateWithHost lk.salyk.kg:30040 [07:59:43]ConnectInit lk.salyk.kg [07:59:43]Connected sock=10 [07:59:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 16 1F 07 01 EC C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 EF 1F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5B C3 01 00 35 04 06 00 A7 F7 FA 3D 3A 98 F0 6C BB A8 DE 0E 26 FC [07:59:43]Write to MH i2c: 01 00 00 DA 0A E4 [07:59:43]Write i2c OK [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: 01 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: 01 07 00 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: 01 07 00 DA 0A 00 00 00 00 00 5A 0C 51 [07:59:43]RasterBufferAndPrint [07:59:43]line [07:59:43]line [07:59:43]line [07:59:43]line [07:59:43]line [07:59:43]written 0, free lines is 3166 [07:59:43]MH_Cut [07:59:43]Write to MH i2c: D1 01 00 E1 0A 01 BD [07:59:43]Write i2c OK [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: D1 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: D1 01 00 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: D1 01 00 E1 0A 00 BC [07:59:43]Write to MH i2c: 01 00 00 E2 0A EC [07:59:43]Write i2c OK [07:59:43]MH_I2C_Read... [07:59:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D9 98 47 00 5C 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 38 33 30 10 04 04 00 5B C3 01 00 F4 03 04 00 32 C5 F0 66 B6 04 01 00 00 36 6C E4 3D 51 62 A3 CE [07:59:43]CommunicateWithHost err = 0 [07:59:43]CheckOFDResponse [07:59:43]1017 (14) - 77093643461234 [07:59:43]1041 (16) - 0000000000871830 [07:59:43]1040 (4) - 115547 [07:59:43]1012 (4) - 23.09.2024 01:32 [07:59:43]1206 (1) - 0 [07:59:43]OFD Sender: Remove packet 115547 [07:59:43]ProducePacketName [07:59:43]name=ofd_packets/00115547 [07:59:43]NVStorageDeleteData [07:59:44]OFD Sender: No OFD packet to send [07:59:44]*** Cut start [07:59:44]*** Partial cut [07:59:44]*** CUTSNS_PIN = 1 [07:59:44]*** CUTSNS_PIN = 0 [07:59:45]*** Brake cut motor [07:59:45]Read from MH i2c: 01 [07:59:45]MH_I2C_Read... [07:59:45]*** Stop cut motor [07:59:45]*** Cut end [07:59:45]Read from MH i2c: 01 07 00 [07:59:45]MH_I2C_Read... [07:59:45]Read from MH i2c: 01 07 00 E2 0A 00 00 00 00 00 FF 0F 01 [07:59:45]process_action close_receipt done [07:59:45]requested_data is exist [07:59:45]produce_requested_data [07:59:45]requested_item fm.sn is exist - process it [07:59:45]wFMCommunicate request_size=4 [07:59:45]MH_SAM_APDU [07:59:45]CAPDU: 80 11 00 00 [07:59:45]Write to MH i2c: E2 08 00 E3 0A 80 11 00 00 00 00 00 00 67 [07:59:45]Write i2c OK [07:59:45]MH_I2C_Read... [07:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:45]Read from MH i2c: E2 [07:59:45]MH_I2C_Read... [07:59:45]Read from MH i2c: E2 17 00 [07:59:45]MH_I2C_Read... [07:59:45]Read from MH i2c: E2 17 00 E3 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B5 [07:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:59:45]wFMCommunicate OK [07:59:45]requested_item fd.num is exist - process it [07:59:45]SAM_PROTO_GetFieldsCounters [07:59:45]wFMCommunicate request_size=4 [07:59:45]MH_SAM_APDU [07:59:45]CAPDU: 80 13 00 00 [07:59:45]Write to MH i2c: E2 08 00 E4 0A 80 13 00 00 00 00 00 00 6A [07:59:45]Write i2c OK [07:59:45]MH_I2C_Read... [07:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:45]Read from MH i2c: E2 [07:59:45]MH_I2C_Read... [07:59:45]Read from MH i2c: E2 62 00 [07:59:45]MH_I2C_Read... [07:59:45]Read from MH i2c: E2 62 00 E4 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5B C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [07:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5B C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:59:45]wFMCommunicate OK [07:59:45]SAM_PROTO_GetFieldsCounters done [07:59:45]requested_item shift.num is exist - process it [07:59:45]requested_item shift.opened is exist - process it [07:59:45]req_shift_opened [07:59:45]FM_GetShiftState [07:59:45]SAM_PROTO_GetShiftState [07:59:45]wFMCommunicate request_size=4 [07:59:45]MH_SAM_APDU [07:59:45]CAPDU: 80 13 01 00 [07:59:45]Write to MH i2c: E2 08 00 E5 0A 80 13 01 00 00 00 00 00 6C [07:59:45]Write i2c OK [07:59:45]MH_I2C_Read... [07:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:45]Read from MH i2c: E2 [07:59:45]MH_I2C_Read... [07:59:45]Read from MH i2c: E2 0E 00 [07:59:45]MH_I2C_Read... [07:59:45]Read from MH i2c: E2 0E 00 E5 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 AD [07:59:45]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [07:59:45]wFMCommunicate OK [07:59:45]SAM_PROTO_GetShiftState done [07:59:45]FM_GetShiftState done [07:59:45]req_shift_opened done [07:59:45]requested_item shift.open_date is exist - process it [07:59:45]req_shift_open_date [07:59:45]req_shift_open_date done [07:59:45]produce_requested_data done [07:59:45]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115547,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [07:59:45]process_action_free close_receipt [07:59:45]json_value_free [07:59:45]json_value_free done [07:59:45]process_json_proto returns [07:59:45]Send response to host [07:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115547,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [07:59:45]free response buf [07:59:45]execute_script done [07:59:45]execute_script returns [07:59:45]free content buf [07:59:45]Sock 8.Close socket [07:59:45]Sock 8.Thread stoped [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:24]accept exits with 9 [08:21:24]New connection [08:21:24]New thread 3067313508 created [08:21:24]Thread 3067170148 joined [08:21:24]Waiting for new connection... [08:21:24] Sock 9.Parse request [08:21:24]Sock 9.Check first char [08:21:24]Sock 9.First char is OK [08:21:24]request: POST /json_proto HTTP/1.0 [08:21:24]Method: POST [08:21:24]URL: /json_proto [08:21:24]Method is POST - this is cgi request [08:21:24]url: /json_proto [08:21:24]query_string will be loaded in cgi processing [08:21:24]execute_cgi json_proto POST (null) [08:21:24]execute_cgi path=json_proto method=POST [08:21:24]POST find Content-Length [08:21:24]Host: 172.17.41.136:8080 [08:21:24]Content-Length: 1515 [08:21:24]Content-Type: application/json [08:21:24] [08:21:24]POST finish read [08:21:24]Found Content-Length = 1515 [08:21:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343972", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:24]execute_script... [08:21:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343972", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:24]POST & json_proto [08:21:24]process_json_proto [08:21:24]json parsed OK: [08:21:24]protocol is kg_v1.0 [08:21:24]action value=close_receipt [08:21:24]process_action close_receipt [08:21:24]cmd_close_receipt [08:21:24]MH_GetDate [08:21:24]Write to MH i2c: F0 00 00 E6 0A DF [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: F0 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: F0 09 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: F0 09 00 E6 0A 00 06 25 F1 66 1B D0 5A 64 13 [08:21:24]GetLastDocTimeStamp 1727078383 [08:21:24]current date 1727079686 [08:21:24]FM_GetShiftState [08:21:24]SAM_PROTO_GetShiftState [08:21:24]wFMCommunicate request_size=4 [08:21:24]MH_SAM_APDU [08:21:24]CAPDU: 80 13 01 00 [08:21:24]Write to MH i2c: E2 08 00 E7 0A 80 13 01 00 00 00 00 00 6E [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:25]Read from MH i2c: E2 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 0E 00 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 0E 00 E7 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 AF [08:21:25]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [08:21:25]wFMCommunicate OK [08:21:25]SAM_PROTO_GetShiftState done [08:21:25]FM_GetShiftState done [08:21:25]opened in 1727052070 [08:21:25]opened+sec_in_day 1727138470 [08:21:25]quantity*price = 3500 [08:21:25]sum+1 = 3501 [08:21:25]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4606532000189 Тормозная жидкость РосДот-4 0,455кг 1.000 * 250.00 = 250.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42069942 Жев Orbit White Fresh Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001571030 Вода ASU пит н.газ клубн,киви ПЭТ 1л 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 400.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 31 23.09.2024 08:21 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115548 ФПД: 237402281442519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T082126&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115548&fm=237402281442519&tin=02508201610067®Number=0000000000091831&sum=40000 0 [08:21:26]StoreToDocumentArchive [08:21:26]shift 472 fd 115548 [08:21:26]save to /storage/0472/doc_00115548 [08:21:26]save last doc name /storage/0472/doc_00115548 to /storage/kkm_last_doc_name [08:21:26]save OK [08:21:26]Clear old archive folders... [08:21:26]ProcessDocumentItem done err = 0, tmpTLVsize=635 [08:21:26]tlvbuf is 011CC6B0 [08:21:26]SAM_PROTO_ClearQueue [08:21:26]wFMCommunicate request_size=4 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 09 00 00 [08:21:26]Write to MH i2c: E2 08 00 F4 0A 80 09 00 00 00 00 00 00 70 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 03 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 03 00 F4 0A 00 90 00 72 [08:21:26]RAPDU: 90 00 [08:21:26]wFMCommunicate OK [08:21:26]SAM_PROTO_ClearQueue done [08:21:26]KKMCreateOFDPacket [08:21:26]OFDProtocolAddRootSTLVToBuf [08:21:26]FM_MakeSignedData [08:21:26]FM_MakeSignedData [08:21:26]SAM_PROTO_SignData [08:21:26]wFMCommunicate request_size=4 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 0D 01 02 [08:21:26]Write to MH i2c: E2 08 00 F5 0A 80 0D 01 02 00 00 00 00 78 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 03 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 03 00 F5 0A 00 90 00 73 [08:21:26]RAPDU: 90 00 [08:21:26]wFMCommunicate OK [08:21:26]wFMCommunicate request_size=255 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 0D 02 02 FA 03 00 7B 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 [08:21:26]Write to MH i2c: E2 02 01 F6 0A 80 0D 02 02 FA 00 03 00 7B 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 00 00 33 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 03 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 03 00 F6 0A 00 90 00 74 [08:21:26]RAPDU: 90 00 [08:21:26]wFMCommunicate OK [08:21:26]wFMCommunicate request_size=255 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 0D 02 02 FA 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [08:21:26]Write to MH i2c: E2 02 01 F7 0A 80 0D 02 02 FA 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 C5 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 03 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 03 00 F7 0A 00 90 00 75 [08:21:26]RAPDU: 90 00 [08:21:26]wFMCommunicate OK [08:21:26]wFMCommunicate request_size=144 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 0D 02 02 8B 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 1F 00 00 00 F4 03 04 00 06 25 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5C C3 01 00 35 04 06 00 D7 EA 86 A7 7C D7 [08:21:26]Write to MH i2c: E2 93 00 F8 0A 80 0D 02 02 8B 00 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 1F 00 00 00 F4 03 04 00 06 25 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5C C3 01 00 35 04 06 00 D7 EA 86 A7 7C D7 00 00 79 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 03 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 03 00 F8 0A 00 90 00 76 [08:21:26]RAPDU: 90 00 [08:21:26]wFMCommunicate OK [08:21:26]wFMCommunicate request_size=4 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 0D 03 02 [08:21:26]Write to MH i2c: E2 08 00 F9 0A 80 0D 03 02 00 00 00 00 7E [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:27]Read from MH i2c: E2 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 0B 00 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 0B 00 F9 0A 00 C2 49 19 49 F7 80 48 04 90 00 AF [08:21:27]RAPDU: C2 49 19 49 F7 80 48 04 90 00 [08:21:27]wFMCommunicate OK [08:21:27]SAM_PROTO_SignData done [08:21:27]FM_MakeSignedData done [08:21:27]CreateOFDProtocolMessage [08:21:27]wFMCommunicate request_size=4 [08:21:27]MH_SAM_APDU [08:21:27]CAPDU: 80 11 00 00 [08:21:27]Write to MH i2c: E2 08 00 FA 0A 80 11 00 00 00 00 00 00 7E [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:27]Read from MH i2c: E2 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 17 00 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 17 00 FA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CC [08:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:21:27]wFMCommunicate OK [08:21:27]CreateOFDProtocolMessage done [08:21:27]OFDSenderStorePacket 115548 [08:21:27]StoreOFDPacket docnum=115548 [08:21:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8F 02 00 00 4E B3 87 02 FE 1E 5A 03 01 00 03 00 7B 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1F 00 00 00 F4 03 04 00 06 25 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5C C3 01 00 35 04 06 00 D7 EA 86 A7 7C D7 C2 49 19 49 F7 80 48 04 [08:21:27]CheckFolder [08:21:27]dirname=/storage/ofd_packets [08:21:27]CheckFolder done [08:21:27]ProducePacketName [08:21:27]name=ofd_packets/00115548 [08:21:27]NVStorageSaveData ofd_packets/00115548 [08:21:27]File name is /storage/ofd_packets/00115548 [08:21:27]Write 685 bytes [08:21:27]NVStorageSaveData done [08:21:27]OFDSenderStorePacket done [08:21:27]KKMCreateOFDPacket done [08:21:27]NVStorageSaveData kkm_last_timestamp [08:21:27]File name is /storage/kkm_last_timestamp [08:21:27]Write 4 bytes [08:21:27]NVStorageSaveData done [08:21:27]ExternCall_PrintAddStr [08:21:27]wPrintStart [08:21:27]Write to MH i2c: 01 00 00 FB 0A 05 [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: 01 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: 01 07 00 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: 01 07 00 FB 0A 00 00 00 00 00 FF 0F 1A [08:21:27]RasterBufferAndPrint [08:21:27]line Счет N : (3)343972 [08:21:27]line ИНН: 02508201610067 [08:21:27]line Контрольно-Кассовый Чек [08:21:27]line ПРОДАЖА [08:21:27]line Товар: 4700000310326 [08:21:27]line Вода Адыгене 1л б/г [08:21:27]line 1.000 * 35.00 [08:21:27]line = 35.00 [08:21:27]line НДС 12% НСП 1% [08:21:27]line > о реализуемом товаре [08:21:27]line Товар: 4606532000189 [08:21:27]line Тормозная жидкость РосДот-4 0,455кг [08:21:27]line 1.000 * 250.00 [08:21:27]line = 250.00 [08:21:27]line НДС 12% НСП 1% [08:21:27]line > о реализуемом товаре [08:21:27]line Товар: 42069942 [08:21:27]line Жев Orbit White Fresh Mint [08:21:27]line 1.000 * 45.00 [08:21:27]line = 45.00 [08:21:27]line НДС 12% НСП 1% [08:21:27]line > о реализуемом товаре [08:21:27]line Товар: 4870001571030 [08:21:27]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [08:21:27]line 1.000 * 70.00 [08:21:27]line = 70.00 [08:21:27]line НДС 12% НСП 1% [08:21:27]line > о реализуемом товаре [08:21:27]line ИТОГО: 400.00 [08:21:27]line НСП 1% : 3.54 [08:21:27]line НДС 12% : 42.48 [08:21:27]line Наличными: 400.00 [08:21:27]line Безнал.: 0.00 [08:21:27]line Место: АЗС № 90 "Партнер Нефть" [08:21:27]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:21:27]line СНО: Общий режим [08:21:27]line Чек 31 23.09.2024 08:21 [08:21:27]line Смена: 472 ФФД: 1.0 [08:21:27]line ЗНМ: 0300000120 [08:21:27]line РНМ: 0000000000091831 [08:21:27]line Версия ККМ: 001 [08:21:27]line ФМ: 0000000000871830 [08:21:27]line ФД: 115548 [08:21:27]line ФПД: 237402281442519 [08:21:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T082126&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115548&fm=237402281442519&tin=02508201610067®Number=0000000000091831&sum=40000 [08:21:27]OFD Sender: Processing packet 115548 [packets to send 481, broken 480] [08:21:27]ProducePacketName [08:21:27]name=ofd_packets/00115548 [08:21:27]OFD Sender: To server: pG, [08:21:27]CommunicateWithHost lk.salyk.kg:30040 [08:21:27]ConnectInit lk.salyk.kg [08:21:27]line 0 [08:21:27]written 0, free lines is 4095 [08:21:27]Connected sock=8 [08:21: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 38 33 30 8F 02 00 00 4E B3 87 02 FE 1E 5A 03 01 00 03 00 7B 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1F 00 00 00 F4 03 04 00 06 25 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5C C3 01 00 35 04 06 00 D7 EA 86 A7 7C D7 C2 49 19 49 F7 80 48 04 [08:21:28]Write to MH i2c: 01 00 00 36 0B 41 [08:21:28]Write i2c OK [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: 01 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: 01 07 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: 01 07 00 36 0B 00 00 00 00 00 C0 0A 12 [08:21:28]RasterBufferAndPrint [08:21:28]line [08:21:28]line [08:21:28]line [08:21:28]line [08:21:28]line [08:21:28]written 0, free lines is 2755 [08:21:28]MH_Cut [08:21:28]Write to MH i2c: D1 01 00 3D 0B 01 1A [08:21:28]Write i2c OK [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: D1 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: D1 01 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: D1 01 00 3D 0B 00 19 [08:21:28]Write to MH i2c: 01 00 00 3E 0B 49 [08:21:28]Write i2c OK [08:21:28]MH_I2C_Read... [08:21:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B3 F1 47 00 C4 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5C C3 01 00 F4 03 04 00 4A CA F0 66 B6 04 01 00 00 00 75 58 01 20 BD 7B B1 [08:21:28]CommunicateWithHost err = 0 [08:21:28]CheckOFDResponse [08:21:28]1017 (14) - 77093643461234 [08:21:28]1041 (16) - 0000000000871830 [08:21:28]1040 (4) - 115548 [08:21:28]1012 (4) - 23.09.2024 01:54 [08:21:28]1206 (1) - 0 [08:21:28]OFD Sender: Remove packet 115548 [08:21:28]ProducePacketName [08:21:28]name=ofd_packets/00115548 [08:21:28]NVStorageDeleteData [08:21:28]OFD Sender: No OFD packet to send [08:21:29]*** Cut start [08:21:29]*** Partial cut [08:21:29]*** CUTSNS_PIN = 1 [08:21:30]*** CUTSNS_PIN = 0 [08:21:30]*** Brake cut motor [08:21:30]Read from MH i2c: 01 [08:21:30]MH_I2C_Read... [08:21:30]*** Stop cut motor [08:21:30]*** Cut end [08:21:30]Read from MH i2c: 01 07 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: 01 07 00 3E 0B 00 00 00 00 00 FF 0F 5E [08:21:30]process_action close_receipt done [08:21:30]requested_data is exist [08:21:30]produce_requested_data [08:21:30]requested_item fm.sn is exist - process it [08:21:30]wFMCommunicate request_size=4 [08:21:30]MH_SAM_APDU [08:21:30]CAPDU: 80 11 00 00 [08:21:30]Write to MH i2c: E2 08 00 3F 0B 80 11 00 00 00 00 00 00 C4 [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:30]Read from MH i2c: E2 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 17 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 17 00 3F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 12 [08:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:21:30]wFMCommunicate OK [08:21:30]requested_item fd.num is exist - process it [08:21:30]SAM_PROTO_GetFieldsCounters [08:21:30]wFMCommunicate request_size=4 [08:21:30]MH_SAM_APDU [08:21:30]CAPDU: 80 13 00 00 [08:21:30]Write to MH i2c: E2 08 00 40 0B 80 13 00 00 00 00 00 00 C7 [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:30]Read from MH i2c: E2 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 62 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 62 00 40 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5C C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [08:21: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5C C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:21:30]wFMCommunicate OK [08:21:30]SAM_PROTO_GetFieldsCounters done [08:21:30]requested_item shift.num is exist - process it [08:21:30]requested_item shift.opened is exist - process it [08:21:30]req_shift_opened [08:21:30]FM_GetShiftState [08:21:30]SAM_PROTO_GetShiftState [08:21:30]wFMCommunicate request_size=4 [08:21:30]MH_SAM_APDU [08:21:30]CAPDU: 80 13 01 00 [08:21:30]Write to MH i2c: E2 08 00 41 0B 80 13 01 00 00 00 00 00 C9 [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:30]Read from MH i2c: E2 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 0E 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 0E 00 41 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 0A [08:21:30]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [08:21:30]wFMCommunicate OK [08:21:30]SAM_PROTO_GetShiftState done [08:21:30]FM_GetShiftState done [08:21:30]req_shift_opened done [08:21:30]requested_item shift.open_date is exist - process it [08:21:30]req_shift_open_date [08:21:30]req_shift_open_date done [08:21:30]produce_requested_data done [08:21:30]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115548,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [08:21:30]process_action_free close_receipt [08:21:30]json_value_free [08:21:30]json_value_free done [08:21:30]process_json_proto returns [08:21:30]Send response to host [08:21:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115548,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [08:21:30]free response buf [08:21:30]execute_script done [08:21:30]execute_script returns [08:21:30]free content buf [08:21:30]Sock 9.Close socket [08:21:30]Sock 9.Thread stoped [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:16]accept exits with 10 [08:22:16]New connection [08:22:16]New thread 3067170148 created [08:22:16]Thread 3067313508 joined [08:22:16]Waiting for new connection... [08:22:16] Sock 10.Parse request [08:22:16]Sock 10.Check first char [08:22:16]Sock 10.First char is OK [08:22:16]request: POST /json_proto HTTP/1.0 [08:22:16]Method: POST [08:22:16]URL: /json_proto [08:22:16]Method is POST - this is cgi request [08:22:16]url: /json_proto [08:22:16]query_string will be loaded in cgi processing [08:22:16]execute_cgi json_proto POST (null) [08:22:16]execute_cgi path=json_proto method=POST [08:22:16]POST find Content-Length [08:22:16]Host: 172.17.41.136:8080 [08:22:16]Content-Length: 754 [08:22:16]Content-Type: application/json [08:22:16] [08:22:16]POST finish read [08:22:16]Found Content-Length = 754 [08:22:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A30106340", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:16]execute_script... [08:22: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)24617437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A30106340", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:16]POST & json_proto [08:22:16]process_json_proto [08:22:16]json parsed OK: [08:22:16]protocol is kg_v1.0 [08:22:16]action value=close_receipt [08:22:16]process_action close_receipt [08:22:16]cmd_close_receipt [08:22:16]MH_GetDate [08:22:16]Write to MH i2c: F0 00 00 42 0B 3C [08:22:16]Write i2c OK [08:22:16]MH_I2C_Read... [08:22:16]Read from MH i2c: F0 [08:22:16]MH_I2C_Read... [08:22:16]Read from MH i2c: F0 09 00 [08:22:16]MH_I2C_Read... [08:22:16]Read from MH i2c: F0 09 00 42 0B 00 3A 25 F1 66 1B D0 5A 64 A4 [08:22:16]GetLastDocTimeStamp 1727079686 [08:22:16]current date 1727079738 [08:22:16]FM_GetShiftState [08:22:16]SAM_PROTO_GetShiftState [08:22:16]wFMCommunicate request_size=4 [08:22:16]MH_SAM_APDU [08:22:16]CAPDU: 80 13 01 00 [08:22:16]Write to MH i2c: E2 08 00 43 0B 80 13 01 00 00 00 00 00 CB [08:22:16]Write i2c OK [08:22:16]MH_I2C_Read... [08:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:16]Read from MH i2c: E2 [08:22:16]MH_I2C_Read... [08:22:16]Read from MH i2c: E2 0E 00 [08:22:16]MH_I2C_Read... [08:22:16]Read from MH i2c: E2 0E 00 43 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 0C [08:22:16]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [08:22:16]wFMCommunicate OK [08:22:16]SAM_PROTO_GetShiftState done [08:22:16]FM_GetShiftState done [08:22:16]opened in 1727052070 [08:22:16]opened+sec_in_day 1727138470 [08:22:16]quantity*price = 0 [08:22:16]sum+1 = 1 [08:22:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 32 23.09.2024 08:22 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106340 ФМ: 0000000000871830 ФД: 115549 ФПД: 275661476756138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T082218&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115549&fm=275661476756138&tin=02508201610067®Number=0000000000091831&sum=0 [08:22:18]StoreToDocumentArchive [08:22:18]shift 472 fd 115549 [08:22:18]save to /storage/0472/doc_00115549 [08:22:18]save last doc name /storage/0472/doc_00115549 to /storage/kkm_last_doc_name [08:22:18]save OK [08:22:18]Clear old archive folders... [08:22:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:22:18]tlvbuf is 0121C720 [08:22:18]SAM_PROTO_ClearQueue [08:22:18]wFMCommunicate request_size=4 [08:22:18]MH_SAM_APDU [08:22:18]CAPDU: 80 09 00 00 [08:22:18]Write to MH i2c: E2 08 00 50 0B 80 09 00 00 00 00 00 00 CD [08:22:18]Write i2c OK [08:22:18]MH_I2C_Read... [08:22:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:18]Read from MH i2c: E2 [08:22:18]MH_I2C_Read... [08:22:18]Read from MH i2c: E2 03 00 [08:22:18]MH_I2C_Read... [08:22:18]Read from MH i2c: E2 03 00 50 0B 00 90 00 CF [08:22:18]RAPDU: 90 00 [08:22:18]wFMCommunicate OK [08:22:18]SAM_PROTO_ClearQueue done [08:22:18]KKMCreateOFDPacket [08:22:18]OFDProtocolAddRootSTLVToBuf [08:22:18]FM_MakeSignedData [08:22:18]FM_MakeSignedData [08:22:18]SAM_PROTO_SignData [08:22:18]wFMCommunicate request_size=4 [08:22:18]MH_SAM_APDU [08:22:18]CAPDU: 80 0D 01 02 [08:22:18]Write to MH i2c: E2 08 00 51 0B 80 0D 01 02 00 00 00 00 D5 [08:22:18]Write i2c OK [08:22:18]MH_I2C_Read... [08:22:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:18]Read from MH i2c: E2 [08:22:18]MH_I2C_Read... [08:22:18]Read from MH i2c: E2 03 00 [08:22:18]MH_I2C_Read... [08:22:18]Read from MH i2c: E2 03 00 51 0B 00 90 00 D0 [08:22:18]RAPDU: 90 00 [08:22:18]wFMCommunicate OK [08:22:18]wFMCommunicate request_size=255 [08:22:18]MH_SAM_APDU [08:22:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 20 00 00 00 F4 03 04 00 3A 25 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5D C3 01 00 35 04 06 00 FA B6 70 66 [08:22:18]Write to MH i2c: E2 02 01 52 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 20 00 00 00 F4 03 04 00 3A 25 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5D C3 01 00 35 04 06 00 FA B6 70 66 00 00 A7 [08:22:18]Write i2c OK [08:22:18]MH_I2C_Read... [08:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:18]Read from MH i2c: E2 [08:22:18]MH_I2C_Read... [08:22:18]Read from MH i2c: E2 03 00 [08:22:18]MH_I2C_Read... [08:22:18]Read from MH i2c: E2 03 00 52 0B 00 90 00 D1 [08:22:18]RAPDU: 90 00 [08:22:18]wFMCommunicate OK [08:22:18]wFMCommunicate request_size=7 [08:22:18]MH_SAM_APDU [08:22:18]CAPDU: 80 0D 02 02 02 7A AA [08:22:18]Write to MH i2c: E2 0A 00 53 0B 80 0D 02 02 02 00 7A AA 00 00 00 [08:22:18]Write i2c OK [08:22:18]MH_I2C_Read... [08:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:18]Read from MH i2c: E2 [08:22:18]MH_I2C_Read... [08:22:18]Read from MH i2c: E2 03 00 [08:22:18]MH_I2C_Read... [08:22:18]Read from MH i2c: E2 03 00 53 0B 00 90 00 D2 [08:22:18]RAPDU: 90 00 [08:22:18]wFMCommunicate OK [08:22:18]wFMCommunicate request_size=4 [08:22:18]MH_SAM_APDU [08:22:18]CAPDU: 80 0D 03 02 [08:22:18]Write to MH i2c: E2 08 00 54 0B 80 0D 03 02 00 00 00 00 DA [08:22:18]Write i2c OK [08:22:18]MH_I2C_Read... [08:22:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:18]Read from MH i2c: E2 [08:22:18]MH_I2C_Read... [08:22:18]Read from MH i2c: E2 0B 00 [08:22:18]MH_I2C_Read... [08:22:18]Read from MH i2c: E2 0B 00 54 0B 00 73 6A 1C 2D C8 2D 54 18 90 00 62 [08:22:18]RAPDU: 73 6A 1C 2D C8 2D 54 18 90 00 [08:22:18]wFMCommunicate OK [08:22:18]SAM_PROTO_SignData done [08:22:18]FM_MakeSignedData done [08:22:18]CreateOFDProtocolMessage [08:22:18]wFMCommunicate request_size=4 [08:22:18]MH_SAM_APDU [08:22:18]CAPDU: 80 11 00 00 [08:22:18]Write to MH i2c: E2 08 00 55 0B 80 11 00 00 00 00 00 00 DA [08:22:18]Write i2c OK [08:22:18]MH_I2C_Read... [08:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:18]Read from MH i2c: E2 [08:22:18]MH_I2C_Read... [08:22:18]Read from MH i2c: E2 17 00 [08:22:18]MH_I2C_Read... [08:22:18]Read from MH i2c: E2 17 00 55 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 28 [08:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:22:18]wFMCommunicate OK [08:22:18]CreateOFDProtocolMessage done [08:22:18]OFDSenderStorePacket 115549 [08:22:18]StoreOFDPacket docnum=115549 [08:22:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 C0 8E 04 01 CD 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 20 00 00 00 F4 03 04 00 3A 25 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5D C3 01 00 35 04 06 00 FA B6 70 66 7A AA 73 6A 1C 2D C8 2D 54 18 [08:22:18]CheckFolder [08:22:18]dirname=/storage/ofd_packets [08:22:18]CheckFolder done [08:22:18]ProducePacketName [08:22:18]name=ofd_packets/00115549 [08:22:18]NVStorageSaveData ofd_packets/00115549 [08:22:18]File name is /storage/ofd_packets/00115549 [08:22:18]Write 298 bytes [08:22:18]NVStorageSaveData done [08:22:18]OFDSenderStorePacket done [08:22:18]KKMCreateOFDPacket done [08:22:18]NVStorageSaveData kkm_last_timestamp [08:22:18]File name is /storage/kkm_last_timestamp [08:22:18]Write 4 bytes [08:22:18]NVStorageSaveData done [08:22:18]ExternCall_PrintAddStr [08:22:18]wPrintStart [08:22:18]Write to MH i2c: 01 00 00 56 0B 61 [08:22:18]Write i2c OK [08:22:18]MH_I2C_Read... [08:22:18]Read from MH i2c: 01 [08:22:18]MH_I2C_Read... [08:22:18]Read from MH i2c: 01 07 00 [08:22:18]MH_I2C_Read... [08:22:18]Read from MH i2c: 01 07 00 56 0B 00 00 00 00 00 FF 0F 76 [08:22:18]RasterBufferAndPrint [08:22:18]line Счет N : (1)24617437 [08:22:18]line ИНН: 02508201610067 [08:22:18]line Контрольно-Кассовый Чек [08:22:18]line ПРОДАЖА [08:22:18]line ТРК (МРК, ГНК) : 11 [08:22:18]line Товар: 2710194210 [08:22:18]line ДТ-К-5 [08:22:18]line 100.000 * 0.00 [08:22:18]line = 0.00 [08:22:18]line НДС 12% НСП 1% [08:22:18]line > о реализуемом товаре [08:22:18]line ИТОГО: 0.00 [08:22:18]line НСП 1% : 0.00 [08:22:18]line НДС 12% : 0.00 [08:22:18]line Наличными: 0.00 [08:22:18]line Безнал.: 0.00 [08:22:18]line Место: АЗС № 90 "Партнер Нефть" [08:22:18]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:22:18]line СНО: Общий режим [08:22:18]line Чек 32 23.09.2024 08:22 [08:22:18]line Смена: 472 ФФД: 1.0 [08:22:18]line ЗНМ: 0300000120 [08:22:18]line РНМ: 0000000000091831 [08:22:18]line Версия ККМ: 001 [08:22:18]line Талоны: ТК ГПНА Online [08:22:18]line 30106340 [08:22:18]line ФМ: 0000000000871830 [08:22:18]line ФД: 115549 [08:22:18]line ФПД: 275661476756138 [08:22:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T082218&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115549&fm=275661476756138&tin=02508201610067®Number=0000000000091831&sum=0 [08:22:18]written 0, free lines is 4095 [08:22:18]OFD Sender: Processing packet 115549 [packets to send 481, broken 480] [08:22:18]ProducePacketName [08:22:18]name=ofd_packets/00115549 [08:22:18]OFD Sender: To server: pG, [08:22:18]CommunicateWithHost lk.salyk.kg:30040 [08:22:18]ConnectInit lk.salyk.kg [08:22:18]Connected sock=9 [08:22: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 38 33 30 0C 01 00 00 C0 8E 04 01 CD 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 20 00 00 00 F4 03 04 00 3A 25 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5D C3 01 00 35 04 06 00 FA B6 70 66 7A AA 73 6A 1C 2D C8 2D 54 18 [08:22:19]Write to MH i2c: 01 00 00 7F 0B 8A [08:22:19]Write i2c OK [08:22:19]MH_I2C_Read... [08:22:19]Read from MH i2c: 01 [08:22:19]MH_I2C_Read... [08:22:19]Read from MH i2c: 01 07 00 [08:22:19]MH_I2C_Read... [08:22:19]Read from MH i2c: 01 07 00 7F 0B 00 00 00 00 00 58 0C F5 [08:22:19]RasterBufferAndPrint [08:22:19]line [08:22:19]line [08:22:19]line [08:22:19]line [08:22:19]line [08:22:19]written 0, free lines is 3164 [08:22:19]MH_Cut [08:22:19]Write to MH i2c: D1 01 00 86 0B 01 63 [08:22:19]Write i2c OK [08:22:19]MH_I2C_Read... [08:22:19]Read from MH i2c: D1 [08:22:19]MH_I2C_Read... [08:22:19]Read from MH i2c: D1 01 00 [08:22:19]MH_I2C_Read... [08:22:19]Read from MH i2c: D1 01 00 86 0B 00 62 [08:22:19]Write to MH i2c: 01 00 00 87 0B 92 [08:22:19]Write i2c OK [08:22:19]MH_I2C_Read... [08:22:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 08 D0 47 00 77 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5D C3 01 00 F4 03 04 00 7D CA F0 66 B6 04 01 00 00 67 B1 CF EC FF 58 07 A2 [08:22:19]CommunicateWithHost err = 0 [08:22:19]CheckOFDResponse [08:22:19]1017 (14) - 77093643461234 [08:22:19]1041 (16) - 0000000000871830 [08:22:19]1040 (4) - 115549 [08:22:19]1012 (4) - 23.09.2024 01:55 [08:22:19]1206 (1) - 0 [08:22:19]OFD Sender: Remove packet 115549 [08:22:19]ProducePacketName [08:22:19]name=ofd_packets/00115549 [08:22:19]NVStorageDeleteData [08:22:19]OFD Sender: No OFD packet to send [08:22:20]*** Cut start [08:22:20]*** Partial cut [08:22:20]*** CUTSNS_PIN = 1 [08:22:20]*** CUTSNS_PIN = 0 [08:22:20]*** Brake cut motor [08:22:21]Read from MH i2c: 01 [08:22:21]MH_I2C_Read... [08:22:21]*** Stop cut motor [08:22:21]*** Cut end [08:22:21]Read from MH i2c: 01 07 00 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: 01 07 00 87 0B 00 00 00 00 00 FF 0F A7 [08:22:21]process_action close_receipt done [08:22:21]requested_data is exist [08:22:21]produce_requested_data [08:22:21]requested_item fm.sn is exist - process it [08:22:21]wFMCommunicate request_size=4 [08:22:21]MH_SAM_APDU [08:22:21]CAPDU: 80 11 00 00 [08:22:21]Write to MH i2c: E2 08 00 88 0B 80 11 00 00 00 00 00 00 0D [08:22:21]Write i2c OK [08:22:21]MH_I2C_Read... [08:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:21]Read from MH i2c: E2 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 17 00 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 17 00 88 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5B [08:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:22:21]wFMCommunicate OK [08:22:21]requested_item fd.num is exist - process it [08:22:21]SAM_PROTO_GetFieldsCounters [08:22:21]wFMCommunicate request_size=4 [08:22:21]MH_SAM_APDU [08:22:21]CAPDU: 80 13 00 00 [08:22:21]Write to MH i2c: E2 08 00 89 0B 80 13 00 00 00 00 00 00 10 [08:22:21]Write i2c OK [08:22:21]MH_I2C_Read... [08:22:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:21]Read from MH i2c: E2 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 62 00 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 62 00 89 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5D C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [08:22: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5D C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:21]wFMCommunicate OK [08:22:21]SAM_PROTO_GetFieldsCounters done [08:22:21]requested_item shift.num is exist - process it [08:22:21]requested_item shift.opened is exist - process it [08:22:21]req_shift_opened [08:22:21]FM_GetShiftState [08:22:21]SAM_PROTO_GetShiftState [08:22:21]wFMCommunicate request_size=4 [08:22:21]MH_SAM_APDU [08:22:21]CAPDU: 80 13 01 00 [08:22:21]Write to MH i2c: E2 08 00 8A 0B 80 13 01 00 00 00 00 00 12 [08:22:21]Write i2c OK [08:22:21]MH_I2C_Read... [08:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:21]Read from MH i2c: E2 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 0E 00 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 0E 00 8A 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 53 [08:22:21]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [08:22:21]wFMCommunicate OK [08:22:21]SAM_PROTO_GetShiftState done [08:22:21]FM_GetShiftState done [08:22:21]req_shift_opened done [08:22:21]requested_item shift.open_date is exist - process it [08:22:21]req_shift_open_date [08:22:21]req_shift_open_date done [08:22:21]produce_requested_data done [08:22:21]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115549,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [08:22:21]process_action_free close_receipt [08:22:21]json_value_free [08:22:21]json_value_free done [08:22:21]process_json_proto returns [08:22:21]Send response to host [08:22:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115549,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [08:22:21]free response buf [08:22:21]execute_script done [08:22:21]execute_script returns [08:22:21]free content buf [08:22:21]Sock 10.Close socket [08:22:21]Sock 10.Thread stoped [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:14]accept exits with 8 [08:29:14]New connection [08:29:14]New thread 3067313508 created [08:29:14]Thread 3067170148 joined [08:29:14]Waiting for new connection... [08:29:14] Sock 8.Parse request [08:29:14]Sock 8.Check first char [08:29:14]Sock 8.First char is OK [08:29:14]request: POST /json_proto HTTP/1.0 [08:29:14]Method: POST [08:29:14]URL: /json_proto [08:29:14]Method is POST - this is cgi request [08:29:14]url: /json_proto [08:29:14]query_string will be loaded in cgi processing [08:29:14]execute_cgi json_proto POST (null) [08:29:14]execute_cgi path=json_proto method=POST [08:29:14]POST find Content-Length [08:29:14]Host: 172.17.41.136:8080 [08:29:14]Content-Length: 680 [08:29:14]Content-Type: application/json [08:29:14] [08:29:14]POST finish read [08:29:14]Found Content-Length = 680 [08:29:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:14]execute_script... [08:29: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)24617443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:14]POST & json_proto [08:29:14]process_json_proto [08:29:14]json parsed OK: [08:29:14]protocol is kg_v1.0 [08:29:14]action value=close_receipt [08:29:14]process_action close_receipt [08:29:14]cmd_close_receipt [08:29:14]MH_GetDate [08:29:14]Write to MH i2c: F0 00 00 8B 0B 85 [08:29:14]Write i2c OK [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: F0 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: F0 09 00 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: F0 09 00 8B 0B 00 DC 26 F1 66 1B D0 5A 64 90 [08:29:14]GetLastDocTimeStamp 1727079738 [08:29:14]current date 1727080156 [08:29:14]FM_GetShiftState [08:29:14]SAM_PROTO_GetShiftState [08:29:14]wFMCommunicate request_size=4 [08:29:14]MH_SAM_APDU [08:29:14]CAPDU: 80 13 01 00 [08:29:14]Write to MH i2c: E2 08 00 8C 0B 80 13 01 00 00 00 00 00 14 [08:29:14]Write i2c OK [08:29:14]MH_I2C_Read... [08:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:14]Read from MH i2c: E2 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 0E 00 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 0E 00 8C 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 55 [08:29:14]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [08:29:14]wFMCommunicate OK [08:29:14]SAM_PROTO_GetShiftState done [08:29:14]FM_GetShiftState done [08:29:14]opened in 1727052070 [08:29:14]opened+sec_in_day 1727138470 [08:29:14]quantity*price = 80004 [08:29:14]sum+1 = 80005 [08:29:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 33 23.09.2024 08:29 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115550 ФПД: 3443240316841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T082916&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115550&fm=3443240316841&tin=02508201610067®Number=0000000000091831&sum=80000 [08:29:15]StoreToDocumentArchive [08:29:15]shift 472 fd 115550 [08:29:15]save to /storage/0472/doc_00115550 [08:29:15]save last doc name /storage/0472/doc_00115550 to /storage/kkm_last_doc_name [08:29:15]save OK [08:29:15]Clear old archive folders... [08:29:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:15]tlvbuf is 0121C1B0 [08:29:15]SAM_PROTO_ClearQueue [08:29:15]wFMCommunicate request_size=4 [08:29:15]MH_SAM_APDU [08:29:15]CAPDU: 80 09 00 00 [08:29:15]Write to MH i2c: E2 08 00 99 0B 80 09 00 00 00 00 00 00 16 [08:29:15]Write i2c OK [08:29:15]MH_I2C_Read... [08:29:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:15]Read from MH i2c: E2 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 03 00 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 03 00 99 0B 00 90 00 18 [08:29:15]RAPDU: 90 00 [08:29:15]wFMCommunicate OK [08:29:15]SAM_PROTO_ClearQueue done [08:29:15]KKMCreateOFDPacket [08:29:15]OFDProtocolAddRootSTLVToBuf [08:29:15]FM_MakeSignedData [08:29:15]FM_MakeSignedData [08:29:15]SAM_PROTO_SignData [08:29:15]wFMCommunicate request_size=4 [08:29:15]MH_SAM_APDU [08:29:15]CAPDU: 80 0D 01 02 [08:29:15]Write to MH i2c: E2 08 00 9A 0B 80 0D 01 02 00 00 00 00 1E [08:29:15]Write i2c OK [08:29:15]MH_I2C_Read... [08:29:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:15]Read from MH i2c: E2 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 03 00 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 03 00 9A 0B 00 90 00 19 [08:29:15]RAPDU: 90 00 [08:29:15]wFMCommunicate OK [08:29:15]wFMCommunicate request_size=255 [08:29:15]MH_SAM_APDU [08:29:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 21 00 00 00 F4 03 04 00 DC 26 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5E C3 01 00 35 04 06 00 03 [08:29:15]Write to MH i2c: E2 02 01 9B 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 21 00 00 00 F4 03 04 00 DC 26 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5E C3 01 00 35 04 06 00 03 00 00 BA [08:29:15]Write i2c OK [08:29:15]MH_I2C_Read... [08:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:15]Read from MH i2c: E2 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 03 00 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 03 00 9B 0B 00 90 00 1A [08:29:15]RAPDU: 90 00 [08:29:15]wFMCommunicate OK [08:29:15]wFMCommunicate request_size=10 [08:29:15]MH_SAM_APDU [08:29:15]CAPDU: 80 0D 02 02 05 21 B1 1D AF A9 [08:29:15]Write to MH i2c: E2 0D 00 9C 0B 80 0D 02 02 05 00 21 B1 1D AF A9 00 00 72 [08:29:15]Write i2c OK [08:29:15]MH_I2C_Read... [08:29:15]OFD Sender: No OFD packet to send [08:29:15]Read from MH i2c: E2 [08:29:15]MH_I2C_Read... [08:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:15]Read from MH i2c: E2 03 00 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 03 00 9C 0B 00 90 00 1B [08:29:15]RAPDU: 90 00 [08:29:15]wFMCommunicate OK [08:29:15]wFMCommunicate request_size=4 [08:29:15]MH_SAM_APDU [08:29:15]CAPDU: 80 0D 03 02 [08:29:15]Write to MH i2c: E2 08 00 9D 0B 80 0D 03 02 00 00 00 00 23 [08:29:15]Write i2c OK [08:29:15]MH_I2C_Read... [08:29:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:15]Read from MH i2c: E2 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 0B 00 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 0B 00 9D 0B 00 57 C4 49 3E 4C DC 1C 9F 90 00 A9 [08:29:15]RAPDU: 57 C4 49 3E 4C DC 1C 9F 90 00 [08:29:15]wFMCommunicate OK [08:29:15]SAM_PROTO_SignData done [08:29:15]FM_MakeSignedData done [08:29:15]CreateOFDProtocolMessage [08:29:15]wFMCommunicate request_size=4 [08:29:15]MH_SAM_APDU [08:29:15]CAPDU: 80 11 00 00 [08:29:15]Write to MH i2c: E2 08 00 9E 0B 80 11 00 00 00 00 00 00 23 [08:29:15]Write i2c OK [08:29:15]MH_I2C_Read... [08:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:15]Read from MH i2c: E2 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 17 00 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 17 00 9E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 71 [08:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:29:15]wFMCommunicate OK [08:29:15]CreateOFDProtocolMessage done [08:29:15]OFDSenderStorePacket 115550 [08:29:15]StoreOFDPacket docnum=115550 [08:29:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 35 D8 07 01 ED 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 21 00 00 00 F4 03 04 00 DC 26 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5E C3 01 00 35 04 06 00 03 21 B1 1D AF A9 57 C4 49 3E 4C DC 1C 9F [08:29:15]CheckFolder [08:29:15]dirname=/storage/ofd_packets [08:29:15]CheckFolder done [08:29:15]ProducePacketName [08:29:15]name=ofd_packets/00115550 [08:29:15]NVStorageSaveData ofd_packets/00115550 [08:29:15]File name is /storage/ofd_packets/00115550 [08:29:15]Write 301 bytes [08:29:15]NVStorageSaveData done [08:29:15]OFDSenderStorePacket done [08:29:15]KKMCreateOFDPacket done [08:29:15]NVStorageSaveData kkm_last_timestamp [08:29:15]File name is /storage/kkm_last_timestamp [08:29:15]Write 4 bytes [08:29:15]NVStorageSaveData done [08:29:15]ExternCall_PrintAddStr [08:29:15]wPrintStart [08:29:15]Write to MH i2c: 01 00 00 9F 0B AA [08:29:15]Write i2c OK [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: 01 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: 01 07 00 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: 01 07 00 9F 0B 00 00 00 00 00 FF 0F BF [08:29:15]RasterBufferAndPrint [08:29:15]line Счет N : (1)24617443 [08:29:15]line ИНН: 02508201610067 [08:29:15]line Контрольно-Кассовый Чек [08:29:15]line ПРОДАЖА [08:29:15]line ТРК (МРК, ГНК) : 53 [08:29:15]line Товар: 2710124130 [08:29:15]line Аи-92-К-5 [08:29:15]line 11.800 * 67.80 [08:29:15]line = 800.04 [08:29:15]line НДС 12% НСП 1% [08:29:15]line > о реализуемом товаре [08:29:15]line ОКРУГЛЕНИЕ: -0.04 [08:29:15]line ИТОГО: 800.00 [08:29:15]line Внесено: 800.00 [08:29:15]line СДАЧА: 0.00 [08:29:15]line НСП 1% : 7.08 [08:29:15]line НДС 12% : 84.96 [08:29:15]line Наличными: 800.00 [08:29:15]line Безнал.: 0.00 [08:29:15]line Место: АЗС № 90 "Партнер Нефть" [08:29:15]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:29:15]line СНО: Общий режим [08:29:15]line Чек 33 23.09.2024 08:29 [08:29:15]line Смена: 472 ФФД: 1.0 [08:29:15]line ЗНМ: 0300000120 [08:29:15]line РНМ: 0000000000091831 [08:29:15]line Версия ККМ: 001 [08:29:15]line ФМ: 0000000000871830 [08:29:15]line ФД: 115550 [08:29:15]line ФПД: 3443240316841 [08:29:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T082916&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115550&fm=3443240316841&tin=02508201610067®Number=0000000000091831&sum=80000 [08:29:16]OFD Sender: Processing packet 115550 [packets to send 481, broken 480] [08:29:16]ProducePacketName [08:29:16]name=ofd_packets/00115550 [08:29:16]OFD Sender: To server: pG, [08:29:16]CommunicateWithHost lk.salyk.kg:30040 [08:29:16]ConnectInit lk.salyk.kg [08:29:16]written 0, free lines is 4095 [08:29:16]Connected sock=10 [08: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 38 33 30 0F 01 00 00 35 D8 07 01 ED 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 21 00 00 00 F4 03 04 00 DC 26 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5E C3 01 00 35 04 06 00 03 21 B1 1D AF A9 57 C4 49 3E 4C DC 1C 9F [08:29:16]Write to MH i2c: 01 00 00 C9 0B D4 [08:29:16]Write i2c OK [08:29:16]MH_I2C_Read... [08:29:16]Read from MH i2c: 01 [08:29:16]MH_I2C_Read... [08:29:16]Read from MH i2c: 01 07 00 [08:29:16]MH_I2C_Read... [08:29:16]Read from MH i2c: 01 07 00 C9 0B 00 00 00 00 00 44 0C 2B [08:29:16]RasterBufferAndPrint [08:29:16]line [08:29:16]line [08:29:16]line [08:29:16]line [08:29:16]line [08:29:16]written 0, free lines is 3144 [08:29:16]MH_Cut [08:29:16]Write to MH i2c: D1 01 00 D0 0B 01 AD [08:29:16]Write i2c OK [08:29:16]MH_I2C_Read... [08:29:16]Read from MH i2c: D1 [08:29:16]MH_I2C_Read... [08:29:16]Read from MH i2c: D1 01 00 [08:29:16]MH_I2C_Read... [08:29:16]Read from MH i2c: D1 01 00 D0 0B 00 AC [08:29:16]Write to MH i2c: 01 00 00 D1 0B DC [08:29:16]Write i2c OK [08:29:16]MH_I2C_Read... [08: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 38 33 30 4F 00 00 00 E0 CE 47 00 46 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5E C3 01 00 F4 03 04 00 1F CC F0 66 B6 04 01 00 00 60 E3 EA 2D A9 60 5D 20 [08:29:16]CommunicateWithHost err = 0 [08:29:16]CheckOFDResponse [08:29:16]1017 (14) - 77093643461234 [08:29:16]1041 (16) - 0000000000871830 [08:29:16]1040 (4) - 115550 [08:29:16]1012 (4) - 23.09.2024 02:02 [08:29:16]1206 (1) - 0 [08:29:16]OFD Sender: Remove packet 115550 [08:29:16]ProducePacketName [08:29:16]name=ofd_packets/00115550 [08:29:16]NVStorageDeleteData [08:29:17]OFD Sender: No OFD packet to send [08:29:18]*** Cut start [08:29:18]*** Partial cut [08:29:18]*** CUTSNS_PIN = 1 [08:29:18]*** CUTSNS_PIN = 0 [08:29:18]*** Brake cut motor [08:29:18]Read from MH i2c: 01 [08:29:18]MH_I2C_Read... [08:29:18]*** Stop cut motor [08:29:18]Read from MH i2c: 01 07 00 [08:29:18]MH_I2C_Read... [08:29:18]*** Cut end [08:29:18]Read from MH i2c: 01 07 00 D1 0B 00 00 00 00 00 FF 0F F1 [08:29:18]process_action close_receipt done [08:29:18]requested_data is exist [08:29:18]produce_requested_data [08:29:18]requested_item fm.sn is exist - process it [08:29:18]wFMCommunicate request_size=4 [08:29:18]MH_SAM_APDU [08:29:18]CAPDU: 80 11 00 00 [08:29:18]Write to MH i2c: E2 08 00 D2 0B 80 11 00 00 00 00 00 00 57 [08:29:18]Write i2c OK [08:29:18]MH_I2C_Read... [08:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:18]Read from MH i2c: E2 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: E2 17 00 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: E2 17 00 D2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A5 [08:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:29:18]wFMCommunicate OK [08:29:18]requested_item fd.num is exist - process it [08:29:18]SAM_PROTO_GetFieldsCounters [08:29:18]wFMCommunicate request_size=4 [08:29:18]MH_SAM_APDU [08:29:18]CAPDU: 80 13 00 00 [08:29:18]Write to MH i2c: E2 08 00 D3 0B 80 13 00 00 00 00 00 00 5A [08:29:18]Write i2c OK [08:29:18]MH_I2C_Read... [08:29:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:18]Read from MH i2c: E2 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: E2 62 00 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: E2 62 00 D3 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5E C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [08:29:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5E C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:18]wFMCommunicate OK [08:29:18]SAM_PROTO_GetFieldsCounters done [08:29:18]requested_item shift.num is exist - process it [08:29:18]requested_item shift.opened is exist - process it [08:29:18]req_shift_opened [08:29:18]FM_GetShiftState [08:29:18]SAM_PROTO_GetShiftState [08:29:18]wFMCommunicate request_size=4 [08:29:18]MH_SAM_APDU [08:29:18]CAPDU: 80 13 01 00 [08:29:18]Write to MH i2c: E2 08 00 D4 0B 80 13 01 00 00 00 00 00 5C [08:29:18]Write i2c OK [08:29:18]MH_I2C_Read... [08:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:18]Read from MH i2c: E2 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: E2 0E 00 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: E2 0E 00 D4 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 9D [08:29:18]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [08:29:18]wFMCommunicate OK [08:29:18]SAM_PROTO_GetShiftState done [08:29:18]FM_GetShiftState done [08:29:18]req_shift_opened done [08:29:18]requested_item shift.open_date is exist - process it [08:29:18]req_shift_open_date [08:29:18]req_shift_open_date done [08:29:18]produce_requested_data done [08:29:18]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115550,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [08:29:18]process_action_free close_receipt [08:29:18]json_value_free [08:29:18]json_value_free done [08:29:18]process_json_proto returns [08:29:18]Send response to host [08:29:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115550,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [08:29:18]free response buf [08:29:18]execute_script done [08:29:18]execute_script returns [08:29:18]free content buf [08:29:18]Sock 8.Close socket [08:29:18]Sock 8.Thread stoped [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59: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:07]accept exits with 9 [09:00:07]New connection [09:00:07]New thread 3067170148 created [09:00:07]Thread 3067313508 joined [09:00:07]Waiting for new connection... [09:00:07] Sock 9.Parse request [09:00:07]Sock 9.Check first char [09:00:07]Sock 9.First char is OK [09:00:07]request: POST /json_proto HTTP/1.0 [09:00:07]Method: POST [09:00:07]URL: /json_proto [09:00:07]Method is POST - this is cgi request [09:00:07]url: /json_proto [09:00:07]query_string will be loaded in cgi processing [09:00:07]execute_cgi json_proto POST (null) [09:00:07]execute_cgi path=json_proto method=POST [09:00:07]POST find Content-Length [09:00:07]Host: 172.17.41.136:8080 [09:00:07]Content-Length: 1493 [09:00:07]Content-Type: application/json [09:00:07] [09:00:07]POST finish read [09:00:07]Found Content-Length = 1493 [09:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343973", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 475.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:07]execute_script... [09:00:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343973", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 475.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:07]POST & json_proto [09:00:07]process_json_proto [09:00:07]json parsed OK: [09:00:07]protocol is kg_v1.0 [09:00:07]action value=close_receipt [09:00:07]process_action close_receipt [09:00:07]cmd_close_receipt [09:00:07]MH_GetDate [09:00:07]Write to MH i2c: F0 00 00 D5 0B CF [09:00:07]Write i2c OK [09:00:07]MH_I2C_Read... [09:00:07]Read from MH i2c: F0 [09:00:07]MH_I2C_Read... [09:00:07]Read from MH i2c: F0 09 00 [09:00:07]MH_I2C_Read... [09:00:07]Read from MH i2c: F0 09 00 D5 0B 00 19 2E F1 66 1B D0 5A 64 1F [09:00:07]GetLastDocTimeStamp 1727080156 [09:00:07]current date 1727082009 [09:00:07]FM_GetShiftState [09:00:07]SAM_PROTO_GetShiftState [09:00:07]wFMCommunicate request_size=4 [09:00:07]MH_SAM_APDU [09:00:07]CAPDU: 80 13 01 00 [09:00:07]Write to MH i2c: E2 08 00 D6 0B 80 13 01 00 00 00 00 00 5E [09:00:07]Write i2c OK [09:00:07]MH_I2C_Read... [09:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:08]Read from MH i2c: E2 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: E2 0E 00 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: E2 0E 00 D6 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 9F [09:00:08]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:00:08]wFMCommunicate OK [09:00:08]SAM_PROTO_GetShiftState done [09:00:08]FM_GetShiftState done [09:00:08]opened in 1727052070 [09:00:08]opened+sec_in_day 1727138470 [09:00:08]quantity*price = 26000 [09:00:08]sum+1 = 26001 [09:00:08]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47011656 Водка Пшеничная 0,1л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4650243870968 Напиток Gorilla ж/б 0,45л Персик Абрикос 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032800010 Сочник DC творог 75 г 2.000 * 30.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 475.00 НСП 1% : 4.20 НДС 12% : 50.44 Наличными: 475.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 34 23.09.2024 09:00 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115551 ФПД: 280110494796197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T090010&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115551&fm=280110494796197&tin=02508201610067®Number=0000000000091831&sum=47500 0 [09:00:09]StoreToDocumentArchive [09:00:09]shift 472 fd 115551 [09:00:09]save to /storage/0472/doc_00115551 [09:00:09]save last doc name /storage/0472/doc_00115551 to /storage/kkm_last_doc_name [09:00:09]save OK [09:00:09]Clear old archive folders... [09:00:09]ProcessDocumentItem done err = 0, tmpTLVsize=625 [09:00:09]tlvbuf is 011C30E0 [09:00:09]SAM_PROTO_ClearQueue [09:00:09]wFMCommunicate request_size=4 [09:00:09]MH_SAM_APDU [09:00:09]CAPDU: 80 09 00 00 [09:00:09]Write to MH i2c: E2 08 00 E3 0B 80 09 00 00 00 00 00 00 60 [09:00:09]Write i2c OK [09:00:09]MH_I2C_Read... [09:00:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:09]Read from MH i2c: E2 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: E2 03 00 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: E2 03 00 E3 0B 00 90 00 62 [09:00:09]RAPDU: 90 00 [09:00:09]wFMCommunicate OK [09:00:09]SAM_PROTO_ClearQueue done [09:00:09]KKMCreateOFDPacket [09:00:09]OFDProtocolAddRootSTLVToBuf [09:00:09]FM_MakeSignedData [09:00:09]FM_MakeSignedData [09:00:09]SAM_PROTO_SignData [09:00:09]wFMCommunicate request_size=4 [09:00:09]MH_SAM_APDU [09:00:09]CAPDU: 80 0D 01 02 [09:00:09]Write to MH i2c: E2 08 00 E4 0B 80 0D 01 02 00 00 00 00 68 [09:00:09]Write i2c OK [09:00:09]MH_I2C_Read... [09:00:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:09]Read from MH i2c: E2 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: E2 03 00 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: E2 03 00 E4 0B 00 90 00 63 [09:00:09]RAPDU: 90 00 [09:00:09]wFMCommunicate OK [09:00:09]wFMCommunicate request_size=255 [09:00:09]MH_SAM_APDU [09:00:09]CAPDU: 80 0D 02 02 FA 03 00 71 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D [09:00:09]Write to MH i2c: E2 02 01 E5 0B 80 0D 02 02 FA 00 03 00 71 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D 00 00 BF [09:00:09]Write i2c OK [09:00:09]MH_I2C_Read... [09:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:09]Read from MH i2c: E2 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: E2 03 00 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: E2 03 00 E5 0B 00 90 00 64 [09:00:09]RAPDU: 90 00 [09:00:09]wFMCommunicate OK [09:00:09]wFMCommunicate request_size=255 [09:00:09]MH_SAM_APDU [09:00:09]CAPDU: 80 0D 02 02 FA D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F [09:00:09]Write to MH i2c: E2 02 01 E6 0B 80 0D 02 02 FA 00 D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 00 83 [09:00:09]Write i2c OK [09:00:09]MH_I2C_Read... [09:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:09]Read from MH i2c: E2 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: E2 03 00 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: E2 03 00 E6 0B 00 90 00 65 [09:00:09]RAPDU: 90 00 [09:00:09]wFMCommunicate OK [09:00:09]wFMCommunicate request_size=134 [09:00:09]MH_SAM_APDU [09:00:09]CAPDU: 80 0D 02 02 81 00 F2 03 01 00 01 F3 03 06 00 B4 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1A 2E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5F C3 01 00 35 04 06 00 FE C2 4E 8A 49 A5 [09:00:09]Write to MH i2c: E2 89 00 E7 0B 80 0D 02 02 81 00 00 F2 03 01 00 01 F3 03 06 00 B4 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1A 2E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5F C3 01 00 35 04 06 00 FE C2 4E 8A 49 A5 00 00 E2 [09:00:09]Write i2c OK [09:00:09]MH_I2C_Read... [09:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:09]Read from MH i2c: E2 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: E2 03 00 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: E2 03 00 E7 0B 00 90 00 66 [09:00:09]RAPDU: 90 00 [09:00:09]wFMCommunicate OK [09:00:09]wFMCommunicate request_size=4 [09:00:09]MH_SAM_APDU [09:00:09]CAPDU: 80 0D 03 02 [09:00:09]Write to MH i2c: E2 08 00 E8 0B 80 0D 03 02 00 00 00 00 6E [09:00:09]Write i2c OK [09:00:09]MH_I2C_Read... [09:00:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:10]Read from MH i2c: E2 [09:00:10]MH_I2C_Read... [09:00:10]Read from MH i2c: E2 0B 00 [09:00:10]MH_I2C_Read... [09:00:10]Read from MH i2c: E2 0B 00 E8 0B 00 96 FA B6 B9 8A 6A 22 EC 90 00 70 [09:00:10]RAPDU: 96 FA B6 B9 8A 6A 22 EC 90 00 [09:00:10]wFMCommunicate OK [09:00:10]SAM_PROTO_SignData done [09:00:10]FM_MakeSignedData done [09:00:10]CreateOFDProtocolMessage [09:00:10]wFMCommunicate request_size=4 [09:00:10]MH_SAM_APDU [09:00:10]CAPDU: 80 11 00 00 [09:00:10]Write to MH i2c: E2 08 00 E9 0B 80 11 00 00 00 00 00 00 6E [09:00:10]Write i2c OK [09:00:10]MH_I2C_Read... [09:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:10]Read from MH i2c: E2 [09:00:10]MH_I2C_Read... [09:00:10]Read from MH i2c: E2 17 00 [09:00:10]MH_I2C_Read... [09:00:10]Read from MH i2c: E2 17 00 E9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BC [09:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:00:10]wFMCommunicate OK [09:00:10]CreateOFDProtocolMessage done [09:00:10]OFDSenderStorePacket 115551 [09:00:10]StoreOFDPacket docnum=115551 [09:00:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 85 02 00 00 4B AD 7D 02 3A 34 5A 03 01 00 03 00 71 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1A 2E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5F C3 01 00 35 04 06 00 FE C2 4E 8A 49 A5 96 FA B6 B9 8A 6A 22 EC [09:00:10]CheckFolder [09:00:10]dirname=/storage/ofd_packets [09:00:10]CheckFolder done [09:00:10]ProducePacketName [09:00:10]name=ofd_packets/00115551 [09:00:10]NVStorageSaveData ofd_packets/00115551 [09:00:10]File name is /storage/ofd_packets/00115551 [09:00:10]Write 675 bytes [09:00:10]NVStorageSaveData done [09:00:10]OFDSenderStorePacket done [09:00:10]KKMCreateOFDPacket done [09:00:10]NVStorageSaveData kkm_last_timestamp [09:00:10]File name is /storage/kkm_last_timestamp [09:00:10]Write 4 bytes [09:00:10]NVStorageSaveData done [09:00:10]ExternCall_PrintAddStr [09:00:10]wPrintStart [09:00:10]Write to MH i2c: 01 00 00 EA 0B F5 [09:00:10]Write i2c OK [09:00:10]MH_I2C_Read... [09:00:10]Read from MH i2c: 01 [09:00:10]MH_I2C_Read... [09:00:10]Read from MH i2c: 01 07 00 [09:00:10]MH_I2C_Read... [09:00:10]Read from MH i2c: 01 07 00 EA 0B 00 00 00 00 00 FF 0F 0A [09:00:10]RasterBufferAndPrint [09:00:10]line Счет N : (3)343973 [09:00:10]line ИНН: 02508201610067 [09:00:10]line Контрольно-Кассовый Чек [09:00:10]line ПРОДАЖА [09:00:10]line Товар: 2000036220012 [09:00:10]line Кофе Капучино XL(GABB TRADE) [09:00:10]line 2.000 * 130.00 [09:00:10]line = 260.00 [09:00:10]line НДС 12% НСП 1% [09:00:10]line > о реализуемом товаре [09:00:10]line Товар: 47011656 [09:00:10]line Водка Пшеничная 0,1л [09:00:10]line 1.000 * 65.00 [09:00:10]line = 65.00 [09:00:10]line НДС 12% НСП 1% [09:00:10]line > о реализуемом товаре [09:00:10]line Товар: 4650243870968 [09:00:10]line Напиток Gorilla ж/б 0,45л Персик Абрикос [09:00:10]line 1.000 * 90.00 [09:00:10]line = 90.00 [09:00:10]line НДС 12% НСП 1% [09:00:10]line > о реализуемом товаре [09:00:10]line Товар: 2000032800010 [09:00:10]line Сочник DC творог 75 г [09:00:10]line 2.000 * 30.00 [09:00:10]line = 60.00 [09:00:10]line НДС 12% НСП 1% [09:00:10]line > о реализуемом товаре [09:00:10]line ИТОГО: 475.00 [09:00:10]line НСП 1% : 4.20 [09:00:10]line НДС 12% : 50.44 [09:00:10]line Наличными: 475.00 [09:00:10]line Безнал.: 0.00 [09:00:10]line Место: АЗС № 90 "Партнер Нефть" [09:00:10]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:00:10]line СНО: Общий режим [09:00:10]line Чек 34 23.09.2024 09:00 [09:00:10]line Смена: 472 ФФД: 1.0 [09:00:10]line ЗНМ: 0300000120 [09:00:10]line РНМ: 0000000000091831 [09:00:10]line Версия ККМ: 001 [09:00:10]line ФМ: 0000000000871830 [09:00:10]line ФД: 115551 [09:00:10]line ФПД: 280110494796197 [09:00:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T090010&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115551&fm=280110494796197&tin=02508201610067®Number=0000000000091831&sum=47500 [09:00:10]line 0 [09:00:10]OFD Sender: Processing packet 115551 [packets to send 481, broken 480] [09:00:10]ProducePacketName [09:00:10]name=ofd_packets/00115551 [09:00:10]OFD Sender: To server: pG, [09:00:10]CommunicateWithHost lk.salyk.kg:30040 [09:00:10]ConnectInit lk.salyk.kg [09:00:10]written 0, free lines is 4095 [09:00:10]Connected sock=10 [09:00: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 38 33 30 85 02 00 00 4B AD 7D 02 3A 34 5A 03 01 00 03 00 71 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1A 2E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5F C3 01 00 35 04 06 00 FE C2 4E 8A 49 A5 96 FA B6 B9 8A 6A 22 EC [09:00:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 59 50 47 00 F4 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 38 33 30 10 04 04 00 5F C3 01 00 F4 03 04 00 5D D3 F0 66 B6 04 01 00 00 67 2A BA 37 52 A5 FA 81 [09:00:11]CommunicateWithHost err = 0 [09:00:11]CheckOFDResponse [09:00:11]1017 (14) - 77093643461234 [09:00:11]1041 (16) - 0000000000871830 [09:00:11]1040 (4) - 115551 [09:00:11]1012 (4) - 23.09.2024 02:33 [09:00:11]1206 (1) - 0 [09:00:11]OFD Sender: Remove packet 115551 [09:00:11]ProducePacketName [09:00:11]name=ofd_packets/00115551 [09:00:11]NVStorageDeleteData [09:00:11]Write to MH i2c: 01 00 00 25 0C 31 [09:00:11]Write i2c OK [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: 01 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: 01 07 00 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: 01 07 00 25 0C 00 00 00 00 00 CF 0A 11 [09:00:11]RasterBufferAndPrint [09:00:11]line [09:00:11]line [09:00:11]line [09:00:11]line [09:00:11]line [09:00:11]written 0, free lines is 2772 [09:00:11]MH_Cut [09:00:11]Write to MH i2c: D1 01 00 2C 0C 01 0A [09:00:11]Write i2c OK [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: D1 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: D1 01 00 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: D1 01 00 2C 0C 00 09 [09:00:11]Write to MH i2c: 01 00 00 2D 0C 39 [09:00:11]Write i2c OK [09:00:11]MH_I2C_Read... [09:00:11]OFD Sender: No OFD packet to send [09:00:12]*** Cut start [09:00:12]*** Partial cut [09:00:12]*** CUTSNS_PIN = 1 [09:00:12]*** CUTSNS_PIN = 0 [09:00:13]*** Brake cut motor [09:00:13]Read from MH i2c: 01 [09:00:13]MH_I2C_Read... [09:00:13]*** Stop cut motor [09:00:13]*** Cut end [09:00:13]Read from MH i2c: 01 07 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: 01 07 00 2D 0C 00 00 00 00 00 FF 0F 4E [09:00:13]process_action close_receipt done [09:00:13]requested_data is exist [09:00:13]produce_requested_data [09:00:13]requested_item fm.sn is exist - process it [09:00:13]wFMCommunicate request_size=4 [09:00:13]MH_SAM_APDU [09:00:13]CAPDU: 80 11 00 00 [09:00:13]Write to MH i2c: E2 08 00 2E 0C 80 11 00 00 00 00 00 00 B4 [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 [09:00:13]MH_I2C_Read... [09:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:13]Read from MH i2c: E2 17 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 17 00 2E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 02 [09:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:00:13]wFMCommunicate OK [09:00:13]requested_item fd.num is exist - process it [09:00:13]SAM_PROTO_GetFieldsCounters [09:00:13]wFMCommunicate request_size=4 [09:00:13]MH_SAM_APDU [09:00:13]CAPDU: 80 13 00 00 [09:00:13]Write to MH i2c: E2 08 00 2F 0C 80 13 00 00 00 00 00 00 B7 [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:13]Read from MH i2c: E2 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 62 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 62 00 2F 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5F C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [09:00: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5F C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:13]wFMCommunicate OK [09:00:13]SAM_PROTO_GetFieldsCounters done [09:00:13]requested_item shift.num is exist - process it [09:00:13]requested_item shift.opened is exist - process it [09:00:13]req_shift_opened [09:00:13]FM_GetShiftState [09:00:13]SAM_PROTO_GetShiftState [09:00:13]wFMCommunicate request_size=4 [09:00:13]MH_SAM_APDU [09:00:13]CAPDU: 80 13 01 00 [09:00:13]Write to MH i2c: E2 08 00 30 0C 80 13 01 00 00 00 00 00 B9 [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:13]Read from MH i2c: E2 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 0E 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 0E 00 30 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 FA [09:00:13]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:00:13]wFMCommunicate OK [09:00:13]SAM_PROTO_GetShiftState done [09:00:13]FM_GetShiftState done [09:00:13]req_shift_opened done [09:00:13]requested_item shift.open_date is exist - process it [09:00:13]req_shift_open_date [09:00:13]req_shift_open_date done [09:00:13]produce_requested_data done [09:00:13]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115551,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:00:13]process_action_free close_receipt [09:00:13]json_value_free [09:00:13]json_value_free done [09:00:13]process_json_proto returns [09:00:13]Send response to host [09:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115551,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:00:13]free response buf [09:00:13]execute_script done [09:00:13]execute_script returns [09:00:13]free content buf [09:00:13]Sock 9.Close socket [09:00:13]Sock 9.Thread stoped [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:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [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 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5E [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]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725B9 (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: 43409169+1683673115=1727082284 [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 = 0x334f0623 [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 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5F [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 78 00 38 00 FF FF 8E [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 2C 2F F1 66 1B D0 5A 64 5A [09:04:44]Current date/time: 23.09.2024 09:04 [09:04:44]FM_Init [09:04:44]wFMConnect [09:04:44]MH_SAM_On [09:04:44]Write to MH i2c: E0 00 00 08 00 E7 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_init finished! [09:04:44]*** atr: [09:04:44]*** 0F 3B D5 18 FF 81 91 FE [09:04:44]*** 1F C3 80 73 C8 21 10 0A [09:04:44]*** 00 00 00 00 00 00 00 00 [09:04:44]*** 00 00 00 00 00 00 00 00 [09:04:44]*** 00 00 00 00 00 00 00 00 [09:04:44]*** 00 00 00 00 00 00 00 00 [09:04:44]*** 00 00 00 00 00 00 00 00 [09:04:44]*** 00 00 00 00 00 00 00 00 [09:04:44]Read from MH i2c: E0 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E0 10 00 [09:04:44]MH_I2C_Read... [09:04:44]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 [09:04:44]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:04:44]wFMCommunicate request_size=10 [09:04:44]MH_SAM_APDU [09:04:44]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:04:44]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:04:44]RAPDU: 90 00 [09:04:44]wFMCommunicate OK [09:04:44]wFMCommunicate request_size=4 [09:04:44]MH_SAM_APDU [09:04:44]CAPDU: 80 11 00 00 [09:04:44]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 17 00 [09:04:44]MH_I2C_Read... [09:04:44]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 38 33 30 90 00 D2 [09:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:04:44]wFMCommunicate OK [09:04:44]Detected FM SN is 0000000000871830 [09:04:44]Stored FM SN is 0000000000871830 [09:04:44]wFMCommunicate request_size=9 [09:04:44]MH_SAM_APDU [09:04:44]CAPDU: 80 16 00 00 04 2B 08 01 00 [09:04:44]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 2B 08 01 00 00 00 C6 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:04:44]RAPDU: 90 00 [09:04:44]wFMCommunicate OK [09:04:44]FM PIN OK [09:04:44]wFMCommunicate request_size=8 [09:04:44]MH_SAM_APDU [09:04:44]CAPDU: 80 14 04 00 03 02 00 01 [09:04:44]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:04:44]RAPDU: 90 00 [09:04:44]wFMCommunicate OK [09:04:44]wFMCommunicate request_size=13 [09:04:44]MH_SAM_APDU [09:04:44]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:04:44]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 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:04:44]RAPDU: 90 00 [09:04:44]wFMCommunicate OK [09:04:44]wFMCommunicate request_size=4 [09:04:44]MH_SAM_APDU [09:04:44]CAPDU: 80 11 00 00 [09:04:44]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 17 00 [09:04:44]MH_I2C_Read... [09:04:44]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 38 33 30 90 00 D6 [09:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:04:44]wFMCommunicate OK [09:04:44]DocumentArchiveInit [09:04:44]Start Httpd... [09:04:44]Httpd thread 3067649380 created [09:04:44]Write to MH i2c: 01 00 00 0F 00 0F [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 07 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:04:44]MH Int Process started [09:04:44]Allocated Socket 8 [09:04:44]Bind OK [09:04:44]Listen OK [09:04:44]httpd running on port 8080 [09:04:44]Waiting for new connection... [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:10]accept exits with 9 [09:05:10]New connection [09:05:10]New thread 3067362660 created [09:05:10]Waiting for new connection... [09:05:10] Sock 9.Parse request [09:05:10]Sock 9.Check first char [09:05:10]Sock 9.First char is OK [09:05:10]request: POST /json_proto HTTP/1.0 [09:05:10]Method: POST [09:05:10]URL: /json_proto [09:05:10]Method is POST - this is cgi request [09:05:10]url: /json_proto [09:05:10]query_string will be loaded in cgi processing [09:05:10]execute_cgi json_proto POST (null) [09:05:10]execute_cgi path=json_proto method=POST [09:05:10]POST find Content-Length [09:05:10]Host: 172.17.41.136:8080 [09:05:10]Content-Length: 215 [09:05:10]Content-Type: application/json [09:05:10] [09:05:10]POST finish read [09:05:10]Found Content-Length = 215 [09:05:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:10]execute_script... [09:05:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:10]POST & json_proto [09:05:10]process_json_proto [09:05:10]json parsed OK: [09:05:10]protocol is kg_v1.0 [09:05:10]action value=get_value [09:05:10]process_action get_value [09:05:10]cmd_get_value [09:05:10]process_action get_value done [09:05:10]requested_data is exist [09:05:10]produce_requested_data [09:05:10]requested_item kkm.sn is exist - process it [09:05:10]requested_item kkm.ver is exist - process it [09:05:10]requested_item fm.sn is exist - process it [09:05:10]wFMCommunicate request_size=4 [09:05:10]MH_SAM_APDU [09:05:10]CAPDU: 80 11 00 00 [09:05:10]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:05:10]Write i2c OK [09:05:10]MH_I2C_Read... [09:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:10]Read from MH i2c: E2 [09:05:10]MH_I2C_Read... [09:05:10]Read from MH i2c: E2 17 00 [09:05:10]MH_I2C_Read... [09:05:10]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 38 33 30 90 00 D8 [09:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:05:10]wFMCommunicate OK [09:05:10]requested_item fd.num is exist - process it [09:05:10]SAM_PROTO_GetFieldsCounters [09:05:10]wFMCommunicate request_size=4 [09:05:10]MH_SAM_APDU [09:05:10]CAPDU: 80 13 00 00 [09:05:10]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:05:10]Write i2c OK [09:05:10]MH_I2C_Read... [09:05:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:10]Read from MH i2c: E2 [09:05:10]MH_I2C_Read... [09:05:10]Read from MH i2c: E2 62 00 [09:05:10]MH_I2C_Read... [09:05:10]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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5F C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [09:05: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5F C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:10]wFMCommunicate OK [09:05:10]SAM_PROTO_GetFieldsCounters done [09:05:10]requested_item shift.num is exist - process it [09:05:10]requested_item shift.opened is exist - process it [09:05:10]req_shift_opened [09:05:10]FM_GetShiftState [09:05:10]SAM_PROTO_GetShiftState [09:05:10]wFMCommunicate request_size=4 [09:05:10]MH_SAM_APDU [09:05:10]CAPDU: 80 13 01 00 [09:05:10]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:05:10]Write i2c OK [09:05:10]MH_I2C_Read... [09:05:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:10]Read from MH i2c: E2 [09:05:10]MH_I2C_Read... [09:05:10]Read from MH i2c: E2 0E 00 [09:05:10]MH_I2C_Read... [09:05:10]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D0 [09:05:10]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:05:10]wFMCommunicate OK [09:05:10]SAM_PROTO_GetShiftState done [09:05:10]FM_GetShiftState done [09:05:10]req_shift_opened done [09:05:10]requested_item shift.open_date is exist - process it [09:05:10]req_shift_open_date [09:05:10]req_shift_open_date done [09:05:10]produce_requested_data done [09:05:10]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115551,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:05:10]process_action_free get_value [09:05:10]json_value_free [09:05:10]json_value_free done [09:05:10]process_json_proto returns [09:05:10]Send response to host [09:05:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115551,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:05:10]free response buf [09:05:10]execute_script done [09:05:10]execute_script returns [09:05:10]free content buf [09:05:10]Sock 9.Close socket [09:05:10]Sock 9.Thread stoped [09:05:10]accept exits with 7 [09:05:10]New connection [09:05:10]New thread 3067219300 created [09:05:10]Thread 3067362660 joined [09:05:10]Waiting for new connection... [09:05:10] Sock 7.Parse request [09:05:10]Sock 7.Check first char [09:05:10]Sock 7.First char is OK [09:05:10]request: POST /json_proto HTTP/1.0 [09:05:10]Method: POST [09:05:10]URL: /json_proto [09:05:10]Method is POST - this is cgi request [09:05:10]url: /json_proto [09:05:10]query_string will be loaded in cgi processing [09:05:10]execute_cgi json_proto POST (null) [09:05:10]execute_cgi path=json_proto method=POST [09:05:10]POST find Content-Length [09:05:10]Host: 172.17.41.136:8080 [09:05:10]Content-Length: 331 [09:05:10]Content-Type: application/json [09:05:10] [09:05:10]POST finish read [09:05:10]Found Content-Length = 331 [09:05:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:05:10]execute_script... [09:05:10]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" ] } } [09:05:10]POST & json_proto [09:05:10]process_json_proto [09:05:10]json parsed OK: [09:05:10]protocol is kg_v1.0 [09:05:10]action value=get_value [09:05:10]process_action get_value [09:05:10]cmd_get_value [09:05:10]process_action get_value done [09:05:10]requested_data is exist [09:05:10]produce_requested_data [09:05:10]requested_item fm.sale.total is exist - process it [09:05:10]SAM_PROTO_GetFMData [09:05:10]wFMCommunicate request_size=4 [09:05:10]MH_SAM_APDU [09:05:10]CAPDU: 80 13 03 00 [09:05:10]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:05:10]Write i2c OK [09:05:10]MH_I2C_Read... [09:05:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:05:11]Read from MH i2c: E2 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 FD 00 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 AE BF 01 00 69 04 A3 00 6F 04 04 00 31 BE 01 00 B1 04 05 00 21 02 02 81 01 70 04 05 00 E1 E4 5B 47 01 72 04 04 00 40 1D A6 39 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 F4 A4 E4 28 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 B4 2C 68 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 41 AD 01 EF 03 09 90 00 15 [09:05:11]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 AE BF 01 00 69 04 A3 00 6F 04 04 00 31 BE 01 00 B1 04 05 00 21 02 02 81 01 70 04 05 00 E1 E4 5B 47 01 72 04 04 00 40 1D A6 39 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 F4 A4 E4 28 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 B4 2C 68 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 41 AD 01 EF 03 09 90 00 [09:05:11]wFMCommunicate OK [09:05:11]wFMCommunicate request_size=4 [09:05:11]MH_SAM_APDU [09:05:11]CAPDU: 80 17 00 00 [09:05:11]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:05:11]Write i2c OK [09:05:11]MH_I2C_Read... [09:05:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:05:11]Read from MH i2c: E2 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 FD 00 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 81 [09:05:11]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:05:11]wFMCommunicate OK [09:05:11]wFMCommunicate request_size=4 [09:05:11]MH_SAM_APDU [09:05:11]CAPDU: 80 17 00 00 [09:05:11]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:05:11]Write i2c OK [09:05:11]MH_I2C_Read... [09:05:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:05:11]Read from MH i2c: E2 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 FD 00 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A7 [09:05:11]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:05:11]wFMCommunicate OK [09:05:11]wFMCommunicate request_size=4 [09:05:11]MH_SAM_APDU [09:05:11]CAPDU: 80 17 00 00 [09:05:11]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:05:11]Write i2c OK [09:05:11]MH_I2C_Read... [09:05:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:05:12]Read from MH i2c: E2 [09:05:12]MH_I2C_Read... [09:05:12]Read from MH i2c: E2 FD 00 [09:05:12]MH_I2C_Read... [09:05:12]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [09:05:12]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:05:12]wFMCommunicate OK [09:05:12]wFMCommunicate request_size=4 [09:05:12]MH_SAM_APDU [09:05:12]CAPDU: 80 17 00 00 [09:05:12]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:05:12]Write i2c OK [09:05:12]MH_I2C_Read... [09:05:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [09:05:12]Read from MH i2c: E2 [09:05:12]MH_I2C_Read... [09:05:12]Read from MH i2c: E2 E2 00 [09:05:12]MH_I2C_Read... [09:05:12]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [09:05:12]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:05:12]wFMCommunicate OK [09:05:12]SAM_PROTO_GetFMData done [09:05:12]requested_item fm.sale_refund.total is exist - process it [09:05:12]requested_item fm.buy.total is exist - process it [09:05:12]requested_item shift.sale.total is exist - process it [09:05:12]SAM_PROTO_GetShiftData [09:05:12]wFMCommunicate request_size=4 [09:05:12]MH_SAM_APDU [09:05:12]CAPDU: 80 13 02 00 [09:05:12]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:05:12]Write i2c OK [09:05:12]MH_I2C_Read... [09:05:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:05:12]Read from MH i2c: E2 [09:05:12]MH_I2C_Read... [09:05:12]Read from MH i2c: E2 FD 00 [09:05:12]MH_I2C_Read... [09:05:12]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 22 00 00 00 B1 04 03 00 10 33 17 70 04 03 00 44 C4 15 72 04 03 00 CC 6E 01 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 AF 76 02 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 87 34 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2F [09:05:12]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 22 00 00 00 B1 04 03 00 10 33 17 70 04 03 00 44 C4 15 72 04 03 00 CC 6E 01 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 AF 76 02 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 87 34 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:05:12]wFMCommunicate OK [09:05:12]wFMCommunicate request_size=4 [09:05:12]MH_SAM_APDU [09:05:12]CAPDU: 80 17 00 00 [09:05:12]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:05:12]Write i2c OK [09:05:12]MH_I2C_Read... [09:05:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:05:13]Read from MH i2c: E2 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 FD 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BB [09:05:13]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:05:13]wFMCommunicate OK [09:05:13]wFMCommunicate request_size=4 [09:05:13]MH_SAM_APDU [09:05:13]CAPDU: 80 17 00 00 [09:05:13]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:05:13]Read from MH i2c: E2 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 FD 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [09:05:13]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:05:13]wFMCommunicate OK [09:05:13]wFMCommunicate request_size=4 [09:05:13]MH_SAM_APDU [09:05:13]CAPDU: 80 17 00 00 [09:05:13]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:05:13]Read from MH i2c: E2 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 FD 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 0D [09:05:13]RAPDU: 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 90 00 [09:05:13]wFMCommunicate OK [09:05:13]wFMCommunicate request_size=4 [09:05:13]MH_SAM_APDU [09:05:13]CAPDU: 80 17 00 00 [09:05:13]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:05:13]Read from MH i2c: E2 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 CB 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 85 [09:05:13]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:05:14]wFMCommunicate OK [09:05:14]SAM_PROTO_GetShiftData done [09:05:14]requested_item shift.sale.total_cash is exist - process it [09:05:14]requested_item shift.sale_refund.total is exist - process it [09:05:14]requested_item shift.sale_refund.total_cash is exist - process it [09:05:14]requested_item shift.buy.total is exist - process it [09:05:14]requested_item shift.buy.total_cash is exist - process it [09:05:14]produce_requested_data done [09:05:14]produce_requested_data return {"fm.sale.total":64593597.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":15204.00,"shift.sale.total_cash":14265.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} [09:05:14]process_action_free get_value [09:05:14]json_value_free [09:05:14]json_value_free done [09:05:14]process_json_proto returns [09:05:14]Send response to host [09:05:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64593597.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":15204.00,"shift.sale.total_cash":14265.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}}} [09:05:14]free response buf [09:05:14]execute_script done [09:05:14]execute_script returns [09:05:14]free content buf [09:05:14]Sock 7.Close socket [09:05:14]Sock 7.Thread stoped [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:34]int [09:05:34]Write to MH i2c: 01 00 00 1D 00 1D [09:05:34]Write i2c OK [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: 01 [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: 01 07 00 [09:05:34]MH_I2C_Read... [09:05:34]*** FLAG_PRN_PAP1 set [09:05:34]*** FLAG_PRN_PAP1 reset [09:05:34]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [09:05:34]state=0 [09:05:34]int [09:05:34]Write to MH i2c: 01 00 00 1E 00 1E [09:05:34]*** FLAG_PRN_PAP1 set [09:05:34]Write i2c OK [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: 01 [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: 01 07 00 [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: 01 07 00 1E 00 00 01 00 00 00 FF 0F 34 [09:05:34]state=0 [09:05:34]No paper [09:05:34]int [09:05:34]Write to MH i2c: 01 00 00 1F 00 1F [09:05:34]*** FLAG_PRN_PAP1 reset [09:05:34]Write i2c OK [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: 01 [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: 01 07 00 [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: 01 07 00 1F 00 00 00 00 00 00 FF 0F 34 [09:05:34]state=0 [09:05:34]int [09:05:34]Write to MH i2c: 01 00 00 20 00 20 [09:05:34]*** FLAG_PRN_PAP1 set [09:05:34]Write i2c OK [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: 01 [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: 01 07 00 [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: 01 07 00 20 00 00 01 00 00 00 FF 0F 36 [09:05:34]state=0 [09:05:34]No paper [09:05:34]int [09:05:34]Write to MH i2c: 01 00 00 21 00 21 [09:05:34]*** FLAG_PRN_PAP2 set [09:05:34]Write i2c OK [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: 01 [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: 01 07 00 [09:05:34]MH_I2C_Read... [09:05:34]Read from MH i2c: 01 07 00 21 00 00 03 00 00 00 FF 0F 39 [09:05:34]state=0 [09:05:34]No paper [09:05:34]Cover opened [09:05:35]OFD Sender: No OFD packet to send [09:05:39]Write to MH i2c: 01 00 00 22 00 22 [09:05:39]Write i2c OK [09:05:39]MH_I2C_Read... [09:05:39]Read from MH i2c: 01 [09:05:39]MH_I2C_Read... [09:05:39]Read from MH i2c: 01 07 00 [09:05:39]MH_I2C_Read... [09:05:39]Read from MH i2c: 01 07 00 22 00 00 03 00 00 00 FF 0F 3A [09:05:39]state=3 [09:05:39]No paper [09:05:39]Cover opened [09:05:40]OFD Sender: No OFD packet to send [09:05:44]Write to MH i2c: 01 00 00 23 00 23 [09:05:44]Write i2c OK [09:05:44]MH_I2C_Read... [09:05:44]Read from MH i2c: 01 [09:05:44]MH_I2C_Read... [09:05:44]Read from MH i2c: 01 07 00 [09:05:44]MH_I2C_Read... [09:05:44]Read from MH i2c: 01 07 00 23 00 00 03 00 00 00 FF 0F 3B [09:05:44]state=3 [09:05:44]No paper [09:05:44]Cover opened [09:05:45]OFD Sender: No OFD packet to send [09:05:49]Write to MH i2c: 01 00 00 24 00 24 [09:05:49]Write i2c OK [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: 01 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: 01 07 00 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: 01 07 00 24 00 00 03 00 00 00 FF 0F 3C [09:05:49]state=3 [09:05:49]No paper [09:05:49]Cover opened [09:05:50]OFD Sender: No OFD packet to send [09:05:54]Write to MH i2c: 01 00 00 25 00 25 [09:05:54]Write i2c OK [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: 01 [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: 01 07 00 [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: 01 07 00 25 00 00 03 00 00 00 FF 0F 3D [09:05:54]state=3 [09:05:54]No paper [09:05:54]Cover opened [09:05:55]OFD Sender: No OFD packet to send [09:05:59]Write to MH i2c: 01 00 00 26 00 26 [09:05:59]Write i2c OK [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: 01 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: 01 07 00 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: 01 07 00 26 00 00 03 00 00 00 FF 0F 3E [09:05:59]state=3 [09:05:59]No paper [09:05:59]Cover opened [09:06:00]OFD Sender: No OFD packet to send [09:06:04]Write to MH i2c: 01 00 00 27 00 27 [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: 01 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: 01 07 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: 01 07 00 27 00 00 03 00 00 00 FF 0F 3F [09:06:04]state=3 [09:06:04]No paper [09:06:04]Cover opened [09:06:05]OFD Sender: No OFD packet to send [09:06:09]int [09:06:09]Write to MH i2c: 01 00 00 28 00 28 [09:06:09]*** FLAG_PRN_PAP2 reset [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 07 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 07 00 28 00 00 01 00 00 00 FF 0F 3E [09:06:09]state=3 [09:06:09]No paper [09:06:09]Cover closed [09:06:09]int [09:06:09]Write to MH i2c: 01 00 00 29 00 29 [09:06:09]*** FLAG_PRN_PAP1 reset [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 07 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 07 00 29 00 00 00 00 00 00 FF 0F 3E [09:06:09]state=0 [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:35]accept exits with 9 [09:16:35]New connection [09:16:35]New thread 3067362660 created [09:16:35]Thread 3067219300 joined [09:16:35]Waiting for new connection... [09:16:35] Sock 9.Parse request [09:16:35]Sock 9.Check first char [09:16:35]Sock 9.First char is OK [09:16:35]request: POST /json_proto HTTP/1.0 [09:16:35]Method: POST [09:16:35]URL: /json_proto [09:16:35]Method is POST - this is cgi request [09:16:35]url: /json_proto [09:16:35]query_string will be loaded in cgi processing [09:16:35]execute_cgi json_proto POST (null) [09:16:35]execute_cgi path=json_proto method=POST [09:16:35]POST find Content-Length [09:16:35]Host: 172.17.41.136:8080 [09:16:35]Content-Length: 753 [09:16:35]Content-Type: application/json [09:16:35] [09:16:35]POST finish read [09:16:35]Found Content-Length = 753 [09:16:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.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\u000A30137998", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:35]execute_script... [09:16: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)24617468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.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\u000A30137998", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:35]POST & json_proto [09:16:35]process_json_proto [09:16:35]json parsed OK: [09:16:35]protocol is kg_v1.0 [09:16:35]action value=close_receipt [09:16:35]process_action close_receipt [09:16:35]cmd_close_receipt [09:16:35]MH_GetDate [09:16:35]Write to MH i2c: F0 00 00 2A 00 19 [09:16:35]Write i2c OK [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: F0 [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: F0 09 00 [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: F0 09 00 2A 00 00 F4 31 F1 66 1B D0 5A 64 47 [09:16:35]GetLastDocTimeStamp 1727082010 [09:16:35]current date 1727082996 [09:16:35]FM_GetShiftState [09:16:35]SAM_PROTO_GetShiftState [09:16:35]wFMCommunicate request_size=4 [09:16:35]MH_SAM_APDU [09:16:35]CAPDU: 80 13 01 00 [09:16:35]Write to MH i2c: E2 08 00 2B 00 80 13 01 00 00 00 00 00 A8 [09:16:35]Write i2c OK [09:16:35]MH_I2C_Read... [09:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:35]Read from MH i2c: E2 [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: E2 0E 00 [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: E2 0E 00 2B 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E9 [09:16:35]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:16:35]wFMCommunicate OK [09:16:35]SAM_PROTO_GetShiftState done [09:16:35]FM_GetShiftState done [09:16:35]opened in 1727052070 [09:16:35]opened+sec_in_day 1727138470 [09:16:35]quantity*price = 0 [09:16:35]sum+1 = 1 [09:16:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 35 23.09.2024 09:16 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30137998 ФМ: 0000000000871830 ФД: 115552 ФПД: 221293934546871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T091636&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115552&fm=221293934546871&tin=02508201610067®Number=0000000000091831&sum=0 [09:16:37]StoreToDocumentArchive [09:16:37]shift 472 fd 115552 [09:16:37]save to /storage/0472/doc_00115552 [09:16:37]save last doc name /storage/0472/doc_00115552 to /storage/kkm_last_doc_name [09:16:37]save OK [09:16:37]Clear old archive folders... [09:16:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:16:37]tlvbuf is 00A59A30 [09:16:37]SAM_PROTO_ClearQueue [09:16:37]wFMCommunicate request_size=4 [09:16:37]MH_SAM_APDU [09:16:37]CAPDU: 80 09 00 00 [09:16:37]Write to MH i2c: E2 08 00 38 00 80 09 00 00 00 00 00 00 AA [09:16:37]Write i2c OK [09:16:37]MH_I2C_Read... [09:16:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:37]Read from MH i2c: E2 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: E2 03 00 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: E2 03 00 38 00 00 90 00 AC [09:16:37]RAPDU: 90 00 [09:16:37]wFMCommunicate OK [09:16:37]SAM_PROTO_ClearQueue done [09:16:37]KKMCreateOFDPacket [09:16:37]OFDProtocolAddRootSTLVToBuf [09:16:37]FM_MakeSignedData [09:16:37]FM_MakeSignedData [09:16:37]SAM_PROTO_SignData [09:16:37]wFMCommunicate request_size=4 [09:16:37]MH_SAM_APDU [09:16:37]CAPDU: 80 0D 01 02 [09:16:37]Write to MH i2c: E2 08 00 39 00 80 0D 01 02 00 00 00 00 B2 [09:16:37]Write i2c OK [09:16:37]MH_I2C_Read... [09:16:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:37]Read from MH i2c: E2 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: E2 03 00 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: E2 03 00 39 00 00 90 00 AD [09:16:37]RAPDU: 90 00 [09:16:37]wFMCommunicate OK [09:16:37]wFMCommunicate request_size=255 [09:16:37]MH_SAM_APDU [09:16:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 23 00 00 00 F4 03 04 00 F4 31 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 60 C3 01 00 35 04 06 00 C9 44 02 5C [09:16:37]Write to MH i2c: E2 02 01 3A 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 23 00 00 00 F4 03 04 00 F4 31 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 60 C3 01 00 35 04 06 00 C9 44 02 5C 00 00 21 [09:16:37]Write i2c OK [09:16:37]MH_I2C_Read... [09:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:37]Read from MH i2c: E2 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: E2 03 00 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: E2 03 00 3A 00 00 90 00 AE [09:16:37]RAPDU: 90 00 [09:16:37]wFMCommunicate OK [09:16:37]wFMCommunicate request_size=7 [09:16:37]MH_SAM_APDU [09:16:37]CAPDU: 80 0D 02 02 02 0F B7 [09:16:37]Write to MH i2c: E2 0A 00 3B 00 80 0D 02 02 02 00 0F B7 00 00 7F [09:16:37]Write i2c OK [09:16:37]MH_I2C_Read... [09:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:37]Read from MH i2c: E2 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: E2 03 00 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: E2 03 00 3B 00 00 90 00 AF [09:16:37]RAPDU: 90 00 [09:16:37]wFMCommunicate OK [09:16:37]wFMCommunicate request_size=4 [09:16:37]MH_SAM_APDU [09:16:37]CAPDU: 80 0D 03 02 [09:16:37]Write to MH i2c: E2 08 00 3C 00 80 0D 03 02 00 00 00 00 B7 [09:16:37]Write i2c OK [09:16:37]MH_I2C_Read... [09:16:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:37]Read from MH i2c: E2 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: E2 0B 00 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: E2 0B 00 3C 00 00 59 78 FA 53 74 BE 27 6F 90 00 9E [09:16:37]RAPDU: 59 78 FA 53 74 BE 27 6F 90 00 [09:16:37]wFMCommunicate OK [09:16:37]SAM_PROTO_SignData done [09:16:37]FM_MakeSignedData done [09:16:37]CreateOFDProtocolMessage [09:16:37]wFMCommunicate request_size=4 [09:16:37]MH_SAM_APDU [09:16:37]CAPDU: 80 11 00 00 [09:16:37]Write to MH i2c: E2 08 00 3D 00 80 11 00 00 00 00 00 00 B7 [09:16:37]Write i2c OK [09:16:37]MH_I2C_Read... [09:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:37]Read from MH i2c: E2 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: E2 17 00 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: E2 17 00 3D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 05 [09:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:16:37]wFMCommunicate OK [09:16:37]CreateOFDProtocolMessage done [09:16:37]OFDSenderStorePacket 115552 [09:16:37]StoreOFDPacket docnum=115552 [09:16:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 23 5D 04 01 24 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 23 00 00 00 F4 03 04 00 F4 31 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 60 C3 01 00 35 04 06 00 C9 44 02 5C 0F B7 59 78 FA 53 74 BE 27 6F [09:16:37]CheckFolder [09:16:37]dirname=/storage/ofd_packets [09:16:37]CheckFolder done [09:16:37]ProducePacketName [09:16:37]name=ofd_packets/00115552 [09:16:37]NVStorageSaveData ofd_packets/00115552 [09:16:37]File name is /storage/ofd_packets/00115552 [09:16:37]Write 298 bytes [09:16:37]NVStorageSaveData done [09:16:37]OFDSenderStorePacket done [09:16:37]KKMCreateOFDPacket done [09:16:37]NVStorageSaveData kkm_last_timestamp [09:16:37]File name is /storage/kkm_last_timestamp [09:16:37]Write 4 bytes [09:16:37]NVStorageSaveData done [09:16:37]ExternCall_PrintAddStr [09:16:37]wPrintStart [09:16:37]Write to MH i2c: 01 00 00 3E 00 3E [09:16:37]Write i2c OK [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: 01 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: 01 07 00 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: 01 07 00 3E 00 00 00 00 00 00 FF 0F 53 [09:16:37]RasterBufferAndPrint [09:16:37]line Счет N : (1)24617468 [09:16:37]line ИНН: 02508201610067 [09:16:37]line Контрольно-Кассовый Чек [09:16:37]line ПРОДАЖА [09:16:37]line ТРК (МРК, ГНК) : 22 [09:16:37]line Товар: 2710194210 [09:16:37]line ДТ-К-5 [09:16:37]line 50.000 * 0.00 [09:16:37]line = 0.00 [09:16:37]line НДС 12% НСП 1% [09:16:37]line > о реализуемом товаре [09:16:37]line ИТОГО: 0.00 [09:16:37]line НСП 1% : 0.00 [09:16:37]line НДС 12% : 0.00 [09:16:37]line Наличными: 0.00 [09:16:37]line Безнал.: 0.00 [09:16:37]line Место: АЗС № 90 "Партнер Нефть" [09:16:37]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:16:37]line СНО: Общий режим [09:16:37]line Чек 35 23.09.2024 09:16 [09:16:37]line Смена: 472 ФФД: 1.0 [09:16:37]line ЗНМ: 0300000120 [09:16:37]line РНМ: 0000000000091831 [09:16:37]line Версия ККМ: 001 [09:16:37]line Талоны: ТК ГПНА Online [09:16:37]line 30137998 [09:16:37]line ФМ: 0000000000871830 [09:16:37]line ФД: 115552 [09:16:37]line ФПД: 221293934546871 [09:16:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T091636&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115552&fm=221293934546871&tin=02508201610067®Number=0000000000091831&sum=0 [09:16:37]written 0, free lines is 4095 [09:16:37]OFD Sender: Processing packet 115552 [packets to send 481, broken 480] [09:16:37]ProducePacketName [09:16:37]name=ofd_packets/00115552 [09:16:37]OFD Sender: To server: pG, [09:16:37]CommunicateWithHost lk.salyk.kg:30040 [09:16:37]ConnectInit lk.salyk.kg [09:16:37]Connected sock=10 [09:16: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 38 33 30 0C 01 00 00 23 5D 04 01 24 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 23 00 00 00 F4 03 04 00 F4 31 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 60 C3 01 00 35 04 06 00 C9 44 02 5C 0F B7 59 78 FA 53 74 BE 27 6F [09:16:38]Write to MH i2c: 01 00 00 67 00 67 [09:16:38]Write i2c OK [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: 01 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: 01 07 00 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: 01 07 00 67 00 00 00 00 00 00 64 0C DE [09:16:38]RasterBufferAndPrint [09:16:38]line [09:16:38]line [09:16:38]line [09:16:38]line [09:16:38]line [09:16:38]written 0, free lines is 3177 [09:16:38]MH_Cut [09:16:38]Write to MH i2c: D1 01 00 6E 00 01 40 [09:16:38]Write i2c OK [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: D1 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: D1 01 00 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: D1 01 00 6E 00 00 3F [09:16:38]Write to MH i2c: 01 00 00 6F 00 6F [09:16:38]Write i2c OK [09:16:38]MH_I2C_Read... [09:16:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 14 F0 47 00 3C 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 60 C3 01 00 F4 03 04 00 37 D7 F0 66 B6 04 01 00 00 47 6C 7F 59 C8 15 61 59 [09:16:38]CommunicateWithHost err = 0 [09:16:38]CheckOFDResponse [09:16:38]1017 (14) - 77093643461234 [09:16:38]1041 (16) - 0000000000871830 [09:16:38]1040 (4) - 115552 [09:16:38]1012 (4) - 23.09.2024 02:49 [09:16:38]1206 (1) - 0 [09:16:38]OFD Sender: Remove packet 115552 [09:16:38]ProducePacketName [09:16:38]name=ofd_packets/00115552 [09:16:38]NVStorageDeleteData [09:16:38]OFD Sender: No OFD packet to send [09:16:39]*** Cut start [09:16:39]*** Partial cut [09:16:39]*** CUTSNS_PIN = 1 [09:16:39]*** CUTSNS_PIN = 0 [09:16:39]*** Brake cut motor [09:16:40]Read from MH i2c: 01 [09:16:40]MH_I2C_Read... [09:16:40]*** Stop cut motor [09:16:40]*** Cut end [09:16:40]Read from MH i2c: 01 07 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 FF 0F 84 [09:16:40]process_action close_receipt done [09:16:40]requested_data is exist [09:16:40]produce_requested_data [09:16:40]requested_item fm.sn is exist - process it [09:16:40]wFMCommunicate request_size=4 [09:16:40]MH_SAM_APDU [09:16:40]CAPDU: 80 11 00 00 [09:16:40]Write to MH i2c: E2 08 00 70 00 80 11 00 00 00 00 00 00 EA [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:40]Read from MH i2c: E2 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 17 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 17 00 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 38 [09:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:16:40]wFMCommunicate OK [09:16:40]requested_item fd.num is exist - process it [09:16:40]SAM_PROTO_GetFieldsCounters [09:16:40]wFMCommunicate request_size=4 [09:16:40]MH_SAM_APDU [09:16:40]CAPDU: 80 13 00 00 [09:16:40]Write to MH i2c: E2 08 00 71 00 80 13 00 00 00 00 00 00 ED [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:40]Read from MH i2c: E2 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 62 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 62 00 71 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 60 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [09:16: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 60 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:40]wFMCommunicate OK [09:16:40]SAM_PROTO_GetFieldsCounters done [09:16:40]requested_item shift.num is exist - process it [09:16:40]requested_item shift.opened is exist - process it [09:16:40]req_shift_opened [09:16:40]FM_GetShiftState [09:16:40]SAM_PROTO_GetShiftState [09:16:40]wFMCommunicate request_size=4 [09:16:40]MH_SAM_APDU [09:16:40]CAPDU: 80 13 01 00 [09:16:40]Write to MH i2c: E2 08 00 72 00 80 13 01 00 00 00 00 00 EF [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 [09:16:40]MH_I2C_Read... [09:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:40]Read from MH i2c: E2 0E 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 0E 00 72 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 30 [09:16:40]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:16:40]wFMCommunicate OK [09:16:40]SAM_PROTO_GetShiftState done [09:16:40]FM_GetShiftState done [09:16:40]req_shift_opened done [09:16:40]requested_item shift.open_date is exist - process it [09:16:40]req_shift_open_date [09:16:40]req_shift_open_date done [09:16:40]produce_requested_data done [09:16:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115552,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:16:40]process_action_free close_receipt [09:16:40]json_value_free [09:16:40]json_value_free done [09:16:40]process_json_proto returns [09:16:40]Send response to host [09:16:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115552,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:16:40]free response buf [09:16:40]execute_script done [09:16:40]execute_script returns [09:16:40]free content buf [09:16:40]Sock 9.Close socket [09:16:40]Sock 9.Thread stoped [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]accept exits with 7 [09:17:08]New connection [09:17:08]New thread 3067219300 created [09:17:08]Thread 3067362660 joined [09:17:08]Waiting for new connection... [09:17:08] Sock 7.Parse request [09:17:08]Sock 7.Check first char [09:17:08]Sock 7.First char is OK [09:17:08]request: POST /json_proto HTTP/1.0 [09:17:08]Method: POST [09:17:08]URL: /json_proto [09:17:08]Method is POST - this is cgi request [09:17:08]url: /json_proto [09:17:08]query_string will be loaded in cgi processing [09:17:08]execute_cgi json_proto POST (null) [09:17:08]execute_cgi path=json_proto method=POST [09:17:08]POST find Content-Length [09:17:08]Host: 172.17.41.136:8080 [09:17:08]Content-Length: 914 [09:17:08]Content-Type: application/json [09:17:08] [09:17:08]POST finish read [09:17:08]Found Content-Length = 914 [09:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343974", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 8.000, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:08]execute_script... [09:17:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343974", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 8.000, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:08]POST & json_proto [09:17:08]process_json_proto [09:17:08]json parsed OK: [09:17:08]protocol is kg_v1.0 [09:17:08]action value=close_receipt [09:17:08]process_action close_receipt [09:17:08]cmd_close_receipt [09:17:08]MH_GetDate [09:17:08]Write to MH i2c: F0 00 00 73 00 62 [09:17:08]Write i2c OK [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: F0 [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: F0 09 00 [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: F0 09 00 73 00 00 15 32 F1 66 1B D0 5A 64 B2 [09:17:08]GetLastDocTimeStamp 1727082996 [09:17:08]current date 1727083029 [09:17:08]FM_GetShiftState [09:17:08]SAM_PROTO_GetShiftState [09:17:08]wFMCommunicate request_size=4 [09:17:08]MH_SAM_APDU [09:17:08]CAPDU: 80 13 01 00 [09:17:08]Write to MH i2c: E2 08 00 74 00 80 13 01 00 00 00 00 00 F1 [09:17:08]Write i2c OK [09:17:08]MH_I2C_Read... [09:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:08]Read from MH i2c: E2 [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: E2 0E 00 [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: E2 0E 00 74 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 32 [09:17:08]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:17:08]wFMCommunicate OK [09:17:08]SAM_PROTO_GetShiftState done [09:17:08]FM_GetShiftState done [09:17:08]opened in 1727052070 [09:17:08]opened+sec_in_day 1727138470 [09:17:08]quantity*price = 23000 [09:17:08]sum+1 = 23001 [09:17:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 8.000 * 125.00 = 1000.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1230.00 НСП 1% : 10.88 НДС 12% : 130.61 Наличными: 1230.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 36 23.09.2024 09:17 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115553 ФПД: 175130676346522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T091709&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115553&fm=175130676346522&tin=02508201610067®Number=0000000000091831&sum=123000 0 [09:17:09]StoreToDocumentArchive [09:17:09]shift 472 fd 115553 [09:17:09]save to /storage/0472/doc_00115553 [09:17:09]save last doc name /storage/0472/doc_00115553 to /storage/kkm_last_doc_name [09:17:09]save OK [09:17:09]Clear old archive folders... [09:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=394 [09:17:09]tlvbuf is 00A83D30 [09:17:09]SAM_PROTO_ClearQueue [09:17:09]wFMCommunicate request_size=4 [09:17:09]MH_SAM_APDU [09:17:09]CAPDU: 80 09 00 00 [09:17:09]Write to MH i2c: E2 08 00 81 00 80 09 00 00 00 00 00 00 F3 [09:17:09]Write i2c OK [09:17:09]MH_I2C_Read... [09:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:09]Read from MH i2c: E2 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 03 00 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 03 00 81 00 00 90 00 F5 [09:17:09]RAPDU: 90 00 [09:17:09]wFMCommunicate OK [09:17:09]SAM_PROTO_ClearQueue done [09:17:09]KKMCreateOFDPacket [09:17:09]OFDProtocolAddRootSTLVToBuf [09:17:09]FM_MakeSignedData [09:17:09]FM_MakeSignedData [09:17:09]SAM_PROTO_SignData [09:17:09]wFMCommunicate request_size=4 [09:17:09]MH_SAM_APDU [09:17:09]CAPDU: 80 0D 01 02 [09:17:09]Write to MH i2c: E2 08 00 82 00 80 0D 01 02 00 00 00 00 FB [09:17:09]Write i2c OK [09:17:09]MH_I2C_Read... [09:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:09]Read from MH i2c: E2 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 03 00 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 03 00 82 00 00 90 00 F6 [09:17:09]RAPDU: 90 00 [09:17:09]wFMCommunicate OK [09:17:09]wFMCommunicate request_size=255 [09:17:09]MH_SAM_APDU [09:17:09]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E0 01 00 00 00 EB 03 26 00 EF 03 0F [09:17:09]Write to MH i2c: E2 02 01 83 00 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E0 01 00 00 00 EB 03 26 00 EF 03 0F 00 00 A8 [09:17:09]Write i2c OK [09:17:09]MH_I2C_Read... [09:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:10]Read from MH i2c: E2 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 83 00 00 90 00 F7 [09:17:10]RAPDU: 90 00 [09:17:10]wFMCommunicate OK [09:17:10]wFMCommunicate request_size=153 [09:17:10]MH_SAM_APDU [09:17:10]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 40 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 33 00 00 00 00 07 04 06 00 78 E0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 15 32 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 61 C3 01 00 35 04 06 00 9F 47 C9 C0 BE 9A [09:17:10]Write to MH i2c: E2 9C 00 84 00 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 40 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 33 00 00 00 00 07 04 06 00 78 E0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 15 32 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 61 C3 01 00 35 04 06 00 9F 47 C9 C0 BE 9A 00 00 A2 [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:10]Read from MH i2c: E2 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 84 00 00 90 00 F8 [09:17:10]RAPDU: 90 00 [09:17:10]wFMCommunicate OK [09:17:10]wFMCommunicate request_size=4 [09:17:10]MH_SAM_APDU [09:17:10]CAPDU: 80 0D 03 02 [09:17:10]Write to MH i2c: E2 08 00 85 00 80 0D 03 02 00 00 00 00 00 [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:10]Read from MH i2c: E2 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 0B 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 0B 00 85 00 00 85 0B EB F9 8F 83 AD 41 90 00 75 [09:17:10]RAPDU: 85 0B EB F9 8F 83 AD 41 90 00 [09:17:10]wFMCommunicate OK [09:17:10]SAM_PROTO_SignData done [09:17:10]FM_MakeSignedData done [09:17:10]CreateOFDProtocolMessage [09:17:10]wFMCommunicate request_size=4 [09:17:10]MH_SAM_APDU [09:17:10]CAPDU: 80 11 00 00 [09:17:10]Write to MH i2c: E2 08 00 86 00 80 11 00 00 00 00 00 00 00 [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:10]Read from MH i2c: E2 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 17 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 17 00 86 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4E [09:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:17:10]wFMCommunicate OK [09:17:10]CreateOFDProtocolMessage done [09:17:10]OFDSenderStorePacket 115553 [09:17:10]StoreOFDPacket docnum=115553 [09:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9E 01 00 00 03 F2 96 01 FE 35 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 33 00 00 00 00 07 04 06 00 78 E0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 15 32 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 61 C3 01 00 35 04 06 00 9F 47 C9 C0 BE 9A 85 0B EB F9 8F 83 AD 41 [09:17:10]CheckFolder [09:17:10]dirname=/storage/ofd_packets [09:17:10]CheckFolder done [09:17:10]ProducePacketName [09:17:10]name=ofd_packets/00115553 [09:17:10]NVStorageSaveData ofd_packets/00115553 [09:17:10]File name is /storage/ofd_packets/00115553 [09:17:10]Write 444 bytes [09:17:10]NVStorageSaveData done [09:17:10]OFDSenderStorePacket done [09:17:10]KKMCreateOFDPacket done [09:17:10]NVStorageSaveData kkm_last_timestamp [09:17:10]File name is /storage/kkm_last_timestamp [09:17:10]Write 4 bytes [09:17:10]NVStorageSaveData done [09:17:10]ExternCall_PrintAddStr [09:17:10]wPrintStart [09:17:10]Write to MH i2c: 01 00 00 87 00 87 [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 07 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 07 00 87 00 00 00 00 00 00 FF 0F 9C [09:17:10]RasterBufferAndPrint [09:17:10]line Счет N : (3)343974 [09:17:10]line ИНН: 02508201610067 [09:17:10]line Контрольно-Кассовый Чек [09:17:10]line ПРОДАЖА [09:17:10]line Товар: 2000036210013 [09:17:10]line Кофе Капучино (GABB TRADE) [09:17:10]line 2.000 * 115.00 [09:17:10]line = 230.00 [09:17:10]line НДС 12% НСП 1% [09:17:10]line > о реализуемом товаре [09:17:10]line Товар: 2000036190018 [09:17:10]line Кофе Американо XL(GABB TRADE) [09:17:10]line 8.000 * 125.00 [09:17:10]line = 1000.00 [09:17:10]line НДС 12% НСП 1% [09:17:10]line > о реализуемом товаре [09:17:10]line ИТОГО: 1230.00 [09:17:10]line НСП 1% : 10.88 [09:17:10]line НДС 12% : 130.61 [09:17:10]line Наличными: 1230.00 [09:17:10]line Безнал.: 0.00 [09:17:10]line Место: АЗС № 90 "Партнер Нефть" [09:17:10]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:17:10]line СНО: Общий режим [09:17:10]line Чек 36 23.09.2024 09:17 [09:17:10]line Смена: 472 ФФД: 1.0 [09:17:10]line ЗНМ: 0300000120 [09:17:10]line РНМ: 0000000000091831 [09:17:10]line Версия ККМ: 001 [09:17:10]line ФМ: 0000000000871830 [09:17:10]line ФД: 115553 [09:17:10]line ФПД: 175130676346522 [09:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T091709&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115553&fm=175130676346522&tin=02508201610067®Number=0000000000091831&sum=123000 [09:17:10]OFD Sender: Processing packet 115553 [packets to send 481, broken 480] [09:17:10]ProducePacketName [09:17:10]name=ofd_packets/00115553 [09:17:10]OFD Sender: To server: pG, [09:17:10]CommunicateWithHost lk.salyk.kg:30040 [09:17:10]ConnectInit lk.salyk.kg [09:17:10]line 0 [09:17:10]written 0, free lines is 4095 [09:17:10]Connected sock=10 [09:17: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 38 33 30 9E 01 00 00 03 F2 96 01 FE 35 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 33 00 00 00 00 07 04 06 00 78 E0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 15 32 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 61 C3 01 00 35 04 06 00 9F 47 C9 C0 BE 9A 85 0B EB F9 8F 83 AD 41 [09:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 2A D9 47 00 7B 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 38 33 30 10 04 04 00 61 C3 01 00 F4 03 04 00 58 D7 F0 66 B6 04 01 00 00 38 90 24 F8 DF 95 56 1A [09:17:11]CommunicateWithHost err = 0 [09:17:11]CheckOFDResponse [09:17:11]1017 (14) - 77093643461234 [09:17:11]1041 (16) - 0000000000871830 [09:17:11]1040 (4) - 115553 [09:17:11]1012 (4) - 23.09.2024 02:50 [09:17:11]1206 (1) - 0 [09:17:11]OFD Sender: Remove packet 115553 [09:17:11]ProducePacketName [09:17:11]name=ofd_packets/00115553 [09:17:11]NVStorageDeleteData [09:17:11]Write to MH i2c: 01 00 00 B5 00 B5 [09:17:11]Write i2c OK [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: 01 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: 01 07 00 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: 01 07 00 B5 00 00 00 00 00 00 EC 0B B3 [09:17:11]RasterBufferAndPrint [09:17:11]line [09:17:11]line [09:17:11]line [09:17:11]line [09:17:11]line [09:17:11]written 0, free lines is 3055 [09:17:11]MH_Cut [09:17:11]Write to MH i2c: D1 01 00 BC 00 01 8E [09:17:11]Write i2c OK [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: D1 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: D1 01 00 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: D1 01 00 BC 00 00 8D [09:17:11]Write to MH i2c: 01 00 00 BD 00 BD [09:17:11]Write i2c OK [09:17:11]MH_I2C_Read... [09:17:11]OFD Sender: No OFD packet to send [09:17:12]*** Cut start [09:17:12]*** Partial cut [09:17:12]*** CUTSNS_PIN = 1 [09:17:12]*** CUTSNS_PIN = 0 [09:17:12]*** Brake cut motor [09:17:13]Read from MH i2c: 01 [09:17:13]MH_I2C_Read... [09:17:13]*** Stop cut motor [09:17:13]*** Cut end [09:17:13]Read from MH i2c: 01 07 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: 01 07 00 BD 00 00 00 00 00 00 FF 0F D2 [09:17:13]process_action close_receipt done [09:17:13]requested_data is exist [09:17:13]produce_requested_data [09:17:13]requested_item fm.sn is exist - process it [09:17:13]wFMCommunicate request_size=4 [09:17:13]MH_SAM_APDU [09:17:13]CAPDU: 80 11 00 00 [09:17:13]Write to MH i2c: E2 08 00 BE 00 80 11 00 00 00 00 00 00 38 [09:17:13]Write i2c OK [09:17:13]MH_I2C_Read... [09:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:13]Read from MH i2c: E2 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 17 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 17 00 BE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 86 [09:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:17:13]wFMCommunicate OK [09:17:13]requested_item fd.num is exist - process it [09:17:13]SAM_PROTO_GetFieldsCounters [09:17:13]wFMCommunicate request_size=4 [09:17:13]MH_SAM_APDU [09:17:13]CAPDU: 80 13 00 00 [09:17:13]Write to MH i2c: E2 08 00 BF 00 80 13 00 00 00 00 00 00 3B [09:17:13]Write i2c OK [09:17:13]MH_I2C_Read... [09:17:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:13]Read from MH i2c: E2 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 62 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 62 00 BF 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 61 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [09:17: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 61 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:13]wFMCommunicate OK [09:17:13]SAM_PROTO_GetFieldsCounters done [09:17:13]requested_item shift.num is exist - process it [09:17:13]requested_item shift.opened is exist - process it [09:17:13]req_shift_opened [09:17:13]FM_GetShiftState [09:17:13]SAM_PROTO_GetShiftState [09:17:13]wFMCommunicate request_size=4 [09:17:13]MH_SAM_APDU [09:17:13]CAPDU: 80 13 01 00 [09:17:13]Write to MH i2c: E2 08 00 C0 00 80 13 01 00 00 00 00 00 3D [09:17:13]Write i2c OK [09:17:13]MH_I2C_Read... [09:17:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:13]Read from MH i2c: E2 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 0E 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 0E 00 C0 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7E [09:17:13]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:17:13]wFMCommunicate OK [09:17:13]SAM_PROTO_GetShiftState done [09:17:13]FM_GetShiftState done [09:17:13]req_shift_opened done [09:17:13]requested_item shift.open_date is exist - process it [09:17:13]req_shift_open_date [09:17:13]req_shift_open_date done [09:17:13]produce_requested_data done [09:17:13]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115553,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:17:13]process_action_free close_receipt [09:17:13]json_value_free [09:17:13]json_value_free done [09:17:13]process_json_proto returns [09:17:13]Send response to host [09:17:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115553,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:17:13]free response buf [09:17:13]execute_script done [09:17:13]execute_script returns [09:17:13]free content buf [09:17:13]Sock 7.Close socket [09:17:13]Sock 7.Thread stoped [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5E [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 *** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]00 *** [00:00:09]02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725B9 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 43410272+1683673115=1727083387 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x200ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x334f0623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [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 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5F [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 78 00 38 00 FF FF 8E [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 7C 33 F1 66 1B D0 5A 64 AE [09:23:08]Current date/time: 23.09.2024 09:23 [09:23:08]FM_Init [09:23:08]wFMConnect [09:23:08]MH_SAM_On [09:23:08]Write to MH i2c: E0 00 00 08 00 E7 [09:23:08]Write i2c OK [09:23:08]MH_I2C_Read... [09:23:08]*** iso7816_init finished! [09:23:08]*** atr: [09:23:08]*** 0F 3B D5 18 FF 81 91 FE [09:23:08]*** 1F C3 80 73 C8 21 10 0A [09:23:08]*** 00 00 00 00 00 00 00 00 [09:23:08]*** 00 00 00 00 00 00 00 00 [09:23:08]*** 00 00 00 00 00 00 00 00 [09:23:08]*** 00 00 00 00 00 00 00 00 [09:23:08]*** 00 00 00 00 00 00 00 00 [09:23:08]*** 00 00 00 00 00 00 00 00 [09:23:08]Read from MH i2c: E0 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E0 10 00 [09:23:08]MH_I2C_Read... [09:23:08]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 [09:23:08]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:23:08]wFMCommunicate request_size=10 [09:23:08]MH_SAM_APDU [09:23:08]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:23:08]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:23:08]Write i2c OK [09:23:08]MH_I2C_Read... [09:23:08]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:23:08]Read from MH i2c: E2 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 03 00 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:23:08]RAPDU: 90 00 [09:23:08]wFMCommunicate OK [09:23:08]wFMCommunicate request_size=4 [09:23:08]MH_SAM_APDU [09:23:08]CAPDU: 80 11 00 00 [09:23:08]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:23:08]Write i2c OK [09:23:08]MH_I2C_Read... [09:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:08]Read from MH i2c: E2 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 17 00 [09:23:08]MH_I2C_Read... [09:23:08]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 38 33 30 90 00 D2 [09:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:23:08]wFMCommunicate OK [09:23:08]Detected FM SN is 0000000000871830 [09:23:08]Stored FM SN is 0000000000871830 [09:23:08]wFMCommunicate request_size=9 [09:23:08]MH_SAM_APDU [09:23:08]CAPDU: 80 16 00 00 04 2B 08 01 00 [09:23:08]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 2B 08 01 00 00 00 C6 [09:23:08]Write i2c OK [09:23:08]MH_I2C_Read... [09:23:08]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:23:08]Read from MH i2c: E2 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 03 00 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:23:08]RAPDU: 90 00 [09:23:08]wFMCommunicate OK [09:23:08]FM PIN OK [09:23:08]wFMCommunicate request_size=8 [09:23:08]MH_SAM_APDU [09:23:08]CAPDU: 80 14 04 00 03 02 00 01 [09:23:08]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:23:08]Write i2c OK [09:23:08]MH_I2C_Read... [09:23:08]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:23:08]Read from MH i2c: E2 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 03 00 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:23:08]RAPDU: 90 00 [09:23:08]wFMCommunicate OK [09:23:08]wFMCommunicate request_size=13 [09:23:08]MH_SAM_APDU [09:23:08]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:23:08]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 [09:23:08]Write i2c OK [09:23:08]MH_I2C_Read... [09:23:08]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:23:08]Read from MH i2c: E2 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 03 00 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:23:08]RAPDU: 90 00 [09:23:08]wFMCommunicate OK [09:23:08]wFMCommunicate request_size=4 [09:23:08]MH_SAM_APDU [09:23:08]CAPDU: 80 11 00 00 [09:23:08]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:23:08]Write i2c OK [09:23:08]MH_I2C_Read... [09:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:08]Read from MH i2c: E2 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 17 00 [09:23:08]MH_I2C_Read... [09:23:08]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 38 33 30 90 00 D6 [09:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:23:08]wFMCommunicate OK [09:23:08]DocumentArchiveInit [09:23:08]Start Httpd... [09:23:08]Httpd thread 3067481444 created [09:23:08]Write to MH i2c: 01 00 00 0F 00 0F [09:23:08]Write i2c OK [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: 01 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: 01 07 00 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:23:08]Allocated Socket 6 [09:23:08]Bind OK [09:23:08]Listen OK [09:23:08]httpd running on port 8080 [09:23:08]Waiting for new connection... [09:23:08]MH Int Process started [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:18]accept exits with 7 [09:23:18]New connection [09:23:18]New thread 3067194724 created [09:23:18]Waiting for new connection... [09:23:18] Sock 7.Parse request [09:23:18]Sock 7.Check first char [09:23:18]Sock 7.First char is OK [09:23:18]request: POST /json_proto HTTP/1.0 [09:23:18]Method: POST [09:23:18]URL: /json_proto [09:23:18]Method is POST - this is cgi request [09:23:18]url: /json_proto [09:23:18]query_string will be loaded in cgi processing [09:23:18]execute_cgi json_proto POST (null) [09:23:18]execute_cgi path=json_proto method=POST [09:23:18]POST find Content-Length [09:23:18]Host: 172.17.41.136:8080 [09:23:18]Content-Length: 215 [09:23:18]Content-Type: application/json [09:23:18] [09:23:18]POST finish read [09:23:18]Found Content-Length = 215 [09:23:18]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" ] } } [09:23:18]execute_script... [09:23:18]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" ] } } [09:23:18]POST & json_proto [09:23:18]process_json_proto [09:23:18]json parsed OK: [09:23:18]protocol is kg_v1.0 [09:23:18]action value=get_value [09:23:18]process_action get_value [09:23:18]cmd_get_value [09:23:18]process_action get_value done [09:23:18]requested_data is exist [09:23:18]produce_requested_data [09:23:18]requested_item kkm.sn is exist - process it [09:23:18]requested_item kkm.ver is exist - process it [09:23:18]requested_item fm.sn is exist - process it [09:23:18]wFMCommunicate request_size=4 [09:23:18]MH_SAM_APDU [09:23:18]CAPDU: 80 11 00 00 [09:23:18]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:23:18]Write i2c OK [09:23:18]MH_I2C_Read... [09:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:18]Read from MH i2c: E2 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 17 00 [09:23:18]MH_I2C_Read... [09:23:18]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 38 33 30 90 00 D8 [09:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:23:18]wFMCommunicate OK [09:23:18]requested_item fd.num is exist - process it [09:23:18]SAM_PROTO_GetFieldsCounters [09:23:18]wFMCommunicate request_size=4 [09:23:18]MH_SAM_APDU [09:23:18]CAPDU: 80 13 00 00 [09:23:18]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:23:18]Write i2c OK [09:23:18]MH_I2C_Read... [09:23:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:18]Read from MH i2c: E2 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 62 00 [09:23:18]MH_I2C_Read... [09:23:18]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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 61 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [09:23:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 61 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:18]wFMCommunicate OK [09:23:18]SAM_PROTO_GetFieldsCounters done [09:23:18]requested_item shift.num is exist - process it [09:23:18]requested_item shift.opened is exist - process it [09:23:18]req_shift_opened [09:23:18]FM_GetShiftState [09:23:18]SAM_PROTO_GetShiftState [09:23:18]wFMCommunicate request_size=4 [09:23:18]MH_SAM_APDU [09:23:18]CAPDU: 80 13 01 00 [09:23:18]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:23:18]Write i2c OK [09:23:18]MH_I2C_Read... [09:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:18]Read from MH i2c: E2 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 0E 00 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D0 [09:23:18]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:23:18]wFMCommunicate OK [09:23:18]SAM_PROTO_GetShiftState done [09:23:18]FM_GetShiftState done [09:23:18]req_shift_opened done [09:23:18]requested_item shift.open_date is exist - process it [09:23:18]req_shift_open_date [09:23:18]req_shift_open_date done [09:23:18]produce_requested_data done [09:23:18]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115553,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:23:18]process_action_free get_value [09:23:18]json_value_free [09:23:18]json_value_free done [09:23:18]process_json_proto returns [09:23:18]Send response to host [09:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115553,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:23:18]free response buf [09:23:18]execute_script done [09:23:18]execute_script returns [09:23:18]free content buf [09:23:18]Sock 7.Close socket [09:23:18]Sock 7.Thread stoped [09:23:18]accept exits with 9 [09:23:18]New connection [09:23:18]New thread 3067051364 created [09:23:18]Thread 3067194724 joined [09:23:18]Waiting for new connection... [09:23:18] Sock 9.Parse request [09:23:18]Sock 9.Check first char [09:23:18]Sock 9.First char is OK [09:23:18]request: POST /json_proto HTTP/1.0 [09:23:18]Method: POST [09:23:18]URL: /json_proto [09:23:18]Method is POST - this is cgi request [09:23:18]url: /json_proto [09:23:18]query_string will be loaded in cgi processing [09:23:18]execute_cgi json_proto POST (null) [09:23:18]execute_cgi path=json_proto method=POST [09:23:18]POST find Content-Length [09:23:18]Host: 172.17.41.136:8080 [09:23:18]Content-Length: 331 [09:23:18]Content-Type: application/json [09:23:18] [09:23:18]POST finish read [09:23:18]Found Content-Length = 331 [09:23: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" ] } } [09:23:18]execute_script... [09:23: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" ] } } [09:23:18]POST & json_proto [09:23:18]process_json_proto [09:23:18]json parsed OK: [09:23:18]protocol is kg_v1.0 [09:23:18]action value=get_value [09:23:18]process_action get_value [09:23:18]cmd_get_value [09:23:18]process_action get_value done [09:23:18]requested_data is exist [09:23:18]produce_requested_data [09:23:18]requested_item fm.sale.total is exist - process it [09:23:18]SAM_PROTO_GetFMData [09:23:18]wFMCommunicate request_size=4 [09:23:18]MH_SAM_APDU [09:23:18]CAPDU: 80 13 03 00 [09:23:18]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:23:18]Write i2c OK [09:23:18]MH_I2C_Read... [09:23:19]OFD Sender: No OFD packet to send [09:23:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:23:19]Read from MH i2c: E2 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 FD 00 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 B0 BF 01 00 69 04 A3 00 6F 04 04 00 33 BE 01 00 B1 04 05 00 99 E2 03 81 01 70 04 05 00 59 C5 5D 47 01 72 04 04 00 40 1D A6 39 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 F9 D7 E4 28 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 F4 30 68 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 41 AD 01 EF 03 09 90 00 49 [09:23:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B0 BF 01 00 69 04 A3 00 6F 04 04 00 33 BE 01 00 B1 04 05 00 99 E2 03 81 01 70 04 05 00 59 C5 5D 47 01 72 04 04 00 40 1D A6 39 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 F9 D7 E4 28 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 F4 30 68 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 41 AD 01 EF 03 09 90 00 [09:23:19]wFMCommunicate OK [09:23:19]wFMCommunicate request_size=4 [09:23:19]MH_SAM_APDU [09:23:19]CAPDU: 80 17 00 00 [09:23:19]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:23:19]Write i2c OK [09:23:19]MH_I2C_Read... [09:23:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:23:19]Read from MH i2c: E2 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 FD 00 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 81 [09:23:19]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:23:19]wFMCommunicate OK [09:23:19]wFMCommunicate request_size=4 [09:23:19]MH_SAM_APDU [09:23:19]CAPDU: 80 17 00 00 [09:23:19]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:23:19]Write i2c OK [09:23:19]MH_I2C_Read... [09:23:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:23:19]Read from MH i2c: E2 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 FD 00 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A7 [09:23:19]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:23:19]wFMCommunicate OK [09:23:19]wFMCommunicate request_size=4 [09:23:19]MH_SAM_APDU [09:23:19]CAPDU: 80 17 00 00 [09:23:19]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:23:19]Write i2c OK [09:23:19]MH_I2C_Read... [09:23:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 FD 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [09:23:20]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:23:20]wFMCommunicate OK [09:23:20]wFMCommunicate request_size=4 [09:23:20]MH_SAM_APDU [09:23:20]CAPDU: 80 17 00 00 [09:23:20]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 E2 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [09:23:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:23:20]wFMCommunicate OK [09:23:20]SAM_PROTO_GetFMData done [09:23:20]requested_item fm.sale_refund.total is exist - process it [09:23:20]requested_item fm.buy.total is exist - process it [09:23:20]requested_item shift.sale.total is exist - process it [09:23:20]SAM_PROTO_GetShiftData [09:23:20]wFMCommunicate request_size=4 [09:23:20]MH_SAM_APDU [09:23:20]CAPDU: 80 13 02 00 [09:23:20]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 FD 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 24 00 00 00 69 04 9B 00 6F 04 04 00 24 00 00 00 B1 04 03 00 88 13 19 70 04 03 00 BC A4 17 72 04 03 00 CC 6E 01 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 B4 A9 02 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 C7 38 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 63 [09:23:20]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 24 00 00 00 69 04 9B 00 6F 04 04 00 24 00 00 00 B1 04 03 00 88 13 19 70 04 03 00 BC A4 17 72 04 03 00 CC 6E 01 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 B4 A9 02 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 C7 38 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:23:20]wFMCommunicate OK [09:23:20]wFMCommunicate request_size=4 [09:23:20]MH_SAM_APDU [09:23:20]CAPDU: 80 17 00 00 [09:23:20]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 FD 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BB [09:23:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:23:21]wFMCommunicate OK [09:23:21]wFMCommunicate request_size=4 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 17 00 00 [09:23:21]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 FD 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [09:23:21]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:23:21]wFMCommunicate OK [09:23:21]wFMCommunicate request_size=4 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 17 00 00 [09:23:21]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 FD 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 0D [09:23:21]RAPDU: 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 90 00 [09:23:21]wFMCommunicate OK [09:23:21]wFMCommunicate request_size=4 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 17 00 00 [09:23:21]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:23:22]Read from MH i2c: E2 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 CB 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 85 [09:23:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:23:22]wFMCommunicate OK [09:23:22]SAM_PROTO_GetShiftData done [09:23:22]requested_item shift.sale.total_cash is exist - process it [09:23:22]requested_item shift.sale_refund.total is exist - process it [09:23:22]requested_item shift.sale_refund.total_cash is exist - process it [09:23:22]requested_item shift.buy.total is exist - process it [09:23:22]requested_item shift.buy.total_cash is exist - process it [09:23:22]produce_requested_data done [09:23:22]produce_requested_data return {"fm.sale.total":64594827.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":16434.00,"shift.sale.total_cash":15495.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} [09:23:22]process_action_free get_value [09:23:22]json_value_free [09:23:22]json_value_free done [09:23:22]process_json_proto returns [09:23:22]Send response to host [09:23:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64594827.77,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":16434.00,"shift.sale.total_cash":15495.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}}} [09:23:22]free response buf [09:23:22]execute_script done [09:23:22]execute_script returns [09:23:22]free content buf [09:23:22]Sock 9.Close socket [09:23:22]Sock 9.Thread stoped [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:12]accept exits with 7 [09:30:12]New connection [09:30:12]New thread 3067194724 created [09:30:12]Thread 3067051364 joined [09:30:12]Waiting for new connection... [09:30:12] Sock 7.Parse request [09:30:12]Sock 7.Check first char [09:30:12]Sock 7.First char is OK [09:30:12]request: POST /json_proto HTTP/1.0 [09:30:12]Method: POST [09:30:12]URL: /json_proto [09:30:12]Method is POST - this is cgi request [09:30:12]url: /json_proto [09:30:12]query_string will be loaded in cgi processing [09:30:12]execute_cgi json_proto POST (null) [09:30:12]execute_cgi path=json_proto method=POST [09:30:12]POST find Content-Length [09:30:12]Host: 172.17.41.136:8080 [09:30:12]Content-Length: 625 [09:30:12]Content-Type: application/json [09:30:12] [09:30:12]POST finish read [09:30:12]Found Content-Length = 625 [09:30:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:12]execute_script... [09:30: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)24617469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:12]POST & json_proto [09:30:12]process_json_proto [09:30:12]json parsed OK: [09:30:12]protocol is kg_v1.0 [09:30:12]action value=close_receipt [09:30:12]process_action close_receipt [09:30:12]cmd_close_receipt [09:30:12]MH_GetDate [09:30:12]Write to MH i2c: F0 00 00 1D 00 0C [09:30:12]Write i2c OK [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: F0 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: F0 09 00 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: F0 09 00 1D 00 00 25 35 F1 66 1B D0 5A 64 6F [09:30:12]GetLastDocTimeStamp 1727083029 [09:30:12]current date 1727083813 [09:30:12]FM_GetShiftState [09:30:12]SAM_PROTO_GetShiftState [09:30:12]wFMCommunicate request_size=4 [09:30:12]MH_SAM_APDU [09:30:12]CAPDU: 80 13 01 00 [09:30:12]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [09:30:12]Write i2c OK [09:30:12]MH_I2C_Read... [09:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:12]Read from MH i2c: E2 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: E2 0E 00 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 DC [09:30:12]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:30:12]wFMCommunicate OK [09:30:12]SAM_PROTO_GetShiftState done [09:30:12]FM_GetShiftState done [09:30:12]opened in 1727052070 [09:30:12]opened+sec_in_day 1727138470 [09:30:12]quantity*price = 99999 [09:30:12]sum+1 = 100001 [09:30:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 37 23.09.2024 09:30 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115554 ФПД: 252944404095986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T093013&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115554&fm=252944404095986&tin=02508201610067®Number=0000000000091831&sum=100000 [09:30:13]StoreToDocumentArchive [09:30:13]shift 472 fd 115554 [09:30:13]save to /storage/0472/doc_00115554 [09:30:13]save last doc name /storage/0472/doc_00115554 to /storage/kkm_last_doc_name [09:30:13]save OK [09:30:13]Clear old archive folders... [09:30:13]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:30:13]tlvbuf is B6F90AD0 [09:30:13]SAM_PROTO_ClearQueue [09:30:13]wFMCommunicate request_size=4 [09:30:13]MH_SAM_APDU [09:30:13]CAPDU: 80 09 00 00 [09:30:13]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:30:13]Write i2c OK [09:30:13]MH_I2C_Read... [09:30:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:13]Read from MH i2c: E2 [09:30:13]MH_I2C_Read... [09:30:13]Read from MH i2c: E2 03 00 [09:30:13]MH_I2C_Read... [09:30:13]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:30:13]RAPDU: 90 00 [09:30:13]wFMCommunicate OK [09:30:13]SAM_PROTO_ClearQueue done [09:30:13]KKMCreateOFDPacket [09:30:13]OFDProtocolAddRootSTLVToBuf [09:30:13]FM_MakeSignedData [09:30:13]FM_MakeSignedData [09:30:13]SAM_PROTO_SignData [09:30:13]wFMCommunicate request_size=4 [09:30:13]MH_SAM_APDU [09:30:13]CAPDU: 80 0D 01 02 [09:30:13]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:30:13]Write i2c OK [09:30:13]MH_I2C_Read... [09:30:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:13]Read from MH i2c: E2 [09:30:13]MH_I2C_Read... [09:30:13]Read from MH i2c: E2 03 00 [09:30:13]MH_I2C_Read... [09:30:13]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:30:13]RAPDU: 90 00 [09:30:13]wFMCommunicate OK [09:30:13]wFMCommunicate request_size=253 [09:30:13]MH_SAM_APDU [09:30:13]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 25 35 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 62 C3 01 00 35 04 06 00 E6 0D 35 5A A3 F2 [09:30:13]Write to MH i2c: E2 00 01 2D 00 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 25 35 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 62 C3 01 00 35 04 06 00 E6 0D 35 5A A3 F2 00 00 95 [09:30:13]Write i2c OK [09:30:13]MH_I2C_Read... [09:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:14]Read from MH i2c: E2 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: E2 03 00 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:30:14]RAPDU: 90 00 [09:30:14]wFMCommunicate OK [09:30:14]wFMCommunicate request_size=4 [09:30:14]MH_SAM_APDU [09:30:14]CAPDU: 80 0D 03 02 [09:30:14]Write to MH i2c: E2 08 00 2E 00 80 0D 03 02 00 00 00 00 A9 [09:30:14]Write i2c OK [09:30:14]MH_I2C_Read... [09:30:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:14]Read from MH i2c: E2 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: E2 0B 00 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: E2 0B 00 2E 00 00 CC 7E 03 C3 B6 59 91 56 90 00 B0 [09:30:14]RAPDU: CC 7E 03 C3 B6 59 91 56 90 00 [09:30:14]wFMCommunicate OK [09:30:14]SAM_PROTO_SignData done [09:30:14]FM_MakeSignedData done [09:30:14]CreateOFDProtocolMessage [09:30:14]wFMCommunicate request_size=4 [09:30:14]MH_SAM_APDU [09:30:14]CAPDU: 80 11 00 00 [09:30:14]Write to MH i2c: E2 08 00 2F 00 80 11 00 00 00 00 00 00 A9 [09:30:14]Write i2c OK [09:30:14]MH_I2C_Read... [09:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:14]Read from MH i2c: E2 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: E2 17 00 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: E2 17 00 2F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F7 [09:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:30:14]wFMCommunicate OK [09:30:14]CreateOFDProtocolMessage done [09:30:14]OFDSenderStorePacket 115554 [09:30:14]StoreOFDPacket docnum=115554 [09:30:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 AB 6C 00 01 2C D4 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 25 35 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 62 C3 01 00 35 04 06 00 E6 0D 35 5A A3 F2 CC 7E 03 C3 B6 59 91 56 [09:30:14]CheckFolder [09:30:14]dirname=/storage/ofd_packets [09:30:14]CheckFolder done [09:30:14]ProducePacketName [09:30:14]name=ofd_packets/00115554 [09:30:14]NVStorageSaveData ofd_packets/00115554 [09:30:14]File name is /storage/ofd_packets/00115554 [09:30:14]Write 294 bytes [09:30:14]NVStorageSaveData done [09:30:14]OFDSenderStorePacket done [09:30:14]KKMCreateOFDPacket done [09:30:14]NVStorageSaveData kkm_last_timestamp [09:30:14]File name is /storage/kkm_last_timestamp [09:30:14]Write 4 bytes [09:30:14]NVStorageSaveData done [09:30:14]ExternCall_PrintAddStr [09:30:14]wPrintStart [09:30:14]Write to MH i2c: 01 00 00 30 00 30 [09:30:14]Write i2c OK [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: 01 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: 01 07 00 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: 01 07 00 30 00 00 00 00 00 00 FF 0F 45 [09:30:14]RasterBufferAndPrint [09:30:14]line Счет N : (1)24617469 [09:30:14]line ИНН: 02508201610067 [09:30:14]line Контрольно-Кассовый Чек [09:30:14]line ПРОДАЖА [09:30:14]line ТРК (МРК, ГНК) : 44 [09:30:14]line Товар: 2710124130 [09:30:14]line SU-92 [09:30:14]line 14.430 * 69.30 [09:30:14]line = 1000.00 [09:30:14]line НДС 12% НСП 1% [09:30:14]line > о реализуемом товаре [09:30:14]line ИТОГО: 1000.00 [09:30:14]line НСП 1% : 8.85 [09:30:14]line НДС 12% : 106.19 [09:30:14]line Наличными: 1000.00 [09:30:14]line Безнал.: 0.00 [09:30:14]line Место: АЗС № 90 "Партнер Нефть" [09:30:14]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:30:14]line СНО: Общий режим [09:30:14]line Чек 37 23.09.2024 09:30 [09:30:14]line Смена: 472 ФФД: 1.0 [09:30:14]line ЗНМ: 0300000120 [09:30:14]line РНМ: 0000000000091831 [09:30:14]line Версия ККМ: 001 [09:30:14]line ФМ: 0000000000871830 [09:30:14]line ФД: 115554 [09:30:14]line ФПД: 252944404095986 [09:30:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T093013&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115554&fm=252944404095986&tin=02508201610067®Number=0000000000091831&sum=100000 [09:30:14]written 0, free lines is 4095 [09:30:14]OFD Sender: Processing packet 115554 [packets to send 481, broken 480] [09:30:14]ProducePacketName [09:30:14]name=ofd_packets/00115554 [09:30:14]OFD Sender: To server: pG, [09:30:14]CommunicateWithHost lk.salyk.kg:30040 [09:30:14]ConnectInit lk.salyk.kg [09:30:14]Connected sock=10 [09:30: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 38 33 30 08 01 00 00 AB 6C 00 01 2C D4 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 25 35 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 62 C3 01 00 35 04 06 00 E6 0D 35 5A A3 F2 CC 7E 03 C3 B6 59 91 56 [09:30:14]Write to MH i2c: 01 00 00 57 00 57 [09:30:14]Write i2c OK [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: 01 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: 01 07 00 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 98 0C 02 [09:30:14]RasterBufferAndPrint [09:30:14]line [09:30:14]line [09:30:14]line [09:30:14]line [09:30:14]line [09:30:14]written 0, free lines is 3228 [09:30:14]MH_Cut [09:30:14]Write to MH i2c: D1 01 00 5E 00 01 30 [09:30:14]Write i2c OK [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: D1 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: D1 01 00 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: D1 01 00 5E 00 00 2F [09:30:14]Write to MH i2c: 01 00 00 5F 00 5F [09:30:14]Write i2c OK [09:30:14]MH_I2C_Read... [09:30:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 AE 3D 47 00 0F 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 38 33 30 10 04 04 00 62 C3 01 00 F4 03 04 00 68 DA F0 66 B6 04 01 00 00 4D 6F 8F 6E 7A 33 37 DC [09:30:14]CommunicateWithHost err = 0 [09:30:14]CheckOFDResponse [09:30:14]1017 (14) - 77093643461234 [09:30:14]1041 (16) - 0000000000871830 [09:30:14]1040 (4) - 115554 [09:30:14]1012 (4) - 23.09.2024 03:03 [09:30:14]1206 (1) - 0 [09:30:14]OFD Sender: Remove packet 115554 [09:30:14]ProducePacketName [09:30:14]name=ofd_packets/00115554 [09:30:14]NVStorageDeleteData [09:30:15]OFD Sender: No OFD packet to send [09:30:16]*** Cut start [09:30:16]*** Partial cut [09:30:16]*** CUTSNS_PIN = 1 [09:30:16]*** CUTSNS_PIN = 0 [09:30:16]*** Brake cut motor [09:30:16]Read from MH i2c: 01 [09:30:16]MH_I2C_Read... [09:30:16]*** Stop cut motor [09:30:16]*** Cut end [09:30:16]Read from MH i2c: 01 07 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: 01 07 00 5F 00 00 00 00 00 00 FF 0F 74 [09:30:16]process_action close_receipt done [09:30:16]requested_data is exist [09:30:16]produce_requested_data [09:30:16]requested_item fm.sn is exist - process it [09:30:16]wFMCommunicate request_size=4 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 11 00 00 [09:30:16]Write to MH i2c: E2 08 00 60 00 80 11 00 00 00 00 00 00 DA [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 17 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 17 00 60 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 28 [09:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:30:16]wFMCommunicate OK [09:30:16]requested_item fd.num is exist - process it [09:30:16]SAM_PROTO_GetFieldsCounters [09:30:16]wFMCommunicate request_size=4 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 13 00 00 [09:30:16]Write to MH i2c: E2 08 00 61 00 80 13 00 00 00 00 00 00 DD [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 62 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 62 00 61 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 62 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [09:30:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 62 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:16]wFMCommunicate OK [09:30:16]SAM_PROTO_GetFieldsCounters done [09:30:16]requested_item shift.num is exist - process it [09:30:16]requested_item shift.opened is exist - process it [09:30:16]req_shift_opened [09:30:16]FM_GetShiftState [09:30:16]SAM_PROTO_GetShiftState [09:30:16]wFMCommunicate request_size=4 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 13 01 00 [09:30:16]Write to MH i2c: E2 08 00 62 00 80 13 01 00 00 00 00 00 DF [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 0E 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 0E 00 62 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 20 [09:30:16]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:30:16]wFMCommunicate OK [09:30:16]SAM_PROTO_GetShiftState done [09:30:16]FM_GetShiftState done [09:30:16]req_shift_opened done [09:30:16]requested_item shift.open_date is exist - process it [09:30:16]req_shift_open_date [09:30:16]req_shift_open_date done [09:30:16]produce_requested_data done [09:30:16]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115554,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:30:16]process_action_free close_receipt [09:30:16]json_value_free [09:30:16]json_value_free done [09:30:16]process_json_proto returns [09:30:16]Send response to host [09:30:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115554,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:30:16]free response buf [09:30:16]execute_script done [09:30:16]execute_script returns [09:30:16]free content buf [09:30:16]Sock 7.Close socket [09:30:16]Sock 7.Thread stoped [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:50]accept exits with 9 [09:35:50]New connection [09:35:50]New thread 3067051364 created [09:35:50]Thread 3067194724 joined [09:35:50]Waiting for new connection... [09:35:50] Sock 9.Parse request [09:35:50]Sock 9.Check first char [09:35:50]Sock 9.First char is OK [09:35:50]request: POST /json_proto HTTP/1.0 [09:35:50]Method: POST [09:35:50]URL: /json_proto [09:35:50]Method is POST - this is cgi request [09:35:50]url: /json_proto [09:35:50]query_string will be loaded in cgi processing [09:35:50]execute_cgi json_proto POST (null) [09:35:50]execute_cgi path=json_proto method=POST [09:35:50]POST find Content-Length [09:35:50]Host: 172.17.41.136:8080 [09:35:50]Content-Length: 965 [09:35:50]Content-Type: application/json [09:35:50] [09:35:50]POST finish read [09:35:50]Found Content-Length = 965 [09:35:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343975", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:50]execute_script... [09:35:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343975", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:50]POST & json_proto [09:35:50]process_json_proto [09:35:50]json parsed OK: [09:35:50]protocol is kg_v1.0 [09:35:50]action value=close_receipt [09:35:50]process_action close_receipt [09:35:50]cmd_close_receipt [09:35:50]MH_GetDate [09:35:50]Write to MH i2c: F0 00 00 63 00 52 [09:35:50]Write i2c OK [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: F0 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: F0 09 00 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: F0 09 00 63 00 00 77 36 F1 66 1B D0 5A 64 08 [09:35:50]GetLastDocTimeStamp 1727083813 [09:35:50]current date 1727084151 [09:35:50]FM_GetShiftState [09:35:50]SAM_PROTO_GetShiftState [09:35:50]wFMCommunicate request_size=4 [09:35:50]MH_SAM_APDU [09:35:50]CAPDU: 80 13 01 00 [09:35:50]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [09:35:50]Write i2c OK [09:35:50]MH_I2C_Read... [09:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:50]Read from MH i2c: E2 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: E2 0E 00 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 22 [09:35:50]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:35:50]wFMCommunicate OK [09:35:50]SAM_PROTO_GetShiftState done [09:35:50]FM_GetShiftState done [09:35:50]opened in 1727052070 [09:35:50]opened+sec_in_day 1727138470 [09:35:50]quantity*price = 10500 [09:35:50]sum+1 = 10501 [09:35:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4780014240406 Сигареты Sovereign Blue 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 239.00 НСП 1% : 2.12 НДС 12% : 25.38 Наличными: 239.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 38 23.09.2024 09:35 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115555 ФПД: 280677183375067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T093551&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115555&fm=280677183375067&tin=02508201610067®Number=0000000000091831&sum=23900 0 [09:35:51]StoreToDocumentArchive [09:35:51]shift 472 fd 115555 [09:35:51]save to /storage/0472/doc_00115555 [09:35:51]save last doc name /storage/0472/doc_00115555 to /storage/kkm_last_doc_name [09:35:51]save OK [09:35:51]Clear old archive folders... [09:35:51]ProcessDocumentItem done err = 0, tmpTLVsize=411 [09:35:51]tlvbuf is 0093E6F0 [09:35:51]SAM_PROTO_ClearQueue [09:35:51]wFMCommunicate request_size=4 [09:35:51]MH_SAM_APDU [09:35:51]CAPDU: 80 09 00 00 [09:35:51]Write to MH i2c: E2 08 00 71 00 80 09 00 00 00 00 00 00 E3 [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:51]Read from MH i2c: E2 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 03 00 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 03 00 71 00 00 90 00 E5 [09:35:51]RAPDU: 90 00 [09:35:51]wFMCommunicate OK [09:35:51]SAM_PROTO_ClearQueue done [09:35:51]KKMCreateOFDPacket [09:35:51]OFDProtocolAddRootSTLVToBuf [09:35:51]FM_MakeSignedData [09:35:51]FM_MakeSignedData [09:35:51]SAM_PROTO_SignData [09:35:51]wFMCommunicate request_size=4 [09:35:51]MH_SAM_APDU [09:35:51]CAPDU: 80 0D 01 02 [09:35:51]Write to MH i2c: E2 08 00 72 00 80 0D 01 02 00 00 00 00 EB [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:51]Read from MH i2c: E2 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 03 00 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 03 00 72 00 00 90 00 E6 [09:35:51]RAPDU: 90 00 [09:35:51]wFMCommunicate OK [09:35:51]wFMCommunicate request_size=255 [09:35:51]MH_SAM_APDU [09:35:51]CAPDU: 80 0D 02 02 FA 03 00 9B 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [09:35:51]Write to MH i2c: E2 02 01 73 00 80 0D 02 02 FA 00 03 00 9B 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 D9 [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [09:35:52]RAPDU: 90 00 [09:35:52]wFMCommunicate OK [09:35:52]wFMCommunicate request_size=170 [09:35:52]MH_SAM_APDU [09:35:52]CAPDU: 80 0D 02 02 A5 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 77 36 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 63 C3 01 00 35 04 06 00 FF 46 3F CF C6 DB [09:35:52]Write to MH i2c: E2 AD 00 74 00 80 0D 02 02 A5 00 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 77 36 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 63 C3 01 00 35 04 06 00 FF 46 3F CF C6 DB 00 00 C9 [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [09:35:52]RAPDU: 90 00 [09:35:52]wFMCommunicate OK [09:35:52]wFMCommunicate request_size=4 [09:35:52]MH_SAM_APDU [09:35:52]CAPDU: 80 0D 03 02 [09:35:52]Write to MH i2c: E2 08 00 75 00 80 0D 03 02 00 00 00 00 F0 [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 0B 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 0B 00 75 00 00 ED D9 4A D9 BF 9E 90 35 90 00 FC [09:35:52]RAPDU: ED D9 4A D9 BF 9E 90 35 90 00 [09:35:52]wFMCommunicate OK [09:35:52]SAM_PROTO_SignData done [09:35:52]FM_MakeSignedData done [09:35:52]CreateOFDProtocolMessage [09:35:52]wFMCommunicate request_size=4 [09:35:52]MH_SAM_APDU [09:35:52]CAPDU: 80 11 00 00 [09:35:52]Write to MH i2c: E2 08 00 76 00 80 11 00 00 00 00 00 00 F0 [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 17 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 17 00 76 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3E [09:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:35:52]wFMCommunicate OK [09:35:52]CreateOFDProtocolMessage done [09:35:52]OFDSenderStorePacket 115555 [09:35:52]StoreOFDPacket docnum=115555 [09:35:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 AF 01 00 00 EC 73 A7 01 5D 81 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 77 36 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 63 C3 01 00 35 04 06 00 FF 46 3F CF C6 DB ED D9 4A D9 BF 9E 90 35 [09:35:52]CheckFolder [09:35:52]dirname=/storage/ofd_packets [09:35:52]CheckFolder done [09:35:52]ProducePacketName [09:35:52]name=ofd_packets/00115555 [09:35:52]NVStorageSaveData ofd_packets/00115555 [09:35:52]File name is /storage/ofd_packets/00115555 [09:35:52]Write 461 bytes [09:35:52]NVStorageSaveData done [09:35:52]OFDSenderStorePacket done [09:35:52]KKMCreateOFDPacket done [09:35:52]NVStorageSaveData kkm_last_timestamp [09:35:52]File name is /storage/kkm_last_timestamp [09:35:52]Write 4 bytes [09:35:52]NVStorageSaveData done [09:35:52]ExternCall_PrintAddStr [09:35:52]wPrintStart [09:35:52]Write to MH i2c: 01 00 00 77 00 77 [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: 01 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: 01 07 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: 01 07 00 77 00 00 00 00 00 00 FF 0F 8C [09:35:52]RasterBufferAndPrint [09:35:52]line Счет N : (3)343975 [09:35:52]line ИНН: 02508201610067 [09:35:52]line Контрольно-Кассовый Чек [09:35:52]line ПРОДАЖА [09:35:52]line Товар: 5449000027474 [09:35:52]line Напиток FuzeTea зел чай манго,ромашка 1л [09:35:52]line 1.000 * 105.00 [09:35:52]line = 105.00 [09:35:52]line НДС 12% НСП 1% [09:35:52]line > о реализуемом товаре [09:35:52]line Товар: 4780014240406 [09:35:52]line Сигареты Sovereign Blue [09:35:52]line 1.000 * 134.00 [09:35:52]line = 134.00 [09:35:52]line НДС 12% НСП 1% [09:35:52]line > о реализуемом товаре [09:35:52]line ИТОГО: 239.00 [09:35:52]line НСП 1% : 2.12 [09:35:52]line НДС 12% : 25.38 [09:35:52]line Наличными: 239.00 [09:35:52]line Безнал.: 0.00 [09:35:52]line Место: АЗС № 90 "Партнер Нефть" [09:35:52]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:35:52]line СНО: Общий режим [09:35:52]line Чек 38 23.09.2024 09:35 [09:35:52]line Смена: 472 ФФД: 1.0 [09:35:52]line ЗНМ: 0300000120 [09:35:52]line РНМ: 0000000000091831 [09:35:52]line Версия ККМ: 001 [09:35:52]line ФМ: 0000000000871830 [09:35:52]line ФД: 115555 [09:35:52]line ФПД: 280677183375067 [09:35:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T093551&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115555&fm=280677183375067&tin=02508201610067®Number=0000000000091831&sum=23900 [09:35:52]line 0 [09:35:52]OFD Sender: Processing packet 115555 [packets to send 481, broken 480] [09:35:52]ProducePacketName [09:35:52]name=ofd_packets/00115555 [09:35:52]OFD Sender: To server: pG, [09:35:52]CommunicateWithHost lk.salyk.kg:30040 [09:35:52]ConnectInit lk.salyk.kg [09:35:52]written 0, free lines is 4095 [09:35:52]Connected sock=10 [09:35: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 38 33 30 AF 01 00 00 EC 73 A7 01 5D 81 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 77 36 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 63 C3 01 00 35 04 06 00 FF 46 3F CF C6 DB ED D9 4A D9 BF 9E 90 35 [09:35:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1D 09 47 00 B9 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 38 33 30 10 04 04 00 63 C3 01 00 F4 03 04 00 BA DB F0 66 B6 04 01 00 00 50 B6 A8 FB 89 87 62 95 [09:35:53]CommunicateWithHost err = 0 [09:35:53]CheckOFDResponse [09:35:53]1017 (14) - 77093643461234 [09:35:53]1041 (16) - 0000000000871830 [09:35:53]1040 (4) - 115555 [09:35:53]1012 (4) - 23.09.2024 03:08 [09:35:53]1206 (1) - 0 [09:35:53]OFD Sender: Remove packet 115555 [09:35:53]ProducePacketName [09:35:53]name=ofd_packets/00115555 [09:35:53]NVStorageDeleteData [09:35:53]Write to MH i2c: 01 00 00 A5 00 A5 [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: 01 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: 01 07 00 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 F8 0B AF [09:35:53]RasterBufferAndPrint [09:35:53]line [09:35:53]line [09:35:53]line [09:35:53]line [09:35:53]line [09:35:53]written 0, free lines is 3068 [09:35:53]MH_Cut [09:35:53]Write to MH i2c: D1 01 00 AC 00 01 7E [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: D1 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: D1 01 00 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: D1 01 00 AC 00 00 7D [09:35:53]Write to MH i2c: 01 00 00 AD 00 AD [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]OFD Sender: No OFD packet to send [09:35:54]*** Cut start [09:35:54]*** Partial cut [09:35:54]*** CUTSNS_PIN = 1 [09:35:54]*** CUTSNS_PIN = 0 [09:35:55]*** Brake cut motor [09:35:55]Read from MH i2c: 01 [09:35:55]MH_I2C_Read... [09:35:55]*** Stop cut motor [09:35:55]*** Cut end [09:35:55]Read from MH i2c: 01 07 00 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [09:35:55]process_action close_receipt done [09:35:55]requested_data is exist [09:35:55]produce_requested_data [09:35:55]requested_item fm.sn is exist - process it [09:35:55]wFMCommunicate request_size=4 [09:35:55]MH_SAM_APDU [09:35:55]CAPDU: 80 11 00 00 [09:35:55]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [09:35:55]Write i2c OK [09:35:55]MH_I2C_Read... [09:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:55]Read from MH i2c: E2 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: E2 17 00 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 76 [09:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:35:55]wFMCommunicate OK [09:35:55]requested_item fd.num is exist - process it [09:35:55]SAM_PROTO_GetFieldsCounters [09:35:55]wFMCommunicate request_size=4 [09:35:55]MH_SAM_APDU [09:35:55]CAPDU: 80 13 00 00 [09:35:55]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [09:35:55]Write i2c OK [09:35:55]MH_I2C_Read... [09:35:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:55]Read from MH i2c: E2 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: E2 62 00 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: E2 62 00 AF 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 63 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [09:35: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 63 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:55]wFMCommunicate OK [09:35:55]SAM_PROTO_GetFieldsCounters done [09:35:55]requested_item shift.num is exist - process it [09:35:55]requested_item shift.opened is exist - process it [09:35:55]req_shift_opened [09:35:55]FM_GetShiftState [09:35:55]SAM_PROTO_GetShiftState [09:35:55]wFMCommunicate request_size=4 [09:35:55]MH_SAM_APDU [09:35:55]CAPDU: 80 13 01 00 [09:35:55]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [09:35:55]Write i2c OK [09:35:55]MH_I2C_Read... [09:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:55]Read from MH i2c: E2 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: E2 0E 00 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6E [09:35:55]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:35:55]wFMCommunicate OK [09:35:55]SAM_PROTO_GetShiftState done [09:35:55]FM_GetShiftState done [09:35:55]req_shift_opened done [09:35:55]requested_item shift.open_date is exist - process it [09:35:55]req_shift_open_date [09:35:55]req_shift_open_date done [09:35:55]produce_requested_data done [09:35:55]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115555,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:35:55]process_action_free close_receipt [09:35:55]json_value_free [09:35:55]json_value_free done [09:35:55]process_json_proto returns [09:35:55]Send response to host [09:35:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115555,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:35:55]free response buf [09:35:55]execute_script done [09:35:55]execute_script returns [09:35:55]free content buf [09:35:55]Sock 9.Close socket [09:35:55]Sock 9.Thread stoped [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:45]accept exits with 7 [09:36:45]New connection [09:36:45]New thread 3067194724 created [09:36:45]Thread 3067051364 joined [09:36:45]Waiting for new connection... [09:36:45] Sock 7.Parse request [09:36:45]Sock 7.Check first char [09:36:45]Sock 7.First char is OK [09:36:45]request: POST /json_proto HTTP/1.0 [09:36:45]Method: POST [09:36:45]URL: /json_proto [09:36:45]Method is POST - this is cgi request [09:36:45]url: /json_proto [09:36:45]query_string will be loaded in cgi processing [09:36:45]execute_cgi json_proto POST (null) [09:36:45]execute_cgi path=json_proto method=POST [09:36:45]POST find Content-Length [09:36:45]Host: 172.17.41.136:8080 [09:36:45]Content-Length: 792 [09:36:45]Content-Type: application/json [09:36:45] [09:36:45]POST finish read [09:36:45]Found Content-Length = 792 [09:36:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 125.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\u000A03209", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:45]execute_script... [09:36:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 125.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\u000A03209", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:45]POST & json_proto [09:36:45]process_json_proto [09:36:45]json parsed OK: [09:36:45]protocol is kg_v1.0 [09:36:45]action value=close_receipt [09:36:45]process_action close_receipt [09:36:45]cmd_close_receipt [09:36:45]MH_GetDate [09:36:45]Write to MH i2c: F0 00 00 B1 00 A0 [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: F0 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: F0 09 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: F0 09 00 B1 00 00 AD 36 F1 66 1B D0 5A 64 8C [09:36:45]GetLastDocTimeStamp 1727084151 [09:36:45]current date 1727084205 [09:36:45]FM_GetShiftState [09:36:45]SAM_PROTO_GetShiftState [09:36:45]wFMCommunicate request_size=4 [09:36:45]MH_SAM_APDU [09:36:45]CAPDU: 80 13 01 00 [09:36:45]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:45]Read from MH i2c: E2 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 0E 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 70 [09:36:45]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:36:45]wFMCommunicate OK [09:36:45]SAM_PROTO_GetShiftState done [09:36:45]FM_GetShiftState done [09:36:45]opened in 1727052070 [09:36:45]opened+sec_in_day 1727138470 [09:36:45]quantity*price = 0 [09:36:45]sum+1 = 1 [09:36:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 39 23.09.2024 09:36 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливная Карта 03209 ФМ: 0000000000871830 ФД: 115556 ФПД: 88509150123159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T093645&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115556&fm=88509150123159&tin=02508201610067®Number=0000000000091831&sum=0 [09:36:46]StoreToDocumentArchive [09:36:46]shift 472 fd 115556 [09:36:46]save to /storage/0472/doc_00115556 [09:36:46]save last doc name /storage/0472/doc_00115556 to /storage/kkm_last_doc_name [09:36:46]save OK [09:36:46]Clear old archive folders... [09:36:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:36:46]tlvbuf is 00943710 [09:36:46]SAM_PROTO_ClearQueue [09:36:46]wFMCommunicate request_size=4 [09:36:46]MH_SAM_APDU [09:36:46]CAPDU: 80 09 00 00 [09:36:46]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:46]Read from MH i2c: E2 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 03 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [09:36:46]RAPDU: 90 00 [09:36:46]wFMCommunicate OK [09:36:46]SAM_PROTO_ClearQueue done [09:36:46]KKMCreateOFDPacket [09:36:46]OFDProtocolAddRootSTLVToBuf [09:36:46]FM_MakeSignedData [09:36:46]FM_MakeSignedData [09:36:46]SAM_PROTO_SignData [09:36:46]wFMCommunicate request_size=4 [09:36:46]MH_SAM_APDU [09:36:46]CAPDU: 80 0D 01 02 [09:36:46]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:46]Read from MH i2c: E2 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 03 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [09:36:46]RAPDU: 90 00 [09:36:46]wFMCommunicate OK [09:36:46]wFMCommunicate request_size=255 [09:36:46]MH_SAM_APDU [09:36:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 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 27 00 00 00 F4 03 04 00 AD 36 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 64 C3 01 00 35 04 06 00 50 7F A4 73 [09:36:46]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 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 27 00 00 00 F4 03 04 00 AD 36 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 64 C3 01 00 35 04 06 00 50 7F A4 73 00 00 07 [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:46]Read from MH i2c: E2 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 03 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [09:36:46]RAPDU: 90 00 [09:36:46]wFMCommunicate OK [09:36:46]wFMCommunicate request_size=7 [09:36:46]MH_SAM_APDU [09:36:46]CAPDU: 80 0D 02 02 02 D4 97 [09:36:46]Write to MH i2c: E2 0A 00 C2 00 80 0D 02 02 02 00 D4 97 00 00 AB [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:46]Read from MH i2c: E2 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 03 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [09:36:46]RAPDU: 90 00 [09:36:46]wFMCommunicate OK [09:36:46]wFMCommunicate request_size=4 [09:36:46]MH_SAM_APDU [09:36:46]CAPDU: 80 0D 03 02 [09:36:46]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:46]Read from MH i2c: E2 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 0B 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 0B 00 C3 00 00 9D FF 09 5F DD 9D AC E9 90 00 52 [09:36:46]RAPDU: 9D FF 09 5F DD 9D AC E9 90 00 [09:36:46]wFMCommunicate OK [09:36:46]SAM_PROTO_SignData done [09:36:46]FM_MakeSignedData done [09:36:46]CreateOFDProtocolMessage [09:36:46]wFMCommunicate request_size=4 [09:36:46]MH_SAM_APDU [09:36:46]CAPDU: 80 11 00 00 [09:36:46]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:46]Read from MH i2c: E2 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 17 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8C [09:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:36:46]wFMCommunicate OK [09:36:46]CreateOFDProtocolMessage done [09:36:46]OFDSenderStorePacket 115556 [09:36:46]StoreOFDPacket docnum=115556 [09:36:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 6B 15 04 01 6F 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 35 FF 03 08 00 03 48 E8 01 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 27 00 00 00 F4 03 04 00 AD 36 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 64 C3 01 00 35 04 06 00 50 7F A4 73 D4 97 9D FF 09 5F DD 9D AC E9 [09:36:46]CheckFolder [09:36:46]dirname=/storage/ofd_packets [09:36:46]CheckFolder done [09:36:46]ProducePacketName [09:36:46]name=ofd_packets/00115556 [09:36:46]NVStorageSaveData ofd_packets/00115556 [09:36:46]File name is /storage/ofd_packets/00115556 [09:36:46]Write 298 bytes [09:36:46]NVStorageSaveData done [09:36:46]OFDSenderStorePacket done [09:36:46]KKMCreateOFDPacket done [09:36:46]NVStorageSaveData kkm_last_timestamp [09:36:46]File name is /storage/kkm_last_timestamp [09:36:46]Write 4 bytes [09:36:46]NVStorageSaveData done [09:36:46]ExternCall_PrintAddStr [09:36:46]wPrintStart [09:36:46]Write to MH i2c: 01 00 00 C5 00 C5 [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: 01 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: 01 07 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [09:36:46]RasterBufferAndPrint [09:36:46]line Счет N : (1)24617471 [09:36:46]line ИНН: 02508201610067 [09:36:46]line Контрольно-Кассовый Чек [09:36:46]line ПРОДАЖА [09:36:46]line ТРК (МРК, ГНК) : 65 [09:36:46]line Товар: 2710194210 [09:36:46]line ДТ-К-5 [09:36:46]line 125.000 * 0.00 [09:36:46]line = 0.00 [09:36:46]line НДС 12% НСП 1% [09:36:46]line > о реализуемом товаре [09:36:46]line ИТОГО: 0.00 [09:36:46]line НСП 1% : 0.00 [09:36:46]line НДС 12% : 0.00 [09:36:46]line Наличными: 0.00 [09:36:46]line Безнал.: 0.00 [09:36:46]line Место: АЗС № 90 "Партнер Нефть" [09:36:46]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:36:46]line СНО: Общий режим [09:36:46]line Чек 39 23.09.2024 09:36 [09:36:46]line Смена: 472 ФФД: 1.0 [09:36:46]line ЗНМ: 0300000120 [09:36:46]line РНМ: 0000000000091831 [09:36:46]line Версия ККМ: 001 [09:36:46]line Талоны: Топливная Карта [09:36:46]line 03209 [09:36:46]line ФМ: 0000000000871830 [09:36:46]line ФД: 115556 [09:36:46]line ФПД: 88509150123159 [09:36:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T093645&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115556&fm=88509150123159&tin=02508201610067®Number=0000000000091831&sum=0 [09:36:46]written 0, free lines is 4095 [09:36:46]OFD Sender: Processing packet 115556 [packets to send 481, broken 480] [09:36:46]ProducePacketName [09:36:46]name=ofd_packets/00115556 [09:36:46]OFD Sender: To server: pG, [09:36:46]CommunicateWithHost lk.salyk.kg:30040 [09:36:46]ConnectInit lk.salyk.kg [09:36:47]Connected sock=10 [09:36:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 6B 15 04 01 6F 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 35 FF 03 08 00 03 48 E8 01 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 27 00 00 00 F4 03 04 00 AD 36 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 64 C3 01 00 35 04 06 00 50 7F A4 73 D4 97 9D FF 09 5F DD 9D AC E9 [09:36:47]Write to MH i2c: 01 00 00 EE 00 EE [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: 01 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: 01 07 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: 01 07 00 EE 00 00 00 00 00 00 6A 0C 6B [09:36:47]RasterBufferAndPrint [09:36:47]line [09:36:47]line [09:36:47]line [09:36:47]line [09:36:47]line [09:36:47]written 0, free lines is 3183 [09:36:47]MH_Cut [09:36:47]Write to MH i2c: D1 01 00 F5 00 01 C7 [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: D1 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: D1 01 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: D1 01 00 F5 00 00 C6 [09:36:47]Write to MH i2c: 01 00 00 F6 00 F6 [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 57 DA 47 00 71 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 64 C3 01 00 F4 03 04 00 F0 DB F0 66 B6 04 01 00 00 CA A2 06 77 4E D6 E9 B3 [09:36:47]CommunicateWithHost err = 0 [09:36:47]CheckOFDResponse [09:36:47]1017 (14) - 77093643461234 [09:36:47]1041 (16) - 0000000000871830 [09:36:47]1040 (4) - 115556 [09:36:47]1012 (4) - 23.09.2024 03:09 [09:36:47]1206 (1) - 0 [09:36:47]OFD Sender: Remove packet 115556 [09:36:47]ProducePacketName [09:36:47]name=ofd_packets/00115556 [09:36:47]NVStorageDeleteData [09:36:48]OFD Sender: No OFD packet to send [09:36:48]*** Cut start [09:36:48]*** Partial cut [09:36:48]*** CUTSNS_PIN = 1 [09:36:48]*** CUTSNS_PIN = 0 [09:36:48]*** Brake cut motor [09:36:49]Read from MH i2c: 01 [09:36:49]MH_I2C_Read... [09:36:49]*** Stop cut motor [09:36:49]*** Cut end [09:36:49]Read from MH i2c: 01 07 00 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 FF 0F 0B [09:36:49]process_action close_receipt done [09:36:49]requested_data is exist [09:36:49]produce_requested_data [09:36:49]requested_item fm.sn is exist - process it [09:36:49]wFMCommunicate request_size=4 [09:36:49]MH_SAM_APDU [09:36:49]CAPDU: 80 11 00 00 [09:36:49]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [09:36:49]Write i2c OK [09:36:49]MH_I2C_Read... [09:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:49]Read from MH i2c: E2 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: E2 17 00 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BF [09:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:36:49]wFMCommunicate OK [09:36:49]requested_item fd.num is exist - process it [09:36:49]SAM_PROTO_GetFieldsCounters [09:36:49]wFMCommunicate request_size=4 [09:36:49]MH_SAM_APDU [09:36:49]CAPDU: 80 13 00 00 [09:36:49]Write to MH i2c: E2 08 00 F8 00 80 13 00 00 00 00 00 00 74 [09:36:49]Write i2c OK [09:36:49]MH_I2C_Read... [09:36:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:49]Read from MH i2c: E2 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: E2 62 00 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: E2 62 00 F8 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 64 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [09:36: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 64 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:49]wFMCommunicate OK [09:36:49]SAM_PROTO_GetFieldsCounters done [09:36:49]requested_item shift.num is exist - process it [09:36:49]requested_item shift.opened is exist - process it [09:36:49]req_shift_opened [09:36:49]FM_GetShiftState [09:36:49]SAM_PROTO_GetShiftState [09:36:49]wFMCommunicate request_size=4 [09:36:49]MH_SAM_APDU [09:36:49]CAPDU: 80 13 01 00 [09:36:49]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [09:36:49]Write i2c OK [09:36:49]MH_I2C_Read... [09:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:49]Read from MH i2c: E2 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: E2 0E 00 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B7 [09:36:49]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:36:49]wFMCommunicate OK [09:36:49]SAM_PROTO_GetShiftState done [09:36:49]FM_GetShiftState done [09:36:49]req_shift_opened done [09:36:49]requested_item shift.open_date is exist - process it [09:36:49]req_shift_open_date [09:36:49]req_shift_open_date done [09:36:49]produce_requested_data done [09:36:49]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115556,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:36:49]process_action_free close_receipt [09:36:49]json_value_free [09:36:49]json_value_free done [09:36:49]process_json_proto returns [09:36:49]Send response to host [09:36:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115556,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:36:49]free response buf [09:36:49]execute_script done [09:36:49]execute_script returns [09:36:49]free content buf [09:36:49]Sock 7.Close socket [09:36:49]Sock 7.Thread stoped [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:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40: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:22]accept exits with 9 [09:43:22]New connection [09:43:22]New thread 3067051364 created [09:43:22]Thread 3067194724 joined [09:43:22]Waiting for new connection... [09:43:22] Sock 9.Parse request [09:43:22]Sock 9.Check first char [09:43:22]Sock 9.First char is OK [09:43:22]request: POST /json_proto HTTP/1.0 [09:43:22]Method: POST [09:43:22]URL: /json_proto [09:43:22]Method is POST - this is cgi request [09:43:22]url: /json_proto [09:43:22]query_string will be loaded in cgi processing [09:43:22]execute_cgi json_proto POST (null) [09:43:22]execute_cgi path=json_proto method=POST [09:43:22]POST find Content-Length [09:43:22]Host: 172.17.41.136:8080 [09:43:22]Content-Length: 792 [09:43:22]Content-Type: application/json [09:43:22] [09:43:22]POST finish read [09:43:22]Found Content-Length = 792 [09:43:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 125.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\u000A03209", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:22]execute_script... [09:43: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)24617483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 125.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\u000A03209", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:22]POST & json_proto [09:43:22]process_json_proto [09:43:22]json parsed OK: [09:43:22]protocol is kg_v1.0 [09:43:22]action value=close_receipt [09:43:22]process_action close_receipt [09:43:22]cmd_close_receipt [09:43:22]MH_GetDate [09:43:22]Write to MH i2c: F0 00 00 FA 00 E9 [09:43:22]Write i2c OK [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: F0 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: F0 09 00 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: F0 09 00 FA 00 00 3B 38 F1 66 1B D0 5A 64 65 [09:43:22]GetLastDocTimeStamp 1727084205 [09:43:22]current date 1727084603 [09:43:22]FM_GetShiftState [09:43:22]SAM_PROTO_GetShiftState [09:43:22]wFMCommunicate request_size=4 [09:43:22]MH_SAM_APDU [09:43:22]CAPDU: 80 13 01 00 [09:43:22]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [09:43:22]Write i2c OK [09:43:22]MH_I2C_Read... [09:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:22]Read from MH i2c: E2 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 0E 00 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B9 [09:43:22]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:43:22]wFMCommunicate OK [09:43:22]SAM_PROTO_GetShiftState done [09:43:22]FM_GetShiftState done [09:43:22]opened in 1727052070 [09:43:22]opened+sec_in_day 1727138470 [09:43:22]quantity*price = 0 [09:43:22]sum+1 = 1 [09:43:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 40 23.09.2024 09:43 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливная Карта 03209 ФМ: 0000000000871830 ФД: 115557 ФПД: 107826331581370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T094323&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115557&fm=107826331581370&tin=02508201610067®Number=0000000000091831&sum=0 [09:43:23]StoreToDocumentArchive [09:43:23]shift 472 fd 115557 [09:43:23]save to /storage/0472/doc_00115557 [09:43:23]save last doc name /storage/0472/doc_00115557 to /storage/kkm_last_doc_name [09:43:23]save OK [09:43:23]Clear old archive folders... [09:43:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:43:23]tlvbuf is 009607A0 [09:43:23]SAM_PROTO_ClearQueue [09:43:23]wFMCommunicate request_size=4 [09:43:23]MH_SAM_APDU [09:43:23]CAPDU: 80 09 00 00 [09:43:23]Write to MH i2c: E2 08 00 08 01 80 09 00 00 00 00 00 00 7B [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:23]Read from MH i2c: E2 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 03 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [09:43:23]RAPDU: 90 00 [09:43:23]wFMCommunicate OK [09:43:23]SAM_PROTO_ClearQueue done [09:43:23]KKMCreateOFDPacket [09:43:23]OFDProtocolAddRootSTLVToBuf [09:43:23]FM_MakeSignedData [09:43:23]FM_MakeSignedData [09:43:23]SAM_PROTO_SignData [09:43:23]wFMCommunicate request_size=4 [09:43:23]MH_SAM_APDU [09:43:23]CAPDU: 80 0D 01 02 [09:43:23]Write to MH i2c: E2 08 00 09 01 80 0D 01 02 00 00 00 00 83 [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]OFD Sender: No OFD packet to send [09:43:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:23]Read from MH i2c: E2 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 03 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [09:43:23]RAPDU: 90 00 [09:43:23]wFMCommunicate OK [09:43:23]wFMCommunicate request_size=255 [09:43:23]MH_SAM_APDU [09:43:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 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 3B 38 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 65 C3 01 00 35 04 06 00 62 11 46 30 [09:43:23]Write to MH i2c: E2 02 01 0A 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 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 3B 38 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 65 C3 01 00 35 04 06 00 62 11 46 30 00 00 E6 [09:43:24]Write i2c OK [09:43:24]MH_I2C_Read... [09:43:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:24]Read from MH i2c: E2 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 03 00 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [09:43:24]RAPDU: 90 00 [09:43:24]wFMCommunicate OK [09:43:24]wFMCommunicate request_size=7 [09:43:24]MH_SAM_APDU [09:43:24]CAPDU: 80 0D 02 02 02 FB BA [09:43:24]Write to MH i2c: E2 0A 00 0B 01 80 0D 02 02 02 00 FB BA 00 00 3F [09:43:24]Write i2c OK [09:43:24]MH_I2C_Read... [09:43:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:24]Read from MH i2c: E2 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 03 00 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [09:43:24]RAPDU: 90 00 [09:43:24]wFMCommunicate OK [09:43:24]wFMCommunicate request_size=4 [09:43:24]MH_SAM_APDU [09:43:24]CAPDU: 80 0D 03 02 [09:43:24]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [09:43:24]Write i2c OK [09:43:24]MH_I2C_Read... [09:43:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:24]Read from MH i2c: E2 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 0B 00 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 0B 00 0C 01 00 CC FE 96 56 A1 33 A3 13 90 00 C9 [09:43:24]RAPDU: CC FE 96 56 A1 33 A3 13 90 00 [09:43:24]wFMCommunicate OK [09:43:24]SAM_PROTO_SignData done [09:43:24]FM_MakeSignedData done [09:43:24]CreateOFDProtocolMessage [09:43:24]wFMCommunicate request_size=4 [09:43:24]MH_SAM_APDU [09:43:24]CAPDU: 80 11 00 00 [09:43:24]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [09:43:24]Write i2c OK [09:43:24]MH_I2C_Read... [09:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:24]Read from MH i2c: E2 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 17 00 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D6 [09:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:43:24]wFMCommunicate OK [09:43:24]CreateOFDProtocolMessage done [09:43:24]OFDSenderStorePacket 115557 [09:43:24]StoreOFDPacket docnum=115557 [09:43:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 59 AA 04 01 8F 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 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 3B 38 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 65 C3 01 00 35 04 06 00 62 11 46 30 FB BA CC FE 96 56 A1 33 A3 13 [09:43:24]CheckFolder [09:43:24]dirname=/storage/ofd_packets [09:43:24]CheckFolder done [09:43:24]ProducePacketName [09:43:24]name=ofd_packets/00115557 [09:43:24]NVStorageSaveData ofd_packets/00115557 [09:43:24]File name is /storage/ofd_packets/00115557 [09:43:24]Write 298 bytes [09:43:24]NVStorageSaveData done [09:43:24]OFDSenderStorePacket done [09:43:24]KKMCreateOFDPacket done [09:43:24]NVStorageSaveData kkm_last_timestamp [09:43:24]File name is /storage/kkm_last_timestamp [09:43:24]Write 4 bytes [09:43:24]NVStorageSaveData done [09:43:24]ExternCall_PrintAddStr [09:43:24]wPrintStart [09:43:24]Write to MH i2c: 01 00 00 0E 01 0F [09:43:24]Write i2c OK [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: 01 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: 01 07 00 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [09:43:24]RasterBufferAndPrint [09:43:24]line Счет N : (1)24617483 [09:43:24]line ИНН: 02508201610067 [09:43:24]line Контрольно-Кассовый Чек [09:43:24]line ПРОДАЖА [09:43:24]line ТРК (МРК, ГНК) : 65 [09:43:24]line Товар: 2710194210 [09:43:24]line ДТ-К-5 [09:43:24]line 125.000 * 0.00 [09:43:24]line = 0.00 [09:43:24]line НДС 12% НСП 1% [09:43:24]line > о реализуемом товаре [09:43:24]line ИТОГО: 0.00 [09:43:24]line НСП 1% : 0.00 [09:43:24]line НДС 12% : 0.00 [09:43:24]line Наличными: 0.00 [09:43:24]line Безнал.: 0.00 [09:43:24]line Место: АЗС № 90 "Партнер Нефть" [09:43:24]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:43:24]line СНО: Общий режим [09:43:24]line Чек 40 23.09.2024 09:43 [09:43:24]line Смена: 472 ФФД: 1.0 [09:43:24]line ЗНМ: 0300000120 [09:43:24]line РНМ: 0000000000091831 [09:43:24]line Версия ККМ: 001 [09:43:24]line Талоны: Топливная Карта [09:43:24]line 03209 [09:43:24]line ФМ: 0000000000871830 [09:43:24]line ФД: 115557 [09:43:24]line ФПД: 107826331581370 [09:43:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T094323&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115557&fm=107826331581370&tin=02508201610067®Number=0000000000091831&sum=0 [09:43:24]OFD Sender: Processing packet 115557 [packets to send 481, broken 480] [09:43:24]ProducePacketName [09:43:24]name=ofd_packets/00115557 [09:43:24]OFD Sender: To server: pG, [09:43:24]CommunicateWithHost lk.salyk.kg:30040 [09:43:24]ConnectInit lk.salyk.kg [09:43:24]written 0, free lines is 4095 [09:43:25]Connected sock=10 [09:43: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 38 33 30 0C 01 00 00 59 AA 04 01 8F 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 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 3B 38 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 65 C3 01 00 35 04 06 00 62 11 46 30 FB BA CC FE 96 56 A1 33 A3 13 [09:43:25]Write to MH i2c: 01 00 00 37 01 38 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: 01 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: 01 07 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: 01 07 00 37 01 00 00 00 00 00 65 0C B0 [09:43:25]RasterBufferAndPrint [09:43:25]line [09:43:25]line [09:43:25]line [09:43:25]line [09:43:25]line [09:43:25]written 0, free lines is 3177 [09:43:25]MH_Cut [09:43:25]Write to MH i2c: D1 01 00 3E 01 01 11 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: D1 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: D1 01 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: D1 01 00 3E 01 00 10 [09:43:25]Write to MH i2c: 01 00 00 3F 01 40 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 BC A7 47 00 AD 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 38 33 30 10 04 04 00 65 C3 01 00 F4 03 04 00 7E DD F0 66 B6 04 01 00 00 B2 91 6C F5 9D F9 0E EC [09:43:25]CommunicateWithHost err = 0 [09:43:25]CheckOFDResponse [09:43:25]1017 (14) - 77093643461234 [09:43:25]1041 (16) - 0000000000871830 [09:43:25]1040 (4) - 115557 [09:43:25]1012 (4) - 23.09.2024 03:16 [09:43:25]1206 (1) - 0 [09:43:25]OFD Sender: Remove packet 115557 [09:43:25]ProducePacketName [09:43:25]name=ofd_packets/00115557 [09:43:25]NVStorageDeleteData [09:43:25]OFD Sender: No OFD packet to send [09:43:26]*** Cut start [09:43:26]*** Partial cut [09:43:26]*** CUTSNS_PIN = 1 [09:43:26]*** CUTSNS_PIN = 0 [09:43:26]*** Brake cut motor [09:43:27]Read from MH i2c: 01 [09:43:27]MH_I2C_Read... [09:43:27]*** Stop cut motor [09:43:27]*** Cut end [09:43:27]Read from MH i2c: 01 07 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: 01 07 00 3F 01 00 00 00 00 00 FF 0F 55 [09:43:27]process_action close_receipt done [09:43:27]requested_data is exist [09:43:27]produce_requested_data [09:43:27]requested_item fm.sn is exist - process it [09:43:27]wFMCommunicate request_size=4 [09:43:27]MH_SAM_APDU [09:43:27]CAPDU: 80 11 00 00 [09:43:27]Write to MH i2c: E2 08 00 40 01 80 11 00 00 00 00 00 00 BB [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 17 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 17 00 40 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 09 [09:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:43:27]wFMCommunicate OK [09:43:27]requested_item fd.num is exist - process it [09:43:27]SAM_PROTO_GetFieldsCounters [09:43:27]wFMCommunicate request_size=4 [09:43:27]MH_SAM_APDU [09:43:27]CAPDU: 80 13 00 00 [09:43:27]Write to MH i2c: E2 08 00 41 01 80 13 00 00 00 00 00 00 BE [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 62 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 62 00 41 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 65 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [09:43: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 65 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:27]wFMCommunicate OK [09:43:27]SAM_PROTO_GetFieldsCounters done [09:43:27]requested_item shift.num is exist - process it [09:43:27]requested_item shift.opened is exist - process it [09:43:27]req_shift_opened [09:43:27]FM_GetShiftState [09:43:27]SAM_PROTO_GetShiftState [09:43:27]wFMCommunicate request_size=4 [09:43:27]MH_SAM_APDU [09:43:27]CAPDU: 80 13 01 00 [09:43:27]Write to MH i2c: E2 08 00 42 01 80 13 01 00 00 00 00 00 C0 [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 0E 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 0E 00 42 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 01 [09:43:27]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:43:27]wFMCommunicate OK [09:43:27]SAM_PROTO_GetShiftState done [09:43:27]FM_GetShiftState done [09:43:27]req_shift_opened done [09:43:27]requested_item shift.open_date is exist - process it [09:43:27]req_shift_open_date [09:43:27]req_shift_open_date done [09:43:27]produce_requested_data done [09:43:27]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115557,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:43:27]process_action_free close_receipt [09:43:27]json_value_free [09:43:27]json_value_free done [09:43:27]process_json_proto returns [09:43:27]Send response to host [09:43:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115557,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:43:27]free response buf [09:43:27]execute_script done [09:43:27]execute_script returns [09:43:27]free content buf [09:43:27]Sock 9.Close socket [09:43:27]Sock 9.Thread stoped [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:11]accept exits with 7 [09:45:11]New connection [09:45:11]New thread 3067194724 created [09:45:11]Thread 3067051364 joined [09:45:11]Waiting for new connection... [09:45:11] Sock 7.Parse request [09:45:11]Sock 7.Check first char [09:45:11]Sock 7.First char is OK [09:45:11]request: POST /json_proto HTTP/1.0 [09:45:11]Method: POST [09:45:11]URL: /json_proto [09:45:11]Method is POST - this is cgi request [09:45:11]url: /json_proto [09:45:11]query_string will be loaded in cgi processing [09:45:11]execute_cgi json_proto POST (null) [09:45:11]execute_cgi path=json_proto method=POST [09:45:11]POST find Content-Length [09:45:11]Host: 172.17.41.136:8080 [09:45:11]Content-Length: 783 [09:45:11]Content-Type: application/json [09:45:11] [09:45:11]POST finish read [09:45:11]Found Content-Length = 783 [09:45:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343976", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:11]execute_script... [09:45:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343976", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:11]POST & json_proto [09:45:11]process_json_proto [09:45:11]json parsed OK: [09:45:11]protocol is kg_v1.0 [09:45:11]action value=close_receipt [09:45:11]process_action close_receipt [09:45:11]cmd_close_receipt [09:45:11]MH_GetDate [09:45:11]Write to MH i2c: F0 00 00 43 01 33 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: F0 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: F0 09 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: F0 09 00 43 01 00 A8 38 F1 66 1B D0 5A 64 1C [09:45:11]GetLastDocTimeStamp 1727084603 [09:45:11]current date 1727084712 [09:45:11]FM_GetShiftState [09:45:11]SAM_PROTO_GetShiftState [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 13 01 00 [09:45:11]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 0E 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 03 [09:45:11]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:45:11]wFMCommunicate OK [09:45:11]SAM_PROTO_GetShiftState done [09:45:11]FM_GetShiftState done [09:45:11]opened in 1727052070 [09:45:11]opened+sec_in_day 1727138470 [09:45:11]quantity*price = 15000 [09:45:11]sum+1 = 15001 [09:45:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 41 23.09.2024 09:45 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115558 ФПД: 167890831220539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T094512&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115558&fm=167890831220539&tin=02508201610067®Number=0000000000091831&sum=15000 0 [09:45:12]StoreToDocumentArchive [09:45:12]shift 472 fd 115558 [09:45:12]save to /storage/0472/doc_00115558 [09:45:12]save last doc name /storage/0472/doc_00115558 to /storage/kkm_last_doc_name [09:45:12]save OK [09:45:12]Clear old archive folders... [09:45:12]ProcessDocumentItem done err = 0, tmpTLVsize=274 [09:45:12]tlvbuf is 0095C140 [09:45:12]SAM_PROTO_ClearQueue [09:45:12]wFMCommunicate request_size=4 [09:45:12]MH_SAM_APDU [09:45:12]CAPDU: 80 09 00 00 [09:45:12]Write to MH i2c: E2 08 00 51 01 80 09 00 00 00 00 00 00 C4 [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:12]Read from MH i2c: E2 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 03 00 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [09:45:12]RAPDU: 90 00 [09:45:12]wFMCommunicate OK [09:45:12]SAM_PROTO_ClearQueue done [09:45:12]KKMCreateOFDPacket [09:45:12]OFDProtocolAddRootSTLVToBuf [09:45:12]FM_MakeSignedData [09:45:12]FM_MakeSignedData [09:45:12]SAM_PROTO_SignData [09:45:12]wFMCommunicate request_size=4 [09:45:12]MH_SAM_APDU [09:45:12]CAPDU: 80 0D 01 02 [09:45:12]Write to MH i2c: E2 08 00 52 01 80 0D 01 02 00 00 00 00 CC [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:12]Read from MH i2c: E2 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 03 00 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [09:45:12]RAPDU: 90 00 [09:45:12]wFMCommunicate OK [09:45:12]wFMCommunicate request_size=255 [09:45:12]MH_SAM_APDU [09:45:12]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A8 38 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 [09:45:12]Write to MH i2c: E2 02 01 53 01 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A8 38 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 00 00 9F [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:12]Read from MH i2c: E2 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 03 00 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [09:45:12]RAPDU: 90 00 [09:45:12]wFMCommunicate OK [09:45:12]wFMCommunicate request_size=33 [09:45:12]MH_SAM_APDU [09:45:12]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 33 30 10 04 04 00 66 C3 01 00 35 04 06 00 98 B2 21 5B 1F 3B [09:45:12]Write to MH i2c: E2 24 00 54 01 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 33 30 10 04 04 00 66 C3 01 00 35 04 06 00 98 B2 21 5B 1F 3B 00 00 A3 [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:12]Read from MH i2c: E2 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 03 00 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [09:45:12]RAPDU: 90 00 [09:45:12]wFMCommunicate OK [09:45:12]wFMCommunicate request_size=4 [09:45:12]MH_SAM_APDU [09:45:12]CAPDU: 80 0D 03 02 [09:45:12]Write to MH i2c: E2 08 00 55 01 80 0D 03 02 00 00 00 00 D1 [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:13]Read from MH i2c: E2 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: E2 0B 00 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: E2 0B 00 55 01 00 A2 24 39 F4 B7 A4 3D 35 90 00 92 [09:45:13]RAPDU: A2 24 39 F4 B7 A4 3D 35 90 00 [09:45:13]wFMCommunicate OK [09:45:13]SAM_PROTO_SignData done [09:45:13]FM_MakeSignedData done [09:45:13]CreateOFDProtocolMessage [09:45:13]wFMCommunicate request_size=4 [09:45:13]MH_SAM_APDU [09:45:13]CAPDU: 80 11 00 00 [09:45:13]Write to MH i2c: E2 08 00 56 01 80 11 00 00 00 00 00 00 D1 [09:45:13]Write i2c OK [09:45:13]MH_I2C_Read... [09:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:13]Read from MH i2c: E2 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: E2 17 00 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: E2 17 00 56 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1F [09:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:45:13]wFMCommunicate OK [09:45:13]CreateOFDProtocolMessage done [09:45:13]OFDSenderStorePacket 115558 [09:45:13]StoreOFDPacket docnum=115558 [09:45:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 26 01 00 00 38 D1 1E 01 DA 00 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A8 38 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 66 C3 01 00 35 04 06 00 98 B2 21 5B 1F 3B A2 24 39 F4 B7 A4 3D 35 [09:45:13]CheckFolder [09:45:13]dirname=/storage/ofd_packets [09:45:13]CheckFolder done [09:45:13]ProducePacketName [09:45:13]name=ofd_packets/00115558 [09:45:13]NVStorageSaveData ofd_packets/00115558 [09:45:13]File name is /storage/ofd_packets/00115558 [09:45:13]Write 324 bytes [09:45:13]NVStorageSaveData done [09:45:13]OFDSenderStorePacket done [09:45:13]KKMCreateOFDPacket done [09:45:13]NVStorageSaveData kkm_last_timestamp [09:45:13]File name is /storage/kkm_last_timestamp [09:45:13]Write 4 bytes [09:45:13]NVStorageSaveData done [09:45:13]ExternCall_PrintAddStr [09:45:13]wPrintStart [09:45:13]Write to MH i2c: 01 00 00 57 01 58 [09:45:13]OFD Sender: Processing packet 115558 [packets to send 481, broken 480] [09:45:13]ProducePacketName [09:45:13]name=ofd_packets/00115558 [09:45:13]OFD Sender: To server: pG, [09:45:13]CommunicateWithHost lk.salyk.kg:30040 [09:45:13]ConnectInit lk.salyk.kg [09:45:13]Write i2c OK [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: 01 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: 01 07 00 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: 01 07 00 57 01 00 00 00 00 00 FF 0F 6D [09:45:13]RasterBufferAndPrint [09:45:13]line Счет N : (3)343976 [09:45:13]line ИНН: 02508201610067 [09:45:13]line Контрольно-Кассовый Чек [09:45:13]line ПРОДАЖА [09:45:13]line Товар: 4640030091645 [09:45:13]line Сигареты ESSE Exchange M [09:45:13]line 1.000 * 150.00 [09:45:13]line = 150.00 [09:45:13]line НДС 12% НСП 1% [09:45:13]line > о реализуемом товаре [09:45:13]line ИТОГО: 150.00 [09:45:13]line НСП 1% : 1.33 [09:45:13]line НДС 12% : 15.93 [09:45:13]line Наличными: 0.00 [09:45:13]line Безнал.: 150.00 [09:45:13]line Место: АЗС № 90 "Партнер Нефть" [09:45:13]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:45:13]line СНО: Общий режим [09:45:13]line Чек 41 23.09.2024 09:45 [09:45:13]line Смена: 472 ФФД: 1.0 [09:45:13]line ЗНМ: 0300000120 [09:45:13]line РНМ: 0000000000091831 [09:45:13]line Версия ККМ: 001 [09:45:13]line Платежная система: O! деньги [09:45:13]line ФМ: 0000000000871830 [09:45:13]line ФД: 115558 [09:45:13]line ФПД: 167890831220539 [09:45:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T094512&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115558&fm=167890831220539&tin=02508201610067®Number=0000000000091831&sum=15000 [09:45:13]line 0 [09:45:13]written 0, free lines is 4095 [09:45:13]Connected sock=10 [09:45: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 38 33 30 26 01 00 00 38 D1 1E 01 DA 00 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A8 38 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 66 C3 01 00 35 04 06 00 98 B2 21 5B 1F 3B A2 24 39 F4 B7 A4 3D 35 [09:45:13]Write to MH i2c: 01 00 00 80 01 81 [09:45:13]Write i2c OK [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: 01 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: 01 07 00 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: 01 07 00 80 01 00 00 00 00 00 47 0C DB [09:45:13]RasterBufferAndPrint [09:45:13]line [09:45:13]line [09:45:13]line [09:45:13]line [09:45:13]line [09:45:13]written 0, free lines is 3147 [09:45:13]MH_Cut [09:45:13]Write to MH i2c: D1 01 00 87 01 01 5A [09:45:13]Write i2c OK [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: D1 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: D1 01 00 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: D1 01 00 87 01 00 59 [09:45:13]Write to MH i2c: 01 00 00 88 01 89 [09:45:13]Write i2c OK [09:45:13]MH_I2C_Read... [09:45:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 37 75 47 00 68 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 38 33 30 10 04 04 00 66 C3 01 00 F4 03 04 00 EA DD F0 66 B6 04 01 00 00 A4 56 4D 6B 94 30 B7 5F [09:45:13]CommunicateWithHost err = 0 [09:45:13]CheckOFDResponse [09:45:13]1017 (14) - 77093643461234 [09:45:13]1041 (16) - 0000000000871830 [09:45:13]1040 (4) - 115558 [09:45:13]1012 (4) - 23.09.2024 03:18 [09:45:13]1206 (1) - 0 [09:45:13]OFD Sender: Remove packet 115558 [09:45:13]ProducePacketName [09:45:13]name=ofd_packets/00115558 [09:45:13]NVStorageDeleteData [09:45:14]OFD Sender: No OFD packet to send [09:45:14]*** Cut start [09:45:14]*** Partial cut [09:45:14]*** CUTSNS_PIN = 1 [09:45:14]*** CUTSNS_PIN = 0 [09:45:15]*** Brake cut motor [09:45:15]Read from MH i2c: 01 [09:45:15]MH_I2C_Read... [09:45:15]*** Stop cut motor [09:45:15]*** Cut end [09:45:15]Read from MH i2c: 01 07 00 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 FF 0F 9E [09:45:15]process_action close_receipt done [09:45:15]requested_data is exist [09:45:15]produce_requested_data [09:45:15]requested_item fm.sn is exist - process it [09:45:15]wFMCommunicate request_size=4 [09:45:15]MH_SAM_APDU [09:45:15]CAPDU: 80 11 00 00 [09:45:15]Write to MH i2c: E2 08 00 89 01 80 11 00 00 00 00 00 00 04 [09:45:15]Write i2c OK [09:45:15]MH_I2C_Read... [09:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:15]Read from MH i2c: E2 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 17 00 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 17 00 89 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 52 [09:45:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:45:15]wFMCommunicate OK [09:45:15]requested_item fd.num is exist - process it [09:45:15]SAM_PROTO_GetFieldsCounters [09:45:15]wFMCommunicate request_size=4 [09:45:15]MH_SAM_APDU [09:45:15]CAPDU: 80 13 00 00 [09:45:15]Write to MH i2c: E2 08 00 8A 01 80 13 00 00 00 00 00 00 07 [09:45:15]Write i2c OK [09:45:15]MH_I2C_Read... [09:45:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:15]Read from MH i2c: E2 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 62 00 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 62 00 8A 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 66 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [09:45: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 66 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:15]wFMCommunicate OK [09:45:15]SAM_PROTO_GetFieldsCounters done [09:45:15]requested_item shift.num is exist - process it [09:45:15]requested_item shift.opened is exist - process it [09:45:15]req_shift_opened [09:45:15]FM_GetShiftState [09:45:15]SAM_PROTO_GetShiftState [09:45:15]wFMCommunicate request_size=4 [09:45:15]MH_SAM_APDU [09:45:15]CAPDU: 80 13 01 00 [09:45:15]Write to MH i2c: E2 08 00 8B 01 80 13 01 00 00 00 00 00 09 [09:45:15]Write i2c OK [09:45:15]MH_I2C_Read... [09:45:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:15]Read from MH i2c: E2 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 0E 00 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 0E 00 8B 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 4A [09:45:15]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:45:15]wFMCommunicate OK [09:45:15]SAM_PROTO_GetShiftState done [09:45:15]FM_GetShiftState done [09:45:15]req_shift_opened done [09:45:15]requested_item shift.open_date is exist - process it [09:45:15]req_shift_open_date [09:45:15]req_shift_open_date done [09:45:15]produce_requested_data done [09:45:15]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115558,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:45:15]process_action_free close_receipt [09:45:15]json_value_free [09:45:15]json_value_free done [09:45:15]process_json_proto returns [09:45:15]Send response to host [09:45:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115558,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:45:15]free response buf [09:45:15]execute_script done [09:45:15]execute_script returns [09:45:15]free content buf [09:45:15]Sock 7.Close socket [09:45:15]Sock 7.Thread stoped [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:45]accept exits with 9 [09:46:45]New connection [09:46:45]New thread 3067051364 created [09:46:45]Thread 3067194724 joined [09:46:45]Waiting for new connection... [09:46:45] Sock 9.Parse request [09:46:45]Sock 9.Check first char [09:46:45]Sock 9.First char is OK [09:46:45]request: POST /json_proto HTTP/1.0 [09:46:45]Method: POST [09:46:45]URL: /json_proto [09:46:45]Method is POST - this is cgi request [09:46:45]url: /json_proto [09:46:45]query_string will be loaded in cgi processing [09:46:45]execute_cgi json_proto POST (null) [09:46:45]execute_cgi path=json_proto method=POST [09:46:45]POST find Content-Length [09:46:45]Host: 172.17.41.136:8080 [09:46:45]Content-Length: 1312 [09:46:45]Content-Type: application/json [09:46:45] [09:46:45]POST finish read [09:46:45]Found Content-Length = 1312 [09:46:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343977", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:45]execute_script... [09:46: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 : (3)343977", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:45]POST & json_proto [09:46:45]process_json_proto [09:46:45]json parsed OK: [09:46:45]protocol is kg_v1.0 [09:46:45]action value=close_receipt [09:46:45]process_action close_receipt [09:46:45]cmd_close_receipt [09:46:45]MH_GetDate [09:46:45]Write to MH i2c: F0 00 00 8C 01 7C [09:46:45]Write i2c OK [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: F0 [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: F0 09 00 [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: F0 09 00 8C 01 00 06 39 F1 66 1B D0 5A 64 C4 [09:46:45]GetLastDocTimeStamp 1727084712 [09:46:45]current date 1727084806 [09:46:45]FM_GetShiftState [09:46:45]SAM_PROTO_GetShiftState [09:46:45]wFMCommunicate request_size=4 [09:46:45]MH_SAM_APDU [09:46:45]CAPDU: 80 13 01 00 [09:46:45]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [09:46:45]Write i2c OK [09:46:45]MH_I2C_Read... [09:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:45]Read from MH i2c: E2 [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: E2 0E 00 [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 4C [09:46:45]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:46:45]wFMCommunicate OK [09:46:45]SAM_PROTO_GetShiftState done [09:46:45]FM_GetShiftState done [09:46:45]opened in 1727052070 [09:46:45]opened+sec_in_day 1727138470 [09:46:45]quantity*price = 13000 [09:46:45]sum+1 = 13001 [09:46:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032800010 Сочник DC творог 75 г 2.000 * 30.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 0.00 Безнал.: 230.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 42 23.09.2024 09:46 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115559 ФПД: 111377723529986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T094646&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115559&fm=111377723529986&tin=02508201610067®Number=0000000000091831&sum=23000 0 [09:46:46]StoreToDocumentArchive [09:46:46]shift 472 fd 115559 [09:46:46]save to /storage/0472/doc_00115559 [09:46:46]save last doc name /storage/0472/doc_00115559 to /storage/kkm_last_doc_name [09:46:46]save OK [09:46:46]Clear old archive folders... [09:46:47]ProcessDocumentItem done err = 0, tmpTLVsize=483 [09:46:47]tlvbuf is 0095FEA0 [09:46:47]SAM_PROTO_ClearQueue [09:46:47]wFMCommunicate request_size=4 [09:46:47]MH_SAM_APDU [09:46:47]CAPDU: 80 09 00 00 [09:46:47]Write to MH i2c: E2 08 00 9A 01 80 09 00 00 00 00 00 00 0D [09:46:47]Write i2c OK [09:46:47]MH_I2C_Read... [09:46:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:47]Read from MH i2c: E2 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: E2 03 00 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [09:46:47]RAPDU: 90 00 [09:46:47]wFMCommunicate OK [09:46:47]SAM_PROTO_ClearQueue done [09:46:47]KKMCreateOFDPacket [09:46:47]OFDProtocolAddRootSTLVToBuf [09:46:47]FM_MakeSignedData [09:46:47]FM_MakeSignedData [09:46:47]SAM_PROTO_SignData [09:46:47]wFMCommunicate request_size=4 [09:46:47]MH_SAM_APDU [09:46:47]CAPDU: 80 0D 01 02 [09:46:47]Write to MH i2c: E2 08 00 9B 01 80 0D 01 02 00 00 00 00 15 [09:46:47]Write i2c OK [09:46:47]MH_I2C_Read... [09:46:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:47]Read from MH i2c: E2 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: E2 03 00 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [09:46:47]RAPDU: 90 00 [09:46:47]wFMCommunicate OK [09:46:47]wFMCommunicate request_size=255 [09:46:47]MH_SAM_APDU [09:46:47]CAPDU: 80 0D 02 02 FA 03 00 E3 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE [09:46:47]Write to MH i2c: E2 02 01 9C 01 80 0D 02 02 FA 00 03 00 E3 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE 00 00 29 [09:46:47]Write i2c OK [09:46:47]MH_I2C_Read... [09:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:47]Read from MH i2c: E2 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: E2 03 00 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [09:46:47]RAPDU: 90 00 [09:46:47]wFMCommunicate OK [09:46:47]wFMCommunicate request_size=242 [09:46:47]MH_SAM_APDU [09:46:47]CAPDU: 80 0D 02 02 ED D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 06 39 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 67 C3 01 00 35 04 06 00 65 4C 25 A5 9B 02 [09:46:47]Write to MH i2c: E2 F5 00 9D 01 80 0D 02 02 ED 00 D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 06 39 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 67 C3 01 00 35 04 06 00 65 4C 25 A5 9B 02 00 00 19 [09:46:47]Write i2c OK [09:46:47]MH_I2C_Read... [09:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:47]Read from MH i2c: E2 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: E2 03 00 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [09:46:47]RAPDU: 90 00 [09:46:47]wFMCommunicate OK [09:46:47]wFMCommunicate request_size=4 [09:46:47]MH_SAM_APDU [09:46:47]CAPDU: 80 0D 03 02 [09:46:47]Write to MH i2c: E2 08 00 9E 01 80 0D 03 02 00 00 00 00 1A [09:46:47]Write i2c OK [09:46:47]MH_I2C_Read... [09:46:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:47]Read from MH i2c: E2 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: E2 0B 00 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: E2 0B 00 9E 01 00 E9 BB 45 F2 79 1B 01 1B 90 00 A6 [09:46:47]RAPDU: E9 BB 45 F2 79 1B 01 1B 90 00 [09:46:47]wFMCommunicate OK [09:46:47]SAM_PROTO_SignData done [09:46:47]FM_MakeSignedData done [09:46:47]CreateOFDProtocolMessage [09:46:47]wFMCommunicate request_size=4 [09:46:47]MH_SAM_APDU [09:46:47]CAPDU: 80 11 00 00 [09:46:47]Write to MH i2c: E2 08 00 9F 01 80 11 00 00 00 00 00 00 1A [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:48]Read from MH i2c: E2 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 17 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 17 00 9F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 68 [09:46:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:46:48]wFMCommunicate OK [09:46:48]CreateOFDProtocolMessage done [09:46:48]OFDSenderStorePacket 115559 [09:46:48]StoreOFDPacket docnum=115559 [09:46:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F7 01 00 00 80 00 EF 01 A8 60 5A 03 01 00 03 00 E3 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 06 39 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 67 C3 01 00 35 04 06 00 65 4C 25 A5 9B 02 E9 BB 45 F2 79 1B 01 1B [09:46:48]CheckFolder [09:46:48]dirname=/storage/ofd_packets [09:46:48]CheckFolder done [09:46:48]ProducePacketName [09:46:48]name=ofd_packets/00115559 [09:46:48]NVStorageSaveData ofd_packets/00115559 [09:46:48]File name is /storage/ofd_packets/00115559 [09:46:48]Write 533 bytes [09:46:48]NVStorageSaveData done [09:46:48]OFDSenderStorePacket done [09:46:48]KKMCreateOFDPacket done [09:46:48]NVStorageSaveData kkm_last_timestamp [09:46:48]File name is /storage/kkm_last_timestamp [09:46:48]Write 4 bytes [09:46:48]NVStorageSaveData done [09:46:48]ExternCall_PrintAddStr [09:46:48]wPrintStart [09:46:48]Write to MH i2c: 01 00 00 A0 01 A1 [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: 01 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: 01 07 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: 01 07 00 A0 01 00 00 00 00 00 FF 0F B6 [09:46:48]RasterBufferAndPrint [09:46:48]line Счет N : (3)343977 [09:46:48]line ИНН: 02508201610067 [09:46:48]line Контрольно-Кассовый Чек [09:46:48]line ПРОДАЖА [09:46:48]line Товар: 2000036230011 [09:46:48]line Кофе Латте XL(GABB TRADE) [09:46:48]line 1.000 * 130.00 [09:46:48]line = 130.00 [09:46:48]line НДС 12% НСП 1% [09:46:48]line > о реализуемом товаре [09:46:48]line Товар: 2000032800010 [09:46:48]line Сочник DC творог 75 г [09:46:48]line 2.000 * 30.00 [09:46:48]line = 60.00 [09:46:48]line НДС 12% НСП 1% [09:46:48]line > о реализуемом товаре [09:46:48]line Товар: 4700000160211 [09:46:48]line Вода Легенда 0,5л [09:46:48]line 1.000 * 40.00 [09:46:48]line = 40.00 [09:46:48]line НДС 12% НСП 1% [09:46:48]line > о реализуемом товаре [09:46:48]line ИТОГО: 230.00 [09:46:48]line НСП 1% : 2.03 [09:46:48]line НДС 12% : 24.42 [09:46:48]line Наличными: 0.00 [09:46:48]line Безнал.: 230.00 [09:46:48]line Место: АЗС № 90 "Партнер Нефть" [09:46:48]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:46:48]line СНО: Общий режим [09:46:48]line Чек 42 23.09.2024 09:46 [09:46:48]line Смена: 472 ФФД: 1.0 [09:46:48]line ЗНМ: 0300000120 [09:46:48]line РНМ: 0000000000091831 [09:46:48]line Версия ККМ: 001 [09:46:48]line Платежная система: Бакай Банк [09:46:48]line ФМ: 0000000000871830 [09:46:48]line ФД: 115559 [09:46:48]line ФПД: 111377723529986 [09:46:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T094646&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115559&fm=111377723529986&tin=02508201610067®Number=0000000000091831&sum=23000 [09:46:48]line 0 [09:46:48]written 0, free lines is 4095 [09:46:48]OFD Sender: Processing packet 115559 [packets to send 481, broken 480] [09:46:48]ProducePacketName [09:46:48]name=ofd_packets/00115559 [09:46:48]OFD Sender: To server: pG, [09:46:48]CommunicateWithHost lk.salyk.kg:30040 [09:46:48]ConnectInit lk.salyk.kg [09:46:48]Connected sock=10 [09:46: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 38 33 30 F7 01 00 00 80 00 EF 01 A8 60 5A 03 01 00 03 00 E3 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 06 39 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 67 C3 01 00 35 04 06 00 65 4C 25 A5 9B 02 E9 BB 45 F2 79 1B 01 1B [09:46:48]Write to MH i2c: 01 00 00 D5 01 D6 [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: 01 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: 01 07 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 45 0B 2D [09:46:48]RasterBufferAndPrint [09:46:48]line [09:46:48]line [09:46:48]line [09:46:48]line [09:46:48]line [09:46:48]written 0, free lines is 2888 [09:46:48]MH_Cut [09:46:48]Write to MH i2c: D1 01 00 DC 01 01 AF [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: D1 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: D1 01 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: D1 01 00 DC 01 00 AE [09:46:48]Write to MH i2c: 01 00 00 DD 01 DE [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 4A AB 47 00 F8 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 38 33 30 10 04 04 00 67 C3 01 00 F4 03 04 00 4A DE F0 66 B6 04 01 00 00 E4 1D 2D 59 D7 61 91 CD [09:46:48]CommunicateWithHost err = 0 [09:46:48]CheckOFDResponse [09:46:48]1017 (14) - 77093643461234 [09:46:48]1041 (16) - 0000000000871830 [09:46:48]1040 (4) - 115559 [09:46:48]1012 (4) - 23.09.2024 03:19 [09:46:48]1206 (1) - 0 [09:46:48]OFD Sender: Remove packet 115559 [09:46:48]ProducePacketName [09:46:48]name=ofd_packets/00115559 [09:46:48]NVStorageDeleteData [09:46:49]OFD Sender: No OFD packet to send [09:46:50]*** Cut start [09:46:50]*** Partial cut [09:46:50]*** CUTSNS_PIN = 1 [09:46:50]*** CUTSNS_PIN = 0 [09:46:50]*** Brake cut motor [09:46:50]Read from MH i2c: 01 [09:46:50]MH_I2C_Read... [09:46:50]*** Stop cut motor [09:46:50]*** Cut end [09:46:50]Read from MH i2c: 01 07 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: 01 07 00 DD 01 00 00 00 00 00 FF 0F F3 [09:46:50]process_action close_receipt done [09:46:50]requested_data is exist [09:46:50]produce_requested_data [09:46:50]requested_item fm.sn is exist - process it [09:46:50]wFMCommunicate request_size=4 [09:46:50]MH_SAM_APDU [09:46:50]CAPDU: 80 11 00 00 [09:46:50]Write to MH i2c: E2 08 00 DE 01 80 11 00 00 00 00 00 00 59 [09:46:50]Write i2c OK [09:46:50]MH_I2C_Read... [09:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:50]Read from MH i2c: E2 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 17 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 17 00 DE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A7 [09:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:46:50]wFMCommunicate OK [09:46:50]requested_item fd.num is exist - process it [09:46:50]SAM_PROTO_GetFieldsCounters [09:46:50]wFMCommunicate request_size=4 [09:46:50]MH_SAM_APDU [09:46:50]CAPDU: 80 13 00 00 [09:46:50]Write to MH i2c: E2 08 00 DF 01 80 13 00 00 00 00 00 00 5C [09:46:50]Write i2c OK [09:46:50]MH_I2C_Read... [09:46:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:51]Read from MH i2c: E2 [09:46:51]MH_I2C_Read... [09:46:51]Read from MH i2c: E2 62 00 [09:46:51]MH_I2C_Read... [09:46:51]Read from MH i2c: E2 62 00 DF 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 67 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [09:46: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 67 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:51]wFMCommunicate OK [09:46:51]SAM_PROTO_GetFieldsCounters done [09:46:51]requested_item shift.num is exist - process it [09:46:51]requested_item shift.opened is exist - process it [09:46:51]req_shift_opened [09:46:51]FM_GetShiftState [09:46:51]SAM_PROTO_GetShiftState [09:46:51]wFMCommunicate request_size=4 [09:46:51]MH_SAM_APDU [09:46:51]CAPDU: 80 13 01 00 [09:46:51]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [09:46:51]Write i2c OK [09:46:51]MH_I2C_Read... [09:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:51]Read from MH i2c: E2 [09:46:51]MH_I2C_Read... [09:46:51]Read from MH i2c: E2 0E 00 [09:46:51]MH_I2C_Read... [09:46:51]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 9F [09:46:51]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:46:51]wFMCommunicate OK [09:46:51]SAM_PROTO_GetShiftState done [09:46:51]FM_GetShiftState done [09:46:51]req_shift_opened done [09:46:51]requested_item shift.open_date is exist - process it [09:46:51]req_shift_open_date [09:46:51]req_shift_open_date done [09:46:51]produce_requested_data done [09:46:51]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115559,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:46:51]process_action_free close_receipt [09:46:51]json_value_free [09:46:51]json_value_free done [09:46:51]process_json_proto returns [09:46:51]Send response to host [09:46:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115559,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:46:51]free response buf [09:46:51]execute_script done [09:46:51]execute_script returns [09:46:51]free content buf [09:46:51]Sock 9.Close socket [09:46:51]Sock 9.Thread stoped [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:04]accept exits with 7 [09:47:04]New connection [09:47:04]New thread 3067194724 created [09:47:04]Thread 3067051364 joined [09:47:04]Waiting for new connection... [09:47:04] Sock 7.Parse request [09:47:04]Sock 7.Check first char [09:47:04]Sock 7.First char is OK [09:47:04]request: POST /json_proto HTTP/1.0 [09:47:04]Method: POST [09:47:04]URL: /json_proto [09:47:04]Method is POST - this is cgi request [09:47:04]url: /json_proto [09:47:04]query_string will be loaded in cgi processing [09:47:04]execute_cgi json_proto POST (null) [09:47:04]execute_cgi path=json_proto method=POST [09:47:04]POST find Content-Length [09:47:04]Host: 172.17.41.136:8080 [09:47:04]Content-Length: 647 [09:47:04]Content-Type: application/json [09:47:04] [09:47:04]POST finish read [09:47:04]Found Content-Length = 647 [09:47:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343978", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 4.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:04]execute_script... [09:47:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343978", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 4.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:04]POST & json_proto [09:47:04]process_json_proto [09:47:04]json parsed OK: [09:47:04]protocol is kg_v1.0 [09:47:04]action value=close_receipt [09:47:04]process_action close_receipt [09:47:04]cmd_close_receipt [09:47:04]MH_GetDate [09:47:04]Write to MH i2c: F0 00 00 E1 01 D1 [09:47:04]Write i2c OK [09:47:04]MH_I2C_Read... [09:47:04]Read from MH i2c: F0 [09:47:04]MH_I2C_Read... [09:47:04]Read from MH i2c: F0 09 00 [09:47:04]MH_I2C_Read... [09:47:04]Read from MH i2c: F0 09 00 E1 01 00 19 39 F1 66 1B D0 5A 64 2C [09:47:04]GetLastDocTimeStamp 1727084806 [09:47:04]current date 1727084825 [09:47:04]FM_GetShiftState [09:47:04]SAM_PROTO_GetShiftState [09:47:04]wFMCommunicate request_size=4 [09:47:04]MH_SAM_APDU [09:47:04]CAPDU: 80 13 01 00 [09:47:04]Write to MH i2c: E2 08 00 E2 01 80 13 01 00 00 00 00 00 60 [09:47:04]Write i2c OK [09:47:04]MH_I2C_Read... [09:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:04]Read from MH i2c: E2 [09:47:04]MH_I2C_Read... [09:47:04]Read from MH i2c: E2 0E 00 [09:47:04]MH_I2C_Read... [09:47:04]Read from MH i2c: E2 0E 00 E2 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A1 [09:47:04]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:47:04]wFMCommunicate OK [09:47:04]SAM_PROTO_GetShiftState done [09:47:04]FM_GetShiftState done [09:47:04]opened in 1727052070 [09:47:04]opened+sec_in_day 1727138470 [09:47:04]quantity*price = 26000 [09:47:04]sum+1 = 26001 [09:47:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 43 23.09.2024 09:47 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115560 ФПД: 207938935141973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T094705&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115560&fm=207938935141973&tin=02508201610067®Number=0000000000091831&sum=26000 0 [09:47:05]StoreToDocumentArchive [09:47:05]shift 472 fd 115560 [09:47:05]save to /storage/0472/doc_00115560 [09:47:05]save last doc name /storage/0472/doc_00115560 to /storage/kkm_last_doc_name [09:47:05]save OK [09:47:05]Clear old archive folders... [09:47:05]ProcessDocumentItem done err = 0, tmpTLVsize=272 [09:47:05]tlvbuf is 009434F0 [09:47:05]SAM_PROTO_ClearQueue [09:47:05]wFMCommunicate request_size=4 [09:47:05]MH_SAM_APDU [09:47:05]CAPDU: 80 09 00 00 [09:47:05]Write to MH i2c: E2 08 00 EF 01 80 09 00 00 00 00 00 00 62 [09:47:05]Write i2c OK [09:47:05]MH_I2C_Read... [09:47:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:05]Read from MH i2c: E2 [09:47:05]MH_I2C_Read... [09:47:05]Read from MH i2c: E2 03 00 [09:47:05]MH_I2C_Read... [09:47:05]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [09:47:05]RAPDU: 90 00 [09:47:05]wFMCommunicate OK [09:47:05]SAM_PROTO_ClearQueue done [09:47:05]KKMCreateOFDPacket [09:47:05]OFDProtocolAddRootSTLVToBuf [09:47:05]FM_MakeSignedData [09:47:05]FM_MakeSignedData [09:47:05]SAM_PROTO_SignData [09:47:05]wFMCommunicate request_size=4 [09:47:05]MH_SAM_APDU [09:47:05]CAPDU: 80 0D 01 02 [09:47:05]Write to MH i2c: E2 08 00 F0 01 80 0D 01 02 00 00 00 00 6A [09:47:05]Write i2c OK [09:47:05]MH_I2C_Read... [09:47:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:05]Read from MH i2c: E2 [09:47:05]MH_I2C_Read... [09:47:05]Read from MH i2c: E2 03 00 [09:47:05]MH_I2C_Read... [09:47:05]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [09:47:05]RAPDU: 90 00 [09:47:05]wFMCommunicate OK [09:47:05]wFMCommunicate request_size=255 [09:47:05]MH_SAM_APDU [09:47:05]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 19 39 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [09:47:05]Write to MH i2c: E2 02 01 F1 01 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 19 39 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 58 [09:47:05]Write i2c OK [09:47:05]MH_I2C_Read... [09:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:06]Read from MH i2c: E2 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 03 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [09:47:06]RAPDU: 90 00 [09:47:06]wFMCommunicate OK [09:47:06]wFMCommunicate request_size=31 [09:47:06]MH_SAM_APDU [09:47:06]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 68 C3 01 00 35 04 06 00 BD 1E 8E 5D 36 55 [09:47:06]Write to MH i2c: E2 22 00 F2 01 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 68 C3 01 00 35 04 06 00 BD 1E 8E 5D 36 55 00 00 10 [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:06]Read from MH i2c: E2 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 03 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [09:47:06]RAPDU: 90 00 [09:47:06]wFMCommunicate OK [09:47:06]wFMCommunicate request_size=4 [09:47:06]MH_SAM_APDU [09:47:06]CAPDU: 80 0D 03 02 [09:47:06]Write to MH i2c: E2 08 00 F3 01 80 0D 03 02 00 00 00 00 6F [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:06]Read from MH i2c: E2 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 0B 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 0B 00 F3 01 00 AD BE 1E A1 10 4D BC 33 90 00 E6 [09:47:06]RAPDU: AD BE 1E A1 10 4D BC 33 90 00 [09:47:06]wFMCommunicate OK [09:47:06]SAM_PROTO_SignData done [09:47:06]FM_MakeSignedData done [09:47:06]CreateOFDProtocolMessage [09:47:06]wFMCommunicate request_size=4 [09:47:06]MH_SAM_APDU [09:47:06]CAPDU: 80 11 00 00 [09:47:06]Write to MH i2c: E2 08 00 F4 01 80 11 00 00 00 00 00 00 6F [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:06]Read from MH i2c: E2 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 17 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 17 00 F4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BD [09:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:47:06]wFMCommunicate OK [09:47:06]CreateOFDProtocolMessage done [09:47:06]OFDSenderStorePacket 115560 [09:47:06]StoreOFDPacket docnum=115560 [09:47:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 90 18 1C 01 B6 81 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 19 39 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 68 C3 01 00 35 04 06 00 BD 1E 8E 5D 36 55 AD BE 1E A1 10 4D BC 33 [09:47:06]CheckFolder [09:47:06]dirname=/storage/ofd_packets [09:47:06]CheckFolder done [09:47:06]ProducePacketName [09:47:06]name=ofd_packets/00115560 [09:47:06]NVStorageSaveData ofd_packets/00115560 [09:47:06]File name is /storage/ofd_packets/00115560 [09:47:06]Write 322 bytes [09:47:06]NVStorageSaveData done [09:47:06]OFDSenderStorePacket done [09:47:06]KKMCreateOFDPacket done [09:47:06]NVStorageSaveData kkm_last_timestamp [09:47:06]File name is /storage/kkm_last_timestamp [09:47:06]Write 4 bytes [09:47:06]NVStorageSaveData done [09:47:06]ExternCall_PrintAddStr [09:47:06]wPrintStart [09:47:06]Write to MH i2c: 01 00 00 F5 01 F6 [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: 01 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: 01 07 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: 01 07 00 F5 01 00 00 00 00 00 FF 0F 0B [09:47:06]RasterBufferAndPrint [09:47:06]line Счет N : (3)343978 [09:47:06]line ИНН: 02508201610067 [09:47:06]line Контрольно-Кассовый Чек [09:47:06]line ПРОДАЖА [09:47:06]line Товар: 47011656 [09:47:06]line Водка Пшеничная 0,1л [09:47:06]line 4.000 * 65.00 [09:47:06]line = 260.00 [09:47:06]line НДС 12% НСП 1% [09:47:06]line > о реализуемом товаре [09:47:06]line ИТОГО: 260.00 [09:47:06]line НСП 1% : 2.30 [09:47:06]line НДС 12% : 27.61 [09:47:06]line Наличными: 260.00 [09:47:06]line Безнал.: 0.00 [09:47:06]line Место: АЗС № 90 "Партнер Нефть" [09:47:06]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:47:06]line СНО: Общий режим [09:47:06]line Чек 43 23.09.2024 09:47 [09:47:06]line Смена: 472 ФФД: 1.0 [09:47:06]line ЗНМ: 0300000120 [09:47:06]line РНМ: 0000000000091831 [09:47:06]line Версия ККМ: 001 [09:47:06]line ФМ: 0000000000871830 [09:47:06]line ФД: 115560 [09:47:06]line ФПД: 207938935141973 [09:47:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T094705&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115560&fm=207938935141973&tin=02508201610067®Number=0000000000091831&sum=26000 [09:47:06]line 0 [09:47:06]written 0, free lines is 4095 [09:47:06]OFD Sender: Processing packet 115560 [packets to send 481, broken 480] [09:47:06]ProducePacketName [09:47:06]name=ofd_packets/00115560 [09:47:06]OFD Sender: To server: pG, [09:47:06]CommunicateWithHost lk.salyk.kg:30040 [09:47:06]ConnectInit lk.salyk.kg [09:47:06]Write to MH i2c: 01 00 00 1C 02 1E [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: 01 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: 01 07 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 8B 0C BC [09:47:06]RasterBufferAndPrint [09:47:06]line [09:47:06]line [09:47:06]line [09:47:06]line [09:47:06]line [09:47:06]written 0, free lines is 3215 [09:47:06]MH_Cut [09:47:06]Write to MH i2c: D1 01 00 23 02 01 F7 [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: D1 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: D1 01 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: D1 01 00 23 02 00 F6 [09:47:06]Write to MH i2c: 01 00 00 24 02 26 [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]Connected sock=10 [09:47: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 38 33 30 24 01 00 00 90 18 1C 01 B6 81 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 19 39 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 68 C3 01 00 35 04 06 00 BD 1E 8E 5D 36 55 AD BE 1E A1 10 4D BC 33 [09:47:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 ED 96 47 00 31 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 38 33 30 10 04 04 00 68 C3 01 00 F4 03 04 00 5C DE F0 66 B6 04 01 00 00 80 4E 35 3D 88 DA 5E 25 [09:47:07]CommunicateWithHost err = 0 [09:47:07]CheckOFDResponse [09:47:07]1017 (14) - 77093643461234 [09:47:07]1041 (16) - 0000000000871830 [09:47:07]1040 (4) - 115560 [09:47:07]1012 (4) - 23.09.2024 03:19 [09:47:07]1206 (1) - 0 [09:47:07]OFD Sender: Remove packet 115560 [09:47:07]ProducePacketName [09:47:07]name=ofd_packets/00115560 [09:47:07]NVStorageDeleteData [09:47:07]OFD Sender: No OFD packet to send [09:47:07]*** Cut start [09:47:07]*** Partial cut [09:47:07]*** CUTSNS_PIN = 1 [09:47:08]*** CUTSNS_PIN = 0 [09:47:08]*** Brake cut motor [09:47:08]Read from MH i2c: 01 [09:47:08]MH_I2C_Read... [09:47:08]*** Stop cut motor [09:47:08]*** Cut end [09:47:08]Read from MH i2c: 01 07 00 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [09:47:08]process_action close_receipt done [09:47:08]requested_data is exist [09:47:08]produce_requested_data [09:47:08]requested_item fm.sn is exist - process it [09:47:08]wFMCommunicate request_size=4 [09:47:08]MH_SAM_APDU [09:47:08]CAPDU: 80 11 00 00 [09:47:08]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [09:47:08]Write i2c OK [09:47:08]MH_I2C_Read... [09:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:08]Read from MH i2c: E2 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 17 00 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EF [09:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:47:08]wFMCommunicate OK [09:47:08]requested_item fd.num is exist - process it [09:47:08]SAM_PROTO_GetFieldsCounters [09:47:08]wFMCommunicate request_size=4 [09:47:08]MH_SAM_APDU [09:47:08]CAPDU: 80 13 00 00 [09:47:08]Write to MH i2c: E2 08 00 26 02 80 13 00 00 00 00 00 00 A4 [09:47:08]Write i2c OK [09:47:08]MH_I2C_Read... [09:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:08]Read from MH i2c: E2 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 62 00 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 62 00 26 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 68 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [09:47: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 68 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:08]wFMCommunicate OK [09:47:08]SAM_PROTO_GetFieldsCounters done [09:47:08]requested_item shift.num is exist - process it [09:47:08]requested_item shift.opened is exist - process it [09:47:08]req_shift_opened [09:47:08]FM_GetShiftState [09:47:08]SAM_PROTO_GetShiftState [09:47:08]wFMCommunicate request_size=4 [09:47:08]MH_SAM_APDU [09:47:08]CAPDU: 80 13 01 00 [09:47:08]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [09:47:08]Write i2c OK [09:47:08]MH_I2C_Read... [09:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:08]Read from MH i2c: E2 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 0E 00 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E7 [09:47:08]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:47:08]wFMCommunicate OK [09:47:08]SAM_PROTO_GetShiftState done [09:47:08]FM_GetShiftState done [09:47:08]req_shift_opened done [09:47:08]requested_item shift.open_date is exist - process it [09:47:08]req_shift_open_date [09:47:08]req_shift_open_date done [09:47:08]produce_requested_data done [09:47:08]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115560,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:47:08]process_action_free close_receipt [09:47:08]json_value_free [09:47:08]json_value_free done [09:47:08]process_json_proto returns [09:47:08]Send response to host [09:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115560,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:47:08]free response buf [09:47:08]execute_script done [09:47:08]execute_script returns [09:47:08]free content buf [09:47:08]Sock 7.Close socket [09:47:08]Sock 7.Thread stoped [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:19]accept exits with 9 [09:48:19]New connection [09:48:19]New thread 3067051364 created [09:48:19]Thread 3067194724 joined [09:48:19]Waiting for new connection... [09:48:19] Sock 9.Parse request [09:48:19]Sock 9.Check first char [09:48:19]Sock 9.First char is OK [09:48:19]request: POST /json_proto HTTP/1.0 [09:48:19]Method: POST [09:48:19]URL: /json_proto [09:48:19]Method is POST - this is cgi request [09:48:19]url: /json_proto [09:48:19]query_string will be loaded in cgi processing [09:48:19]execute_cgi json_proto POST (null) [09:48:19]execute_cgi path=json_proto method=POST [09:48:19]POST find Content-Length [09:48:19]Host: 172.17.41.136:8080 [09:48:19]Content-Length: 792 [09:48:19]Content-Type: application/json [09:48:19] [09:48:19]POST finish read [09:48:19]Found Content-Length = 792 [09:48:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A03209", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:19]execute_script... [09:48: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)24617492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A03209", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:19]POST & json_proto [09:48:19]process_json_proto [09:48:19]json parsed OK: [09:48:19]protocol is kg_v1.0 [09:48:19]action value=close_receipt [09:48:19]process_action close_receipt [09:48:19]cmd_close_receipt [09:48:19]MH_GetDate [09:48:19]Write to MH i2c: F0 00 00 28 02 19 [09:48:19]Write i2c OK [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: F0 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: F0 09 00 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: F0 09 00 28 02 00 63 39 F1 66 1B D0 5A 64 BE [09:48:19]GetLastDocTimeStamp 1727084825 [09:48:19]current date 1727084899 [09:48:19]FM_GetShiftState [09:48:19]SAM_PROTO_GetShiftState [09:48:19]wFMCommunicate request_size=4 [09:48:19]MH_SAM_APDU [09:48:19]CAPDU: 80 13 01 00 [09:48:19]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [09:48:19]Write i2c OK [09:48:19]MH_I2C_Read... [09:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:19]Read from MH i2c: E2 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 0E 00 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E9 [09:48:19]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:48:19]wFMCommunicate OK [09:48:19]SAM_PROTO_GetShiftState done [09:48:19]FM_GetShiftState done [09:48:19]opened in 1727052070 [09:48:19]opened+sec_in_day 1727138470 [09:48:19]quantity*price = 0 [09:48:19]sum+1 = 1 [09:48:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 44 23.09.2024 09:48 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливная Карта 03209 ФМ: 0000000000871830 ФД: 115561 ФПД: 186640863515554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T094819&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115561&fm=186640863515554&tin=02508201610067®Number=0000000000091831&sum=0 [09:48:20]StoreToDocumentArchive [09:48:20]shift 472 fd 115561 [09:48:20]save to /storage/0472/doc_00115561 [09:48:20]save last doc name /storage/0472/doc_00115561 to /storage/kkm_last_doc_name [09:48:20]save OK [09:48:20]Clear old archive folders... [09:48:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:48:20]tlvbuf is 00940C20 [09:48:20]SAM_PROTO_ClearQueue [09:48:20]wFMCommunicate request_size=4 [09:48:20]MH_SAM_APDU [09:48:20]CAPDU: 80 09 00 00 [09:48:20]Write to MH i2c: E2 08 00 36 02 80 09 00 00 00 00 00 00 AA [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [09:48:20]RAPDU: 90 00 [09:48:20]wFMCommunicate OK [09:48:20]SAM_PROTO_ClearQueue done [09:48:20]KKMCreateOFDPacket [09:48:20]OFDProtocolAddRootSTLVToBuf [09:48:20]FM_MakeSignedData [09:48:20]FM_MakeSignedData [09:48:20]SAM_PROTO_SignData [09:48:20]wFMCommunicate request_size=4 [09:48:20]MH_SAM_APDU [09:48:20]CAPDU: 80 0D 01 02 [09:48:20]Write to MH i2c: E2 08 00 37 02 80 0D 01 02 00 00 00 00 B2 [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [09:48:20]RAPDU: 90 00 [09:48:20]wFMCommunicate OK [09:48:20]wFMCommunicate request_size=255 [09:48:20]MH_SAM_APDU [09:48:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 2C 00 00 00 F4 03 04 00 63 39 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 69 C3 01 00 35 04 06 00 A9 BF B6 5E [09:48:20]Write to MH i2c: E2 02 01 38 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 2C 00 00 00 F4 03 04 00 63 39 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 69 C3 01 00 35 04 06 00 A9 BF B6 5E 00 00 CF [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [09:48:20]RAPDU: 90 00 [09:48:20]wFMCommunicate OK [09:48:20]wFMCommunicate request_size=7 [09:48:20]MH_SAM_APDU [09:48:20]CAPDU: 80 0D 02 02 02 D3 A2 [09:48:20]Write to MH i2c: E2 0A 00 39 02 80 0D 02 02 02 00 D3 A2 00 00 2E [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [09:48:20]RAPDU: 90 00 [09:48:20]wFMCommunicate OK [09:48:20]wFMCommunicate request_size=4 [09:48:20]MH_SAM_APDU [09:48:20]CAPDU: 80 0D 03 02 [09:48:20]Write to MH i2c: E2 08 00 3A 02 80 0D 03 02 00 00 00 00 B7 [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 0B 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 0B 00 3A 02 00 B9 8B CB 21 4C CF 78 2D 90 00 A8 [09:48:20]RAPDU: B9 8B CB 21 4C CF 78 2D 90 00 [09:48:20]wFMCommunicate OK [09:48:20]SAM_PROTO_SignData done [09:48:20]FM_MakeSignedData done [09:48:20]CreateOFDProtocolMessage [09:48:20]wFMCommunicate request_size=4 [09:48:20]MH_SAM_APDU [09:48:20]CAPDU: 80 11 00 00 [09:48:20]Write to MH i2c: E2 08 00 3B 02 80 11 00 00 00 00 00 00 B7 [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 17 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 17 00 3B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 05 [09:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:48:20]wFMCommunicate OK [09:48:20]CreateOFDProtocolMessage done [09:48:20]OFDSenderStorePacket 115561 [09:48:20]StoreOFDPacket docnum=115561 [09:48:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 F2 67 04 01 98 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 2C 00 00 00 F4 03 04 00 63 39 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 69 C3 01 00 35 04 06 00 A9 BF B6 5E D3 A2 B9 8B CB 21 4C CF 78 2D [09:48:20]CheckFolder [09:48:20]dirname=/storage/ofd_packets [09:48:20]CheckFolder done [09:48:20]ProducePacketName [09:48:20]name=ofd_packets/00115561 [09:48:20]NVStorageSaveData ofd_packets/00115561 [09:48:20]File name is /storage/ofd_packets/00115561 [09:48:20]Write 298 bytes [09:48:20]NVStorageSaveData done [09:48:20]OFDSenderStorePacket done [09:48:20]KKMCreateOFDPacket done [09:48:20]NVStorageSaveData kkm_last_timestamp [09:48:20]File name is /storage/kkm_last_timestamp [09:48:20]Write 4 bytes [09:48:20]NVStorageSaveData done [09:48:20]ExternCall_PrintAddStr [09:48:20]wPrintStart [09:48:20]Write to MH i2c: 01 00 00 3C 02 3E [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: 01 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: 01 07 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: 01 07 00 3C 02 00 00 00 00 00 FF 0F 53 [09:48:20]RasterBufferAndPrint [09:48:20]line Счет N : (1)24617492 [09:48:20]line ИНН: 02508201610067 [09:48:20]line Контрольно-Кассовый Чек [09:48:20]line ПРОДАЖА [09:48:20]line ТРК (МРК, ГНК) : 65 [09:48:20]line Товар: 2710194210 [09:48:20]line ДТ-К-5 [09:48:20]line 100.000 * 0.00 [09:48:20]line = 0.00 [09:48:20]line НДС 12% НСП 1% [09:48:20]line > о реализуемом товаре [09:48:20]line ИТОГО: 0.00 [09:48:20]line НСП 1% : 0.00 [09:48:20]line НДС 12% : 0.00 [09:48:20]line Наличными: 0.00 [09:48:20]line Безнал.: 0.00 [09:48:20]line Место: АЗС № 90 "Партнер Нефть" [09:48:20]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:48:20]line СНО: Общий режим [09:48:20]line Чек 44 23.09.2024 09:48 [09:48:20]line Смена: 472 ФФД: 1.0 [09:48:20]line ЗНМ: 0300000120 [09:48:20]line РНМ: 0000000000091831 [09:48:20]line Версия ККМ: 001 [09:48:20]line Талоны: Топливная Карта [09:48:20]line 03209 [09:48:20]line ФМ: 0000000000871830 [09:48:20]line ФД: 115561 [09:48:20]line ФПД: 186640863515554 [09:48:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T094819&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115561&fm=186640863515554&tin=02508201610067®Number=0000000000091831&sum=0 [09:48:20]written 0, free lines is 4095 [09:48:20]OFD Sender: Processing packet 115561 [packets to send 481, broken 480] [09:48:20]ProducePacketName [09:48:20]name=ofd_packets/00115561 [09:48:20]OFD Sender: To server: pG, [09:48:20]CommunicateWithHost lk.salyk.kg:30040 [09:48:20]ConnectInit lk.salyk.kg [09:48:21]Connected sock=10 [09:48: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 38 33 30 0C 01 00 00 F2 67 04 01 98 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 2C 00 00 00 F4 03 04 00 63 39 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 69 C3 01 00 35 04 06 00 A9 BF B6 5E D3 A2 B9 8B CB 21 4C CF 78 2D [09:48:21]Write to MH i2c: 01 00 00 65 02 67 [09:48:21]Write i2c OK [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: 01 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: 01 07 00 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 66 0C E0 [09:48:21]RasterBufferAndPrint [09:48:21]line [09:48:21]line [09:48:21]line [09:48:21]line [09:48:21]line [09:48:21]written 0, free lines is 3178 [09:48:21]MH_Cut [09:48:21]Write to MH i2c: D1 01 00 6C 02 01 40 [09:48:21]Write i2c OK [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: D1 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: D1 01 00 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: D1 01 00 6C 02 00 3F [09:48:21]Write to MH i2c: 01 00 00 6D 02 6F [09:48:21]Write i2c OK [09:48:21]MH_I2C_Read... [09:48:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 EB C3 47 00 B4 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 38 33 30 10 04 04 00 69 C3 01 00 F4 03 04 00 A6 DE F0 66 B6 04 01 00 00 47 6D 4A 04 71 0D 94 3F [09:48:21]CommunicateWithHost err = 0 [09:48:21]CheckOFDResponse [09:48:21]1017 (14) - 77093643461234 [09:48:21]1041 (16) - 0000000000871830 [09:48:21]1040 (4) - 115561 [09:48:21]1012 (4) - 23.09.2024 03:21 [09:48:21]1206 (1) - 0 [09:48:21]OFD Sender: Remove packet 115561 [09:48:21]ProducePacketName [09:48:21]name=ofd_packets/00115561 [09:48:21]NVStorageDeleteData [09:48:21]OFD Sender: No OFD packet to send [09:48:22]*** Cut start [09:48:22]*** Partial cut [09:48:22]*** CUTSNS_PIN = 1 [09:48:22]*** CUTSNS_PIN = 0 [09:48:22]*** Brake cut motor [09:48:23]Read from MH i2c: 01 [09:48:23]MH_I2C_Read... [09:48:23]*** Stop cut motor [09:48:23]*** Cut end [09:48:23]Read from MH i2c: 01 07 00 [09:48:23]MH_I2C_Read... [09:48:23]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 FF 0F 84 [09:48:23]process_action close_receipt done [09:48:23]requested_data is exist [09:48:23]produce_requested_data [09:48:23]requested_item fm.sn is exist - process it [09:48:23]wFMCommunicate request_size=4 [09:48:23]MH_SAM_APDU [09:48:23]CAPDU: 80 11 00 00 [09:48:23]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [09:48:23]Write i2c OK [09:48:23]MH_I2C_Read... [09:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:23]Read from MH i2c: E2 [09:48:23]MH_I2C_Read... [09:48:23]Read from MH i2c: E2 17 00 [09:48:23]MH_I2C_Read... [09:48:23]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 38 [09:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:48:23]wFMCommunicate OK [09:48:23]requested_item fd.num is exist - process it [09:48:23]SAM_PROTO_GetFieldsCounters [09:48:23]wFMCommunicate request_size=4 [09:48:23]MH_SAM_APDU [09:48:23]CAPDU: 80 13 00 00 [09:48:23]Write to MH i2c: E2 08 00 6F 02 80 13 00 00 00 00 00 00 ED [09:48:23]Write i2c OK [09:48:23]MH_I2C_Read... [09:48:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:23]Read from MH i2c: E2 [09:48:23]MH_I2C_Read... [09:48:23]Read from MH i2c: E2 62 00 [09:48:23]MH_I2C_Read... [09:48:23]Read from MH i2c: E2 62 00 6F 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 69 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [09:48: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 69 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:23]wFMCommunicate OK [09:48:23]SAM_PROTO_GetFieldsCounters done [09:48:23]requested_item shift.num is exist - process it [09:48:23]requested_item shift.opened is exist - process it [09:48:23]req_shift_opened [09:48:23]FM_GetShiftState [09:48:23]SAM_PROTO_GetShiftState [09:48:23]wFMCommunicate request_size=4 [09:48:23]MH_SAM_APDU [09:48:23]CAPDU: 80 13 01 00 [09:48:23]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [09:48:23]Write i2c OK [09:48:23]MH_I2C_Read... [09:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:23]Read from MH i2c: E2 [09:48:23]MH_I2C_Read... [09:48:23]Read from MH i2c: E2 0E 00 [09:48:23]MH_I2C_Read... [09:48:23]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 30 [09:48:23]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:48:23]wFMCommunicate OK [09:48:23]SAM_PROTO_GetShiftState done [09:48:23]FM_GetShiftState done [09:48:23]req_shift_opened done [09:48:23]requested_item shift.open_date is exist - process it [09:48:23]req_shift_open_date [09:48:23]req_shift_open_date done [09:48:23]produce_requested_data done [09:48:23]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115561,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:48:23]process_action_free close_receipt [09:48:23]json_value_free [09:48:23]json_value_free done [09:48:23]process_json_proto returns [09:48:23]Send response to host [09:48:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115561,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:48:23]free response buf [09:48:23]execute_script done [09:48:23]execute_script returns [09:48:23]free content buf [09:48:23]Sock 9.Close socket [09:48:23]Sock 9.Thread stoped [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:06]accept exits with 7 [09:52:06]New connection [09:52:06]New thread 3067194724 created [09:52:06]Thread 3067051364 joined [09:52:06]Waiting for new connection... [09:52:06] Sock 7.Parse request [09:52:06]Sock 7.Check first char [09:52:06]Sock 7.First char is OK [09:52:06]request: POST /json_proto HTTP/1.0 [09:52:06]Method: POST [09:52:06]URL: /json_proto [09:52:06]Method is POST - this is cgi request [09:52:06]url: /json_proto [09:52:06]query_string will be loaded in cgi processing [09:52:06]execute_cgi json_proto POST (null) [09:52:06]execute_cgi path=json_proto method=POST [09:52:06]POST find Content-Length [09:52:06]Host: 172.17.41.136:8080 [09:52:06]Content-Length: 792 [09:52:06]Content-Type: application/json [09:52:06] [09:52:06]POST finish read [09:52:06]Found Content-Length = 792 [09:52:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A03209", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:06]execute_script... [09:52: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)24617493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A03209", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:06]POST & json_proto [09:52:06]process_json_proto [09:52:06]json parsed OK: [09:52:06]protocol is kg_v1.0 [09:52:06]action value=close_receipt [09:52:06]process_action close_receipt [09:52:06]cmd_close_receipt [09:52:06]MH_GetDate [09:52:06]Write to MH i2c: F0 00 00 71 02 62 [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: F0 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: F0 09 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: F0 09 00 71 02 00 47 3A F1 66 1B D0 5A 64 EC [09:52:06]GetLastDocTimeStamp 1727084899 [09:52:06]current date 1727085127 [09:52:06]FM_GetShiftState [09:52:06]SAM_PROTO_GetShiftState [09:52:06]wFMCommunicate request_size=4 [09:52:06]MH_SAM_APDU [09:52:06]CAPDU: 80 13 01 00 [09:52:06]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:06]Read from MH i2c: E2 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 0E 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 32 [09:52:06]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:52:06]wFMCommunicate OK [09:52:06]SAM_PROTO_GetShiftState done [09:52:06]FM_GetShiftState done [09:52:06]opened in 1727052070 [09:52:06]opened+sec_in_day 1727138470 [09:52:06]quantity*price = 0 [09:52:06]sum+1 = 1 [09:52:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 45 23.09.2024 09:52 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливная Карта 03209 ФМ: 0000000000871830 ФД: 115562 ФПД: 150290783279291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T095207&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115562&fm=150290783279291&tin=02508201610067®Number=0000000000091831&sum=0 [09:52:08]StoreToDocumentArchive [09:52:08]shift 472 fd 115562 [09:52:08]save to /storage/0472/doc_00115562 [09:52:08]save last doc name /storage/0472/doc_00115562 to /storage/kkm_last_doc_name [09:52:08]save OK [09:52:08]Clear old archive folders... [09:52:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:52:08]tlvbuf is 00940B10 [09:52:08]SAM_PROTO_ClearQueue [09:52:08]wFMCommunicate request_size=4 [09:52:08]MH_SAM_APDU [09:52:08]CAPDU: 80 09 00 00 [09:52:08]Write to MH i2c: E2 08 00 7F 02 80 09 00 00 00 00 00 00 F3 [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:08]Read from MH i2c: E2 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 03 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [09:52:08]RAPDU: 90 00 [09:52:08]wFMCommunicate OK [09:52:08]SAM_PROTO_ClearQueue done [09:52:08]KKMCreateOFDPacket [09:52:08]OFDProtocolAddRootSTLVToBuf [09:52:08]FM_MakeSignedData [09:52:08]FM_MakeSignedData [09:52:08]SAM_PROTO_SignData [09:52:08]wFMCommunicate request_size=4 [09:52:08]MH_SAM_APDU [09:52:08]CAPDU: 80 0D 01 02 [09:52:08]Write to MH i2c: E2 08 00 80 02 80 0D 01 02 00 00 00 00 FB [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:08]Read from MH i2c: E2 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 03 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [09:52:08]RAPDU: 90 00 [09:52:08]wFMCommunicate OK [09:52:08]wFMCommunicate request_size=255 [09:52:08]MH_SAM_APDU [09:52:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 2D 00 00 00 F4 03 04 00 47 3A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6A C3 01 00 35 04 06 00 88 B0 4C C0 [09:52:08]Write to MH i2c: E2 02 01 81 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 2D 00 00 00 F4 03 04 00 47 3A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6A C3 01 00 35 04 06 00 88 B0 4C C0 00 00 C7 [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:08]Read from MH i2c: E2 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 03 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [09:52:08]RAPDU: 90 00 [09:52:08]wFMCommunicate OK [09:52:08]wFMCommunicate request_size=7 [09:52:08]MH_SAM_APDU [09:52:08]CAPDU: 80 0D 02 02 02 18 BB [09:52:08]Write to MH i2c: E2 0A 00 82 02 80 0D 02 02 02 00 18 BB 00 00 D5 [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:08]Read from MH i2c: E2 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 03 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [09:52:08]RAPDU: 90 00 [09:52:08]wFMCommunicate OK [09:52:08]wFMCommunicate request_size=4 [09:52:08]MH_SAM_APDU [09:52:08]CAPDU: 80 0D 03 02 [09:52:08]Write to MH i2c: E2 08 00 83 02 80 0D 03 02 00 00 00 00 00 [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:08]Read from MH i2c: E2 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 0B 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 0B 00 83 02 00 A2 12 A1 44 F9 5A CB 4F 90 00 07 [09:52:08]RAPDU: A2 12 A1 44 F9 5A CB 4F 90 00 [09:52:08]wFMCommunicate OK [09:52:08]SAM_PROTO_SignData done [09:52:08]FM_MakeSignedData done [09:52:08]CreateOFDProtocolMessage [09:52:08]wFMCommunicate request_size=4 [09:52:08]MH_SAM_APDU [09:52:08]CAPDU: 80 11 00 00 [09:52:08]Write to MH i2c: E2 08 00 84 02 80 11 00 00 00 00 00 00 00 [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:08]Read from MH i2c: E2 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 17 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 17 00 84 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4E [09:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:52:08]wFMCommunicate OK [09:52:08]CreateOFDProtocolMessage done [09:52:08]OFDSenderStorePacket 115562 [09:52:08]StoreOFDPacket docnum=115562 [09:52:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 0B C8 04 01 57 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 2D 00 00 00 F4 03 04 00 47 3A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6A C3 01 00 35 04 06 00 88 B0 4C C0 18 BB A2 12 A1 44 F9 5A CB 4F [09:52:08]CheckFolder [09:52:08]dirname=/storage/ofd_packets [09:52:08]CheckFolder done [09:52:08]ProducePacketName [09:52:08]name=ofd_packets/00115562 [09:52:08]NVStorageSaveData ofd_packets/00115562 [09:52:08]File name is /storage/ofd_packets/00115562 [09:52:08]Write 298 bytes [09:52:08]NVStorageSaveData done [09:52:08]OFDSenderStorePacket done [09:52:08]KKMCreateOFDPacket done [09:52:08]NVStorageSaveData kkm_last_timestamp [09:52:08]File name is /storage/kkm_last_timestamp [09:52:08]Write 4 bytes [09:52:08]NVStorageSaveData done [09:52:08]ExternCall_PrintAddStr [09:52:08]wPrintStart [09:52:08]Write to MH i2c: 01 00 00 85 02 87 [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: 01 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: 01 07 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: 01 07 00 85 02 00 00 00 00 00 FF 0F 9C [09:52:08]RasterBufferAndPrint [09:52:08]line Счет N : (1)24617493 [09:52:08]line ИНН: 02508201610067 [09:52:08]line Контрольно-Кассовый Чек [09:52:08]line ПРОДАЖА [09:52:08]line ТРК (МРК, ГНК) : 65 [09:52:08]line Товар: 2710194210 [09:52:08]line ДТ-К-5 [09:52:08]line 100.000 * 0.00 [09:52:08]line = 0.00 [09:52:08]line НДС 12% НСП 1% [09:52:08]line > о реализуемом товаре [09:52:08]line ИТОГО: 0.00 [09:52:08]line НСП 1% : 0.00 [09:52:08]line НДС 12% : 0.00 [09:52:08]line Наличными: 0.00 [09:52:08]line Безнал.: 0.00 [09:52:08]line Место: АЗС № 90 "Партнер Нефть" [09:52:08]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:52:08]line СНО: Общий режим [09:52:08]line Чек 45 23.09.2024 09:52 [09:52:08]line Смена: 472 ФФД: 1.0 [09:52:08]line ЗНМ: 0300000120 [09:52:08]line РНМ: 0000000000091831 [09:52:08]line Версия ККМ: 001 [09:52:08]line Талоны: Топливная Карта [09:52:08]line 03209 [09:52:08]line ФМ: 0000000000871830 [09:52:08]line ФД: 115562 [09:52:08]line ФПД: 150290783279291 [09:52:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T095207&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115562&fm=150290783279291&tin=02508201610067®Number=0000000000091831&sum=0 [09:52:08]written 0, free lines is 4095 [09:52:08]OFD Sender: Processing packet 115562 [packets to send 481, broken 480] [09:52:08]ProducePacketName [09:52:08]name=ofd_packets/00115562 [09:52:08]OFD Sender: To server: pG, [09:52:08]CommunicateWithHost lk.salyk.kg:30040 [09:52:08]ConnectInit lk.salyk.kg [09:52:08]Connected sock=10 [09:52: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 38 33 30 0C 01 00 00 0B C8 04 01 57 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 2D 00 00 00 F4 03 04 00 47 3A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6A C3 01 00 35 04 06 00 88 B0 4C C0 18 BB A2 12 A1 44 F9 5A CB 4F [09:52:09]Write to MH i2c: 01 00 00 AE 02 B0 [09:52:09]Write i2c OK [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: 01 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: 01 07 00 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 6A 0C 2D [09:52:09]RasterBufferAndPrint [09:52:09]line [09:52:09]line [09:52:09]line [09:52:09]line [09:52:09]line [09:52:09]written 0, free lines is 3182 [09:52:09]MH_Cut [09:52:09]Write to MH i2c: D1 01 00 B5 02 01 89 [09:52:09]Write i2c OK [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: D1 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: D1 01 00 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: D1 01 00 B5 02 00 88 [09:52:09]Write to MH i2c: 01 00 00 B6 02 B8 [09:52:09]Write i2c OK [09:52:09]MH_I2C_Read... [09:52:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 EB 55 47 00 58 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 38 33 30 10 04 04 00 6A C3 01 00 F4 03 04 00 8A DF F0 66 B6 04 01 00 00 94 68 46 67 62 15 83 14 [09:52:09]CommunicateWithHost err = 0 [09:52:09]CheckOFDResponse [09:52:09]1017 (14) - 77093643461234 [09:52:09]1041 (16) - 0000000000871830 [09:52:09]1040 (4) - 115562 [09:52:09]1012 (4) - 23.09.2024 03:24 [09:52:09]1206 (1) - 0 [09:52:09]OFD Sender: Remove packet 115562 [09:52:09]ProducePacketName [09:52:09]name=ofd_packets/00115562 [09:52:09]NVStorageDeleteData [09:52:09]OFD Sender: No OFD packet to send [09:52:10]*** Cut start [09:52:10]*** Partial cut [09:52:10]*** CUTSNS_PIN = 1 [09:52:10]*** CUTSNS_PIN = 0 [09:52:10]*** Brake cut motor [09:52:10]Read from MH i2c: 01 [09:52:10]MH_I2C_Read... [09:52:10]*** Stop cut motor [09:52:10]*** Cut end [09:52:10]Read from MH i2c: 01 07 00 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 FF 0F CD [09:52:10]process_action close_receipt done [09:52:10]requested_data is exist [09:52:10]produce_requested_data [09:52:10]requested_item fm.sn is exist - process it [09:52:10]wFMCommunicate request_size=4 [09:52:10]MH_SAM_APDU [09:52:10]CAPDU: 80 11 00 00 [09:52:10]Write to MH i2c: E2 08 00 B7 02 80 11 00 00 00 00 00 00 33 [09:52:10]Write i2c OK [09:52:10]MH_I2C_Read... [09:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:11]Read from MH i2c: E2 [09:52:11]MH_I2C_Read... [09:52:11]Read from MH i2c: E2 17 00 [09:52:11]MH_I2C_Read... [09:52:11]Read from MH i2c: E2 17 00 B7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 81 [09:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:52:11]wFMCommunicate OK [09:52:11]requested_item fd.num is exist - process it [09:52:11]SAM_PROTO_GetFieldsCounters [09:52:11]wFMCommunicate request_size=4 [09:52:11]MH_SAM_APDU [09:52:11]CAPDU: 80 13 00 00 [09:52:11]Write to MH i2c: E2 08 00 B8 02 80 13 00 00 00 00 00 00 36 [09:52:11]Write i2c OK [09:52:11]MH_I2C_Read... [09:52:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:11]Read from MH i2c: E2 [09:52:11]MH_I2C_Read... [09:52:11]Read from MH i2c: E2 62 00 [09:52:11]MH_I2C_Read... [09:52:11]Read from MH i2c: E2 62 00 B8 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6A C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [09:52: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6A C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:11]wFMCommunicate OK [09:52:11]SAM_PROTO_GetFieldsCounters done [09:52:11]requested_item shift.num is exist - process it [09:52:11]requested_item shift.opened is exist - process it [09:52:11]req_shift_opened [09:52:11]FM_GetShiftState [09:52:11]SAM_PROTO_GetShiftState [09:52:11]wFMCommunicate request_size=4 [09:52:11]MH_SAM_APDU [09:52:11]CAPDU: 80 13 01 00 [09:52:11]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [09:52:11]Write i2c OK [09:52:11]MH_I2C_Read... [09:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:11]Read from MH i2c: E2 [09:52:11]MH_I2C_Read... [09:52:11]Read from MH i2c: E2 0E 00 [09:52:11]MH_I2C_Read... [09:52:11]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 79 [09:52:11]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:52:11]wFMCommunicate OK [09:52:11]SAM_PROTO_GetShiftState done [09:52:11]FM_GetShiftState done [09:52:11]req_shift_opened done [09:52:11]requested_item shift.open_date is exist - process it [09:52:11]req_shift_open_date [09:52:11]req_shift_open_date done [09:52:11]produce_requested_data done [09:52:11]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115562,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:52:11]process_action_free close_receipt [09:52:11]json_value_free [09:52:11]json_value_free done [09:52:11]process_json_proto returns [09:52:11]Send response to host [09:52:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115562,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:52:11]free response buf [09:52:11]execute_script done [09:52:11]execute_script returns [09:52:11]free content buf [09:52:11]Sock 7.Close socket [09:52:11]Sock 7.Thread stoped [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:03]accept exits with 9 [09:56:03]New connection [09:56:03]New thread 3067051364 created [09:56:03]Thread 3067194724 joined [09:56:03]Waiting for new connection... [09:56:03] Sock 9.Parse request [09:56:03]Sock 9.Check first char [09:56:03]Sock 9.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.41.136:8080 [09:56:03]Content-Length: 792 [09:56:03]Content-Type: application/json [09:56:03] [09:56:03]POST finish read [09:56:03]Found Content-Length = 792 [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)24617500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A03209", "payments": [ { "type": 1, "sum" : 0.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)24617500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A03209", "payments": [ { "type": 1, "sum" : 0.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 BA 02 AB [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 BA 02 00 34 3B F1 66 1B D0 5A 64 23 [09:56:03]GetLastDocTimeStamp 1727085127 [09:56:03]current date 1727085364 [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 BB 02 80 13 01 00 00 00 00 00 3A [09:56:03]Write i2c OK [09:56:03]MH_I2C_Read... [09:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:03]Read from MH i2c: E2 [09:56:03]MH_I2C_Read... [09:56:03]Read from MH i2c: E2 0E 00 [09:56:03]MH_I2C_Read... [09:56:03]Read from MH i2c: E2 0E 00 BB 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7B [09:56:03]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:56:03]wFMCommunicate OK [09:56:03]SAM_PROTO_GetShiftState done [09:56:03]FM_GetShiftState done [09:56:03]opened in 1727052070 [09:56:03]opened+sec_in_day 1727138470 [09:56:03]quantity*price = 0 [09:56:03]sum+1 = 1 [09:56:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 46 23.09.2024 09:56 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливная Карта 03209 ФМ: 0000000000871830 ФД: 115563 ФПД: 31895608918949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T095604&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115563&fm=31895608918949&tin=02508201610067®Number=0000000000091831&sum=0 [09:56:04]StoreToDocumentArchive [09:56:04]shift 472 fd 115563 [09:56:04]save to /storage/0472/doc_00115563 [09:56:04]save last doc name /storage/0472/doc_00115563 to /storage/kkm_last_doc_name [09:56:04]save OK [09:56:04]Clear old archive folders... [09:56:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:56:04]tlvbuf is 0094F440 [09:56:04]SAM_PROTO_ClearQueue [09:56:04]wFMCommunicate request_size=4 [09:56:04]MH_SAM_APDU [09:56:04]CAPDU: 80 09 00 00 [09:56:04]Write to MH i2c: E2 08 00 C8 02 80 09 00 00 00 00 00 00 3C [09:56:04]Write i2c OK [09:56:04]MH_I2C_Read... [09:56:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:04]Read from MH i2c: E2 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 03 00 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [09:56:04]RAPDU: 90 00 [09:56:04]wFMCommunicate OK [09:56:04]SAM_PROTO_ClearQueue done [09:56:04]KKMCreateOFDPacket [09:56:04]OFDProtocolAddRootSTLVToBuf [09:56:04]FM_MakeSignedData [09:56:04]FM_MakeSignedData [09:56:04]SAM_PROTO_SignData [09:56:04]wFMCommunicate request_size=4 [09:56:04]MH_SAM_APDU [09:56:04]CAPDU: 80 0D 01 02 [09:56:04]Write to MH i2c: E2 08 00 C9 02 80 0D 01 02 00 00 00 00 44 [09:56:04]Write i2c OK [09:56:04]MH_I2C_Read... [09:56:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:04]Read from MH i2c: E2 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 03 00 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [09:56:04]RAPDU: 90 00 [09:56:04]wFMCommunicate OK [09:56:04]wFMCommunicate request_size=255 [09:56:04]MH_SAM_APDU [09:56:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 2E 00 00 00 F4 03 04 00 34 3B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6B C3 01 00 35 04 06 00 1D 02 46 70 [09:56:04]Write to MH i2c: E2 02 01 CA 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 2E 00 00 00 F4 03 04 00 34 3B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6B C3 01 00 35 04 06 00 1D 02 46 70 00 00 91 [09:56:04]Write i2c OK [09:56:04]MH_I2C_Read... [09:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:04]Read from MH i2c: E2 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 03 00 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [09:56:04]RAPDU: 90 00 [09:56:04]wFMCommunicate OK [09:56:04]wFMCommunicate request_size=7 [09:56:04]MH_SAM_APDU [09:56:04]CAPDU: 80 0D 02 02 02 83 A5 [09:56:04]Write to MH i2c: E2 0A 00 CB 02 80 0D 02 02 02 00 83 A5 00 00 73 [09:56:04]Write i2c OK [09:56:04]MH_I2C_Read... [09:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:04]Read from MH i2c: E2 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 03 00 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [09:56:04]RAPDU: 90 00 [09:56:04]wFMCommunicate OK [09:56:04]wFMCommunicate request_size=4 [09:56:04]MH_SAM_APDU [09:56:04]CAPDU: 80 0D 03 02 [09:56:04]Write to MH i2c: E2 08 00 CC 02 80 0D 03 02 00 00 00 00 49 [09:56:04]Write i2c OK [09:56:04]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 CC 02 00 B6 59 72 64 CD 15 5B D6 90 00 42 [09:56:05]RAPDU: B6 59 72 64 CD 15 5B 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 CD 02 80 11 00 00 00 00 00 00 49 [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 CD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 97 [09:56:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:56:05]wFMCommunicate OK [09:56:05]CreateOFDProtocolMessage done [09:56:05]OFDSenderStorePacket 115563 [09:56:05]StoreOFDPacket docnum=115563 [09:56:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 37 38 04 01 FA 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 35 FF 03 08 00 03 A0 86 01 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 2E 00 00 00 F4 03 04 00 34 3B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6B C3 01 00 35 04 06 00 1D 02 46 70 83 A5 B6 59 72 64 CD 15 5B 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/00115563 [09:56:05]NVStorageSaveData ofd_packets/00115563 [09:56:05]File name is /storage/ofd_packets/00115563 [09:56:05]Write 298 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 CE 02 D0 [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 CE 02 00 00 00 00 00 FF 0F E5 [09:56:05]RasterBufferAndPrint [09:56:05]line Счет N : (1)24617500 [09:56:05]line ИНН: 02508201610067 [09:56:05]line Контрольно-Кассовый Чек [09:56:05]line ПРОДАЖА [09:56:05]line ТРК (МРК, ГНК) : 65 [09:56:05]line Товар: 2710194210 [09:56:05]line ДТ-К-5 [09:56:05]line 100.000 * 0.00 [09:56:05]line = 0.00 [09:56:05]line НДС 12% НСП 1% [09:56:05]line > о реализуемом товаре [09:56:05]line ИТОГО: 0.00 [09:56:05]line НСП 1% : 0.00 [09:56:05]line НДС 12% : 0.00 [09:56:05]line Наличными: 0.00 [09:56:05]line Безнал.: 0.00 [09:56:05]line Место: АЗС № 90 "Партнер Нефть" [09:56:05]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:56:05]line СНО: Общий режим [09:56:05]line Чек 46 23.09.2024 09:56 [09:56:05]line Смена: 472 ФФД: 1.0 [09:56:05]line ЗНМ: 0300000120 [09:56:05]line РНМ: 0000000000091831 [09:56:05]line Версия ККМ: 001 [09:56:05]line Талоны: Топливная Карта [09:56:05]line 03209 [09:56:05]line ФМ: 0000000000871830 [09:56:05]line ФД: 115563 [09:56:05]line ФПД: 31895608918949 [09:56:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T095604&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115563&fm=31895608918949&tin=02508201610067®Number=0000000000091831&sum=0 [09:56:05]written 0, free lines is 4095 [09:56:05]OFD Sender: Processing packet 115563 [packets to send 481, broken 480] [09:56:05]ProducePacketName [09:56:05]name=ofd_packets/00115563 [09:56:05]OFD Sender: To server: pG, [09:56:05]CommunicateWithHost lk.salyk.kg:30040 [09:56:05]ConnectInit lk.salyk.kg [09:56:05]Write to MH i2c: 01 00 00 F7 02 F9 [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 F7 02 00 00 00 00 00 64 0C 70 [09:56:05]RasterBufferAndPrint [09:56:05]line [09:56:05]line [09:56:05]line [09:56:05]line [09:56:05]line [09:56:05]written 0, free lines is 3176 [09:56:05]MH_Cut [09:56:05]Write to MH i2c: D1 01 00 FE 02 01 D2 [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: D1 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: D1 01 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: D1 01 00 FE 02 00 D1 [09:56:05]Write to MH i2c: 01 00 00 FF 02 01 [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]Connected sock=10 [09:56: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 38 33 30 0C 01 00 00 37 38 04 01 FA 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 35 FF 03 08 00 03 A0 86 01 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 2E 00 00 00 F4 03 04 00 34 3B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6B C3 01 00 35 04 06 00 1D 02 46 70 83 A5 B6 59 72 64 CD 15 5B D6 [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 38 33 30 4F 00 00 00 90 CA 47 00 05 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 38 33 30 10 04 04 00 6B C3 01 00 F4 03 04 00 77 E0 F0 66 B6 04 01 00 00 0E A9 BE 4C A8 28 9C 74 [09:56:06]CommunicateWithHost err = 0 [09:56:06]CheckOFDResponse [09:56:06]1017 (14) - 77093643461234 [09:56:06]1041 (16) - 0000000000871830 [09:56:06]1040 (4) - 115563 [09:56:06]1012 (4) - 23.09.2024 03:28 [09:56:06]1206 (1) - 0 [09:56:06]OFD Sender: Remove packet 115563 [09:56:06]ProducePacketName [09:56:06]name=ofd_packets/00115563 [09:56:06]NVStorageDeleteData [09:56:06]OFD Sender: No OFD packet to send [09:56:06]*** Cut start [09:56:06]*** Partial cut [09:56:06]*** CUTSNS_PIN = 1 [09:56:06]*** 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 FF 02 00 00 00 00 00 FF 0F 16 [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 00 03 80 11 00 00 00 00 00 00 7D [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 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CB [09:56:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 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 01 03 80 13 00 00 00 00 00 00 80 [09:56:07]Write i2c OK [09:56:07]MH_I2C_Read... [09:56:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:07]Read from MH i2c: E2 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 62 00 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 62 00 01 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6B C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [09:56: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6B C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:07]wFMCommunicate OK [09:56:07]SAM_PROTO_GetFieldsCounters done [09:56:07]requested_item shift.num is exist - process it [09:56:07]requested_item shift.opened is exist - process it [09:56:07]req_shift_opened [09:56:07]FM_GetShiftState [09:56:07]SAM_PROTO_GetShiftState [09:56:07]wFMCommunicate request_size=4 [09:56:07]MH_SAM_APDU [09:56:07]CAPDU: 80 13 01 00 [09:56:07]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [09:56:07]Write i2c OK [09:56:07]MH_I2C_Read... [09:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:07]Read from MH i2c: E2 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 0E 00 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C3 [09:56:07]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:56:07]wFMCommunicate OK [09:56:07]SAM_PROTO_GetShiftState done [09:56:07]FM_GetShiftState done [09:56:07]req_shift_opened done [09:56:07]requested_item shift.open_date is exist - process it [09:56:07]req_shift_open_date [09:56:07]req_shift_open_date done [09:56:07]produce_requested_data done [09:56:07]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115563,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:56:07]process_action_free close_receipt [09:56:07]json_value_free [09:56:07]json_value_free done [09:56:07]process_json_proto returns [09:56:07]Send response to host [09:56:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115563,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:56:07]free response buf [09:56:07]execute_script done [09:56:07]execute_script returns [09:56:07]free content buf [09:56:07]Sock 9.Close socket [09:56:07]Sock 9.Thread stoped [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:24]accept exits with 7 [09:59:24]New connection [09:59:24]New thread 3067194724 created [09:59:24]Thread 3067051364 joined [09:59:24]Waiting for new connection... [09:59:24] Sock 7.Parse request [09:59:24]Sock 7.Check first char [09:59:24]Sock 7.First char is OK [09:59:24]request: POST /json_proto HTTP/1.0 [09:59:24]Method: POST [09:59:24]URL: /json_proto [09:59:24]Method is POST - this is cgi request [09:59:24]url: /json_proto [09:59:24]query_string will be loaded in cgi processing [09:59:24]execute_cgi json_proto POST (null) [09:59:24]execute_cgi path=json_proto method=POST [09:59:24]POST find Content-Length [09:59:24]Host: 172.17.41.136:8080 [09:59:24]Content-Length: 792 [09:59:24]Content-Type: application/json [09:59:24] [09:59:24]POST finish read [09:59:24]Found Content-Length = 792 [09:59:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A03209", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:24]execute_script... [09:59: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)24617503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A03209", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:24]POST & json_proto [09:59:24]process_json_proto [09:59:24]json parsed OK: [09:59:24]protocol is kg_v1.0 [09:59:24]action value=close_receipt [09:59:24]process_action close_receipt [09:59:24]cmd_close_receipt [09:59:24]MH_GetDate [09:59:24]Write to MH i2c: F0 00 00 03 03 F5 [09:59:24]Write i2c OK [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: F0 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: F0 09 00 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: F0 09 00 03 03 00 FD 3B F1 66 1B D0 5A 64 36 [09:59:24]GetLastDocTimeStamp 1727085364 [09:59:24]current date 1727085565 [09:59:24]FM_GetShiftState [09:59:24]SAM_PROTO_GetShiftState [09:59:24]wFMCommunicate request_size=4 [09:59:24]MH_SAM_APDU [09:59:24]CAPDU: 80 13 01 00 [09:59:24]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [09:59:24]Write i2c OK [09:59:24]MH_I2C_Read... [09:59:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:24]Read from MH i2c: E2 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 0E 00 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C5 [09:59:24]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:59:24]wFMCommunicate OK [09:59:24]SAM_PROTO_GetShiftState done [09:59:24]FM_GetShiftState done [09:59:24]opened in 1727052070 [09:59:24]opened+sec_in_day 1727138470 [09:59:24]quantity*price = 0 [09:59:24]sum+1 = 1 [09:59:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 47 23.09.2024 09:59 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливная Карта 03209 ФМ: 0000000000871830 ФД: 115564 ФПД: 53013706890170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T095925&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115564&fm=53013706890170&tin=02508201610067®Number=0000000000091831&sum=0 [09:59:25]StoreToDocumentArchive [09:59:25]shift 472 fd 115564 [09:59:25]save to /storage/0472/doc_00115564 [09:59:25]save last doc name /storage/0472/doc_00115564 to /storage/kkm_last_doc_name [09:59:25]save OK [09:59:25]Clear old archive folders... [09:59:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:59:25]tlvbuf is 009654A0 [09:59:25]SAM_PROTO_ClearQueue [09:59:25]wFMCommunicate request_size=4 [09:59:25]MH_SAM_APDU [09:59:25]CAPDU: 80 09 00 00 [09:59:25]Write to MH i2c: E2 08 00 11 03 80 09 00 00 00 00 00 00 86 [09:59:26]Write i2c OK [09:59:26]MH_I2C_Read... [09:59:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:26]Read from MH i2c: E2 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 03 00 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [09:59:26]RAPDU: 90 00 [09:59:26]wFMCommunicate OK [09:59:26]SAM_PROTO_ClearQueue done [09:59:26]KKMCreateOFDPacket [09:59:26]OFDProtocolAddRootSTLVToBuf [09:59:26]FM_MakeSignedData [09:59:26]FM_MakeSignedData [09:59:26]SAM_PROTO_SignData [09:59:26]wFMCommunicate request_size=4 [09:59:26]MH_SAM_APDU [09:59:26]CAPDU: 80 0D 01 02 [09:59:26]Write to MH i2c: E2 08 00 12 03 80 0D 01 02 00 00 00 00 8E [09:59:26]Write i2c OK [09:59:26]MH_I2C_Read... [09:59:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:26]Read from MH i2c: E2 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 03 00 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [09:59:26]RAPDU: 90 00 [09:59:26]wFMCommunicate OK [09:59:26]wFMCommunicate request_size=255 [09:59:26]MH_SAM_APDU [09:59:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 2F 00 00 00 F4 03 04 00 FD 3B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6C C3 01 00 35 04 06 00 30 37 37 2A [09:59:26]Write to MH i2c: E2 02 01 13 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 2F 00 00 00 F4 03 04 00 FD 3B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6C C3 01 00 35 04 06 00 30 37 37 2A 00 00 99 [09:59:26]Write i2c OK [09:59:26]MH_I2C_Read... [09:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:26]Read from MH i2c: E2 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 03 00 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [09:59:26]RAPDU: 90 00 [09:59:26]wFMCommunicate OK [09:59:26]wFMCommunicate request_size=7 [09:59:26]MH_SAM_APDU [09:59:26]CAPDU: 80 0D 02 02 02 DB BA [09:59:26]Write to MH i2c: E2 0A 00 14 03 80 0D 02 02 02 00 DB BA 00 00 2A [09:59:26]Write i2c OK [09:59:26]MH_I2C_Read... [09:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:26]Read from MH i2c: E2 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 03 00 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [09:59:26]RAPDU: 90 00 [09:59:26]wFMCommunicate OK [09:59:26]wFMCommunicate request_size=4 [09:59:26]MH_SAM_APDU [09:59:26]CAPDU: 80 0D 03 02 [09:59:26]Write to MH i2c: E2 08 00 15 03 80 0D 03 02 00 00 00 00 93 [09:59:26]Write i2c OK [09:59:26]MH_I2C_Read... [09:59:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:26]Read from MH i2c: E2 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 0B 00 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 0B 00 15 03 00 C6 C6 D9 5E F2 1B 78 4A 90 00 26 [09:59:26]RAPDU: C6 C6 D9 5E F2 1B 78 4A 90 00 [09:59:26]wFMCommunicate OK [09:59:26]SAM_PROTO_SignData done [09:59:26]FM_MakeSignedData done [09:59:26]CreateOFDProtocolMessage [09:59:26]wFMCommunicate request_size=4 [09:59:26]MH_SAM_APDU [09:59:26]CAPDU: 80 11 00 00 [09:59:26]Write to MH i2c: E2 08 00 16 03 80 11 00 00 00 00 00 00 93 [09:59:26]Write i2c OK [09:59:26]MH_I2C_Read... [09:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:26]Read from MH i2c: E2 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 17 00 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 17 00 16 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E1 [09:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:59:26]wFMCommunicate OK [09:59:26]CreateOFDProtocolMessage done [09:59:26]OFDSenderStorePacket 115564 [09:59:26]StoreOFDPacket docnum=115564 [09:59:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 83 EA 04 01 37 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 2F 00 00 00 F4 03 04 00 FD 3B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6C C3 01 00 35 04 06 00 30 37 37 2A DB BA C6 C6 D9 5E F2 1B 78 4A [09:59:26]CheckFolder [09:59:26]dirname=/storage/ofd_packets [09:59:26]CheckFolder done [09:59:26]ProducePacketName [09:59:26]name=ofd_packets/00115564 [09:59:26]NVStorageSaveData ofd_packets/00115564 [09:59:26]File name is /storage/ofd_packets/00115564 [09:59:26]Write 298 bytes [09:59:26]NVStorageSaveData done [09:59:26]OFDSenderStorePacket done [09:59:26]KKMCreateOFDPacket done [09:59:26]NVStorageSaveData kkm_last_timestamp [09:59:26]File name is /storage/kkm_last_timestamp [09:59:26]Write 4 bytes [09:59:26]NVStorageSaveData done [09:59:26]ExternCall_PrintAddStr [09:59:26]wPrintStart [09:59:26]Write to MH i2c: 01 00 00 17 03 1A [09:59:26]Write i2c OK [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: 01 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: 01 07 00 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: 01 07 00 17 03 00 00 00 00 00 FF 0F 2F [09:59:26]RasterBufferAndPrint [09:59:26]line Счет N : (1)24617503 [09:59:26]line ИНН: 02508201610067 [09:59:26]line Контрольно-Кассовый Чек [09:59:26]line ПРОДАЖА [09:59:26]line ТРК (МРК, ГНК) : 65 [09:59:26]line Товар: 2710194210 [09:59:26]line ДТ-К-5 [09:59:26]line 100.000 * 0.00 [09:59:26]line = 0.00 [09:59:26]line НДС 12% НСП 1% [09:59:26]line > о реализуемом товаре [09:59:26]line ИТОГО: 0.00 [09:59:26]line НСП 1% : 0.00 [09:59:26]line НДС 12% : 0.00 [09:59:26]line Наличными: 0.00 [09:59:26]line Безнал.: 0.00 [09:59:26]line Место: АЗС № 90 "Партнер Нефть" [09:59:26]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:59:26]line СНО: Общий режим [09:59:26]line Чек 47 23.09.2024 09:59 [09:59:26]line Смена: 472 ФФД: 1.0 [09:59:26]line ЗНМ: 0300000120 [09:59:26]line РНМ: 0000000000091831 [09:59:26]line Версия ККМ: 001 [09:59:26]line Талоны: Топливная Карта [09:59:26]line 03209 [09:59:26]line ФМ: 0000000000871830 [09:59:26]line ФД: 115564 [09:59:26]line ФПД: 53013706890170 [09:59:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T095925&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115564&fm=53013706890170&tin=02508201610067®Number=0000000000091831&sum=0 [09:59:26]written 0, free lines is 4095 [09:59:26]OFD Sender: Processing packet 115564 [packets to send 481, broken 480] [09:59:26]ProducePacketName [09:59:26]name=ofd_packets/00115564 [09:59:26]OFD Sender: To server: pG, [09:59:26]CommunicateWithHost lk.salyk.kg:30040 [09:59:26]ConnectInit lk.salyk.kg [09:59:26]Write to MH i2c: 01 00 00 40 03 43 [09:59:26]Write i2c OK [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: 01 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: 01 07 00 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: 01 07 00 40 03 00 00 00 00 00 66 0C BC [09:59:26]RasterBufferAndPrint [09:59:26]line [09:59:26]line [09:59:26]line [09:59:26]line [09:59:26]line [09:59:26]written 0, free lines is 3178 [09:59:26]MH_Cut [09:59:26]Write to MH i2c: D1 01 00 47 03 01 1C [09:59:26]Write i2c OK [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: D1 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: D1 01 00 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: D1 01 00 47 03 00 1B [09:59:26]Write to MH i2c: 01 00 00 48 03 4B [09:59:26]Write i2c OK [09:59:26]MH_I2C_Read... [09:59:27]Connected sock=9 [09:59:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 83 EA 04 01 37 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 2F 00 00 00 F4 03 04 00 FD 3B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6C C3 01 00 35 04 06 00 30 37 37 2A DB BA C6 C6 D9 5E F2 1B 78 4A [09:59:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C4 9D 47 00 66 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 38 33 30 10 04 04 00 6C C3 01 00 F4 03 04 00 40 E1 F0 66 B6 04 01 00 00 38 8F 3B 82 E7 C9 A2 C4 [09:59:27]CommunicateWithHost err = 0 [09:59:27]CheckOFDResponse [09:59:27]1017 (14) - 77093643461234 [09:59:27]1041 (16) - 0000000000871830 [09:59:27]1040 (4) - 115564 [09:59:27]1012 (4) - 23.09.2024 03:32 [09:59:27]1206 (1) - 0 [09:59:27]OFD Sender: Remove packet 115564 [09:59:27]ProducePacketName [09:59:27]name=ofd_packets/00115564 [09:59:27]NVStorageDeleteData [09:59:27]OFD Sender: No OFD packet to send [09:59:28]*** Cut start [09:59:28]*** Partial cut [09:59:28]*** CUTSNS_PIN = 1 [09:59:28]*** CUTSNS_PIN = 0 [09:59:28]*** Brake cut motor [09:59:28]Read from MH i2c: 01 [09:59:28]MH_I2C_Read... [09:59:28]*** Stop cut motor [09:59:28]*** Cut end [09:59:28]Read from MH i2c: 01 07 00 [09:59:28]MH_I2C_Read... [09:59:28]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 FF 0F 60 [09:59:28]process_action close_receipt done [09:59:28]requested_data is exist [09:59:28]produce_requested_data [09:59:28]requested_item fm.sn is exist - process it [09:59:28]wFMCommunicate request_size=4 [09:59:28]MH_SAM_APDU [09:59:28]CAPDU: 80 11 00 00 [09:59:28]Write to MH i2c: E2 08 00 49 03 80 11 00 00 00 00 00 00 C6 [09:59:28]Write i2c OK [09:59:28]MH_I2C_Read... [09:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:28]Read from MH i2c: E2 [09:59:28]MH_I2C_Read... [09:59:28]Read from MH i2c: E2 17 00 [09:59:28]MH_I2C_Read... [09:59:28]Read from MH i2c: E2 17 00 49 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 14 [09:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:59:28]wFMCommunicate OK [09:59:28]requested_item fd.num is exist - process it [09:59:28]SAM_PROTO_GetFieldsCounters [09:59:28]wFMCommunicate request_size=4 [09:59:28]MH_SAM_APDU [09:59:28]CAPDU: 80 13 00 00 [09:59:28]Write to MH i2c: E2 08 00 4A 03 80 13 00 00 00 00 00 00 C9 [09:59:28]Write i2c OK [09:59:28]MH_I2C_Read... [09:59:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:29]Read from MH i2c: E2 [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: E2 62 00 [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: E2 62 00 4A 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6C C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [09:59:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6C C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:29]wFMCommunicate OK [09:59:29]SAM_PROTO_GetFieldsCounters done [09:59:29]requested_item shift.num is exist - process it [09:59:29]requested_item shift.opened is exist - process it [09:59:29]req_shift_opened [09:59:29]FM_GetShiftState [09:59:29]SAM_PROTO_GetShiftState [09:59:29]wFMCommunicate request_size=4 [09:59:29]MH_SAM_APDU [09:59:29]CAPDU: 80 13 01 00 [09:59:29]Write to MH i2c: E2 08 00 4B 03 80 13 01 00 00 00 00 00 CB [09:59:29]Write i2c OK [09:59:29]MH_I2C_Read... [09:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:29]Read from MH i2c: E2 [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: E2 0E 00 [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: E2 0E 00 4B 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 0C [09:59:29]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [09:59:29]wFMCommunicate OK [09:59:29]SAM_PROTO_GetShiftState done [09:59:29]FM_GetShiftState done [09:59:29]req_shift_opened done [09:59:29]requested_item shift.open_date is exist - process it [09:59:29]req_shift_open_date [09:59:29]req_shift_open_date done [09:59:29]produce_requested_data done [09:59:29]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115564,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [09:59:29]process_action_free close_receipt [09:59:29]json_value_free [09:59:29]json_value_free done [09:59:29]process_json_proto returns [09:59:29]Send response to host [09:59:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115564,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [09:59:29]free response buf [09:59:29]execute_script done [09:59:29]execute_script returns [09:59:29]free content buf [09:59:29]Sock 7.Close socket [09:59:29]Sock 7.Thread stoped [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:27]accept exits with 10 [10:06:27]New connection [10:06:27]New thread 3067051364 created [10:06:27]Thread 3067194724 joined [10:06:27]Waiting for new connection... [10:06:27] Sock 10.Parse request [10:06:27]Sock 10.Check first char [10:06:27]Sock 10.First char is OK [10:06:27]request: POST /json_proto HTTP/1.0 [10:06:27]Method: POST [10:06:27]URL: /json_proto [10:06:27]Method is POST - this is cgi request [10:06:27]url: /json_proto [10:06:27]query_string will be loaded in cgi processing [10:06:27]execute_cgi json_proto POST (null) [10:06:27]execute_cgi path=json_proto method=POST [10:06:27]POST find Content-Length [10:06:27]Host: 172.17.41.136:8080 [10:06:27]Content-Length: 675 [10:06:27]Content-Type: application/json [10:06:27] [10:06:27]POST finish read [10:06:27]Found Content-Length = 675 [10:06:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343979", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:27]execute_script... [10: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 : (3)343979", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:27]POST & json_proto [10:06:27]process_json_proto [10:06:27]json parsed OK: [10:06:27]protocol is kg_v1.0 [10:06:27]action value=close_receipt [10:06:27]process_action close_receipt [10:06:27]cmd_close_receipt [10:06:27]MH_GetDate [10:06:27]Write to MH i2c: F0 00 00 4C 03 3E [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: F0 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: F0 09 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: F0 09 00 4C 03 00 A4 3D F1 66 1B D0 5A 64 28 [10:06:27]GetLastDocTimeStamp 1727085565 [10:06:27]current date 1727085988 [10:06:27]FM_GetShiftState [10:06:27]SAM_PROTO_GetShiftState [10:06:27]wFMCommunicate request_size=4 [10:06:27]MH_SAM_APDU [10:06:27]CAPDU: 80 13 01 00 [10:06:27]Write to MH i2c: E2 08 00 4D 03 80 13 01 00 00 00 00 00 CD [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:27]Read from MH i2c: E2 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 0E 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 0E 00 4D 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 0E [10:06:27]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:06:27]wFMCommunicate OK [10:06:27]SAM_PROTO_GetShiftState done [10:06:27]FM_GetShiftState done [10:06:27]opened in 1727052070 [10:06:27]opened+sec_in_day 1727138470 [10:06:27]quantity*price = 6500 [10:06:27]sum+1 = 6501 [10:06:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 48 23.09.2024 10:06 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115565 ФПД: 88901078119867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T100628&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115565&fm=88901078119867&tin=02508201610067®Number=0000000000091831&sum=6500 0 [10:06:28]StoreToDocumentArchive [10:06:28]shift 472 fd 115565 [10:06:28]save to /storage/0472/doc_00115565 [10:06:28]save last doc name /storage/0472/doc_00115565 to /storage/kkm_last_doc_name [10:06:28]save OK [10:06:28]Clear old archive folders... [10:06:28]ProcessDocumentItem done err = 0, tmpTLVsize=286 [10:06:28]tlvbuf is 0094F440 [10:06:28]SAM_PROTO_ClearQueue [10:06:28]wFMCommunicate request_size=4 [10:06:28]MH_SAM_APDU [10:06:28]CAPDU: 80 09 00 00 [10:06:28]Write to MH i2c: E2 08 00 5A 03 80 09 00 00 00 00 00 00 CF [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:28]Read from MH i2c: E2 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 03 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [10:06:28]RAPDU: 90 00 [10:06:28]wFMCommunicate OK [10:06:28]SAM_PROTO_ClearQueue done [10:06:28]KKMCreateOFDPacket [10:06:28]OFDProtocolAddRootSTLVToBuf [10:06:28]FM_MakeSignedData [10:06:28]FM_MakeSignedData [10:06:28]SAM_PROTO_SignData [10:06:28]wFMCommunicate request_size=4 [10:06:28]MH_SAM_APDU [10:06:28]CAPDU: 80 0D 01 02 [10:06:28]Write to MH i2c: E2 08 00 5B 03 80 0D 01 02 00 00 00 00 D7 [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:28]Read from MH i2c: E2 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 03 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [10:06:28]RAPDU: 90 00 [10:06:28]wFMCommunicate OK [10:06:28]wFMCommunicate request_size=255 [10:06:28]MH_SAM_APDU [10:06:28]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A4 3D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 [10:06:28]Write to MH i2c: E2 02 01 5C 03 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A4 3D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 00 00 E1 [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:28]Read from MH i2c: E2 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 03 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [10:06:28]RAPDU: 90 00 [10:06:28]wFMCommunicate OK [10:06:28]wFMCommunicate request_size=45 [10:06:28]MH_SAM_APDU [10:06:28]CAPDU: 80 0D 02 02 28 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6D C3 01 00 35 04 06 00 50 DA E5 2E 75 BB [10:06:28]Write to MH i2c: E2 30 00 5D 03 80 0D 02 02 28 00 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6D C3 01 00 35 04 06 00 50 DA E5 2E 75 BB 00 00 C3 [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:28]Read from MH i2c: E2 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 03 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [10:06:28]RAPDU: 90 00 [10:06:28]wFMCommunicate OK [10:06:28]wFMCommunicate request_size=4 [10:06:28]MH_SAM_APDU [10:06:28]CAPDU: 80 0D 03 02 [10:06:28]Write to MH i2c: E2 08 00 5E 03 80 0D 03 02 00 00 00 00 DC [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:28]OFD Sender: No OFD packet to send [10:06:28]Read from MH i2c: E2 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 0B 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 0B 00 5E 03 00 A1 79 BD 67 E1 40 EE EB 90 00 15 [10:06:28]RAPDU: A1 79 BD 67 E1 40 EE EB 90 00 [10:06:28]wFMCommunicate OK [10:06:28]SAM_PROTO_SignData done [10:06:28]FM_MakeSignedData done [10:06:28]CreateOFDProtocolMessage [10:06:28]wFMCommunicate request_size=4 [10:06:28]MH_SAM_APDU [10:06:28]CAPDU: 80 11 00 00 [10:06:28]Write to MH i2c: E2 08 00 5F 03 80 11 00 00 00 00 00 00 DC [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 17 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 17 00 5F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2A [10:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:06:29]wFMCommunicate OK [10:06:29]CreateOFDProtocolMessage done [10:06:29]OFDSenderStorePacket 115565 [10:06:29]StoreOFDPacket docnum=115565 [10:06:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 32 01 00 00 EB 76 2A 01 A9 DF 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A4 3D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6D C3 01 00 35 04 06 00 50 DA E5 2E 75 BB A1 79 BD 67 E1 40 EE EB [10:06:29]CheckFolder [10:06:29]dirname=/storage/ofd_packets [10:06:29]CheckFolder done [10:06:29]ProducePacketName [10:06:29]name=ofd_packets/00115565 [10:06:29]NVStorageSaveData ofd_packets/00115565 [10:06:29]File name is /storage/ofd_packets/00115565 [10:06:29]Write 336 bytes [10:06:29]NVStorageSaveData done [10:06:29]OFDSenderStorePacket done [10:06:29]KKMCreateOFDPacket done [10:06:29]NVStorageSaveData kkm_last_timestamp [10:06:29]File name is /storage/kkm_last_timestamp [10:06:29]Write 4 bytes [10:06:29]NVStorageSaveData done [10:06:29]ExternCall_PrintAddStr [10:06:29]wPrintStart [10:06:29]Write to MH i2c: 01 00 00 60 03 63 [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: 01 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: 01 07 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: 01 07 00 60 03 00 00 00 00 00 FF 0F 78 [10:06:29]RasterBufferAndPrint [10:06:29]line Счет N : (3)343979 [10:06:29]line ИНН: 02508201610067 [10:06:29]line Контрольно-Кассовый Чек [10:06:29]line ПРОДАЖА [10:06:29]line Товар: 4700040114120 [10:06:29]line Султан чай 1л. чер персик [10:06:29]line 1.000 * 65.00 [10:06:29]line = 65.00 [10:06:29]line НДС 12% НСП 1% [10:06:29]line > о реализуемом товаре [10:06:29]line ИТОГО: 65.00 [10:06:29]line НСП 1% : 0.57 [10:06:29]line НДС 12% : 6.90 [10:06:29]line Наличными: 65.00 [10:06:29]line Безнал.: 0.00 [10:06:29]line Место: АЗС № 90 "Партнер Нефть" [10:06:29]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:06:29]line СНО: Общий режим [10:06:29]line Чек 48 23.09.2024 10:06 [10:06:29]line Смена: 472 ФФД: 1.0 [10:06:29]line ЗНМ: 0300000120 [10:06:29]line РНМ: 0000000000091831 [10:06:29]line Версия ККМ: 001 [10:06:29]line ФМ: 0000000000871830 [10:06:29]line ФД: 115565 [10:06:29]line ФПД: 88901078119867 [10:06:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T100628&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115565&fm=88901078119867&tin=02508201610067®Number=0000000000091831&sum=6500 [10:06:29]line 0 [10:06:29]OFD Sender: Processing packet 115565 [packets to send 481, broken 480] [10:06:29]ProducePacketName [10:06:29]name=ofd_packets/00115565 [10:06:29]OFD Sender: To server: pG, [10:06:29]CommunicateWithHost lk.salyk.kg:30040 [10:06:29]ConnectInit lk.salyk.kg [10:06:29]written 0, free lines is 4095 [10:06:29]Connected sock=9 [10: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 38 33 30 32 01 00 00 EB 76 2A 01 A9 DF 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A4 3D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6D C3 01 00 35 04 06 00 50 DA E5 2E 75 BB A1 79 BD 67 E1 40 EE EB [10:06:29]Write to MH i2c: 01 00 00 87 03 8A [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: 01 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: 01 07 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: 01 07 00 87 03 00 00 00 00 00 77 0C 14 [10:06:29]RasterBufferAndPrint [10:06:29]line [10:06:29]line [10:06:29]line [10:06:29]line [10:06:29]line [10:06:29]written 0, free lines is 3194 [10:06:29]MH_Cut [10:06:29]Write to MH i2c: D1 01 00 8E 03 01 63 [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: D1 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: D1 01 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: D1 01 00 8E 03 00 62 [10:06:29]Write to MH i2c: 01 00 00 8F 03 92 [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10: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 38 33 30 4F 00 00 00 41 0C 47 00 91 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6D C3 01 00 F4 03 04 00 E7 E2 F0 66 B6 04 01 00 00 2D 57 58 6C 79 AE 6B AF [10:06:29]CommunicateWithHost err = 0 [10:06:29]CheckOFDResponse [10:06:29]1017 (14) - 77093643461234 [10:06:29]1041 (16) - 0000000000871830 [10:06:29]1040 (4) - 115565 [10:06:29]1012 (4) - 23.09.2024 03:39 [10:06:29]1206 (1) - 0 [10:06:29]OFD Sender: Remove packet 115565 [10:06:29]ProducePacketName [10:06:29]name=ofd_packets/00115565 [10:06:29]NVStorageDeleteData [10:06:30]OFD Sender: No OFD packet to send [10:06:31]*** Cut start [10:06:31]*** Partial cut [10:06:31]*** CUTSNS_PIN = 1 [10:06:31]*** CUTSNS_PIN = 0 [10:06:31]*** Brake cut motor [10:06:31]Read from MH i2c: 01 [10:06:31]MH_I2C_Read... [10:06:31]*** Stop cut motor [10:06:31]*** Cut end [10:06:31]Read from MH i2c: 01 07 00 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 FF 0F A7 [10:06:31]process_action close_receipt done [10:06:31]requested_data is exist [10:06:31]produce_requested_data [10:06:31]requested_item fm.sn is exist - process it [10:06:31]wFMCommunicate request_size=4 [10:06:31]MH_SAM_APDU [10:06:31]CAPDU: 80 11 00 00 [10:06:31]Write to MH i2c: E2 08 00 90 03 80 11 00 00 00 00 00 00 0D [10:06:31]Write i2c OK [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 [10:06:31]MH_I2C_Read... [10:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:31]Read from MH i2c: E2 17 00 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 17 00 90 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5B [10:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:06:31]wFMCommunicate OK [10:06:31]requested_item fd.num is exist - process it [10:06:31]SAM_PROTO_GetFieldsCounters [10:06:31]wFMCommunicate request_size=4 [10:06:31]MH_SAM_APDU [10:06:31]CAPDU: 80 13 00 00 [10:06:31]Write to MH i2c: E2 08 00 91 03 80 13 00 00 00 00 00 00 10 [10:06:31]Write i2c OK [10:06:31]MH_I2C_Read... [10:06:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:31]Read from MH i2c: E2 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 62 00 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 62 00 91 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6D C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [10: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6D C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:31]wFMCommunicate OK [10:06:31]SAM_PROTO_GetFieldsCounters done [10:06:31]requested_item shift.num is exist - process it [10:06:31]requested_item shift.opened is exist - process it [10:06:31]req_shift_opened [10:06:31]FM_GetShiftState [10:06:31]SAM_PROTO_GetShiftState [10:06:31]wFMCommunicate request_size=4 [10:06:31]MH_SAM_APDU [10:06:31]CAPDU: 80 13 01 00 [10:06:31]Write to MH i2c: E2 08 00 92 03 80 13 01 00 00 00 00 00 12 [10:06:31]Write i2c OK [10:06:31]MH_I2C_Read... [10:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:31]Read from MH i2c: E2 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 0E 00 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 0E 00 92 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 53 [10:06:31]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:06:31]wFMCommunicate OK [10:06:31]SAM_PROTO_GetShiftState done [10:06:31]FM_GetShiftState done [10:06:31]req_shift_opened done [10:06:31]requested_item shift.open_date is exist - process it [10:06:31]req_shift_open_date [10:06:31]req_shift_open_date done [10:06:31]produce_requested_data done [10:06:31]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115565,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:06:31]process_action_free close_receipt [10:06:31]json_value_free [10:06:31]json_value_free done [10:06:31]process_json_proto returns [10:06:31]Send response to host [10:06:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115565,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:06:31]free response buf [10:06:31]execute_script done [10:06:31]execute_script returns [10:06:31]free content buf [10:06:31]Sock 10.Close socket [10:06:31]Sock 10.Thread stoped [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:01]accept exits with 7 [10:08:01]New connection [10:08:01]New thread 3067194724 created [10:08:01]Thread 3067051364 joined [10:08:01]Waiting for new connection... [10:08:01] Sock 7.Parse request [10:08:01]Sock 7.Check first char [10:08:01]Sock 7.First char is OK [10:08:01]request: POST /json_proto HTTP/1.0 [10:08:01]Method: POST [10:08:01]URL: /json_proto [10:08:01]Method is POST - this is cgi request [10:08:01]url: /json_proto [10:08:01]query_string will be loaded in cgi processing [10:08:01]execute_cgi json_proto POST (null) [10:08:01]execute_cgi path=json_proto method=POST [10:08:01]POST find Content-Length [10:08:01]Host: 172.17.41.136:8080 [10:08:01]Content-Length: 1375 [10:08:01]Content-Type: application/json [10:08:01] [10:08:01]POST finish read [10:08:01]Found Content-Length = 1375 [10:08:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343980", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681369", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u042B\u0420 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4606453849072", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 435.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:01]execute_script... [10: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 : (3)343980", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681369", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u042B\u0420 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4606453849072", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 435.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:01]POST & json_proto [10:08:01]process_json_proto [10:08:01]json parsed OK: [10:08:01]protocol is kg_v1.0 [10:08:01]action value=close_receipt [10:08:01]process_action close_receipt [10:08:01]cmd_close_receipt [10:08:01]MH_GetDate [10:08:01]Write to MH i2c: F0 00 00 93 03 85 [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: F0 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: F0 09 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: F0 09 00 93 03 00 02 3E F1 66 1B D0 5A 64 CE [10:08:01]GetLastDocTimeStamp 1727085988 [10:08:01]current date 1727086082 [10:08:01]FM_GetShiftState [10:08:01]SAM_PROTO_GetShiftState [10:08:01]wFMCommunicate request_size=4 [10:08:01]MH_SAM_APDU [10:08:01]CAPDU: 80 13 01 00 [10:08:01]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:01]Read from MH i2c: E2 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 0E 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 55 [10:08:01]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:08:01]wFMCommunicate OK [10:08:01]SAM_PROTO_GetShiftState done [10:08:01]FM_GetShiftState done [10:08:01]opened in 1727052070 [10:08:01]opened+sec_in_day 1727138470 [10:08:01]quantity*price = 17000 [10:08:02]sum+1 = 17001 [10:08:02]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681369 ЧИПСЫ SLANG СО ВКУСОМ СЫР 60Г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4606453849072 Жид/ст ПН летняя 4,5л 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 435.00 НСП 1% : 3.84 НДС 12% : 46.19 Наличными: 0.00 Безнал.: 435.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 49 23.09.2024 10:08 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115566 ФПД: 74537181156297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T100802&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115566&fm=74537181156297&tin=02508201610067®Number=0000000000091831&sum=43500 0 [10:08:02]StoreToDocumentArchive [10:08:02]shift 472 fd 115566 [10:08:02]save to /storage/0472/doc_00115566 [10:08:02]save last doc name /storage/0472/doc_00115566 to /storage/kkm_last_doc_name [10:08:02]save OK [10:08:02]Clear old archive folders... [10:08:02]ProcessDocumentItem done err = 0, tmpTLVsize=512 [10:08:02]tlvbuf is 009419F0 [10:08:02]SAM_PROTO_ClearQueue [10:08:02]wFMCommunicate request_size=4 [10:08:02]MH_SAM_APDU [10:08:02]CAPDU: 80 09 00 00 [10:08:02]Write to MH i2c: E2 08 00 A1 03 80 09 00 00 00 00 00 00 16 [10:08:02]Write i2c OK [10:08:02]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 03 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [10:08:03]RAPDU: 90 00 [10:08:03]wFMCommunicate OK [10:08:03]SAM_PROTO_ClearQueue done [10:08:03]KKMCreateOFDPacket [10:08:03]OFDProtocolAddRootSTLVToBuf [10:08:03]FM_MakeSignedData [10:08:03]FM_MakeSignedData [10:08:03]SAM_PROTO_SignData [10:08:03]wFMCommunicate request_size=4 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 0D 01 02 [10:08:03]Write to MH i2c: E2 08 00 A2 03 80 0D 01 02 00 00 00 00 1E [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 03 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [10:08:03]RAPDU: 90 00 [10:08:03]wFMCommunicate OK [10:08:03]wFMCommunicate request_size=255 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 0D 02 02 FA 03 00 00 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 [10:08:03]Write to MH i2c: E2 02 01 A3 03 80 0D 02 02 FA 00 03 00 00 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 00 00 1C [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 03 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [10:08:03]RAPDU: 90 00 [10:08:03]wFMCommunicate OK [10:08:03]wFMCommunicate request_size=255 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 0D 02 02 FA 0D 00 34 36 30 36 34 35 33 38 34 39 30 37 32 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 02 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 [10:08:03]Write to MH i2c: E2 02 01 A4 03 80 0D 02 02 FA 00 0D 00 34 36 30 36 34 35 33 38 34 39 30 37 32 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 02 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 00 00 0A [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 03 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [10:08:03]RAPDU: 90 00 [10:08:03]wFMCommunicate OK [10:08:03]wFMCommunicate request_size=21 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 0D 02 02 10 04 00 6E C3 01 00 35 04 06 00 43 CA 8A 34 93 C9 [10:08:03]Write to MH i2c: E2 18 00 A5 03 80 0D 02 02 10 00 04 00 6E C3 01 00 35 04 06 00 43 CA 8A 34 93 C9 00 00 DE [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 03 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [10:08:03]RAPDU: 90 00 [10:08:03]wFMCommunicate OK [10:08:03]wFMCommunicate request_size=4 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 0D 03 02 [10:08:03]Write to MH i2c: E2 08 00 A6 03 80 0D 03 02 00 00 00 00 24 [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:04]Read from MH i2c: E2 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 0B 00 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 0B 00 A6 03 00 90 6F 42 7B 84 BE 97 CF 90 00 89 [10:08:04]RAPDU: 90 6F 42 7B 84 BE 97 CF 90 00 [10:08:04]wFMCommunicate OK [10:08:04]SAM_PROTO_SignData done [10:08:04]FM_MakeSignedData done [10:08:04]CreateOFDProtocolMessage [10:08:04]wFMCommunicate request_size=4 [10:08:04]MH_SAM_APDU [10:08:04]CAPDU: 80 11 00 00 [10:08:04]Write to MH i2c: E2 08 00 A7 03 80 11 00 00 00 00 00 00 24 [10:08:04]Write i2c OK [10:08:04]MH_I2C_Read... [10:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:04]Read from MH i2c: E2 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 17 00 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 17 00 A7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 72 [10:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:08:04]wFMCommunicate OK [10:08:04]CreateOFDProtocolMessage done [10:08:04]OFDSenderStorePacket 115566 [10:08:04]StoreOFDPacket docnum=115566 [10:08:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 14 02 00 00 97 85 0C 02 34 1D 5A 03 01 00 03 00 00 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 36 30 36 34 35 33 38 34 39 30 37 32 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 02 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6E C3 01 00 35 04 06 00 43 CA 8A 34 93 C9 90 6F 42 7B 84 BE 97 CF [10:08:04]CheckFolder [10:08:04]dirname=/storage/ofd_packets [10:08:04]CheckFolder done [10:08:04]ProducePacketName [10:08:04]name=ofd_packets/00115566 [10:08:04]NVStorageSaveData ofd_packets/00115566 [10:08:04]File name is /storage/ofd_packets/00115566 [10:08:04]Write 562 bytes [10:08:04]NVStorageSaveData done [10:08:04]OFDSenderStorePacket done [10:08:04]KKMCreateOFDPacket done [10:08:04]NVStorageSaveData kkm_last_timestamp [10:08:04]File name is /storage/kkm_last_timestamp [10:08:04]Write 4 bytes [10:08:04]NVStorageSaveData done [10:08:04]ExternCall_PrintAddStr [10:08:04]wPrintStart [10:08:04]Write to MH i2c: 01 00 00 A8 03 AB [10:08:04]Write i2c OK [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: 01 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: 01 07 00 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: 01 07 00 A8 03 00 00 00 00 00 FF 0F C0 [10:08:04]RasterBufferAndPrint [10:08:04]line Счет N : (3)343980 [10:08:04]line ИНН: 02508201610067 [10:08:04]line Контрольно-Кассовый Чек [10:08:04]line ПРОДАЖА [10:08:04]line Товар: 5449000176448 [10:08:04]line Сок Piko Pulpy апельсин ПЭТ 1л [10:08:04]line 1.000 * 170.00 [10:08:04]line = 170.00 [10:08:04]line НДС 12% НСП 1% [10:08:04]line > о реализуемом товаре [10:08:04]line Товар: 4870235681369 [10:08:04]line ЧИПСЫ SLANG СО ВКУСОМ СЫР 60Г [10:08:04]line 1.000 * 95.00 [10:08:04]line = 95.00 [10:08:04]line НДС 12% НСП 1% [10:08:04]line > о реализуемом товаре [10:08:04]line Товар: 4606453849072 [10:08:04]line Жид/ст ПН летняя 4,5л [10:08:04]line 1.000 * 170.00 [10:08:04]line = 170.00 [10:08:04]line НДС 12% НСП 1% [10:08:04]line > о реализуемом товаре [10:08:04]line ИТОГО: 435.00 [10:08:04]line НСП 1% : 3.84 [10:08:04]line НДС 12% : 46.19 [10:08:04]line Наличными: 0.00 [10:08:04]line Безнал.: 435.00 [10:08:04]line Место: АЗС № 90 "Партнер Нефть" [10:08:04]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:08:04]line СНО: Общий режим [10:08:04]line Чек 49 23.09.2024 10:08 [10:08:04]line Смена: 472 ФФД: 1.0 [10:08:04]line ЗНМ: 0300000120 [10:08:04]line РНМ: 0000000000091831 [10:08:04]line Версия ККМ: 001 [10:08:04]line Платежная система: O! деньги [10:08:04]line ФМ: 0000000000871830 [10:08:04]line ФД: 115566 [10:08:04]line ФПД: 74537181156297 [10:08:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T100802&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115566&fm=74537181156297&tin=02508201610067®Number=0000000000091831&sum=43500 [10:08:04]line 0 [10:08:04]OFD Sender: Processing packet 115566 [packets to send 481, broken 480] [10:08:04]ProducePacketName [10:08:04]name=ofd_packets/00115566 [10:08:04]OFD Sender: To server: pG, [10:08:04]CommunicateWithHost lk.salyk.kg:30040 [10:08:04]ConnectInit lk.salyk.kg [10:08:04]written 0, free lines is 4095 [10:08:04]Connected sock=10 [10:08: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 38 33 30 14 02 00 00 97 85 0C 02 34 1D 5A 03 01 00 03 00 00 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 36 30 36 34 35 33 38 34 39 30 37 32 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 02 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6E C3 01 00 35 04 06 00 43 CA 8A 34 93 C9 90 6F 42 7B 84 BE 97 CF [10: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 38 33 30 4F 00 00 00 F4 D0 47 00 85 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6E C3 01 00 F4 03 04 00 46 E3 F0 66 B6 04 01 00 00 E3 61 E6 0D 7D 2A 00 DD [10:08:05]CommunicateWithHost err = 0 [10:08:05]CheckOFDResponse [10:08:05]1017 (14) - 77093643461234 [10:08:05]1041 (16) - 0000000000871830 [10:08:05]1040 (4) - 115566 [10:08:05]1012 (4) - 23.09.2024 03:40 [10:08:05]1206 (1) - 0 [10:08:05]OFD Sender: Remove packet 115566 [10:08:05]ProducePacketName [10:08:05]name=ofd_packets/00115566 [10:08:05]NVStorageDeleteData [10:08:05]Write to MH i2c: 01 00 00 DF 03 E2 [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: 01 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: 01 07 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: 01 07 00 DF 03 00 00 00 00 00 31 0B 25 [10:08:05]RasterBufferAndPrint [10:08:05]line [10:08:05]line [10:08:05]line [10:08:05]line [10:08:05]line [10:08:05]written 0, free lines is 2868 [10:08:05]MH_Cut [10:08:05]Write to MH i2c: D1 01 00 E6 03 01 BB [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: D1 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: D1 01 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: D1 01 00 E6 03 00 BA [10:08:05]Write to MH i2c: 01 00 00 E7 03 EA [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]OFD Sender: No OFD packet to send [10:08:06]*** Cut start [10:08:06]*** Partial cut [10:08:06]*** CUTSNS_PIN = 1 [10:08:06]*** CUTSNS_PIN = 0 [10:08:06]*** Brake cut motor [10:08:07]Read from MH i2c: 01 [10:08:07]MH_I2C_Read... [10:08:07]*** Stop cut motor [10:08:07]*** Cut end [10:08:07]Read from MH i2c: 01 07 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 FF 0F FF [10:08:07]process_action close_receipt done [10:08:07]requested_data is exist [10:08:07]produce_requested_data [10:08:07]requested_item fm.sn is exist - process it [10:08:07]wFMCommunicate request_size=4 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 11 00 00 [10:08:07]Write to MH i2c: E2 08 00 E8 03 80 11 00 00 00 00 00 00 65 [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 17 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 17 00 E8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B3 [10:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:08:07]wFMCommunicate OK [10:08:07]requested_item fd.num is exist - process it [10:08:07]SAM_PROTO_GetFieldsCounters [10:08:07]wFMCommunicate request_size=4 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 13 00 00 [10:08:07]Write to MH i2c: E2 08 00 E9 03 80 13 00 00 00 00 00 00 68 [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 62 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 62 00 E9 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6E C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [10:08: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6E C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:07]wFMCommunicate OK [10:08:07]SAM_PROTO_GetFieldsCounters done [10:08:07]requested_item shift.num is exist - process it [10:08:07]requested_item shift.opened is exist - process it [10:08:07]req_shift_opened [10:08:07]FM_GetShiftState [10:08:07]SAM_PROTO_GetShiftState [10:08:07]wFMCommunicate request_size=4 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 13 01 00 [10:08:07]Write to MH i2c: E2 08 00 EA 03 80 13 01 00 00 00 00 00 6A [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 0E 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 0E 00 EA 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 AB [10:08:07]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:08:07]wFMCommunicate OK [10:08:07]SAM_PROTO_GetShiftState done [10:08:07]FM_GetShiftState done [10:08:07]req_shift_opened done [10:08:07]requested_item shift.open_date is exist - process it [10:08:07]req_shift_open_date [10:08:07]req_shift_open_date done [10:08:07]produce_requested_data done [10:08:07]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115566,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:08:07]process_action_free close_receipt [10:08:07]json_value_free [10:08:07]json_value_free done [10:08:07]process_json_proto returns [10:08:07]Send response to host [10:08:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115566,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:08:07]free response buf [10:08:07]execute_script done [10:08:07]execute_script returns [10:08:07]free content buf [10:08:07]Sock 7.Close socket [10:08:07]Sock 7.Thread stoped [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:08:56]accept exits with 9 [10:08:56]New connection [10:08:56]New thread 3067051364 created [10:08:56]Thread 3067194724 joined [10:08:56]Waiting for new connection... [10:08:56] Sock 9.Parse request [10:08:56]Sock 9.Check first char [10:08:56]Sock 9.First char is OK [10:08:56]request: POST /json_proto HTTP/1.0 [10:08:56]Method: POST [10:08:56]URL: /json_proto [10:08:56]Method is POST - this is cgi request [10:08:56]url: /json_proto [10:08:56]query_string will be loaded in cgi processing [10:08:56]execute_cgi json_proto POST (null) [10:08:56]execute_cgi path=json_proto method=POST [10:08:56]POST find Content-Length [10:08:56]Host: 172.17.41.136:8080 [10:08:56]Content-Length: 614 [10:08:56]Content-Type: application/json [10:08:56] [10:08:56]POST finish read [10:08:56]Found Content-Length = 614 [10:08:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343981", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:56]execute_script... [10:08:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343981", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:56]POST & json_proto [10:08:56]process_json_proto [10:08:56]json parsed OK: [10:08:56]protocol is kg_v1.0 [10:08:56]action value=close_receipt [10:08:56]process_action close_receipt [10:08:56]cmd_close_receipt [10:08:56]MH_GetDate [10:08:56]Write to MH i2c: F0 00 00 EB 03 DD [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: F0 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: F0 09 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: F0 09 00 EB 03 00 39 3E F1 66 1B D0 5A 64 5D [10:08:56]GetLastDocTimeStamp 1727086082 [10:08:56]current date 1727086137 [10:08:56]FM_GetShiftState [10:08:56]SAM_PROTO_GetShiftState [10:08:56]wFMCommunicate request_size=4 [10:08:56]MH_SAM_APDU [10:08:56]CAPDU: 80 13 01 00 [10:08:56]Write to MH i2c: E2 08 00 EC 03 80 13 01 00 00 00 00 00 6C [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:56]Read from MH i2c: E2 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 0E 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 0E 00 EC 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 AD [10:08:56]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:08:56]wFMCommunicate OK [10:08:56]SAM_PROTO_GetShiftState done [10:08:56]FM_GetShiftState done [10:08:56]opened in 1727052070 [10:08:56]opened+sec_in_day 1727138470 [10:08:56]quantity*price = 11000 [10:08:56]sum+1 = 11001 [10:08:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 50 23.09.2024 10:08 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115567 ФПД: 126582681273538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T100857&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115567&fm=126582681273538&tin=02508201610067®Number=0000000000091831&sum=11000 0 [10:08:57]StoreToDocumentArchive [10:08:57]shift 472 fd 115567 [10:08:57]save to /storage/0472/doc_00115567 [10:08:57]save last doc name /storage/0472/doc_00115567 to /storage/kkm_last_doc_name [10:08:57]save OK [10:08:57]Clear old archive folders... [10:08:57]ProcessDocumentItem done err = 0, tmpTLVsize=266 [10:08:57]tlvbuf is 009384A0 [10:08:57]SAM_PROTO_ClearQueue [10:08:57]wFMCommunicate request_size=4 [10:08:57]MH_SAM_APDU [10:08:57]CAPDU: 80 09 00 00 [10:08:57]Write to MH i2c: E2 08 00 F9 03 80 09 00 00 00 00 00 00 6E [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:57]Read from MH i2c: E2 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 03 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [10:08:57]RAPDU: 90 00 [10:08:57]wFMCommunicate OK [10:08:57]SAM_PROTO_ClearQueue done [10:08:57]KKMCreateOFDPacket [10:08:57]OFDProtocolAddRootSTLVToBuf [10:08:57]FM_MakeSignedData [10:08:57]FM_MakeSignedData [10:08:57]SAM_PROTO_SignData [10:08:57]wFMCommunicate request_size=4 [10:08:57]MH_SAM_APDU [10:08:57]CAPDU: 80 0D 01 02 [10:08:57]Write to MH i2c: E2 08 00 FA 03 80 0D 01 02 00 00 00 00 76 [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:57]Read from MH i2c: E2 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 03 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [10:08:57]RAPDU: 90 00 [10:08:57]wFMCommunicate OK [10:08:57]wFMCommunicate request_size=255 [10:08:57]MH_SAM_APDU [10:08:57]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 39 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [10:08:57]Write to MH i2c: E2 02 01 FB 03 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 39 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 C3 [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:57]Read from MH i2c: E2 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 03 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [10:08:57]RAPDU: 90 00 [10:08:57]wFMCommunicate OK [10:08:57]wFMCommunicate request_size=25 [10:08:57]MH_SAM_APDU [10:08:57]CAPDU: 80 0D 02 02 14 33 30 10 04 04 00 6F C3 01 00 35 04 06 00 73 20 53 C0 84 C2 [10:08:57]Write to MH i2c: E2 1C 00 FC 03 80 0D 02 02 14 00 33 30 10 04 04 00 6F C3 01 00 35 04 06 00 73 20 53 C0 84 C2 00 00 7A [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:57]Read from MH i2c: E2 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 03 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [10:08:57]RAPDU: 90 00 [10:08:57]wFMCommunicate OK [10:08:57]wFMCommunicate request_size=4 [10:08:57]MH_SAM_APDU [10:08:57]CAPDU: 80 0D 03 02 [10:08:57]Write to MH i2c: E2 08 00 FD 03 80 0D 03 02 00 00 00 00 7B [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:57]Read from MH i2c: E2 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 0B 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 0B 00 FD 03 00 53 C1 7C 49 45 EA B4 4A 90 00 82 [10:08:57]RAPDU: 53 C1 7C 49 45 EA B4 4A 90 00 [10:08:57]wFMCommunicate OK [10:08:57]SAM_PROTO_SignData done [10:08:57]FM_MakeSignedData done [10:08:57]CreateOFDProtocolMessage [10:08:57]wFMCommunicate request_size=4 [10:08:57]MH_SAM_APDU [10:08:57]CAPDU: 80 11 00 00 [10:08:57]Write to MH i2c: E2 08 00 FE 03 80 11 00 00 00 00 00 00 7B [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 17 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 17 00 FE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C9 [10:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:08:58]wFMCommunicate OK [10:08:58]CreateOFDProtocolMessage done [10:08:58]OFDSenderStorePacket 115567 [10:08:58]StoreOFDPacket docnum=115567 [10:08:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 31 3B 16 01 3F AF 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 39 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6F C3 01 00 35 04 06 00 73 20 53 C0 84 C2 53 C1 7C 49 45 EA B4 4A [10:08:58]CheckFolder [10:08:58]dirname=/storage/ofd_packets [10:08:58]CheckFolder done [10:08:58]ProducePacketName [10:08:58]name=ofd_packets/00115567 [10:08:58]NVStorageSaveData ofd_packets/00115567 [10:08:58]File name is /storage/ofd_packets/00115567 [10:08:58]Write 316 bytes [10:08:58]NVStorageSaveData done [10:08:58]OFDSenderStorePacket done [10:08:58]KKMCreateOFDPacket done [10:08:58]NVStorageSaveData kkm_last_timestamp [10:08:58]File name is /storage/kkm_last_timestamp [10:08:58]Write 4 bytes [10:08:58]NVStorageSaveData done [10:08:58]ExternCall_PrintAddStr [10:08:58]wPrintStart [10:08:58]Write to MH i2c: 01 00 00 FF 03 02 [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: 01 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: 01 07 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: 01 07 00 FF 03 00 00 00 00 00 FF 0F 17 [10:08:58]RasterBufferAndPrint [10:08:58]line Счет N : (3)343981 [10:08:58]line ИНН: 02508201610067 [10:08:58]line Контрольно-Кассовый Чек [10:08:58]line ПРОДАЖА [10:08:58]line Товар: 4870001570071 [10:08:58]line Напиток Pepsi 1л [10:08:58]line 1.000 * 110.00 [10:08:58]line = 110.00 [10:08:58]line НДС 12% НСП 1% [10:08:58]line > о реализуемом товаре [10:08:58]line ИТОГО: 110.00 [10:08:58]line НСП 1% : 0.97 [10:08:58]line НДС 12% : 11.68 [10:08:58]line Наличными: 110.00 [10:08:58]line Безнал.: 0.00 [10:08:58]line Место: АЗС № 90 "Партнер Нефть" [10:08:58]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:08:58]line СНО: Общий режим [10:08:58]line Чек 50 23.09.2024 10:08 [10:08:58]line Смена: 472 ФФД: 1.0 [10:08:58]line ЗНМ: 0300000120 [10:08:58]line РНМ: 0000000000091831 [10:08:58]line Версия ККМ: 001 [10:08:58]line ФМ: 0000000000871830 [10:08:58]line ФД: 115567 [10:08:58]line ФПД: 126582681273538 [10:08:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T100857&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115567&fm=126582681273538&tin=02508201610067®Number=0000000000091831&sum=11000 [10:08:58]line 0 [10:08:58]written 0, free lines is 4095 [10:08:58]OFD Sender: Processing packet 115567 [packets to send 481, broken 480] [10:08:58]ProducePacketName [10:08:58]name=ofd_packets/00115567 [10:08:58]OFD Sender: To server: pG, [10:08:58]CommunicateWithHost lk.salyk.kg:30040 [10:08:58]ConnectInit lk.salyk.kg [10:08:58]Connected sock=10 [10:08:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 31 3B 16 01 3F AF 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 39 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 6F C3 01 00 35 04 06 00 73 20 53 C0 84 C2 53 C1 7C 49 45 EA B4 4A [10:08:58]Write to MH i2c: 01 00 00 26 04 2A [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: 01 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: 01 07 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: 01 07 00 26 04 00 00 00 00 00 88 0C C5 [10:08:58]RasterBufferAndPrint [10:08:58]line [10:08:58]line [10:08:58]line [10:08:58]line [10:08:58]line [10:08:58]written 0, free lines is 3214 [10:08:58]MH_Cut [10:08:58]Write to MH i2c: D1 01 00 2D 04 01 03 [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: D1 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: D1 01 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: D1 01 00 2D 04 00 02 [10:08:58]Write to MH i2c: 01 00 00 2E 04 32 [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 68 B9 47 00 36 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 38 33 30 10 04 04 00 6F C3 01 00 F4 03 04 00 7C E3 F0 66 B6 04 01 00 00 A5 4A 75 B1 3E F6 7E 77 [10:08:58]CommunicateWithHost err = 0 [10:08:58]CheckOFDResponse [10:08:58]1017 (14) - 77093643461234 [10:08:58]1041 (16) - 0000000000871830 [10:08:58]1040 (4) - 115567 [10:08:58]1012 (4) - 23.09.2024 03:41 [10:08:58]1206 (1) - 0 [10:08:58]OFD Sender: Remove packet 115567 [10:08:58]ProducePacketName [10:08:58]name=ofd_packets/00115567 [10:08:58]NVStorageDeleteData [10:08:59]OFD Sender: No OFD packet to send [10:08:59]*** Cut start [10:08:59]*** Partial cut [10:08:59]*** CUTSNS_PIN = 1 [10:08:59]*** CUTSNS_PIN = 0 [10:09:00]*** Brake cut motor [10:09:00]Read from MH i2c: 01 [10:09:00]MH_I2C_Read... [10:09:00]*** Stop cut motor [10:09:00]*** Cut end [10:09:00]Read from MH i2c: 01 07 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: 01 07 00 2E 04 00 00 00 00 00 FF 0F 47 [10:09:00]process_action close_receipt done [10:09:00]requested_data is exist [10:09:00]produce_requested_data [10:09:00]requested_item fm.sn is exist - process it [10:09:00]wFMCommunicate request_size=4 [10:09:00]MH_SAM_APDU [10:09:00]CAPDU: 80 11 00 00 [10:09:00]Write to MH i2c: E2 08 00 2F 04 80 11 00 00 00 00 00 00 AD [10:09:00]Write i2c OK [10:09:00]MH_I2C_Read... [10:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:00]Read from MH i2c: E2 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 17 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 17 00 2F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FB [10:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:09:00]wFMCommunicate OK [10:09:00]requested_item fd.num is exist - process it [10:09:00]SAM_PROTO_GetFieldsCounters [10:09:00]wFMCommunicate request_size=4 [10:09:00]MH_SAM_APDU [10:09:00]CAPDU: 80 13 00 00 [10:09:00]Write to MH i2c: E2 08 00 30 04 80 13 00 00 00 00 00 00 B0 [10:09:00]Write i2c OK [10:09:00]MH_I2C_Read... [10:09:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:00]Read from MH i2c: E2 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 62 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 62 00 30 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6F C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [10:09: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 6F C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:00]wFMCommunicate OK [10:09:00]SAM_PROTO_GetFieldsCounters done [10:09:00]requested_item shift.num is exist - process it [10:09:00]requested_item shift.opened is exist - process it [10:09:00]req_shift_opened [10:09:00]FM_GetShiftState [10:09:00]SAM_PROTO_GetShiftState [10:09:00]wFMCommunicate request_size=4 [10:09:00]MH_SAM_APDU [10:09:00]CAPDU: 80 13 01 00 [10:09:00]Write to MH i2c: E2 08 00 31 04 80 13 01 00 00 00 00 00 B2 [10:09:00]Write i2c OK [10:09:00]MH_I2C_Read... [10:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:00]Read from MH i2c: E2 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 0E 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 0E 00 31 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F3 [10:09:00]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:09:00]wFMCommunicate OK [10:09:00]SAM_PROTO_GetShiftState done [10:09:00]FM_GetShiftState done [10:09:00]req_shift_opened done [10:09:00]requested_item shift.open_date is exist - process it [10:09:00]req_shift_open_date [10:09:00]req_shift_open_date done [10:09:00]produce_requested_data done [10:09:00]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115567,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:09:00]process_action_free close_receipt [10:09:00]json_value_free [10:09:00]json_value_free done [10:09:00]process_json_proto returns [10:09:00]Send response to host [10:09:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115567,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:09:00]free response buf [10:09:00]execute_script done [10:09:00]execute_script returns [10:09:00]free content buf [10:09:00]Sock 9.Close socket [10:09:00]Sock 9.Thread stoped [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:31]accept exits with 7 [10:10:31]New connection [10:10:31]New thread 3067194724 created [10:10:31]Thread 3067051364 joined [10:10:31]Waiting for new connection... [10:10:31] Sock 7.Parse request [10:10:31]Sock 7.Check first char [10:10:31]Sock 7.First char is OK [10:10:31]request: POST /json_proto HTTP/1.0 [10:10:31]Method: POST [10:10:31]URL: /json_proto [10:10:31]Method is POST - this is cgi request [10:10:31]url: /json_proto [10:10:31]query_string will be loaded in cgi processing [10:10:31]execute_cgi json_proto POST (null) [10:10:31]execute_cgi path=json_proto method=POST [10:10:31]POST find Content-Length [10:10:31]Host: 172.17.41.136:8080 [10:10:31]Content-Length: 1636 [10:10:31]Content-Type: application/json [10:10:31] [10:10:31]POST finish read [10:10:31]Found Content-Length = 1636 [10:10:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343982", "tax_sys" : 0, "items" : [ { "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:31]execute_script... [10:10:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343982", "tax_sys" : 0, "items" : [ { "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:31]POST & json_proto [10:10:31]process_json_proto [10:10:31]json parsed OK: [10:10:31]protocol is kg_v1.0 [10:10:31]action value=close_receipt [10:10:31]process_action close_receipt [10:10:31]cmd_close_receipt [10:10:31]MH_GetDate [10:10:31]Write to MH i2c: F0 00 00 32 04 25 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: F0 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: F0 09 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: F0 09 00 32 04 00 98 3E F1 66 1B D0 5A 64 04 [10:10:31]GetLastDocTimeStamp 1727086137 [10:10:31]current date 1727086232 [10:10:31]FM_GetShiftState [10:10:31]SAM_PROTO_GetShiftState [10:10:31]wFMCommunicate request_size=4 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 13 01 00 [10:10:31]Write to MH i2c: E2 08 00 33 04 80 13 01 00 00 00 00 00 B4 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 0E 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 0E 00 33 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F5 [10:10:31]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:10:31]wFMCommunicate OK [10:10:31]SAM_PROTO_GetShiftState done [10:10:31]FM_GetShiftState done [10:10:31]opened in 1727052070 [10:10:31]opened+sec_in_day 1727138470 [10:10:31]quantity*price = 9300 [10:10:31]sum+1 = 9301 [10:10:31]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032800010 Сочник DC творог 75 г 2.000 * 30.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001157913 Вода ASU 0,5л c без газа 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 1.000 * 7.00 = 7.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.76 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 51 23.09.2024 10:10 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115568 ФПД: 22567991550527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T101032&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115568&fm=22567991550527&tin=02508201610067®Number=0000000000091831&sum=20000 0 [10:10:32]StoreToDocumentArchive [10:10:32]shift 472 fd 115568 [10:10:32]save to /storage/0472/doc_00115568 [10:10:32]save last doc name /storage/0472/doc_00115568 to /storage/kkm_last_doc_name [10:10:32]save OK [10:10:32]Clear old archive folders... [10:10:32]ProcessDocumentItem done err = 0, tmpTLVsize=619 [10:10:32]tlvbuf is 00943570 [10:10:32]SAM_PROTO_ClearQueue [10:10:32]wFMCommunicate request_size=4 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 09 00 00 [10:10:32]Write to MH i2c: E2 08 00 40 04 80 09 00 00 00 00 00 00 B6 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [10:10:32]RAPDU: 90 00 [10:10:32]wFMCommunicate OK [10:10:32]SAM_PROTO_ClearQueue done [10:10:32]KKMCreateOFDPacket [10:10:32]OFDProtocolAddRootSTLVToBuf [10:10:32]FM_MakeSignedData [10:10:32]FM_MakeSignedData [10:10:32]SAM_PROTO_SignData [10:10:32]wFMCommunicate request_size=4 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 0D 01 02 [10:10:32]Write to MH i2c: E2 08 00 41 04 80 0D 01 02 00 00 00 00 BE [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [10:10:32]RAPDU: 90 00 [10:10:32]wFMCommunicate OK [10:10:32]wFMCommunicate request_size=255 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 0D 02 02 FA 03 00 6B 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 [10:10:32]Write to MH i2c: E2 02 01 42 04 80 0D 02 02 FA 00 03 00 6B 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 00 00 E2 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [10:10:32]RAPDU: 90 00 [10:10:32]wFMCommunicate OK [10:10:32]wFMCommunicate request_size=255 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 0D 02 02 FA 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 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 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 [10:10:32]Write to MH i2c: E2 02 01 43 04 80 0D 02 02 FA 00 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 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 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 00 00 07 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:33]Read from MH i2c: E2 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 03 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [10:10:33]RAPDU: 90 00 [10:10:33]wFMCommunicate OK [10:10:33]wFMCommunicate request_size=128 [10:10:33]MH_SAM_APDU [10:10:33]CAPDU: 80 0D 02 02 7B F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 98 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 70 C3 01 00 35 04 06 00 14 86 85 1E A2 3F [10:10:33]Write to MH i2c: E2 83 00 44 04 80 0D 02 02 7B 00 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 98 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 70 C3 01 00 35 04 06 00 14 86 85 1E A2 3F 00 00 33 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:33]Read from MH i2c: E2 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 03 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [10:10:33]RAPDU: 90 00 [10:10:33]wFMCommunicate OK [10:10:33]wFMCommunicate request_size=4 [10:10:33]MH_SAM_APDU [10:10:33]CAPDU: 80 0D 03 02 [10:10:33]Write to MH i2c: E2 08 00 45 04 80 0D 03 02 00 00 00 00 C4 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:33]Read from MH i2c: E2 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 0B 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 0B 00 45 04 00 99 E4 AF 7A 14 CA 56 CD 90 00 6C [10:10:33]RAPDU: 99 E4 AF 7A 14 CA 56 CD 90 00 [10:10:33]wFMCommunicate OK [10:10:33]SAM_PROTO_SignData done [10:10:33]FM_MakeSignedData done [10:10:33]CreateOFDProtocolMessage [10:10:33]wFMCommunicate request_size=4 [10:10:33]MH_SAM_APDU [10:10:33]CAPDU: 80 11 00 00 [10:10:33]Write to MH i2c: E2 08 00 46 04 80 11 00 00 00 00 00 00 C4 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:33]Read from MH i2c: E2 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 17 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 17 00 46 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 12 [10:10:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:10:33]wFMCommunicate OK [10:10:33]CreateOFDProtocolMessage done [10:10:33]OFDSenderStorePacket 115568 [10:10:33]StoreOFDPacket docnum=115568 [10:10:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 7F 02 00 00 35 1C 77 02 D8 AB 5A 03 01 00 03 00 6B 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 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 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 98 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 70 C3 01 00 35 04 06 00 14 86 85 1E A2 3F 99 E4 AF 7A 14 CA 56 CD [10:10:33]CheckFolder [10:10:33]dirname=/storage/ofd_packets [10:10:33]CheckFolder done [10:10:33]ProducePacketName [10:10:33]name=ofd_packets/00115568 [10:10:33]NVStorageSaveData ofd_packets/00115568 [10:10:33]File name is /storage/ofd_packets/00115568 [10:10:33]Write 669 bytes [10:10:33]NVStorageSaveData done [10:10:33]OFDSenderStorePacket done [10:10:33]KKMCreateOFDPacket done [10:10:33]NVStorageSaveData kkm_last_timestamp [10:10:33]File name is /storage/kkm_last_timestamp [10:10:33]Write 4 bytes [10:10:33]NVStorageSaveData done [10:10:33]ExternCall_PrintAddStr [10:10:33]wPrintStart [10:10:33]Write to MH i2c: 01 00 00 47 04 4B [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 07 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 07 00 47 04 00 00 00 00 00 FF 0F 60 [10:10:33]RasterBufferAndPrint [10:10:33]line Счет N : (3)343982 [10:10:33]line ИНН: 02508201610067 [10:10:33]line Контрольно-Кассовый Чек [10:10:33]line ПРОДАЖА [10:10:33]line Товар: 4603290004879 [10:10:33]line Печ.сах.FORSITE Сэнд.кокос.вк [10:10:33]line 1.000 * 93.00 [10:10:33]line = 93.00 [10:10:33]line НДС 12% НСП 1% [10:10:33]line > о реализуемом товаре [10:10:33]line Товар: 2000032800010 [10:10:33]line Сочник DC творог 75 г [10:10:33]line 2.000 * 30.00 [10:10:33]line = 60.00 [10:10:33]line НДС 12% НСП 1% [10:10:33]line > о реализуемом товаре [10:10:33]line Товар: 4870001157913 [10:10:33]line Вода ASU 0,5л c без газа [10:10:33]line 1.000 * 40.00 [10:10:33]line = 40.00 [10:10:33]line НДС 12% НСП 1% [10:10:33]line > о реализуемом товаре [10:10:33]line Товар: 2000053020015 [10:10:33]line Бумажные стаканы 250мл 1шт [10:10:33]line 1.000 * 7.00 [10:10:33]line = 7.00 [10:10:33]line НДС 12% НСП 1% [10:10:33]line > о реализуемом товаре [10:10:33]line ИТОГО: 200.00 [10:10:33]line НСП 1% : 1.76 [10:10:33]line НДС 12% : 21.24 [10:10:33]line Наличными: 0.00 [10:10:33]line Безнал.: 200.00 [10:10:33]line Место: АЗС № 90 "Партнер Нефть" [10:10:33]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:10:33]line СНО: Общий режим [10:10:33]line Чек 51 23.09.2024 10:10 [10:10:33]line Смена: 472 ФФД: 1.0 [10:10:33]line ЗНМ: 0300000120 [10:10:33]line РНМ: 0000000000091831 [10:10:33]line Версия ККМ: 001 [10:10:33]line Платежная система: O! деньги [10:10:33]line ФМ: 0000000000871830 [10:10:33]line ФД: 115568 [10:10:33]line ФПД: 22567991550527 [10:10:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T101032&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115568&fm=22567991550527&tin=02508201610067®Number=0000000000091831&sum=20000 [10:10:33]OFD Sender: Processing packet 115568 [packets to send 481, broken 480] [10:10:33]ProducePacketName [10:10:33]name=ofd_packets/00115568 [10:10:33]OFD Sender: To server: pG, [10:10:33]CommunicateWithHost lk.salyk.kg:30040 [10:10:33]ConnectInit lk.salyk.kg [10:10:33]line 0 [10:10:33]written 0, free lines is 4095 [10:10:34]Connected sock=10 [10:10: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 38 33 30 7F 02 00 00 35 1C 77 02 D8 AB 5A 03 01 00 03 00 6B 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 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 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 98 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 70 C3 01 00 35 04 06 00 14 86 85 1E A2 3F 99 E4 AF 7A 14 CA 56 CD [10:10:34]Write to MH i2c: 01 00 00 83 04 87 [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: 01 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: 01 07 00 [10:10:34]MH_I2C_Read... [10:10:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 69 AF 47 00 FC 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 38 33 30 10 04 04 00 70 C3 01 00 F4 03 04 00 DB E3 F0 66 B6 04 01 00 00 AF E4 BE 99 F4 5A 5A 9C [10:10:34]CommunicateWithHost err = 0 [10:10:34]CheckOFDResponse [10:10:34]1017 (14) - 77093643461234 [10:10:34]1041 (16) - 0000000000871830 [10:10:34]1040 (4) - 115568 [10:10:34]1012 (4) - 23.09.2024 03:43 [10:10:34]1206 (1) - 0 [10:10:34]OFD Sender: Remove packet 115568 [10:10:34]ProducePacketName [10:10:34]name=ofd_packets/00115568 [10:10:34]NVStorageDeleteData [10:10:34]Read from MH i2c: 01 07 00 83 04 00 00 00 00 00 AF 0A 47 [10:10:34]RasterBufferAndPrint [10:10:34]line [10:10:34]line [10:10:34]line [10:10:34]line [10:10:34]line [10:10:34]written 0, free lines is 2763 [10:10:34]MH_Cut [10:10:34]Write to MH i2c: D1 01 00 8A 04 01 60 [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: D1 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: D1 01 00 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: D1 01 00 8A 04 00 5F [10:10:34]Write to MH i2c: 01 00 00 8B 04 8F [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:35]OFD Sender: No OFD packet to send [10:10:36]*** Cut start [10:10:36]*** Partial cut [10:10:36]*** CUTSNS_PIN = 1 [10:10:36]*** CUTSNS_PIN = 0 [10:10:36]*** Brake cut motor [10:10:36]Read from MH i2c: 01 [10:10:36]MH_I2C_Read... [10:10:36]*** Stop cut motor [10:10:36]*** Cut end [10:10:36]Read from MH i2c: 01 07 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 07 00 8B 04 00 00 00 00 00 FF 0F A4 [10:10:36]process_action close_receipt done [10:10:36]requested_data is exist [10:10:36]produce_requested_data [10:10:36]requested_item fm.sn is exist - process it [10:10:36]wFMCommunicate request_size=4 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 11 00 00 [10:10:36]Write to MH i2c: E2 08 00 8C 04 80 11 00 00 00 00 00 00 0A [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:37]Read from MH i2c: E2 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 17 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 17 00 8C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 58 [10:10:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:10:37]wFMCommunicate OK [10:10:37]requested_item fd.num is exist - process it [10:10:37]SAM_PROTO_GetFieldsCounters [10:10:37]wFMCommunicate request_size=4 [10:10:37]MH_SAM_APDU [10:10:37]CAPDU: 80 13 00 00 [10:10:37]Write to MH i2c: E2 08 00 8D 04 80 13 00 00 00 00 00 00 0D [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:37]Read from MH i2c: E2 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 62 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 62 00 8D 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 70 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [10:10:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 70 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:37]wFMCommunicate OK [10:10:37]SAM_PROTO_GetFieldsCounters done [10:10:37]requested_item shift.num is exist - process it [10:10:37]requested_item shift.opened is exist - process it [10:10:37]req_shift_opened [10:10:37]FM_GetShiftState [10:10:37]SAM_PROTO_GetShiftState [10:10:37]wFMCommunicate request_size=4 [10:10:37]MH_SAM_APDU [10:10:37]CAPDU: 80 13 01 00 [10:10:37]Write to MH i2c: E2 08 00 8E 04 80 13 01 00 00 00 00 00 0F [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:37]Read from MH i2c: E2 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 0E 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 0E 00 8E 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 50 [10:10:37]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:10:37]wFMCommunicate OK [10:10:37]SAM_PROTO_GetShiftState done [10:10:37]FM_GetShiftState done [10:10:37]req_shift_opened done [10:10:37]requested_item shift.open_date is exist - process it [10:10:37]req_shift_open_date [10:10:37]req_shift_open_date done [10:10:37]produce_requested_data done [10:10:37]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115568,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:10:37]process_action_free close_receipt [10:10:37]json_value_free [10:10:37]json_value_free done [10:10:37]process_json_proto returns [10:10:37]Send response to host [10:10:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115568,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:10:37]free response buf [10:10:37]execute_script done [10:10:37]execute_script returns [10:10:37]free content buf [10:10:37]Sock 7.Close socket [10:10:37]Sock 7.Thread stoped [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:46]accept exits with 9 [10:11:46]New connection [10:11:46]New thread 3067051364 created [10:11:46]Thread 3067194724 joined [10:11:46]Waiting for new connection... [10:11:46] Sock 9.Parse request [10:11:46]Sock 9.Check first char [10:11:46]Sock 9.First char is OK [10:11:46]request: POST /json_proto HTTP/1.0 [10:11:46]Method: POST [10:11:46]URL: /json_proto [10:11:46]Method is POST - this is cgi request [10:11:46]url: /json_proto [10:11:46]query_string will be loaded in cgi processing [10:11:46]execute_cgi json_proto POST (null) [10:11:46]execute_cgi path=json_proto method=POST [10:11:46]POST find Content-Length [10:11:46]Host: 172.17.41.136:8080 [10:11:46]Content-Length: 675 [10:11:46]Content-Type: application/json [10:11:46] [10:11:46]POST finish read [10:11:46]Found Content-Length = 675 [10:11:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343983", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:46]execute_script... [10:11:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343983", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:46]POST & json_proto [10:11:46]process_json_proto [10:11:46]json parsed OK: [10:11:46]protocol is kg_v1.0 [10:11:46]action value=close_receipt [10:11:46]process_action close_receipt [10:11:46]cmd_close_receipt [10:11:46]MH_GetDate [10:11:46]Write to MH i2c: F0 00 00 8F 04 82 [10:11:46]Write i2c OK [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: F0 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: F0 09 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: F0 09 00 8F 04 00 E3 3E F1 66 1B D0 5A 64 AC [10:11:46]GetLastDocTimeStamp 1727086232 [10:11:46]current date 1727086307 [10:11:46]FM_GetShiftState [10:11:46]SAM_PROTO_GetShiftState [10:11:46]wFMCommunicate request_size=4 [10:11:46]MH_SAM_APDU [10:11:46]CAPDU: 80 13 01 00 [10:11:46]Write to MH i2c: E2 08 00 90 04 80 13 01 00 00 00 00 00 11 [10:11:46]Write i2c OK [10:11:46]MH_I2C_Read... [10:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:46]Read from MH i2c: E2 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 0E 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 0E 00 90 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 52 [10:11:46]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:11:46]wFMCommunicate OK [10:11:46]SAM_PROTO_GetShiftState done [10:11:46]FM_GetShiftState done [10:11:46]opened in 1727052070 [10:11:46]opened+sec_in_day 1727138470 [10:11:46]quantity*price = 10500 [10:11:46]sum+1 = 10501 [10:11:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 52 23.09.2024 10:11 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115569 ФПД: 114905024957572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T101147&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115569&fm=114905024957572&tin=02508201610067®Number=0000000000091831&sum=10500 0 [10:11:47]StoreToDocumentArchive [10:11:47]shift 472 fd 115569 [10:11:47]save to /storage/0472/doc_00115569 [10:11:47]save last doc name /storage/0472/doc_00115569 to /storage/kkm_last_doc_name [10:11:47]save OK [10:11:47]Clear old archive folders... [10:11:47]ProcessDocumentItem done err = 0, tmpTLVsize=287 [10:11:47]tlvbuf is 00940380 [10:11:47]SAM_PROTO_ClearQueue [10:11:47]wFMCommunicate request_size=4 [10:11:47]MH_SAM_APDU [10:11:47]CAPDU: 80 09 00 00 [10:11:47]Write to MH i2c: E2 08 00 9D 04 80 09 00 00 00 00 00 00 13 [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:47]Read from MH i2c: E2 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 9D 04 00 90 00 15 [10:11:47]RAPDU: 90 00 [10:11:47]wFMCommunicate OK [10:11:47]SAM_PROTO_ClearQueue done [10:11:47]KKMCreateOFDPacket [10:11:47]OFDProtocolAddRootSTLVToBuf [10:11:47]FM_MakeSignedData [10:11:47]FM_MakeSignedData [10:11:47]SAM_PROTO_SignData [10:11:47]wFMCommunicate request_size=4 [10:11:47]MH_SAM_APDU [10:11:47]CAPDU: 80 0D 01 02 [10:11:47]Write to MH i2c: E2 08 00 9E 04 80 0D 01 02 00 00 00 00 1B [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:47]Read from MH i2c: E2 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 9E 04 00 90 00 16 [10:11:47]RAPDU: 90 00 [10:11:47]wFMCommunicate OK [10:11:47]wFMCommunicate request_size=255 [10:11:47]MH_SAM_APDU [10:11:47]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E3 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [10:11:47]Write to MH i2c: E2 02 01 9F 04 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E3 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 74 [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:47]Read from MH i2c: E2 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 9F 04 00 90 00 17 [10:11:47]RAPDU: 90 00 [10:11:47]wFMCommunicate OK [10:11:47]wFMCommunicate request_size=46 [10:11:47]MH_SAM_APDU [10:11:47]CAPDU: 80 0D 02 02 29 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 71 C3 01 00 35 04 06 00 68 81 69 32 0C 84 [10:11:47]Write to MH i2c: E2 31 00 A0 04 80 0D 02 02 29 00 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 71 C3 01 00 35 04 06 00 68 81 69 32 0C 84 00 00 EC [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:47]Read from MH i2c: E2 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 A0 04 00 90 00 18 [10:11:47]RAPDU: 90 00 [10:11:47]wFMCommunicate OK [10:11:47]wFMCommunicate request_size=4 [10:11:47]MH_SAM_APDU [10:11:47]CAPDU: 80 0D 03 02 [10:11:47]Write to MH i2c: E2 08 00 A1 04 80 0D 03 02 00 00 00 00 20 [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:47]Read from MH i2c: E2 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 0B 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 0B 00 A1 04 00 B8 63 A7 C8 3A AB 0B C6 90 00 61 [10:11:47]RAPDU: B8 63 A7 C8 3A AB 0B C6 90 00 [10:11:47]wFMCommunicate OK [10:11:47]SAM_PROTO_SignData done [10:11:47]FM_MakeSignedData done [10:11:47]CreateOFDProtocolMessage [10:11:47]wFMCommunicate request_size=4 [10:11:47]MH_SAM_APDU [10:11:47]CAPDU: 80 11 00 00 [10:11:47]Write to MH i2c: E2 08 00 A2 04 80 11 00 00 00 00 00 00 20 [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:47]Read from MH i2c: E2 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 17 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 17 00 A2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6E [10:11:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:11:47]wFMCommunicate OK [10:11:47]CreateOFDProtocolMessage done [10:11:47]OFDSenderStorePacket 115569 [10:11:47]StoreOFDPacket docnum=115569 [10:11:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 33 01 00 00 52 68 2B 01 D3 AD 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E3 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 71 C3 01 00 35 04 06 00 68 81 69 32 0C 84 B8 63 A7 C8 3A AB 0B C6 [10:11:47]CheckFolder [10:11:47]dirname=/storage/ofd_packets [10:11:47]CheckFolder done [10:11:47]ProducePacketName [10:11:47]name=ofd_packets/00115569 [10:11:47]NVStorageSaveData ofd_packets/00115569 [10:11:47]File name is /storage/ofd_packets/00115569 [10:11:47]Write 337 bytes [10:11:47]NVStorageSaveData done [10:11:47]OFDSenderStorePacket done [10:11:47]KKMCreateOFDPacket done [10:11:47]NVStorageSaveData kkm_last_timestamp [10:11:47]File name is /storage/kkm_last_timestamp [10:11:47]Write 4 bytes [10:11:47]NVStorageSaveData done [10:11:47]ExternCall_PrintAddStr [10:11:47]wPrintStart [10:11:47]Write to MH i2c: 01 00 00 A3 04 A7 [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: 01 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: 01 07 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: 01 07 00 A3 04 00 00 00 00 00 FF 0F BC [10:11:47]RasterBufferAndPrint [10:11:47]line Счет N : (3)343983 [10:11:47]line ИНН: 02508201610067 [10:11:47]line Контрольно-Кассовый Чек [10:11:47]line ПРОДАЖА [10:11:47]line Товар: 5449000189332 [10:11:47]line Холодный чай Fuse персик 1л [10:11:47]line 1.000 * 105.00 [10:11:47]line = 105.00 [10:11:47]line НДС 12% НСП 1% [10:11:47]line > о реализуемом товаре [10:11:47]line ИТОГО: 105.00 [10:11:47]line НСП 1% : 0.93 [10:11:48]line НДС 12% : 11.15 [10:11:48]line Наличными: 105.00 [10:11:48]line Безнал.: 0.00 [10:11:48]line Место: АЗС № 90 "Партнер Нефть" [10:11:48]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:11:48]line СНО: Общий режим [10:11:48]line Чек 52 23.09.2024 10:11 [10:11:48]line Смена: 472 ФФД: 1.0 [10:11:48]line ЗНМ: 0300000120 [10:11:48]line РНМ: 0000000000091831 [10:11:48]line Версия ККМ: 001 [10:11:48]line ФМ: 0000000000871830 [10:11:48]line ФД: 115569 [10:11:48]line ФПД: 114905024957572 [10:11:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T101147&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115569&fm=114905024957572&tin=02508201610067®Number=0000000000091831&sum=10500 [10:11:48]line 0 [10:11:48]OFD Sender: Processing packet 115569 [packets to send 481, broken 480] [10:11:48]ProducePacketName [10:11:48]name=ofd_packets/00115569 [10:11:48]OFD Sender: To server: pG, [10:11:48]CommunicateWithHost lk.salyk.kg:30040 [10:11:48]ConnectInit lk.salyk.kg [10:11:48]written 0, free lines is 4095 [10:11:48]Connected sock=10 [10:11: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 38 33 30 33 01 00 00 52 68 2B 01 D3 AD 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E3 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 71 C3 01 00 35 04 06 00 68 81 69 32 0C 84 B8 63 A7 C8 3A AB 0B C6 [10:11:48]Write to MH i2c: 01 00 00 CA 04 CE [10:11:48]Write i2c OK [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 07 00 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 07 00 CA 04 00 00 00 00 00 71 0C 52 [10:11:48]RasterBufferAndPrint [10:11:48]line [10:11:48]line [10:11:48]line [10:11:48]line [10:11:48]line [10:11:48]written 0, free lines is 3188 [10:11:48]MH_Cut [10:11:48]Write to MH i2c: D1 01 00 D1 04 01 A7 [10:11:48]Write i2c OK [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: D1 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: D1 01 00 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: D1 01 00 D1 04 00 A6 [10:11:48]Write to MH i2c: 01 00 00 D2 04 D6 [10:11:48]Write i2c OK [10:11:48]MH_I2C_Read... [10:11:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 5D A2 47 00 00 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 71 C3 01 00 F4 03 04 00 26 E4 F0 66 B6 04 01 00 00 79 D5 1A 0C 96 64 FE 05 [10:11:48]CommunicateWithHost err = 0 [10:11:48]CheckOFDResponse [10:11:48]1017 (14) - 77093643461234 [10:11:48]1041 (16) - 0000000000871830 [10:11:48]1040 (4) - 115569 [10:11:48]1012 (4) - 23.09.2024 03:44 [10:11:48]1206 (1) - 0 [10:11:48]OFD Sender: Remove packet 115569 [10:11:48]ProducePacketName [10:11:48]name=ofd_packets/00115569 [10:11:48]NVStorageDeleteData [10:11:49]OFD Sender: No OFD packet to send [10:11:50]*** Cut start [10:11:50]*** Partial cut [10:11:50]*** CUTSNS_PIN = 1 [10:11:50]*** CUTSNS_PIN = 0 [10:11:50]*** Brake cut motor [10:11:50]Read from MH i2c: 01 [10:11:50]MH_I2C_Read... [10:11:50]*** Stop cut motor [10:11:50]*** Cut end [10:11:50]Read from MH i2c: 01 07 00 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: 01 07 00 D2 04 00 00 00 00 00 FF 0F EB [10:11:50]process_action close_receipt done [10:11:50]requested_data is exist [10:11:50]produce_requested_data [10:11:50]requested_item fm.sn is exist - process it [10:11:50]wFMCommunicate request_size=4 [10:11:50]MH_SAM_APDU [10:11:50]CAPDU: 80 11 00 00 [10:11:50]Write to MH i2c: E2 08 00 D3 04 80 11 00 00 00 00 00 00 51 [10:11:50]Write i2c OK [10:11:50]MH_I2C_Read... [10:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:50]Read from MH i2c: E2 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: E2 17 00 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: E2 17 00 D3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9F [10:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:11:50]wFMCommunicate OK [10:11:50]requested_item fd.num is exist - process it [10:11:50]SAM_PROTO_GetFieldsCounters [10:11:50]wFMCommunicate request_size=4 [10:11:50]MH_SAM_APDU [10:11:50]CAPDU: 80 13 00 00 [10:11:50]Write to MH i2c: E2 08 00 D4 04 80 13 00 00 00 00 00 00 54 [10:11:50]Write i2c OK [10:11:50]MH_I2C_Read... [10:11:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:50]Read from MH i2c: E2 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: E2 62 00 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: E2 62 00 D4 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 71 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [10:11: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 71 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:50]wFMCommunicate OK [10:11:50]SAM_PROTO_GetFieldsCounters done [10:11:50]requested_item shift.num is exist - process it [10:11:50]requested_item shift.opened is exist - process it [10:11:50]req_shift_opened [10:11:50]FM_GetShiftState [10:11:50]SAM_PROTO_GetShiftState [10:11:50]wFMCommunicate request_size=4 [10:11:50]MH_SAM_APDU [10:11:50]CAPDU: 80 13 01 00 [10:11:50]Write to MH i2c: E2 08 00 D5 04 80 13 01 00 00 00 00 00 56 [10:11:50]Write i2c OK [10:11:50]MH_I2C_Read... [10:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:50]Read from MH i2c: E2 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: E2 0E 00 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: E2 0E 00 D5 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 97 [10:11:50]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:11:50]wFMCommunicate OK [10:11:50]SAM_PROTO_GetShiftState done [10:11:50]FM_GetShiftState done [10:11:50]req_shift_opened done [10:11:50]requested_item shift.open_date is exist - process it [10:11:50]req_shift_open_date [10:11:50]req_shift_open_date done [10:11:50]produce_requested_data done [10:11:50]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115569,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:11:50]process_action_free close_receipt [10:11:50]json_value_free [10:11:50]json_value_free done [10:11:50]process_json_proto returns [10:11:50]Send response to host [10:11:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115569,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:11:50]free response buf [10:11:50]execute_script done [10:11:50]execute_script returns [10:11:50]free content buf [10:11:50]Sock 9.Close socket [10:11:50]Sock 9.Thread stoped [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:07]accept exits with 7 [10:12:07]New connection [10:12:07]New thread 3067194724 created [10:12:07]Thread 3067051364 joined [10:12:07]Waiting for new connection... [10:12:07] Sock 7.Parse request [10:12:07]Sock 7.Check first char [10:12:07]Sock 7.First char is OK [10:12:07]request: POST /json_proto HTTP/1.0 [10:12:07]Method: POST [10:12:07]URL: /json_proto [10:12:07]Method is POST - this is cgi request [10:12:07]url: /json_proto [10:12:07]query_string will be loaded in cgi processing [10:12:07]execute_cgi json_proto POST (null) [10:12:07]execute_cgi path=json_proto method=POST [10:12:07]POST find Content-Length [10:12:07]Host: 172.17.41.136:8080 [10:12:07]Content-Length: 1014 [10:12:07]Content-Type: application/json [10:12:07] [10:12:07]POST finish read [10:12:07]Found Content-Length = 1014 [10:12:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343984", "tax_sys" : 0, "items" : [ { "code": "4607015235401", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u044B\u0435 350\u0433", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:07]execute_script... [10:12:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343984", "tax_sys" : 0, "items" : [ { "code": "4607015235401", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u044B\u0435 350\u0433", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:07]POST & json_proto [10:12:07]process_json_proto [10:12:07]json parsed OK: [10:12:07]protocol is kg_v1.0 [10:12:07]action value=close_receipt [10:12:07]process_action close_receipt [10:12:07]cmd_close_receipt [10:12:07]MH_GetDate [10:12:07]Write to MH i2c: F0 00 00 D6 04 C9 [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: F0 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: F0 09 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: F0 09 00 D6 04 00 F8 3E F1 66 1B D0 5A 64 08 [10:12:07]GetLastDocTimeStamp 1727086307 [10:12:07]current date 1727086328 [10:12:07]FM_GetShiftState [10:12:07]SAM_PROTO_GetShiftState [10:12:07]wFMCommunicate request_size=4 [10:12:07]MH_SAM_APDU [10:12:07]CAPDU: 80 13 01 00 [10:12:07]Write to MH i2c: E2 08 00 D7 04 80 13 01 00 00 00 00 00 58 [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:07]Read from MH i2c: E2 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 0E 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 0E 00 D7 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 99 [10:12:07]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:12:07]wFMCommunicate OK [10:12:07]SAM_PROTO_GetShiftState done [10:12:07]FM_GetShiftState done [10:12:07]opened in 1727052070 [10:12:07]opened+sec_in_day 1727138470 [10:12:07]quantity*price = 12900 [10:12:07]sum+1 = 12901 [10:12:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002325441 Вода ASU пит н.газ лимон ПЭТ 0,5л 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 259.00 НСП 1% : 2.29 НДС 12% : 27.50 Наличными: 259.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 53 23.09.2024 10:12 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115570 ФПД: 12047849668209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T101208&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115570&fm=12047849668209&tin=02508201610067®Number=0000000000091831&sum=25900 0 [10:12:08]StoreToDocumentArchive [10:12:08]shift 472 fd 115570 [10:12:08]save to /storage/0472/doc_00115570 [10:12:08]save last doc name /storage/0472/doc_00115570 to /storage/kkm_last_doc_name [10:12:08]save OK [10:12:08]Clear old archive folders... [10:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=421 [10:12:08]tlvbuf is 0094F440 [10:12:08]SAM_PROTO_ClearQueue [10:12:08]wFMCommunicate request_size=4 [10:12:08]MH_SAM_APDU [10:12:08]CAPDU: 80 09 00 00 [10:12:08]Write to MH i2c: E2 08 00 E4 04 80 09 00 00 00 00 00 00 5A [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:08]Read from MH i2c: E2 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 E4 04 00 90 00 5C [10:12:08]RAPDU: 90 00 [10:12:08]wFMCommunicate OK [10:12:08]SAM_PROTO_ClearQueue done [10:12:08]KKMCreateOFDPacket [10:12:08]OFDProtocolAddRootSTLVToBuf [10:12:08]FM_MakeSignedData [10:12:08]FM_MakeSignedData [10:12:08]SAM_PROTO_SignData [10:12:08]wFMCommunicate request_size=4 [10:12:08]MH_SAM_APDU [10:12:08]CAPDU: 80 0D 01 02 [10:12:08]Write to MH i2c: E2 08 00 E5 04 80 0D 01 02 00 00 00 00 62 [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:08]Read from MH i2c: E2 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 E5 04 00 90 00 5D [10:12:08]RAPDU: 90 00 [10:12:08]wFMCommunicate OK [10:12:08]wFMCommunicate request_size=255 [10:12:08]MH_SAM_APDU [10:12:08]CAPDU: 80 0D 02 02 FA 03 00 A5 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 [10:12:08]Write to MH i2c: E2 02 01 E6 04 80 0D 02 02 FA 00 03 00 A5 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 00 00 73 [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 03 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 03 00 E6 04 00 90 00 5E [10:12:09]RAPDU: 90 00 [10:12:09]wFMCommunicate OK [10:12:09]wFMCommunicate request_size=180 [10:12:09]MH_SAM_APDU [10:12:09]CAPDU: 80 0D 02 02 AF F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F8 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 72 C3 01 00 35 04 06 00 0A F5 1B CC BE 71 [10:12:09]Write to MH i2c: E2 B7 00 E7 04 80 0D 02 02 AF 00 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F8 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 72 C3 01 00 35 04 06 00 0A F5 1B CC BE 71 00 00 6F [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 03 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 03 00 E7 04 00 90 00 5F [10:12:09]RAPDU: 90 00 [10:12:09]wFMCommunicate OK [10:12:09]wFMCommunicate request_size=4 [10:12:09]MH_SAM_APDU [10:12:09]CAPDU: 80 0D 03 02 [10:12:09]Write to MH i2c: E2 08 00 E8 04 80 0D 03 02 00 00 00 00 67 [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 0B 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 0B 00 E8 04 00 3A 94 C8 EA 8A 26 55 30 90 00 1D [10:12:09]RAPDU: 3A 94 C8 EA 8A 26 55 30 90 00 [10:12:09]wFMCommunicate OK [10:12:09]SAM_PROTO_SignData done [10:12:09]FM_MakeSignedData done [10:12:09]CreateOFDProtocolMessage [10:12:09]wFMCommunicate request_size=4 [10:12:09]MH_SAM_APDU [10:12:09]CAPDU: 80 11 00 00 [10:12:09]Write to MH i2c: E2 08 00 E9 04 80 11 00 00 00 00 00 00 67 [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 17 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 17 00 E9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B5 [10:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:12:09]wFMCommunicate OK [10:12:09]CreateOFDProtocolMessage done [10:12:09]OFDSenderStorePacket 115570 [10:12:09]StoreOFDPacket docnum=115570 [10:12:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B9 01 00 00 98 05 B1 01 48 DA 5A 03 01 00 03 00 A5 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F8 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 72 C3 01 00 35 04 06 00 0A F5 1B CC BE 71 3A 94 C8 EA 8A 26 55 30 [10:12:09]CheckFolder [10:12:09]dirname=/storage/ofd_packets [10:12:09]CheckFolder done [10:12:09]ProducePacketName [10:12:09]name=ofd_packets/00115570 [10:12:09]NVStorageSaveData ofd_packets/00115570 [10:12:09]File name is /storage/ofd_packets/00115570 [10:12:09]Write 471 bytes [10:12:09]NVStorageSaveData done [10:12:09]OFDSenderStorePacket done [10:12:09]KKMCreateOFDPacket done [10:12:09]NVStorageSaveData kkm_last_timestamp [10:12:09]File name is /storage/kkm_last_timestamp [10:12:09]Write 4 bytes [10:12:09]NVStorageSaveData done [10:12:09]ExternCall_PrintAddStr [10:12:09]wPrintStart [10:12:09]Write to MH i2c: 01 00 00 EA 04 EE [10:12:09]OFD Sender: Processing packet 115570 [packets to send 481, broken 480] [10:12:09]ProducePacketName [10:12:09]name=ofd_packets/00115570 [10:12:09]OFD Sender: To server: pG, [10:12:09]CommunicateWithHost lk.salyk.kg:30040 [10:12:09]ConnectInit lk.salyk.kg [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 07 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 07 00 EA 04 00 00 00 00 00 FF 0F 03 [10:12:09]RasterBufferAndPrint [10:12:09]line Счет N : (3)343984 [10:12:09]line ИНН: 02508201610067 [10:12:09]line Контрольно-Кассовый Чек [10:12:09]line ПРОДАЖА [10:12:09]line Товар: 4607015235401 [10:12:09]line Пряники Яшкино шоколадные 350г [10:12:09]line 1.000 * 129.00 [10:12:09]line = 129.00 [10:12:09]line НДС 12% НСП 1% [10:12:09]line > о реализуемом товаре [10:12:09]line Товар: 4870002325441 [10:12:09]line Вода ASU пит н.газ лимон ПЭТ 0,5л [10:12:09]line 2.000 * 65.00 [10:12:09]line = 130.00 [10:12:09]line НДС 12% НСП 1% [10:12:09]line > о реализуемом товаре [10:12:09]line ИТОГО: 259.00 [10:12:09]line НСП 1% : 2.29 [10:12:09]line НДС 12% : 27.50 [10:12:09]line Наличными: 259.00 [10:12:09]line Безнал.: 0.00 [10:12:09]line Место: АЗС № 90 "Партнер Нефть" [10:12:09]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:12:09]line СНО: Общий режим [10:12:09]line Чек 53 23.09.2024 10:12 [10:12:09]line Смена: 472 ФФД: 1.0 [10:12:09]line ЗНМ: 0300000120 [10:12:09]line РНМ: 0000000000091831 [10:12:09]line Версия ККМ: 001 [10:12:09]line ФМ: 0000000000871830 [10:12:09]line ФД: 115570 [10:12:09]line ФПД: 12047849668209 [10:12:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T101208&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115570&fm=12047849668209&tin=02508201610067®Number=0000000000091831&sum=25900 [10:12:09]line 0 [10:12:09]written 0, free lines is 4095 [10:12:09]Connected sock=10 [10:12: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 38 33 30 B9 01 00 00 98 05 B1 01 48 DA 5A 03 01 00 03 00 A5 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F8 3E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 72 C3 01 00 35 04 06 00 0A F5 1B CC BE 71 3A 94 C8 EA 8A 26 55 30 [10:12:10]Write to MH i2c: 01 00 00 19 05 1E [10:12:10]Write i2c OK [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: 01 [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: 01 07 00 [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 E5 0B 15 [10:12:10]RasterBufferAndPrint [10:12:10]line [10:12:10]line [10:12:10]line [10:12:10]line [10:12:10]line [10:12:10]written 0, free lines is 3048 [10:12:10]MH_Cut [10:12:10]Write to MH i2c: D1 01 00 20 05 01 F7 [10:12:10]Write i2c OK [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: D1 [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: D1 01 00 [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: D1 01 00 20 05 00 F6 [10:12:10]Write to MH i2c: 01 00 00 21 05 26 [10:12:10]Write i2c OK [10:12:10]MH_I2C_Read... [10:12:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F1 40 47 00 08 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 72 C3 01 00 F4 03 04 00 3B E4 F0 66 B6 04 01 00 00 D6 0C 64 EF 70 64 F6 B3 [10:12:10]CommunicateWithHost err = 0 [10:12:10]CheckOFDResponse [10:12:10]1017 (14) - 77093643461234 [10:12:10]1041 (16) - 0000000000871830 [10:12:10]1040 (4) - 115570 [10:12:10]1012 (4) - 23.09.2024 03:44 [10:12:10]1206 (1) - 0 [10:12:10]OFD Sender: Remove packet 115570 [10:12:10]ProducePacketName [10:12:10]name=ofd_packets/00115570 [10:12:10]NVStorageDeleteData [10:12:10]OFD Sender: No OFD packet to send [10:12:11]*** Cut start [10:12:11]*** Partial cut [10:12:11]*** CUTSNS_PIN = 1 [10:12:11]*** CUTSNS_PIN = 0 [10:12:11]*** Brake cut motor [10:12:12]Read from MH i2c: 01 [10:12:12]MH_I2C_Read... [10:12:12]*** Stop cut motor [10:12:12]*** Cut end [10:12:12]Read from MH i2c: 01 07 00 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: 01 07 00 21 05 00 00 00 00 00 FF 0F 3B [10:12:12]process_action close_receipt done [10:12:12]requested_data is exist [10:12:12]produce_requested_data [10:12:12]requested_item fm.sn is exist - process it [10:12:12]wFMCommunicate request_size=4 [10:12:12]MH_SAM_APDU [10:12:12]CAPDU: 80 11 00 00 [10:12:12]Write to MH i2c: E2 08 00 22 05 80 11 00 00 00 00 00 00 A1 [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:12]Read from MH i2c: E2 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 17 00 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 17 00 22 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EF [10:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:12:12]wFMCommunicate OK [10:12:12]requested_item fd.num is exist - process it [10:12:12]SAM_PROTO_GetFieldsCounters [10:12:12]wFMCommunicate request_size=4 [10:12:12]MH_SAM_APDU [10:12:12]CAPDU: 80 13 00 00 [10:12:12]Write to MH i2c: E2 08 00 23 05 80 13 00 00 00 00 00 00 A4 [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:12]Read from MH i2c: E2 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 62 00 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 62 00 23 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 72 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [10:12: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 72 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:12]wFMCommunicate OK [10:12:12]SAM_PROTO_GetFieldsCounters done [10:12:12]requested_item shift.num is exist - process it [10:12:12]requested_item shift.opened is exist - process it [10:12:12]req_shift_opened [10:12:12]FM_GetShiftState [10:12:12]SAM_PROTO_GetShiftState [10:12:12]wFMCommunicate request_size=4 [10:12:12]MH_SAM_APDU [10:12:12]CAPDU: 80 13 01 00 [10:12:12]Write to MH i2c: E2 08 00 24 05 80 13 01 00 00 00 00 00 A6 [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:12]Read from MH i2c: E2 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 0E 00 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 0E 00 24 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E7 [10:12:12]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:12:12]wFMCommunicate OK [10:12:12]SAM_PROTO_GetShiftState done [10:12:12]FM_GetShiftState done [10:12:12]req_shift_opened done [10:12:12]requested_item shift.open_date is exist - process it [10:12:12]req_shift_open_date [10:12:12]req_shift_open_date done [10:12:12]produce_requested_data done [10:12:12]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115570,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:12:12]process_action_free close_receipt [10:12:12]json_value_free [10:12:12]json_value_free done [10:12:12]process_json_proto returns [10:12:12]Send response to host [10:12:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115570,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:12:12]free response buf [10:12:12]execute_script done [10:12:12]execute_script returns [10:12:12]free content buf [10:12:12]Sock 7.Close socket [10:12:12]Sock 7.Thread stoped [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:12:59]accept exits with 9 [10:12:59]New connection [10:12:59]New thread 3067051364 created [10:12:59]Thread 3067194724 joined [10:12:59]Waiting for new connection... [10:12:59] Sock 9.Parse request [10:12:59]Sock 9.Check first char [10:12:59]Sock 9.First char is OK [10:12:59]request: POST /json_proto HTTP/1.0 [10:12:59]Method: POST [10:12:59]URL: /json_proto [10:12:59]Method is POST - this is cgi request [10:12:59]url: /json_proto [10:12:59]query_string will be loaded in cgi processing [10:12:59]execute_cgi json_proto POST (null) [10:12:59]execute_cgi path=json_proto method=POST [10:12:59]POST find Content-Length [10:12:59]Host: 172.17.41.136:8080 [10:12:59]Content-Length: 906 [10:12:59]Content-Type: application/json [10:12:59] [10:12:59]POST finish read [10:12:59]Found Content-Length = 906 [10:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343985", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:59]execute_script... [10:12:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343985", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:59]POST & json_proto [10:12:59]process_json_proto [10:12:59]json parsed OK: [10:12:59]protocol is kg_v1.0 [10:12:59]action value=close_receipt [10:12:59]process_action close_receipt [10:12:59]cmd_close_receipt [10:12:59]MH_GetDate [10:12:59]Write to MH i2c: F0 00 00 25 05 19 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: F0 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: F0 09 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: F0 09 00 25 05 00 2C 3F F1 66 1B D0 5A 64 8D [10:12:59]GetLastDocTimeStamp 1727086328 [10:12:59]current date 1727086380 [10:12:59]FM_GetShiftState [10:12:59]SAM_PROTO_GetShiftState [10:12:59]wFMCommunicate request_size=4 [10:12:59]MH_SAM_APDU [10:12:59]CAPDU: 80 13 01 00 [10:12:59]Write to MH i2c: E2 08 00 26 05 80 13 01 00 00 00 00 00 A8 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:59]Read from MH i2c: E2 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 0E 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 0E 00 26 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E9 [10:12:59]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:12:59]wFMCommunicate OK [10:12:59]SAM_PROTO_GetShiftState done [10:12:59]FM_GetShiftState done [10:12:59]opened in 1727052070 [10:12:59]opened+sec_in_day 1727138470 [10:12:59]quantity*price = 13000 [10:12:59]sum+1 = 13001 [10:12:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.01 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 54 23.09.2024 10:13 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115571 ФПД: 209516995946100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T101300&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115571&fm=209516995946100&tin=02508201610067®Number=0000000000091831&sum=24500 0 [10:13:00]StoreToDocumentArchive [10:13:00]shift 472 fd 115571 [10:13:00]save to /storage/0472/doc_00115571 [10:13:00]save last doc name /storage/0472/doc_00115571 to /storage/kkm_last_doc_name [10:13:00]save OK [10:13:00]Clear old archive folders... [10:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=392 [10:13:00]tlvbuf is 00978F70 [10:13:00]SAM_PROTO_ClearQueue [10:13:00]wFMCommunicate request_size=4 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 09 00 00 [10:13:00]Write to MH i2c: E2 08 00 33 05 80 09 00 00 00 00 00 00 AA [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 33 05 00 90 00 AC [10:13:00]RAPDU: 90 00 [10:13:00]wFMCommunicate OK [10:13:00]SAM_PROTO_ClearQueue done [10:13:00]KKMCreateOFDPacket [10:13:00]OFDProtocolAddRootSTLVToBuf [10:13:00]FM_MakeSignedData [10:13:00]FM_MakeSignedData [10:13:00]SAM_PROTO_SignData [10:13:00]wFMCommunicate request_size=4 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 0D 01 02 [10:13:00]Write to MH i2c: E2 08 00 34 05 80 0D 01 02 00 00 00 00 B2 [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 34 05 00 90 00 AD [10:13:00]RAPDU: 90 00 [10:13:00]wFMCommunicate OK [10:13:00]wFMCommunicate request_size=255 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [10:13:00]Write to MH i2c: E2 02 01 35 05 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 A6 [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]OFD Sender: No OFD packet to send [10:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 35 05 00 90 00 AE [10:13:01]RAPDU: 90 00 [10:13:01]wFMCommunicate OK [10:13:01]wFMCommunicate request_size=151 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 2C 3F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 73 C3 01 00 35 04 06 00 BE 8D FA 1E 26 74 [10:13:01]Write to MH i2c: E2 9A 00 36 05 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 2C 3F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 73 C3 01 00 35 04 06 00 BE 8D FA 1E 26 74 00 00 27 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 36 05 00 90 00 AF [10:13:01]RAPDU: 90 00 [10:13:01]wFMCommunicate OK [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 0D 03 02 [10:13:01]Write to MH i2c: E2 08 00 37 05 80 0D 03 02 00 00 00 00 B7 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 0B 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 0B 00 37 05 00 49 F7 62 87 A8 8E 7E 2F 90 00 C4 [10:13:01]RAPDU: 49 F7 62 87 A8 8E 7E 2F 90 00 [10:13:01]wFMCommunicate OK [10:13:01]SAM_PROTO_SignData done [10:13:01]FM_MakeSignedData done [10:13:01]CreateOFDProtocolMessage [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 11 00 00 [10:13:01]Write to MH i2c: E2 08 00 38 05 80 11 00 00 00 00 00 00 B7 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 17 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 17 00 38 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 05 [10:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:13:01]wFMCommunicate OK [10:13:01]CreateOFDProtocolMessage done [10:13:01]OFDSenderStorePacket 115571 [10:13:01]StoreOFDPacket docnum=115571 [10:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9C 01 00 00 4F E9 94 01 3D 4A 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 2C 3F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 73 C3 01 00 35 04 06 00 BE 8D FA 1E 26 74 49 F7 62 87 A8 8E 7E 2F [10:13:01]CheckFolder [10:13:01]dirname=/storage/ofd_packets [10:13:01]CheckFolder done [10:13:01]ProducePacketName [10:13:01]name=ofd_packets/00115571 [10:13:01]NVStorageSaveData ofd_packets/00115571 [10:13:01]File name is /storage/ofd_packets/00115571 [10:13:01]Write 442 bytes [10:13:01]NVStorageSaveData done [10:13:01]OFDSenderStorePacket done [10:13:01]KKMCreateOFDPacket done [10:13:01]NVStorageSaveData kkm_last_timestamp [10:13:01]File name is /storage/kkm_last_timestamp [10:13:01]Write 4 bytes [10:13:01]NVStorageSaveData done [10:13:01]ExternCall_PrintAddStr [10:13:01]wPrintStart [10:13:01]Write to MH i2c: 01 00 00 39 05 3E [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 07 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 07 00 39 05 00 00 00 00 00 FF 0F 53 [10:13:01]RasterBufferAndPrint [10:13:01]line Счет N : (3)343985 [10:13:01]line ИНН: 02508201610067 [10:13:01]line Контрольно-Кассовый Чек [10:13:01]line ПРОДАЖА [10:13:01]line Товар: 2000036220012 [10:13:01]line Кофе Капучино XL(GABB TRADE) [10:13:01]line 1.000 * 130.00 [10:13:01]line = 130.00 [10:13:01]line НДС 12% НСП 1% [10:13:01]line > о реализуемом товаре [10:13:01]line Товар: 2000036210013 [10:13:01]line Кофе Капучино (GABB TRADE) [10:13:01]line 1.000 * 115.00 [10:13:01]line = 115.00 [10:13:01]line НДС 12% НСП 1% [10:13:01]line > о реализуемом товаре [10:13:01]line ИТОГО: 245.00 [10:13:01]line НСП 1% : 2.17 [10:13:01]line НДС 12% : 26.01 [10:13:01]line Наличными: 245.00 [10:13:01]line Безнал.: 0.00 [10:13:01]line Место: АЗС № 90 "Партнер Нефть" [10:13:01]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:13:01]line СНО: Общий режим [10:13:01]line Чек 54 23.09.2024 10:13 [10:13:01]line Смена: 472 ФФД: 1.0 [10:13:01]line ЗНМ: 0300000120 [10:13:01]line РНМ: 0000000000091831 [10:13:01]line Версия ККМ: 001 [10:13:01]line ФМ: 0000000000871830 [10:13:01]line ФД: 115571 [10:13:01]line ФПД: 209516995946100 [10:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T101300&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115571&fm=209516995946100&tin=02508201610067®Number=0000000000091831&sum=24500 [10:13:01]line 0 [10:13:01]OFD Sender: Processing packet 115571 [packets to send 481, broken 480] [10:13:01]ProducePacketName [10:13:01]name=ofd_packets/00115571 [10:13:01]OFD Sender: To server: pG, [10:13:01]CommunicateWithHost lk.salyk.kg:30040 [10:13:01]ConnectInit lk.salyk.kg [10:13:01]written 0, free lines is 4095 [10:13:02]Connected sock=10 [10:13: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 38 33 30 9C 01 00 00 4F E9 94 01 3D 4A 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 2C 3F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 73 C3 01 00 35 04 06 00 BE 8D FA 1E 26 74 49 F7 62 87 A8 8E 7E 2F [10:13:02]Write to MH i2c: 01 00 00 67 05 6C [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 07 00 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 07 00 67 05 00 00 00 00 00 19 0C 98 [10:13:02]RasterBufferAndPrint [10:13:02]line [10:13:02]line [10:13:02]line [10:13:02]line [10:13:02]line [10:13:02]written 0, free lines is 3099 [10:13:02]MH_Cut [10:13:02]Write to MH i2c: D1 01 00 6E 05 01 45 [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: D1 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: D1 01 00 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: D1 01 00 6E 05 00 44 [10:13:02]Write to MH i2c: 01 00 00 6F 05 74 [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6B FD 47 00 4D 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 38 33 30 10 04 04 00 73 C3 01 00 F4 03 04 00 6F E4 F0 66 B6 04 01 00 00 32 56 7F F0 FA B6 10 5A [10:13:02]CommunicateWithHost err = 0 [10:13:02]CheckOFDResponse [10:13:02]1017 (14) - 77093643461234 [10:13:02]1041 (16) - 0000000000871830 [10:13:02]1040 (4) - 115571 [10:13:02]1012 (4) - 23.09.2024 03:45 [10:13:02]1206 (1) - 0 [10:13:02]OFD Sender: Remove packet 115571 [10:13:02]ProducePacketName [10:13:02]name=ofd_packets/00115571 [10:13:02]NVStorageDeleteData [10:13:03]OFD Sender: No OFD packet to send [10:13:03]*** Cut start [10:13:03]*** Partial cut [10:13:03]*** CUTSNS_PIN = 1 [10:13:03]*** CUTSNS_PIN = 0 [10:13:03]*** Brake cut motor [10:13:04]Read from MH i2c: 01 [10:13:04]MH_I2C_Read... [10:13:04]*** Stop cut motor [10:13:04]*** Cut end [10:13:04]Read from MH i2c: 01 07 00 [10:13:04]MH_I2C_Read... [10:13:04]Read from MH i2c: 01 07 00 6F 05 00 00 00 00 00 FF 0F 89 [10:13:04]process_action close_receipt done [10:13:04]requested_data is exist [10:13:04]produce_requested_data [10:13:04]requested_item fm.sn is exist - process it [10:13:04]wFMCommunicate request_size=4 [10:13:04]MH_SAM_APDU [10:13:04]CAPDU: 80 11 00 00 [10:13:04]Write to MH i2c: E2 08 00 70 05 80 11 00 00 00 00 00 00 EF [10:13:04]Write i2c OK [10:13:04]MH_I2C_Read... [10:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:04]Read from MH i2c: E2 [10:13:04]MH_I2C_Read... [10:13:04]Read from MH i2c: E2 17 00 [10:13:04]MH_I2C_Read... [10:13:04]Read from MH i2c: E2 17 00 70 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3D [10:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:13:04]wFMCommunicate OK [10:13:04]requested_item fd.num is exist - process it [10:13:04]SAM_PROTO_GetFieldsCounters [10:13:04]wFMCommunicate request_size=4 [10:13:04]MH_SAM_APDU [10:13:04]CAPDU: 80 13 00 00 [10:13:04]Write to MH i2c: E2 08 00 71 05 80 13 00 00 00 00 00 00 F2 [10:13:04]Write i2c OK [10:13:04]MH_I2C_Read... [10:13:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:04]Read from MH i2c: E2 [10:13:04]MH_I2C_Read... [10:13:04]Read from MH i2c: E2 62 00 [10:13:04]MH_I2C_Read... [10:13:04]Read from MH i2c: E2 62 00 71 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 73 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [10:13: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 73 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:04]wFMCommunicate OK [10:13:04]SAM_PROTO_GetFieldsCounters done [10:13:04]requested_item shift.num is exist - process it [10:13:04]requested_item shift.opened is exist - process it [10:13:04]req_shift_opened [10:13:04]FM_GetShiftState [10:13:04]SAM_PROTO_GetShiftState [10:13:04]wFMCommunicate request_size=4 [10:13:04]MH_SAM_APDU [10:13:04]CAPDU: 80 13 01 00 [10:13:04]Write to MH i2c: E2 08 00 72 05 80 13 01 00 00 00 00 00 F4 [10:13:04]Write i2c OK [10:13:04]MH_I2C_Read... [10:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:04]Read from MH i2c: E2 [10:13:04]MH_I2C_Read... [10:13:04]Read from MH i2c: E2 0E 00 [10:13:04]MH_I2C_Read... [10:13:04]Read from MH i2c: E2 0E 00 72 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 35 [10:13:04]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:13:04]wFMCommunicate OK [10:13:04]SAM_PROTO_GetShiftState done [10:13:04]FM_GetShiftState done [10:13:04]req_shift_opened done [10:13:04]requested_item shift.open_date is exist - process it [10:13:04]req_shift_open_date [10:13:04]req_shift_open_date done [10:13:04]produce_requested_data done [10:13:04]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115571,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:13:04]process_action_free close_receipt [10:13:04]json_value_free [10:13:04]json_value_free done [10:13:04]process_json_proto returns [10:13:04]Send response to host [10:13:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115571,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:13:04]free response buf [10:13:04]execute_script done [10:13:04]execute_script returns [10:13:04]free content buf [10:13:04]Sock 9.Close socket [10:13:04]Sock 9.Thread stoped [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:23]OFD Sender: No OFD packet to send [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:06]accept exits with 7 [10:17:06]New connection [10:17:06]New thread 3067194724 created [10:17:06]Thread 3067051364 joined [10:17:06]Waiting for new connection... [10:17:06] Sock 7.Parse request [10:17:06]Sock 7.Check first char [10:17:06]Sock 7.First char is OK [10:17:06]request: POST /json_proto HTTP/1.0 [10:17:06]Method: POST [10:17:06]URL: /json_proto [10:17:06]Method is POST - this is cgi request [10:17:06]url: /json_proto [10:17:06]query_string will be loaded in cgi processing [10:17:06]execute_cgi json_proto POST (null) [10:17:06]execute_cgi path=json_proto method=POST [10:17:06]POST find Content-Length [10:17:06]Host: 172.17.41.136:8080 [10:17:06]Content-Length: 698 [10:17:06]Content-Type: application/json [10:17:06] [10:17:06]POST finish read [10:17:06]Found Content-Length = 698 [10:17:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343986", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 3.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:06]execute_script... [10:17:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343986", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 3.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:06]POST & json_proto [10:17:06]process_json_proto [10:17:06]json parsed OK: [10:17:06]protocol is kg_v1.0 [10:17:06]action value=close_receipt [10:17:06]process_action close_receipt [10:17:06]cmd_close_receipt [10:17:06]MH_GetDate [10:17:06]Write to MH i2c: F0 00 00 73 05 67 [10:17:06]Write i2c OK [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: F0 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: F0 09 00 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: F0 09 00 73 05 00 23 40 F1 66 1B D0 5A 64 D3 [10:17:06]GetLastDocTimeStamp 1727086380 [10:17:06]current date 1727086627 [10:17:06]FM_GetShiftState [10:17:06]SAM_PROTO_GetShiftState [10:17:06]wFMCommunicate request_size=4 [10:17:06]MH_SAM_APDU [10:17:06]CAPDU: 80 13 01 00 [10:17:06]Write to MH i2c: E2 08 00 74 05 80 13 01 00 00 00 00 00 F6 [10:17:06]Write i2c OK [10:17:06]MH_I2C_Read... [10:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:06]Read from MH i2c: E2 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: E2 0E 00 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: E2 0E 00 74 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 37 [10:17:06]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:17:06]wFMCommunicate OK [10:17:06]SAM_PROTO_GetShiftState done [10:17:06]FM_GetShiftState done [10:17:06]opened in 1727052070 [10:17:06]opened+sec_in_day 1727138470 [10:17:06]quantity*price = 28500 [10:17:06]sum+1 = 28501 [10:17:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 55 23.09.2024 10:17 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115572 ФПД: 211760477765688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T101707&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115572&fm=211760477765688&tin=02508201610067®Number=0000000000091831&sum=28500 0 [10:17:07]StoreToDocumentArchive [10:17:07]shift 472 fd 115572 [10:17:07]save to /storage/0472/doc_00115572 [10:17:07]save last doc name /storage/0472/doc_00115572 to /storage/kkm_last_doc_name [10:17:07]save OK [10:17:07]Clear old archive folders... [10:17:07]ProcessDocumentItem done err = 0, tmpTLVsize=299 [10:17:07]tlvbuf is 0096BF20 [10:17:07]SAM_PROTO_ClearQueue [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 09 00 00 [10:17:07]Write to MH i2c: E2 08 00 81 05 80 09 00 00 00 00 00 00 F8 [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 03 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 03 00 81 05 00 90 00 FA [10:17:07]RAPDU: 90 00 [10:17:07]wFMCommunicate OK [10:17:07]SAM_PROTO_ClearQueue done [10:17:07]KKMCreateOFDPacket [10:17:07]OFDProtocolAddRootSTLVToBuf [10:17:07]FM_MakeSignedData [10:17:07]FM_MakeSignedData [10:17:07]SAM_PROTO_SignData [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 0D 01 02 [10:17:07]Write to MH i2c: E2 08 00 82 05 80 0D 01 02 00 00 00 00 00 [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 03 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 03 00 82 05 00 90 00 FB [10:17:07]RAPDU: 90 00 [10:17:07]wFMCommunicate OK [10:17:07]wFMCommunicate request_size=255 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 23 40 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [10:17:07]Write to MH i2c: E2 02 01 83 05 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 23 40 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 EA [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 03 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 03 00 83 05 00 90 00 FC [10:17:07]RAPDU: 90 00 [10:17:07]wFMCommunicate OK [10:17:07]wFMCommunicate request_size=58 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 74 C3 01 00 35 04 06 00 C0 98 54 0E 00 38 [10:17:07]Write to MH i2c: E2 3D 00 84 05 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 74 C3 01 00 35 04 06 00 C0 98 54 0E 00 38 00 00 14 [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 03 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 03 00 84 05 00 90 00 FD [10:17:07]RAPDU: 90 00 [10:17:07]wFMCommunicate OK [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 0D 03 02 [10:17:07]Write to MH i2c: E2 08 00 85 05 80 0D 03 02 00 00 00 00 05 [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 0B 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 0B 00 85 05 00 E0 36 4F 61 22 86 D3 9E 90 00 E5 [10:17:07]RAPDU: E0 36 4F 61 22 86 D3 9E 90 00 [10:17:07]wFMCommunicate OK [10:17:07]SAM_PROTO_SignData done [10:17:07]FM_MakeSignedData done [10:17:07]CreateOFDProtocolMessage [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 11 00 00 [10:17:07]Write to MH i2c: E2 08 00 86 05 80 11 00 00 00 00 00 00 05 [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:08]Read from MH i2c: E2 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 17 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 17 00 86 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 53 [10:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:17:08]wFMCommunicate OK [10:17:08]CreateOFDProtocolMessage done [10:17:08]OFDSenderStorePacket 115572 [10:17:08]StoreOFDPacket docnum=115572 [10:17:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3F 01 00 00 27 D2 37 01 A1 91 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 23 40 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 74 C3 01 00 35 04 06 00 C0 98 54 0E 00 38 E0 36 4F 61 22 86 D3 9E [10:17:08]CheckFolder [10:17:08]dirname=/storage/ofd_packets [10:17:08]CheckFolder done [10:17:08]ProducePacketName [10:17:08]name=ofd_packets/00115572 [10:17:08]NVStorageSaveData ofd_packets/00115572 [10:17:08]File name is /storage/ofd_packets/00115572 [10:17:08]Write 349 bytes [10:17:08]NVStorageSaveData done [10:17:08]OFDSenderStorePacket done [10:17:08]KKMCreateOFDPacket done [10:17:08]NVStorageSaveData kkm_last_timestamp [10:17:08]File name is /storage/kkm_last_timestamp [10:17:08]Write 4 bytes [10:17:08]NVStorageSaveData done [10:17:08]ExternCall_PrintAddStr [10:17:08]wPrintStart [10:17:08]Write to MH i2c: 01 00 00 87 05 8C [10:17:08]OFD Sender: Processing packet 115572 [packets to send 481, broken 480] [10:17:08]ProducePacketName [10:17:08]name=ofd_packets/00115572 [10:17:08]OFD Sender: To server: pG, [10:17:08]CommunicateWithHost lk.salyk.kg:30040 [10:17:08]ConnectInit lk.salyk.kg [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 07 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 07 00 87 05 00 00 00 00 00 FF 0F A1 [10:17:08]RasterBufferAndPrint [10:17:08]line Счет N : (3)343986 [10:17:08]line ИНН: 02508201610067 [10:17:08]line Контрольно-Кассовый Чек [10:17:08]line ПРОДАЖА [10:17:08]line Товар: 4700000480364 [10:17:08]line Напиток энерг Nitro экзотик 0.45 ж/б [10:17:08]line 3.000 * 95.00 [10:17:08]line = 285.00 [10:17:08]line НДС 12% НСП 1% [10:17:08]line > о реализуемом товаре [10:17:08]line ИТОГО: 285.00 [10:17:08]line НСП 1% : 2.52 [10:17:08]line НДС 12% : 30.26 [10:17:08]line Наличными: 285.00 [10:17:08]line Безнал.: 0.00 [10:17:08]line Место: АЗС № 90 "Партнер Нефть" [10:17:08]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:17:08]line СНО: Общий режим [10:17:08]line Чек 55 23.09.2024 10:17 [10:17:08]line Смена: 472 ФФД: 1.0 [10:17:08]line ЗНМ: 0300000120 [10:17:08]line РНМ: 0000000000091831 [10:17:08]line Версия ККМ: 001 [10:17:08]line ФМ: 0000000000871830 [10:17:08]line ФД: 115572 [10:17:08]line ФПД: 211760477765688 [10:17:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T101707&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115572&fm=211760477765688&tin=02508201610067®Number=0000000000091831&sum=28500 [10:17:08]line 0 [10:17:08]Connected sock=10 [10:17:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3F 01 00 00 27 D2 37 01 A1 91 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 23 40 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 74 C3 01 00 35 04 06 00 C0 98 54 0E 00 38 E0 36 4F 61 22 86 D3 9E [10:17:08]written 0, free lines is 4095 [10:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 8F D5 47 00 2F 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 38 33 30 10 04 04 00 74 C3 01 00 F4 03 04 00 66 E5 F0 66 B6 04 01 00 00 76 12 92 92 0D A6 80 D0 [10:17:08]CommunicateWithHost err = 0 [10:17:08]CheckOFDResponse [10:17:08]1017 (14) - 77093643461234 [10:17:08]1041 (16) - 0000000000871830 [10:17:08]1040 (4) - 115572 [10:17:08]1012 (4) - 23.09.2024 03:49 [10:17:08]1206 (1) - 0 [10:17:08]OFD Sender: Remove packet 115572 [10:17:08]ProducePacketName [10:17:08]name=ofd_packets/00115572 [10:17:08]NVStorageDeleteData [10:17:08]Write to MH i2c: 01 00 00 AF 05 B4 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 07 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 07 00 AF 05 00 00 00 00 00 63 0C 2A [10:17:08]RasterBufferAndPrint [10:17:08]line [10:17:08]line [10:17:08]line [10:17:08]line [10:17:08]line [10:17:08]written 0, free lines is 3175 [10:17:08]MH_Cut [10:17:08]Write to MH i2c: D1 01 00 B6 05 01 8D [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: D1 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: D1 01 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: D1 01 00 B6 05 00 8C [10:17:08]Write to MH i2c: 01 00 00 B7 05 BC [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:09]OFD Sender: No OFD packet to send [10:17:10]*** Cut start [10:17:10]*** Partial cut [10:17:10]*** CUTSNS_PIN = 1 [10:17:10]*** CUTSNS_PIN = 0 [10:17:10]*** Brake cut motor [10:17:10]Read from MH i2c: 01 [10:17:10]MH_I2C_Read... [10:17:10]*** Stop cut motor [10:17:10]*** Cut end [10:17:10]Read from MH i2c: 01 07 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: 01 07 00 B7 05 00 00 00 00 00 FF 0F D1 [10:17:10]process_action close_receipt done [10:17:10]requested_data is exist [10:17:10]produce_requested_data [10:17:10]requested_item fm.sn is exist - process it [10:17:10]wFMCommunicate request_size=4 [10:17:10]MH_SAM_APDU [10:17:10]CAPDU: 80 11 00 00 [10:17:10]Write to MH i2c: E2 08 00 B8 05 80 11 00 00 00 00 00 00 37 [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:10]Read from MH i2c: E2 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 17 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 17 00 B8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 85 [10:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:17:10]wFMCommunicate OK [10:17:10]requested_item fd.num is exist - process it [10:17:10]SAM_PROTO_GetFieldsCounters [10:17:10]wFMCommunicate request_size=4 [10:17:10]MH_SAM_APDU [10:17:10]CAPDU: 80 13 00 00 [10:17:10]Write to MH i2c: E2 08 00 B9 05 80 13 00 00 00 00 00 00 3A [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:10]Read from MH i2c: E2 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 62 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 62 00 B9 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 74 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [10:17:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 74 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:10]wFMCommunicate OK [10:17:10]SAM_PROTO_GetFieldsCounters done [10:17:10]requested_item shift.num is exist - process it [10:17:10]requested_item shift.opened is exist - process it [10:17:10]req_shift_opened [10:17:10]FM_GetShiftState [10:17:10]SAM_PROTO_GetShiftState [10:17:10]wFMCommunicate request_size=4 [10:17:10]MH_SAM_APDU [10:17:10]CAPDU: 80 13 01 00 [10:17:10]Write to MH i2c: E2 08 00 BA 05 80 13 01 00 00 00 00 00 3C [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:11]Read from MH i2c: E2 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: E2 0E 00 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: E2 0E 00 BA 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7D [10:17:11]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:17:11]wFMCommunicate OK [10:17:11]SAM_PROTO_GetShiftState done [10:17:11]FM_GetShiftState done [10:17:11]req_shift_opened done [10:17:11]requested_item shift.open_date is exist - process it [10:17:11]req_shift_open_date [10:17:11]req_shift_open_date done [10:17:11]produce_requested_data done [10:17:11]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115572,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:17:11]process_action_free close_receipt [10:17:11]json_value_free [10:17:11]json_value_free done [10:17:11]process_json_proto returns [10:17:11]Send response to host [10:17:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115572,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:17:11]free response buf [10:17:11]execute_script done [10:17:11]execute_script returns [10:17:11]free content buf [10:17:11]Sock 7.Close socket [10:17:11]Sock 7.Thread stoped [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:28]accept exits with 9 [10:22:28]New connection [10:22:28]New thread 3067051364 created [10:22:28]Thread 3067194724 joined [10:22:28]Waiting for new connection... [10:22:28] Sock 9.Parse request [10:22:28]Sock 9.Check first char [10:22:28]Sock 9.First char is OK [10:22:28]request: POST /json_proto HTTP/1.0 [10:22:28]Method: POST [10:22:28]URL: /json_proto [10:22:28]Method is POST - this is cgi request [10:22:28]url: /json_proto [10:22:28]query_string will be loaded in cgi processing [10:22:28]execute_cgi json_proto POST (null) [10:22:28]execute_cgi path=json_proto method=POST [10:22:28]POST find Content-Length [10:22:28]Host: 172.17.41.136:8080 [10:22:28]Content-Length: 649 [10:22:28]Content-Type: application/json [10:22:28] [10:22:28]POST finish read [10:22:28]Found Content-Length = 649 [10:22:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343987", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:28]execute_script... [10:22:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343987", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:28]POST & json_proto [10:22:28]process_json_proto [10:22:28]json parsed OK: [10:22:28]protocol is kg_v1.0 [10:22:28]action value=close_receipt [10:22:28]process_action close_receipt [10:22:28]cmd_close_receipt [10:22:28]MH_GetDate [10:22:28]Write to MH i2c: F0 00 00 BB 05 AF [10:22:28]Write i2c OK [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: F0 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: F0 09 00 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: F0 09 00 BB 05 00 65 41 F1 66 1B D0 5A 64 5E [10:22:28]GetLastDocTimeStamp 1727086627 [10:22:28]current date 1727086949 [10:22:28]FM_GetShiftState [10:22:28]SAM_PROTO_GetShiftState [10:22:28]wFMCommunicate request_size=4 [10:22:28]MH_SAM_APDU [10:22:28]CAPDU: 80 13 01 00 [10:22:28]Write to MH i2c: E2 08 00 BC 05 80 13 01 00 00 00 00 00 3E [10:22:28]Write i2c OK [10:22:28]MH_I2C_Read... [10:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:28]Read from MH i2c: E2 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 0E 00 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 0E 00 BC 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7F [10:22:28]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:22:28]wFMCommunicate OK [10:22:28]SAM_PROTO_GetShiftState done [10:22:28]FM_GetShiftState done [10:22:28]opened in 1727052070 [10:22:28]opened+sec_in_day 1727138470 [10:22:28]quantity*price = 17000 [10:22:28]sum+1 = 17001 [10:22:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 56 23.09.2024 10:22 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115573 ФПД: 222347494750117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T102229&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115573&fm=222347494750117&tin=02508201610067®Number=0000000000091831&sum=17000 0 [10:22:29]StoreToDocumentArchive [10:22:29]shift 472 fd 115573 [10:22:29]save to /storage/0472/doc_00115573 [10:22:29]save last doc name /storage/0472/doc_00115573 to /storage/kkm_last_doc_name [10:22:29]save OK [10:22:29]Clear old archive folders... [10:22:29]ProcessDocumentItem done err = 0, tmpTLVsize=277 [10:22:29]tlvbuf is 0093D540 [10:22:29]SAM_PROTO_ClearQueue [10:22:29]wFMCommunicate request_size=4 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 09 00 00 [10:22:29]Write to MH i2c: E2 08 00 C9 05 80 09 00 00 00 00 00 00 40 [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 C9 05 00 90 00 42 [10:22:29]RAPDU: 90 00 [10:22:29]wFMCommunicate OK [10:22:29]SAM_PROTO_ClearQueue done [10:22:29]KKMCreateOFDPacket [10:22:29]OFDProtocolAddRootSTLVToBuf [10:22:29]FM_MakeSignedData [10:22:29]FM_MakeSignedData [10:22:29]SAM_PROTO_SignData [10:22:29]wFMCommunicate request_size=4 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 0D 01 02 [10:22:29]Write to MH i2c: E2 08 00 CA 05 80 0D 01 02 00 00 00 00 48 [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 CA 05 00 90 00 43 [10:22:29]RAPDU: 90 00 [10:22:29]wFMCommunicate OK [10:22:29]wFMCommunicate request_size=255 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 65 41 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 [10:22:29]Write to MH i2c: E2 02 01 CB 05 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 65 41 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 00 00 82 [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]OFD Sender: No OFD packet to send [10:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 03 00 CB 05 00 90 00 44 [10:22:29]RAPDU: 90 00 [10:22:29]wFMCommunicate OK [10:22:29]wFMCommunicate request_size=36 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 75 C3 01 00 35 04 06 00 CA 39 4F 70 F7 A5 [10:22:29]Write to MH i2c: E2 27 00 CC 05 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 75 C3 01 00 35 04 06 00 CA 39 4F 70 F7 A5 00 00 02 [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:30]Read from MH i2c: E2 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 03 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 03 00 CC 05 00 90 00 45 [10:22:30]RAPDU: 90 00 [10:22:30]wFMCommunicate OK [10:22:30]wFMCommunicate request_size=4 [10:22:30]MH_SAM_APDU [10:22:30]CAPDU: 80 0D 03 02 [10:22:30]Write to MH i2c: E2 08 00 CD 05 80 0D 03 02 00 00 00 00 4D [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:30]Read from MH i2c: E2 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 0B 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 0B 00 CD 05 00 62 2B 69 73 BD E4 CE 12 90 00 38 [10:22:30]RAPDU: 62 2B 69 73 BD E4 CE 12 90 00 [10:22:30]wFMCommunicate OK [10:22:30]SAM_PROTO_SignData done [10:22:30]FM_MakeSignedData done [10:22:30]CreateOFDProtocolMessage [10:22:30]wFMCommunicate request_size=4 [10:22:30]MH_SAM_APDU [10:22:30]CAPDU: 80 11 00 00 [10:22:30]Write to MH i2c: E2 08 00 CE 05 80 11 00 00 00 00 00 00 4D [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:30]Read from MH i2c: E2 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 17 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 17 00 CE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9B [10:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:22:30]wFMCommunicate OK [10:22:30]CreateOFDProtocolMessage done [10:22:30]OFDSenderStorePacket 115573 [10:22:30]StoreOFDPacket docnum=115573 [10:22:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 29 01 00 00 14 54 21 01 D2 B1 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 65 41 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 75 C3 01 00 35 04 06 00 CA 39 4F 70 F7 A5 62 2B 69 73 BD E4 CE 12 [10:22:30]CheckFolder [10:22:30]dirname=/storage/ofd_packets [10:22:30]CheckFolder done [10:22:30]ProducePacketName [10:22:30]name=ofd_packets/00115573 [10:22:30]NVStorageSaveData ofd_packets/00115573 [10:22:30]File name is /storage/ofd_packets/00115573 [10:22:30]Write 327 bytes [10:22:30]NVStorageSaveData done [10:22:30]OFDSenderStorePacket done [10:22:30]KKMCreateOFDPacket done [10:22:30]NVStorageSaveData kkm_last_timestamp [10:22:30]File name is /storage/kkm_last_timestamp [10:22:30]Write 4 bytes [10:22:30]NVStorageSaveData done [10:22:30]ExternCall_PrintAddStr [10:22:30]wPrintStart [10:22:30]Write to MH i2c: 01 00 00 CF 05 D4 [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 07 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 07 00 CF 05 00 00 00 00 00 FF 0F E9 [10:22:30]RasterBufferAndPrint [10:22:30]line Счет N : (3)343987 [10:22:30]line ИНН: 02508201610067 [10:22:30]line Контрольно-Кассовый Чек [10:22:30]line ПРОДАЖА [10:22:30]line Товар: 8901086040008 [10:22:30]line Жид/ст ПН летняя 4,5л [10:22:30]line 1.000 * 170.00 [10:22:30]line = 170.00 [10:22:30]line НДС 12% НСП 1% [10:22:30]line > о реализуемом товаре [10:22:30]line ИТОГО: 170.00 [10:22:30]line НСП 1% : 1.50 [10:22:30]line НДС 12% : 18.05 [10:22:30]line Наличными: 170.00 [10:22:30]line Безнал.: 0.00 [10:22:30]line Место: АЗС № 90 "Партнер Нефть" [10:22:30]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:22:30]line СНО: Общий режим [10:22:30]line Чек 56 23.09.2024 10:22 [10:22:30]line Смена: 472 ФФД: 1.0 [10:22:30]line ЗНМ: 0300000120 [10:22:30]line РНМ: 0000000000091831 [10:22:30]line Версия ККМ: 001 [10:22:30]line ФМ: 0000000000871830 [10:22:30]line ФД: 115573 [10:22:30]line ФПД: 222347494750117 [10:22:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T102229&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115573&fm=222347494750117&tin=02508201610067®Number=0000000000091831&sum=17000 [10:22:30]line 0 [10:22:30]OFD Sender: Processing packet 115573 [packets to send 481, broken 480] [10:22:30]ProducePacketName [10:22:30]name=ofd_packets/00115573 [10:22:30]OFD Sender: To server: pG, [10:22:30]CommunicateWithHost lk.salyk.kg:30040 [10:22:30]ConnectInit lk.salyk.kg [10:22:30]written 0, free lines is 4095 [10:22:30]Connected sock=10 [10:22: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 38 33 30 29 01 00 00 14 54 21 01 D2 B1 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 65 41 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 75 C3 01 00 35 04 06 00 CA 39 4F 70 F7 A5 62 2B 69 73 BD E4 CE 12 [10:22:30]Write to MH i2c: 01 00 00 F6 05 FB [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 07 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 07 00 F6 05 00 00 00 00 00 84 0C 92 [10:22:30]RasterBufferAndPrint [10:22:30]line [10:22:30]line [10:22:30]line [10:22:30]line [10:22:30]line [10:22:30]written 0, free lines is 3210 [10:22:30]MH_Cut [10:22:30]Write to MH i2c: D1 01 00 FD 05 01 D4 [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: D1 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: D1 01 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: D1 01 00 FD 05 00 D3 [10:22:30]Write to MH i2c: 01 00 00 FE 05 03 [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 72 11 47 00 24 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 75 C3 01 00 F4 03 04 00 A8 E6 F0 66 B6 04 01 00 00 B5 18 2C 83 01 DF 6A 03 [10:22:31]CommunicateWithHost err = 0 [10:22:31]CheckOFDResponse [10:22:31]1017 (14) - 77093643461234 [10:22:31]1041 (16) - 0000000000871830 [10:22:31]1040 (4) - 115573 [10:22:31]1012 (4) - 23.09.2024 03:55 [10:22:31]1206 (1) - 0 [10:22:31]OFD Sender: Remove packet 115573 [10:22:31]ProducePacketName [10:22:31]name=ofd_packets/00115573 [10:22:31]NVStorageDeleteData [10:22:31]OFD Sender: No OFD packet to send [10:22:32]*** Cut start [10:22:32]*** Partial cut [10:22:32]*** CUTSNS_PIN = 1 [10:22:32]*** CUTSNS_PIN = 0 [10:22:32]*** Brake cut motor [10:22:32]Read from MH i2c: 01 [10:22:32]MH_I2C_Read... [10:22:32]*** Stop cut motor [10:22:32]*** Cut end [10:22:32]Read from MH i2c: 01 07 00 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: 01 07 00 FE 05 00 00 00 00 00 FF 0F 18 [10:22:32]process_action close_receipt done [10:22:32]requested_data is exist [10:22:32]produce_requested_data [10:22:32]requested_item fm.sn is exist - process it [10:22:32]wFMCommunicate request_size=4 [10:22:32]MH_SAM_APDU [10:22:32]CAPDU: 80 11 00 00 [10:22:32]Write to MH i2c: E2 08 00 FF 05 80 11 00 00 00 00 00 00 7E [10:22:32]Write i2c OK [10:22:32]MH_I2C_Read... [10:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:32]Read from MH i2c: E2 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 17 00 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 17 00 FF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CC [10:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:22:32]wFMCommunicate OK [10:22:32]requested_item fd.num is exist - process it [10:22:32]SAM_PROTO_GetFieldsCounters [10:22:32]wFMCommunicate request_size=4 [10:22:32]MH_SAM_APDU [10:22:32]CAPDU: 80 13 00 00 [10:22:32]Write to MH i2c: E2 08 00 00 06 80 13 00 00 00 00 00 00 82 [10:22:32]Write i2c OK [10:22:32]MH_I2C_Read... [10:22:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:32]Read from MH i2c: E2 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 62 00 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 62 00 00 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 75 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [10:22:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 75 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:32]wFMCommunicate OK [10:22:32]SAM_PROTO_GetFieldsCounters done [10:22:32]requested_item shift.num is exist - process it [10:22:32]requested_item shift.opened is exist - process it [10:22:32]req_shift_opened [10:22:32]FM_GetShiftState [10:22:32]SAM_PROTO_GetShiftState [10:22:32]wFMCommunicate request_size=4 [10:22:32]MH_SAM_APDU [10:22:32]CAPDU: 80 13 01 00 [10:22:32]Write to MH i2c: E2 08 00 01 06 80 13 01 00 00 00 00 00 84 [10:22:33]Write i2c OK [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 [10:22:33]MH_I2C_Read... [10:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:33]Read from MH i2c: E2 0E 00 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 0E 00 01 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C5 [10:22:33]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:22:33]wFMCommunicate OK [10:22:33]SAM_PROTO_GetShiftState done [10:22:33]FM_GetShiftState done [10:22:33]req_shift_opened done [10:22:33]requested_item shift.open_date is exist - process it [10:22:33]req_shift_open_date [10:22:33]req_shift_open_date done [10:22:33]produce_requested_data done [10:22:33]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115573,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:22:33]process_action_free close_receipt [10:22:33]json_value_free [10:22:33]json_value_free done [10:22:33]process_json_proto returns [10:22:33]Send response to host [10:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115573,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:22:33]free response buf [10:22:33]execute_script done [10:22:33]execute_script returns [10:22:33]free content buf [10:22:33]Sock 9.Close socket [10:22:33]Sock 9.Thread stoped [10:22:36]OFD Sender: No OFD packet to send [10:22:39]accept exits with 7 [10:22:39]New connection [10:22:39]New thread 3067194724 created [10:22:39]Thread 3067051364 joined [10:22:39]Waiting for new connection... [10:22:39] Sock 7.Parse request [10:22:39]Sock 7.Check first char [10:22:39]Sock 7.First char is OK [10:22:39]request: POST /json_proto HTTP/1.0 [10:22:39]Method: POST [10:22:39]URL: /json_proto [10:22:39]Method is POST - this is cgi request [10:22:39]url: /json_proto [10:22:39]query_string will be loaded in cgi processing [10:22:39]execute_cgi json_proto POST (null) [10:22:39]execute_cgi path=json_proto method=POST [10:22:39]POST find Content-Length [10:22:39]Host: 172.17.41.136:8080 [10:22:39]Content-Length: 644 [10:22:39]Content-Type: application/json [10:22:39] [10:22:39]POST finish read [10:22:39]Found Content-Length = 644 [10:22:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343988", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:39]execute_script... [10:22:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343988", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:39]POST & json_proto [10:22:39]process_json_proto [10:22:39]json parsed OK: [10:22:39]protocol is kg_v1.0 [10:22:39]action value=close_receipt [10:22:39]process_action close_receipt [10:22:39]cmd_close_receipt [10:22:39]MH_GetDate [10:22:39]Write to MH i2c: F0 00 00 02 06 F7 [10:22:39]Write i2c OK [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: F0 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: F0 09 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: F0 09 00 02 06 00 70 41 F1 66 1B D0 5A 64 B1 [10:22:39]GetLastDocTimeStamp 1727086949 [10:22:39]current date 1727086960 [10:22:39]FM_GetShiftState [10:22:39]SAM_PROTO_GetShiftState [10:22:39]wFMCommunicate request_size=4 [10:22:39]MH_SAM_APDU [10:22:39]CAPDU: 80 13 01 00 [10:22:39]Write to MH i2c: E2 08 00 03 06 80 13 01 00 00 00 00 00 86 [10:22:39]Write i2c OK [10:22:39]MH_I2C_Read... [10:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:39]Read from MH i2c: E2 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 0E 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 0E 00 03 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C7 [10:22:39]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:22:39]wFMCommunicate OK [10:22:39]SAM_PROTO_GetShiftState done [10:22:39]FM_GetShiftState done [10:22:39]opened in 1727052070 [10:22:39]opened+sec_in_day 1727138470 [10:22:39]quantity*price = 23000 [10:22:39]sum+1 = 23001 [10:22:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 57 23.09.2024 10:22 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115574 ФПД: 281160478809411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T102240&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115574&fm=281160478809411&tin=02508201610067®Number=0000000000091831&sum=23000 0 [10:22:40]StoreToDocumentArchive [10:22:40]shift 472 fd 115574 [10:22:40]save to /storage/0472/doc_00115574 [10:22:40]save last doc name /storage/0472/doc_00115574 to /storage/kkm_last_doc_name [10:22:40]save OK [10:22:40]Clear old archive folders... [10:22:40]ProcessDocumentItem done err = 0, tmpTLVsize=280 [10:22:40]tlvbuf is 0093F2B0 [10:22:40]SAM_PROTO_ClearQueue [10:22:40]wFMCommunicate request_size=4 [10:22:40]MH_SAM_APDU [10:22:40]CAPDU: 80 09 00 00 [10:22:40]Write to MH i2c: E2 08 00 10 06 80 09 00 00 00 00 00 00 88 [10:22:40]Write i2c OK [10:22:40]MH_I2C_Read... [10:22:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:40]Read from MH i2c: E2 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 03 00 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 03 00 10 06 00 90 00 8A [10:22:40]RAPDU: 90 00 [10:22:40]wFMCommunicate OK [10:22:40]SAM_PROTO_ClearQueue done [10:22:40]KKMCreateOFDPacket [10:22:40]OFDProtocolAddRootSTLVToBuf [10:22:40]FM_MakeSignedData [10:22:40]FM_MakeSignedData [10:22:40]SAM_PROTO_SignData [10:22:40]wFMCommunicate request_size=4 [10:22:40]MH_SAM_APDU [10:22:40]CAPDU: 80 0D 01 02 [10:22:40]Write to MH i2c: E2 08 00 11 06 80 0D 01 02 00 00 00 00 90 [10:22:40]Write i2c OK [10:22:40]MH_I2C_Read... [10:22:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:40]Read from MH i2c: E2 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 03 00 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 03 00 11 06 00 90 00 8B [10:22:40]RAPDU: 90 00 [10:22:40]wFMCommunicate OK [10:22:40]wFMCommunicate request_size=255 [10:22:40]MH_SAM_APDU [10:22:40]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 70 41 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 [10:22:40]Write to MH i2c: E2 02 01 12 06 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 70 41 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 00 00 4D [10:22:40]Write i2c OK [10:22:40]MH_I2C_Read... [10:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:40]Read from MH i2c: E2 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 03 00 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 03 00 12 06 00 90 00 8C [10:22:40]RAPDU: 90 00 [10:22:40]wFMCommunicate OK [10:22:40]wFMCommunicate request_size=39 [10:22:40]MH_SAM_APDU [10:22:40]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 76 C3 01 00 35 04 06 00 FF B6 C6 76 DD 43 [10:22:40]Write to MH i2c: E2 2A 00 13 06 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 76 C3 01 00 35 04 06 00 FF B6 C6 76 DD 43 00 00 94 [10:22:40]Write i2c OK [10:22:40]MH_I2C_Read... [10:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:40]Read from MH i2c: E2 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 03 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 03 00 13 06 00 90 00 8D [10:22:41]RAPDU: 90 00 [10:22:41]wFMCommunicate OK [10:22:41]wFMCommunicate request_size=4 [10:22:41]MH_SAM_APDU [10:22:41]CAPDU: 80 0D 03 02 [10:22:41]Write to MH i2c: E2 08 00 14 06 80 0D 03 02 00 00 00 00 95 [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:41]Read from MH i2c: E2 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 0B 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 0B 00 14 06 00 A2 FC 21 25 73 17 E9 FB 90 00 E8 [10:22:41]RAPDU: A2 FC 21 25 73 17 E9 FB 90 00 [10:22:41]wFMCommunicate OK [10:22:41]SAM_PROTO_SignData done [10:22:41]FM_MakeSignedData done [10:22:41]CreateOFDProtocolMessage [10:22:41]wFMCommunicate request_size=4 [10:22:41]MH_SAM_APDU [10:22:41]CAPDU: 80 11 00 00 [10:22:41]Write to MH i2c: E2 08 00 15 06 80 11 00 00 00 00 00 00 95 [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:41]Read from MH i2c: E2 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 17 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 17 00 15 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E3 [10:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:22:41]wFMCommunicate OK [10:22:41]CreateOFDProtocolMessage done [10:22:41]OFDSenderStorePacket 115574 [10:22:41]StoreOFDPacket docnum=115574 [10:22:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2C 01 00 00 6B D2 24 01 51 97 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 70 41 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 76 C3 01 00 35 04 06 00 FF B6 C6 76 DD 43 A2 FC 21 25 73 17 E9 FB [10:22:41]CheckFolder [10:22:41]dirname=/storage/ofd_packets [10:22:41]CheckFolder done [10:22:41]ProducePacketName [10:22:41]name=ofd_packets/00115574 [10:22:41]NVStorageSaveData ofd_packets/00115574 [10:22:41]File name is /storage/ofd_packets/00115574 [10:22:41]Write 330 bytes [10:22:41]NVStorageSaveData done [10:22:41]OFDSenderStorePacket done [10:22:41]KKMCreateOFDPacket done [10:22:41]NVStorageSaveData kkm_last_timestamp [10:22:41]File name is /storage/kkm_last_timestamp [10:22:41]Write 4 bytes [10:22:41]NVStorageSaveData done [10:22:41]ExternCall_PrintAddStr [10:22:41]wPrintStart [10:22:41]Write to MH i2c: 01 00 00 16 06 1C [10:22:41]OFD Sender: Processing packet 115574 [packets to send 481, broken 480] [10:22:41]ProducePacketName [10:22:41]name=ofd_packets/00115574 [10:22:41]OFD Sender: To server: pG, [10:22:41]CommunicateWithHost lk.salyk.kg:30040 [10:22:41]ConnectInit lk.salyk.kg [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 07 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 07 00 16 06 00 00 00 00 00 FF 0F 31 [10:22:41]RasterBufferAndPrint [10:22:41]line Счет N : (3)343988 [10:22:41]line ИНН: 02508201610067 [10:22:41]line Контрольно-Кассовый Чек [10:22:41]line ПРОДАЖА [10:22:41]line Товар: 2000036210013 [10:22:41]line Кофе Капучино (GABB TRADE) [10:22:41]line 2.000 * 115.00 [10:22:41]line = 230.00 [10:22:41]line НДС 12% НСП 1% [10:22:41]line > о реализуемом товаре [10:22:41]line ИТОГО: 230.00 [10:22:41]line НСП 1% : 2.03 [10:22:41]line НДС 12% : 24.42 [10:22:41]line Наличными: 230.00 [10:22:41]line Безнал.: 0.00 [10:22:41]line Место: АЗС № 90 "Партнер Нефть" [10:22:41]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:22:41]line СНО: Общий режим [10:22:41]line Чек 57 23.09.2024 10:22 [10:22:41]line Смена: 472 ФФД: 1.0 [10:22:41]line ЗНМ: 0300000120 [10:22:41]line РНМ: 0000000000091831 [10:22:41]line Версия ККМ: 001 [10:22:41]line ФМ: 0000000000871830 [10:22:41]line ФД: 115574 [10:22:41]line ФПД: 281160478809411 [10:22:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T102240&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115574&fm=281160478809411&tin=02508201610067®Number=0000000000091831&sum=23000 [10:22:41]line 0 [10:22:41]written 0, free lines is 4095 [10:22:41]Write to MH i2c: 01 00 00 3D 06 43 [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 07 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 07 00 3D 06 00 00 00 00 00 75 0C CB [10:22:41]RasterBufferAndPrint [10:22:41]line [10:22:41]line [10:22:41]line [10:22:41]line [10:22:41]line [10:22:41]written 0, free lines is 3193 [10:22:41]MH_Cut [10:22:41]Write to MH i2c: D1 01 00 44 06 01 1C [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: D1 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: D1 01 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: D1 01 00 44 06 00 1B [10:22:41]Write to MH i2c: 01 00 00 45 06 4B [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:42]*** Cut start [10:22:42]*** Partial cut [10:22:42]*** CUTSNS_PIN = 1 [10:22:42]*** CUTSNS_PIN = 0 [10:22:43]*** Brake cut motor [10:22:43]Read from MH i2c: 01 [10:22:43]MH_I2C_Read... [10:22:43]*** Stop cut motor [10:22:43]*** Cut end [10:22:43]Read from MH i2c: 01 07 00 [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: 01 07 00 45 06 00 00 00 00 00 FF 0F 60 [10:22:43]process_action close_receipt done [10:22:43]requested_data is exist [10:22:43]produce_requested_data [10:22:43]requested_item fm.sn is exist - process it [10:22:43]wFMCommunicate request_size=4 [10:22:43]MH_SAM_APDU [10:22:43]CAPDU: 80 11 00 00 [10:22:43]Write to MH i2c: E2 08 00 46 06 80 11 00 00 00 00 00 00 C6 [10:22:43]Write i2c OK [10:22:43]MH_I2C_Read... [10:22:43]Connected sock=10 [10:22: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 38 33 30 2C 01 00 00 6B D2 24 01 51 97 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:43]01 Read from MH i2c: 00 E2 12 04 [10:22:43]04 MH_I2C_Read... [10:22:43]00 39 00 Read from MH i2c: 00 E2 00 F4 17 03 00 04 00 [10:22:43]70 MH_I2C_Read... [10:22:43]41 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D Read from MH i2c: 04 E2 10 17 00 00 30 46 30 06 30 30 00 30 11 30 04 30 10 30 30 00 30 30 30 30 39 30 31 30 38 30 33 30 31 30 11 04 30 10 30 00 30 30 38 30 37 31 30 38 30 30 30 30 33 30 30 30 90 30 00 38 14 37 [10:22:43]31 RAPDU: 38 11 33 04 30 10 10 04 00 04 30 00 30 76 30 C3 30 01 30 00 30 35 30 04 30 06 30 30 00 38 FF 37 B6 C6 31 76 38 DD 33 43 30 A2 FC 21 90 25 00 73 [10:22:43]17 wFMCommunicate OK [10:22:43]E9 requested_item fd.num is exist - process it [10:22:43]FB SAM_PROTO_GetFieldsCounters [10:22:43] [10:22:43]wFMCommunicate request_size=4 [10:22:43]MH_SAM_APDU [10:22:43]CAPDU: 80 13 00 00 [10:22:43]Write to MH i2c: E2 08 00 47 06 80 13 00 00 00 00 00 00 C9 [10:22:43]Write i2c OK [10:22:43]MH_I2C_Read... [10:22:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:43]Read from MH i2c: E2 [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: E2 62 00 [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: E2 62 00 47 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 76 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [10:22: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 76 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:43]wFMCommunicate OK [10:22:43]SAM_PROTO_GetFieldsCounters done [10:22:43]requested_item shift.num is exist - process it [10:22:43]requested_item shift.opened is exist - process it [10:22:43]req_shift_opened [10:22:43]FM_GetShiftState [10:22:43]SAM_PROTO_GetShiftState [10:22:43]wFMCommunicate request_size=4 [10:22:43]MH_SAM_APDU [10:22:43]CAPDU: 80 13 01 00 [10:22:43]Write to MH i2c: E2 08 00 48 06 80 13 01 00 00 00 00 00 CB [10:22:43]Write i2c OK [10:22:43]MH_I2C_Read... [10:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:43]Read from MH i2c: E2 [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: E2 0E 00 [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: E2 0E 00 48 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 0C [10:22:43]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:22:43]wFMCommunicate OK [10:22:43]SAM_PROTO_GetShiftState done [10:22:43]FM_GetShiftState done [10:22:43]req_shift_opened done [10:22:43]requested_item shift.open_date is exist - process it [10:22:43]req_shift_open_date [10:22:43]req_shift_open_date done [10:22:43]produce_requested_data done [10:22:43]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115574,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:22:43]process_action_free close_receipt [10:22:43]json_value_free [10:22:43]json_value_free done [10:22:43]process_json_proto returns [10:22:43]Send response to host [10:22:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115574,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:22:43]free response buf [10:22:43]execute_script done [10:22:43]execute_script returns [10:22:43]free content buf [10:22:43]Sock 7.Close socket [10:22:43]Sock 7.Thread stoped [10:22:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 4D 39 47 00 53 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 38 33 30 10 04 04 00 76 C3 01 00 F4 03 04 00 B5 E6 F0 66 B6 04 01 00 00 DE 97 A9 06 25 20 A2 56 [10:22:43]CommunicateWithHost err = 0 [10:22:43]CheckOFDResponse [10:22:43]1017 (14) - 77093643461234 [10:22:43]1041 (16) - 0000000000871830 [10:22:43]1040 (4) - 115574 [10:22:43]1012 (4) - 23.09.2024 03:55 [10:22:43]1206 (1) - 0 [10:22:43]OFD Sender: Remove packet 115574 [10:22:43]ProducePacketName [10:22:43]name=ofd_packets/00115574 [10:22:43]NVStorageDeleteData [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:25]OFD Sender: No OFD packet to send [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [10:29:40]OFD Sender: No OFD packet to send [10:29:45]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:33]accept exits with 9 [10:39:33]New connection [10:39:33]New thread 3067051364 created [10:39:33]Thread 3067194724 joined [10:39:33]Waiting for new connection... [10:39:33] Sock 9.Parse request [10:39:33]Sock 9.Check first char [10:39:33]Sock 9.First char is OK [10:39:33]request: POST /json_proto HTTP/1.0 [10:39:33]Method: POST [10:39:33]URL: /json_proto [10:39:33]Method is POST - this is cgi request [10:39:33]url: /json_proto [10:39:33]query_string will be loaded in cgi processing [10:39:33]execute_cgi json_proto POST (null) [10:39:33]execute_cgi path=json_proto method=POST [10:39:33]POST find Content-Length [10:39:33]Host: 172.17.41.136:8080 [10:39:33]Content-Length: 1665 [10:39:33]Content-Type: application/json [10:39:33] [10:39:33]POST finish read [10:39:33]Found Content-Length = 1665 [10:39:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343989", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 580.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:33]execute_script... [10:39:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343989", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 580.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:33]POST & json_proto [10:39:33]process_json_proto [10:39:33]json parsed OK: [10:39:33]protocol is kg_v1.0 [10:39:33]action value=close_receipt [10:39:33]process_action close_receipt [10:39:33]cmd_close_receipt [10:39:33]MH_GetDate [10:39:33]Write to MH i2c: F0 00 00 49 06 3E [10:39:33]Write i2c OK [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: F0 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: F0 09 00 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: F0 09 00 49 06 00 66 45 F1 66 1B D0 5A 64 F2 [10:39:33]GetLastDocTimeStamp 1727086960 [10:39:33]current date 1727087974 [10:39:33]FM_GetShiftState [10:39:33]SAM_PROTO_GetShiftState [10:39:33]wFMCommunicate request_size=4 [10:39:33]MH_SAM_APDU [10:39:33]CAPDU: 80 13 01 00 [10:39:33]Write to MH i2c: E2 08 00 4A 06 80 13 01 00 00 00 00 00 CD [10:39:33]Write i2c OK [10:39:33]MH_I2C_Read... [10:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:33]Read from MH i2c: E2 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 0E 00 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 0E 00 4A 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 0E [10:39:33]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:39:33]wFMCommunicate OK [10:39:33]SAM_PROTO_GetShiftState done [10:39:33]FM_GetShiftState done [10:39:33]opened in 1727052070 [10:39:33]opened+sec_in_day 1727138470 [10:39:33]quantity*price = 6500 [10:39:33]sum+1 = 6501 [10:39:33]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4650243871781 Gorilla эн нап Orange 0,45 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007400990 Семечки ДЖИНН Великан 100гр 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42069942 Жев Orbit White Fresh Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 580.00 НСП 1% : 5.13 НДС 12% : 61.59 Наличными: 580.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 58 23.09.2024 10:39 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115575 ФПД: 205363526946097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T103934&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115575&fm=205363526946097&tin=02508201610067®Number=0000000000091831&sum=58000 0 [10:39:34]StoreToDocumentArchive [10:39:34]shift 472 fd 115575 [10:39:34]save to /storage/0472/doc_00115575 [10:39:34]save last doc name /storage/0472/doc_00115575 to /storage/kkm_last_doc_name [10:39:34]save OK [10:39:34]Clear old archive folders... [10:39:34]ProcessDocumentItem done err = 0, tmpTLVsize=715 [10:39:34]tlvbuf is 009439E0 [10:39:34]SAM_PROTO_ClearQueue [10:39:34]wFMCommunicate request_size=4 [10:39:34]MH_SAM_APDU [10:39:34]CAPDU: 80 09 00 00 [10:39:34]Write to MH i2c: E2 08 00 57 06 80 09 00 00 00 00 00 00 CF [10:39:34]Write i2c OK [10:39:34]MH_I2C_Read... [10:39:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:34]Read from MH i2c: E2 [10:39:34]MH_I2C_Read... [10:39:34]Read from MH i2c: E2 03 00 [10:39:34]MH_I2C_Read... [10:39:34]Read from MH i2c: E2 03 00 57 06 00 90 00 D1 [10:39:34]RAPDU: 90 00 [10:39:34]wFMCommunicate OK [10:39:34]SAM_PROTO_ClearQueue done [10:39:34]KKMCreateOFDPacket [10:39:34]OFDProtocolAddRootSTLVToBuf [10:39:34]FM_MakeSignedData [10:39:34]FM_MakeSignedData [10:39:34]SAM_PROTO_SignData [10:39:34]wFMCommunicate request_size=4 [10:39:34]MH_SAM_APDU [10:39:34]CAPDU: 80 0D 01 02 [10:39:34]Write to MH i2c: E2 08 00 58 06 80 0D 01 02 00 00 00 00 D7 [10:39:34]Write i2c OK [10:39:34]MH_I2C_Read... [10:39:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:34]Read from MH i2c: E2 [10:39:34]MH_I2C_Read... [10:39:34]Read from MH i2c: E2 03 00 [10:39:34]MH_I2C_Read... [10:39:34]Read from MH i2c: E2 03 00 58 06 00 90 00 D2 [10:39:34]RAPDU: 90 00 [10:39:34]wFMCommunicate OK [10:39:34]wFMCommunicate request_size=255 [10:39:34]MH_SAM_APDU [10:39:34]CAPDU: 80 0D 02 02 FA 03 00 CB 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 [10:39:34]Write to MH i2c: E2 02 01 59 06 80 0D 02 02 FA 00 03 00 CB 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 00 00 88 [10:39:34]Write i2c OK [10:39:34]MH_I2C_Read... [10:39:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:34]Read from MH i2c: E2 [10:39:34]MH_I2C_Read... [10:39:34]Read from MH i2c: E2 03 00 [10:39:34]MH_I2C_Read... [10:39:34]Read from MH i2c: E2 03 00 59 06 00 90 00 D3 [10:39:34]RAPDU: 90 00 [10:39:34]wFMCommunicate OK [10:39:34]wFMCommunicate request_size=255 [10:39:34]MH_SAM_APDU [10:39:34]CAPDU: 80 0D 02 02 FA 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 [10:39:34]Write to MH i2c: E2 02 01 5A 06 80 0D 02 02 FA 00 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 00 00 FD [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 5A 06 00 90 00 D4 [10:39:35]RAPDU: 90 00 [10:39:35]wFMCommunicate OK [10:39:35]wFMCommunicate request_size=224 [10:39:35]MH_SAM_APDU [10:39:35]CAPDU: 80 0D 02 02 DB 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 66 45 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 77 C3 01 00 35 04 06 00 BA C6 EC 12 CD 31 [10:39:35]Write to MH i2c: E2 E3 00 5B 06 80 0D 02 02 DB 00 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 66 45 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 77 C3 01 00 35 04 06 00 BA C6 EC 12 CD 31 00 00 8C [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 5B 06 00 90 00 D5 [10:39:35]RAPDU: 90 00 [10:39:35]wFMCommunicate OK [10:39:35]wFMCommunicate request_size=4 [10:39:35]MH_SAM_APDU [10:39:35]CAPDU: 80 0D 03 02 [10:39:35]Write to MH i2c: E2 08 00 5C 06 80 0D 03 02 00 00 00 00 DD [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 0B 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 0B 00 5C 06 00 AB 7A 9A C8 D7 2D EF D0 90 00 28 [10:39:35]RAPDU: AB 7A 9A C8 D7 2D EF D0 90 00 [10:39:35]wFMCommunicate OK [10:39:35]SAM_PROTO_SignData done [10:39:35]FM_MakeSignedData done [10:39:35]CreateOFDProtocolMessage [10:39:35]wFMCommunicate request_size=4 [10:39:35]MH_SAM_APDU [10:39:35]CAPDU: 80 11 00 00 [10:39:35]Write to MH i2c: E2 08 00 5D 06 80 11 00 00 00 00 00 00 DD [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 17 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 17 00 5D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2B [10:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:39:35]wFMCommunicate OK [10:39:35]CreateOFDProtocolMessage done [10:39:35]OFDSenderStorePacket 115575 [10:39:35]StoreOFDPacket docnum=115575 [10:39:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 DF 02 00 00 17 B3 D7 02 0A AB 5A 03 01 00 03 00 CB 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 66 45 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 77 C3 01 00 35 04 06 00 BA C6 EC 12 CD 31 AB 7A 9A C8 D7 2D EF D0 [10:39:35]CheckFolder [10:39:35]dirname=/storage/ofd_packets [10:39:35]CheckFolder done [10:39:35]ProducePacketName [10:39:35]name=ofd_packets/00115575 [10:39:35]NVStorageSaveData ofd_packets/00115575 [10:39:35]File name is /storage/ofd_packets/00115575 [10:39:35]Write 765 bytes [10:39:35]NVStorageSaveData done [10:39:35]OFDSenderStorePacket done [10:39:35]KKMCreateOFDPacket done [10:39:35]NVStorageSaveData kkm_last_timestamp [10:39:35]File name is /storage/kkm_last_timestamp [10:39:35]Write 4 bytes [10:39:35]NVStorageSaveData done [10:39:35]ExternCall_PrintAddStr [10:39:35]wPrintStart [10:39:35]Write to MH i2c: 01 00 00 5E 06 64 [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: 01 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: 01 07 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: 01 07 00 5E 06 00 00 00 00 00 FF 0F 79 [10:39:35]RasterBufferAndPrint [10:39:35]line Счет N : (3)343989 [10:39:35]line ИНН: 02508201610067 [10:39:35]line Контрольно-Кассовый Чек [10:39:35]line ПРОДАЖА [10:39:35]line Товар: 4700040114137 [10:39:35]line Султан чай 1л. зел лимон [10:39:35]line 1.000 * 65.00 [10:39:35]line = 65.00 [10:39:35]line НДС 12% НСП 1% [10:39:35]line > о реализуемом товаре [10:39:35]line Товар: 4650243871781 [10:39:35]line Gorilla эн нап Orange 0,45 ж/б [10:39:35]line 1.000 * 90.00 [10:39:35]line = 90.00 [10:39:35]line НДС 12% НСП 1% [10:39:35]line > о реализуемом товаре [10:39:35]line Товар: 2000036230011 [10:39:35]line Кофе Латте XL(GABB TRADE) [10:39:35]line 2.000 * 130.00 [10:39:35]line = 260.00 [10:39:35]line НДС 12% НСП 1% [10:39:35]line > о реализуемом товаре [10:39:35]line Товар: 4630007400990 [10:39:35]line Семечки ДЖИНН Великан 100гр [10:39:35]line 1.000 * 120.00 [10:39:35]line = 120.00 [10:39:35]line НДС 12% НСП 1% [10:39:35]line > о реализуемом товаре [10:39:35]line Товар: 42069942 [10:39:35]line Жев Orbit White Fresh Mint [10:39:35]line 1.000 * 45.00 [10:39:35]line = 45.00 [10:39:35]line НДС 12% НСП 1% [10:39:35]line > о реализуемом товаре [10:39:35]line ИТОГО: 580.00 [10:39:35]line НСП 1% : 5.13 [10:39:35]line НДС 12% : 61.59 [10:39:35]line Наличными: 580.00 [10:39:35]line Безнал.: 0.00 [10:39:35]line Место: АЗС № 90 "Партнер Нефть" [10:39:35]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:39:35]line СНО: Общий режим [10:39:35]line Чек 58 23.09.2024 10:39 [10:39:35]line Смена: 472 ФФД: 1.0 [10:39:35]line ЗНМ: 0300000120 [10:39:35]line РНМ: 0000000000091831 [10:39:35]line Версия ККМ: 001 [10:39:35]line ФМ: 0000000000871830 [10:39:35]line ФД: 115575 [10:39:35]line ФПД: 205363526946097 [10:39:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T103934&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115575&fm=205363526946097&tin=02508201610067®Number=0000000000091831&sum=58000 [10:39:35]line 0 [10:39:35]written 0, free lines is 4095 [10:39:36]OFD Sender: Processing packet 115575 [packets to send 481, broken 480] [10:39:36]ProducePacketName [10:39:36]name=ofd_packets/00115575 [10:39:36]OFD Sender: To server: pG, [10:39:36]CommunicateWithHost lk.salyk.kg:30040 [10:39:36]ConnectInit lk.salyk.kg [10:39:36]Connected sock=10 [10:39: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 38 33 30 DF 02 00 00 17 B3 D7 02 0A AB 5A 03 01 00 03 00 CB 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 66 45 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 77 C3 01 00 35 04 06 00 BA C6 EC 12 CD 31 AB 7A 9A C8 D7 2D EF D0 [10:39:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 94 04 47 00 A5 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 38 33 30 10 04 04 00 77 C3 01 00 F4 03 04 00 A9 EA F0 66 B6 04 01 00 00 64 2F FD AB D8 55 1B 82 [10:39:36]CommunicateWithHost err = 0 [10:39:36]CheckOFDResponse [10:39:36]1017 (14) - 77093643461234 [10:39:36]1041 (16) - 0000000000871830 [10:39:36]1040 (4) - 115575 [10:39:36]1012 (4) - 23.09.2024 04:12 [10:39:36]1206 (1) - 0 [10:39:36]OFD Sender: Remove packet 115575 [10:39:36]ProducePacketName [10:39:36]name=ofd_packets/00115575 [10:39:36]NVStorageDeleteData [10:39:36]Write to MH i2c: 01 00 00 9E 06 A4 [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: 01 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: 01 07 00 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: 01 07 00 9E 06 00 00 00 00 00 78 0A 2D [10:39:36]RasterBufferAndPrint [10:39:36]line [10:39:36]line [10:39:36]line [10:39:36]line [10:39:36]line [10:39:36]written 0, free lines is 2686 [10:39:36]MH_Cut [10:39:36]Write to MH i2c: D1 01 00 A5 06 01 7D [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: D1 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: D1 01 00 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: D1 01 00 A5 06 00 7C [10:39:36]Write to MH i2c: 01 00 00 A6 06 AC [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:37]OFD Sender: No OFD packet to send [10:39:38]*** Cut start [10:39:38]*** Partial cut [10:39:38]*** CUTSNS_PIN = 1 [10:39:38]*** CUTSNS_PIN = 0 [10:39:38]*** Brake cut motor [10:39:39]Read from MH i2c: 01 [10:39:39]MH_I2C_Read... [10:39:39]*** Stop cut motor [10:39:39]*** Cut end [10:39:39]Read from MH i2c: 01 07 00 [10:39:39]MH_I2C_Read... [10:39:39]Read from MH i2c: 01 07 00 A6 06 00 00 00 00 00 FF 0F C1 [10:39:39]process_action close_receipt done [10:39:39]requested_data is exist [10:39:39]produce_requested_data [10:39:39]requested_item fm.sn is exist - process it [10:39:39]wFMCommunicate request_size=4 [10:39:39]MH_SAM_APDU [10:39:39]CAPDU: 80 11 00 00 [10:39:39]Write to MH i2c: E2 08 00 A7 06 80 11 00 00 00 00 00 00 27 [10:39:39]Write i2c OK [10:39:39]MH_I2C_Read... [10:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:39]Read from MH i2c: E2 [10:39:39]MH_I2C_Read... [10:39:39]Read from MH i2c: E2 17 00 [10:39:39]MH_I2C_Read... [10:39:39]Read from MH i2c: E2 17 00 A7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 75 [10:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:39:39]wFMCommunicate OK [10:39:39]requested_item fd.num is exist - process it [10:39:39]SAM_PROTO_GetFieldsCounters [10:39:39]wFMCommunicate request_size=4 [10:39:39]MH_SAM_APDU [10:39:39]CAPDU: 80 13 00 00 [10:39:39]Write to MH i2c: E2 08 00 A8 06 80 13 00 00 00 00 00 00 2A [10:39:39]Write i2c OK [10:39:39]MH_I2C_Read... [10:39:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:39]Read from MH i2c: E2 [10:39:39]MH_I2C_Read... [10:39:39]Read from MH i2c: E2 62 00 [10:39:39]MH_I2C_Read... [10:39:39]Read from MH i2c: E2 62 00 A8 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 77 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [10:39: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 77 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:39]wFMCommunicate OK [10:39:39]SAM_PROTO_GetFieldsCounters done [10:39:39]requested_item shift.num is exist - process it [10:39:39]requested_item shift.opened is exist - process it [10:39:39]req_shift_opened [10:39:39]FM_GetShiftState [10:39:39]SAM_PROTO_GetShiftState [10:39:39]wFMCommunicate request_size=4 [10:39:39]MH_SAM_APDU [10:39:39]CAPDU: 80 13 01 00 [10:39:39]Write to MH i2c: E2 08 00 A9 06 80 13 01 00 00 00 00 00 2C [10:39:39]Write i2c OK [10:39:39]MH_I2C_Read... [10:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:39]Read from MH i2c: E2 [10:39:39]MH_I2C_Read... [10:39:39]Read from MH i2c: E2 0E 00 [10:39:39]MH_I2C_Read... [10:39:39]Read from MH i2c: E2 0E 00 A9 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6D [10:39:39]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:39:39]wFMCommunicate OK [10:39:39]SAM_PROTO_GetShiftState done [10:39:39]FM_GetShiftState done [10:39:39]req_shift_opened done [10:39:39]requested_item shift.open_date is exist - process it [10:39:39]req_shift_open_date [10:39:39]req_shift_open_date done [10:39:39]produce_requested_data done [10:39:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115575,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:39:39]process_action_free close_receipt [10:39:39]json_value_free [10:39:39]json_value_free done [10:39:39]process_json_proto returns [10:39:39]Send response to host [10:39:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115575,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:39:39]free response buf [10:39:39]execute_script done [10:39:39]execute_script returns [10:39:39]free content buf [10:39:39]Sock 9.Close socket [10:39:39]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:16]accept exits with 7 [10:41:16]New connection [10:41:16]New thread 3067194724 created [10:41:16]Thread 3067051364 joined [10:41:16]Waiting for new connection... [10:41:16] Sock 7.Parse request [10:41:16]Sock 7.Check first char [10:41:16]Sock 7.First char is OK [10:41:16]request: POST /json_proto HTTP/1.0 [10:41:16]Method: POST [10:41:16]URL: /json_proto [10:41:16]Method is POST - this is cgi request [10:41:16]url: /json_proto [10:41:16]query_string will be loaded in cgi processing [10:41:16]execute_cgi json_proto POST (null) [10:41:16]execute_cgi path=json_proto method=POST [10:41:16]POST find Content-Length [10:41:16]Host: 172.17.41.136:8080 [10:41:16]Content-Length: 1253 [10:41:16]Content-Type: application/json [10:41:16] [10:41:16]POST finish read [10:41:16]Found Content-Length = 1253 [10:41:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343990", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077634246", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u043C\u0430\u043B\u0438\u043D\u0430 135 \u0433\u0440", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 339.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:16]execute_script... [10:41:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343990", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077634246", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u043C\u0430\u043B\u0438\u043D\u0430 135 \u0433\u0440", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 339.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:16]POST & json_proto [10:41:16]process_json_proto [10:41:16]json parsed OK: [10:41:16]protocol is kg_v1.0 [10:41:16]action value=close_receipt [10:41:16]process_action close_receipt [10:41:16]cmd_close_receipt [10:41:16]MH_GetDate [10:41:16]Write to MH i2c: F0 00 00 AA 06 9F [10:41:16]Write i2c OK [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: F0 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: F0 09 00 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: F0 09 00 AA 06 00 CD 45 F1 66 1B D0 5A 64 BA [10:41:16]GetLastDocTimeStamp 1727087974 [10:41:16]current date 1727088077 [10:41:16]FM_GetShiftState [10:41:16]SAM_PROTO_GetShiftState [10:41:16]wFMCommunicate request_size=4 [10:41:16]MH_SAM_APDU [10:41:16]CAPDU: 80 13 01 00 [10:41:16]Write to MH i2c: E2 08 00 AB 06 80 13 01 00 00 00 00 00 2E [10:41:16]Write i2c OK [10:41:16]MH_I2C_Read... [10:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:16]Read from MH i2c: E2 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: E2 0E 00 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: E2 0E 00 AB 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6F [10:41:16]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:41:16]wFMCommunicate OK [10:41:16]SAM_PROTO_GetShiftState done [10:41:16]FM_GetShiftState done [10:41:16]opened in 1727052070 [10:41:16]opened+sec_in_day 1727138470 [10:41:16]quantity*price = 10500 [10:41:16]sum+1 = 10501 [10:41:16]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4823077634246 Печ LOVITA Джелли Кукис малина 135 гр 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 339.00 НСП 1% : 2.99 НДС 12% : 35.99 Наличными: 339.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 59 23.09.2024 10:41 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115576 ФПД: 222016231668762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T104118&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115576&fm=222016231668762&tin=02508201610067®Number=0000000000091831&sum=33900 0 [10:41:17]StoreToDocumentArchive [10:41:17]shift 472 fd 115576 [10:41:17]save to /storage/0472/doc_00115576 [10:41:17]save last doc name /storage/0472/doc_00115576 to /storage/kkm_last_doc_name [10:41:17]save OK [10:41:17]Clear old archive folders... [10:41:17]ProcessDocumentItem done err = 0, tmpTLVsize=517 [10:41:17]tlvbuf is 0094E330 [10:41:17]SAM_PROTO_ClearQueue [10:41:17]wFMCommunicate request_size=4 [10:41:17]MH_SAM_APDU [10:41:17]CAPDU: 80 09 00 00 [10:41:17]Write to MH i2c: E2 08 00 B8 06 80 09 00 00 00 00 00 00 30 [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:18]Read from MH i2c: E2 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 03 00 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 03 00 B8 06 00 90 00 32 [10:41:18]RAPDU: 90 00 [10:41:18]wFMCommunicate OK [10:41:18]SAM_PROTO_ClearQueue done [10:41:18]KKMCreateOFDPacket [10:41:18]OFDProtocolAddRootSTLVToBuf [10:41:18]FM_MakeSignedData [10:41:18]FM_MakeSignedData [10:41:18]SAM_PROTO_SignData [10:41:18]wFMCommunicate request_size=4 [10:41:18]MH_SAM_APDU [10:41:18]CAPDU: 80 0D 01 02 [10:41:18]Write to MH i2c: E2 08 00 B9 06 80 0D 01 02 00 00 00 00 38 [10:41:18]Write i2c OK [10:41:18]MH_I2C_Read... [10:41:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:18]Read from MH i2c: E2 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 03 00 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 03 00 B9 06 00 90 00 33 [10:41:18]RAPDU: 90 00 [10:41:18]wFMCommunicate OK [10:41:18]wFMCommunicate request_size=255 [10:41:18]MH_SAM_APDU [10:41:18]CAPDU: 80 0D 02 02 FA 03 00 05 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 34 36 06 04 3B 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BC D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 [10:41:18]Write to MH i2c: E2 02 01 BA 06 80 0D 02 02 FA 00 03 00 05 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 34 36 06 04 3B 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BC D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 00 00 87 [10:41:18]Write i2c OK [10:41:18]MH_I2C_Read... [10:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:18]Read from MH i2c: E2 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 03 00 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 03 00 BA 06 00 90 00 34 [10:41:18]RAPDU: 90 00 [10:41:18]wFMCommunicate OK [10:41:18]wFMCommunicate request_size=255 [10:41:18]MH_SAM_APDU [10:41:18]CAPDU: 80 0D 02 02 FA 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CE 45 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 [10:41:18]Write to MH i2c: E2 02 01 BB 06 80 0D 02 02 FA 00 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CE 45 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 00 00 86 [10:41:18]Write i2c OK [10:41:18]MH_I2C_Read... [10:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:18]Read from MH i2c: E2 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 03 00 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 03 00 BB 06 00 90 00 35 [10:41:18]RAPDU: 90 00 [10:41:18]wFMCommunicate OK [10:41:18]wFMCommunicate request_size=26 [10:41:18]MH_SAM_APDU [10:41:18]CAPDU: 80 0D 02 02 15 38 33 30 10 04 04 00 78 C3 01 00 35 04 06 00 C9 EC 2E 9F 7C 1A [10:41:18]Write to MH i2c: E2 1D 00 BC 06 80 0D 02 02 15 00 38 33 30 10 04 04 00 78 C3 01 00 35 04 06 00 C9 EC 2E 9F 7C 1A 00 00 AC [10:41:18]Write i2c OK [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 [10:41:19]MH_I2C_Read... [10:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:19]Read from MH i2c: E2 03 00 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: E2 03 00 BC 06 00 90 00 36 [10:41:19]RAPDU: 90 00 [10:41:19]wFMCommunicate OK [10:41:19]wFMCommunicate request_size=4 [10:41:19]MH_SAM_APDU [10:41:19]CAPDU: 80 0D 03 02 [10:41:19]Write to MH i2c: E2 08 00 BD 06 80 0D 03 02 00 00 00 00 3E [10:41:19]Write i2c OK [10:41:19]MH_I2C_Read... [10:41:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:19]Read from MH i2c: E2 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: E2 0B 00 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: E2 0B 00 BD 06 00 89 2C B8 1F F4 0E 31 10 90 00 0E [10:41:19]RAPDU: 89 2C B8 1F F4 0E 31 10 90 00 [10:41:19]wFMCommunicate OK [10:41:19]SAM_PROTO_SignData done [10:41:19]FM_MakeSignedData done [10:41:19]CreateOFDProtocolMessage [10:41:19]wFMCommunicate request_size=4 [10:41:19]MH_SAM_APDU [10:41:19]CAPDU: 80 11 00 00 [10:41:19]Write to MH i2c: E2 08 00 BE 06 80 11 00 00 00 00 00 00 3E [10:41:19]Write i2c OK [10:41:19]MH_I2C_Read... [10:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:19]Read from MH i2c: E2 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: E2 17 00 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: E2 17 00 BE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8C [10:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:41:19]wFMCommunicate OK [10:41:19]CreateOFDProtocolMessage done [10:41:19]OFDSenderStorePacket 115576 [10:41:19]StoreOFDPacket docnum=115576 [10:41:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 19 02 00 00 61 82 11 02 FE 2D 5A 03 01 00 03 00 05 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 34 36 06 04 3B 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BC D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CE 45 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 78 C3 01 00 35 04 06 00 C9 EC 2E 9F 7C 1A 89 2C B8 1F F4 0E 31 10 [10:41:19]CheckFolder [10:41:19]dirname=/storage/ofd_packets [10:41:19]CheckFolder done [10:41:19]ProducePacketName [10:41:19]name=ofd_packets/00115576 [10:41:19]NVStorageSaveData ofd_packets/00115576 [10:41:19]File name is /storage/ofd_packets/00115576 [10:41:19]Write 567 bytes [10:41:19]NVStorageSaveData done [10:41:19]OFDSenderStorePacket done [10:41:19]KKMCreateOFDPacket done [10:41:19]NVStorageSaveData kkm_last_timestamp [10:41:19]File name is /storage/kkm_last_timestamp [10:41:19]Write 4 bytes [10:41:19]NVStorageSaveData done [10:41:19]ExternCall_PrintAddStr [10:41:19]wPrintStart [10:41:19]Write to MH i2c: 01 00 00 BF 06 C5 [10:41:19]Write i2c OK [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: 01 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: 01 07 00 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: 01 07 00 BF 06 00 00 00 00 00 FF 0F DA [10:41:19]RasterBufferAndPrint [10:41:19]line Счет N : (3)343990 [10:41:19]line ИНН: 02508201610067 [10:41:19]line Контрольно-Кассовый Чек [10:41:19]line ПРОДАЖА [10:41:19]line Товар: 5449000054227 [10:41:19]line Напиток Кока-Кола 1л [10:41:19]line 1.000 * 105.00 [10:41:19]line = 105.00 [10:41:19]line НДС 12% НСП 1% [10:41:19]line > о реализуемом товаре [10:41:19]line Товар: 4823077634246 [10:41:19]line Печ LOVITA Джелли Кукис малина 135 гр [10:41:19]line 2.000 * 115.00 [10:41:19]line = 230.00 [10:41:19]line НДС 12% НСП 1% [10:41:19]line > о реализуемом товаре [10:41:19]line Товар: 2000031750019 [10:41:19]line Пакет Партнер Нефть [10:41:19]line 1.000 * 4.00 [10:41:19]line = 4.00 [10:41:19]line НДС 12% НСП 1% [10:41:19]line > о реализуемом товаре [10:41:19]line ИТОГО: 339.00 [10:41:19]line НСП 1% : 2.99 [10:41:19]line НДС 12% : 35.99 [10:41:19]line Наличными: 339.00 [10:41:19]line Безнал.: 0.00 [10:41:19]line Место: АЗС № 90 "Партнер Нефть" [10:41:19]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:41:19]line СНО: Общий режим [10:41:19]line Чек 59 23.09.2024 10:41 [10:41:19]line Смена: 472 ФФД: 1.0 [10:41:19]line ЗНМ: 0300000120 [10:41:19]line РНМ: 0000000000091831 [10:41:19]line Версия ККМ: 001 [10:41:19]line ФМ: 0000000000871830 [10:41:19]line ФД: 115576 [10:41:19]line ФПД: 222016231668762 [10:41:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T104118&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115576&fm=222016231668762&tin=02508201610067®Number=0000000000091831&sum=33900 [10:41:19]OFD Sender: Processing packet 115576 [packets to send 481, broken 480] [10:41:19]ProducePacketName [10:41:19]name=ofd_packets/00115576 [10:41:19]OFD Sender: To server: pG, [10:41:19]CommunicateWithHost lk.salyk.kg:30040 [10:41:19]ConnectInit lk.salyk.kg [10:41:19]line 0 [10:41:19]written 0, free lines is 4095 [10:41:19]Connected sock=10 [10:41: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 38 33 30 19 02 00 00 61 82 11 02 FE 2D 5A 03 01 00 03 00 05 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 34 36 06 04 3B 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BC D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CE 45 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 78 C3 01 00 35 04 06 00 C9 EC 2E 9F 7C 1A 89 2C B8 1F F4 0E 31 10 [10:41:19]Write to MH i2c: 01 00 00 F3 06 F9 [10:41:19]Write i2c OK [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: 01 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: 01 07 00 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: 01 07 00 F3 06 00 00 00 00 00 6B 0B 76 [10:41:19]RasterBufferAndPrint [10:41:19]line [10:41:19]line [10:41:19]line [10:41:19]line [10:41:19]line [10:41:19]written 0, free lines is 2926 [10:41:19]MH_Cut [10:41:19]Write to MH i2c: D1 01 00 FA 06 01 D2 [10:41:19]Write i2c OK [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: D1 [10:41:19]MH_I2C_Read... [10:41:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D8 AA 47 00 91 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 38 33 30 10 04 04 00 78 C3 01 00 F4 03 04 00 11 EB F0 66 B6 04 01 00 00 6F E2 8F 87 10 0C A9 E4 [10:41:19]CommunicateWithHost err = 0 [10:41:19]CheckOFDResponse [10:41:19]1017 (14) - 77093643461234 [10:41:19]1041 (16) - 0000000000871830 [10:41:19]1040 (4) - 115576 [10:41:19]1012 (4) - 23.09.2024 04:14 [10:41:19]1206 (1) - 0 [10:41:19]OFD Sender: Remove packet 115576 [10:41:19]ProducePacketName [10:41:19]name=ofd_packets/00115576 [10:41:19]NVStorageDeleteData [10:41:19]Read from MH i2c: D1 01 00 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: D1 01 00 FA 06 00 D1 [10:41:19]Write to MH i2c: 01 00 00 FB 06 01 [10:41:19]Write i2c OK [10:41:19]MH_I2C_Read... [10:41:20]OFD Sender: No OFD packet to send [10:41:21]*** Cut start [10:41:21]*** Partial cut [10:41:21]*** CUTSNS_PIN = 1 [10:41:21]*** CUTSNS_PIN = 0 [10:41:21]*** Brake cut motor [10:41:21]Read from MH i2c: 01 [10:41:21]MH_I2C_Read... [10:41:21]*** Stop cut motor [10:41:21]*** Cut end [10:41:21]Read from MH i2c: 01 07 00 [10:41:21]MH_I2C_Read... [10:41:21]Read from MH i2c: 01 07 00 FB 06 00 00 00 00 00 FF 0F 16 [10:41:21]process_action close_receipt done [10:41:21]requested_data is exist [10:41:21]produce_requested_data [10:41:21]requested_item fm.sn is exist - process it [10:41:21]wFMCommunicate request_size=4 [10:41:21]MH_SAM_APDU [10:41:21]CAPDU: 80 11 00 00 [10:41:21]Write to MH i2c: E2 08 00 FC 06 80 11 00 00 00 00 00 00 7C [10:41:21]Write i2c OK [10:41:21]MH_I2C_Read... [10:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:21]Read from MH i2c: E2 [10:41:21]MH_I2C_Read... [10:41:21]Read from MH i2c: E2 17 00 [10:41:21]MH_I2C_Read... [10:41:21]Read from MH i2c: E2 17 00 FC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CA [10:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:41:21]wFMCommunicate OK [10:41:21]requested_item fd.num is exist - process it [10:41:21]SAM_PROTO_GetFieldsCounters [10:41:21]wFMCommunicate request_size=4 [10:41:21]MH_SAM_APDU [10:41:21]CAPDU: 80 13 00 00 [10:41:21]Write to MH i2c: E2 08 00 FD 06 80 13 00 00 00 00 00 00 7F [10:41:21]Write i2c OK [10:41:21]MH_I2C_Read... [10:41:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:22]Read from MH i2c: E2 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 62 00 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 62 00 FD 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 78 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [10:41: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 78 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:22]wFMCommunicate OK [10:41:22]SAM_PROTO_GetFieldsCounters done [10:41:22]requested_item shift.num is exist - process it [10:41:22]requested_item shift.opened is exist - process it [10:41:22]req_shift_opened [10:41:22]FM_GetShiftState [10:41:22]SAM_PROTO_GetShiftState [10:41:22]wFMCommunicate request_size=4 [10:41:22]MH_SAM_APDU [10:41:22]CAPDU: 80 13 01 00 [10:41:22]Write to MH i2c: E2 08 00 FE 06 80 13 01 00 00 00 00 00 81 [10:41:22]Write i2c OK [10:41:22]MH_I2C_Read... [10:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:22]Read from MH i2c: E2 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 0E 00 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 0E 00 FE 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C2 [10:41:22]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:41:22]wFMCommunicate OK [10:41:22]SAM_PROTO_GetShiftState done [10:41:22]FM_GetShiftState done [10:41:22]req_shift_opened done [10:41:22]requested_item shift.open_date is exist - process it [10:41:22]req_shift_open_date [10:41:22]req_shift_open_date done [10:41:22]produce_requested_data done [10:41:22]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115576,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:41:22]process_action_free close_receipt [10:41:22]json_value_free [10:41:22]json_value_free done [10:41:22]process_json_proto returns [10:41:22]Send response to host [10:41:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115576,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:41:22]free response buf [10:41:22]execute_script done [10:41:22]execute_script returns [10:41:22]free content buf [10:41:22]Sock 7.Close socket [10:41:22]Sock 7.Thread stoped [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:51]accept exits with 9 [10:41:51]New connection [10:41:51]New thread 3067051364 created [10:41:51]Thread 3067194724 joined [10:41:51]Waiting for new connection... [10:41:51] Sock 9.Parse request [10:41:51]Sock 9.Check first char [10:41:51]Sock 9.First char is OK [10:41:51]request: POST /json_proto HTTP/1.0 [10:41:51]Method: POST [10:41:51]URL: /json_proto [10:41:51]Method is POST - this is cgi request [10:41:51]url: /json_proto [10:41:51]query_string will be loaded in cgi processing [10:41:51]execute_cgi json_proto POST (null) [10:41:51]execute_cgi path=json_proto method=POST [10:41:51]POST find Content-Length [10:41:51]Host: 172.17.41.136:8080 [10:41:51]Content-Length: 728 [10:41:51]Content-Type: application/json [10:41:51] [10:41:51]POST finish read [10:41:51]Found Content-Length = 728 [10:41:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343991", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:51]execute_script... [10:41:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343991", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:51]POST & json_proto [10:41:51]process_json_proto [10:41:51]json parsed OK: [10:41:51]protocol is kg_v1.0 [10:41:51]action value=close_receipt [10:41:51]process_action close_receipt [10:41:51]cmd_close_receipt [10:41:51]MH_GetDate [10:41:51]Write to MH i2c: F0 00 00 FF 06 F4 [10:41:51]Write i2c OK [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: F0 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: F0 09 00 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: F0 09 00 FF 06 00 F0 45 F1 66 1B D0 5A 64 32 [10:41:51]GetLastDocTimeStamp 1727088078 [10:41:51]current date 1727088112 [10:41:51]FM_GetShiftState [10:41:51]SAM_PROTO_GetShiftState [10:41:51]wFMCommunicate request_size=4 [10:41:51]MH_SAM_APDU [10:41:51]CAPDU: 80 13 01 00 [10:41:51]Write to MH i2c: E2 08 00 00 07 80 13 01 00 00 00 00 00 84 [10:41:51]Write i2c OK [10:41:51]MH_I2C_Read... [10:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:51]Read from MH i2c: E2 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 0E 00 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 0E 00 00 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C5 [10:41:51]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:41:51]wFMCommunicate OK [10:41:51]SAM_PROTO_GetShiftState done [10:41:51]FM_GetShiftState done [10:41:51]opened in 1727052070 [10:41:51]opened+sec_in_day 1727138470 [10:41:51]quantity*price = 10500 [10:41:51]sum+1 = 10501 [10:41:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 60 23.09.2024 10:41 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115577 ФПД: 122064760622314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T104152&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115577&fm=122064760622314&tin=02508201610067®Number=0000000000091831&sum=10500 0 [10:41:52]StoreToDocumentArchive [10:41:52]shift 472 fd 115577 [10:41:52]save to /storage/0472/doc_00115577 [10:41:52]save last doc name /storage/0472/doc_00115577 to /storage/kkm_last_doc_name [10:41:52]save OK [10:41:52]Clear old archive folders... [10:41:52]ProcessDocumentItem done err = 0, tmpTLVsize=308 [10:41:52]tlvbuf is 0095F8B0 [10:41:52]SAM_PROTO_ClearQueue [10:41:52]wFMCommunicate request_size=4 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 09 00 00 [10:41:52]Write to MH i2c: E2 08 00 0D 07 80 09 00 00 00 00 00 00 86 [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:52]Read from MH i2c: E2 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 0D 07 00 90 00 88 [10:41:52]RAPDU: 90 00 [10:41:52]wFMCommunicate OK [10:41:52]SAM_PROTO_ClearQueue done [10:41:52]KKMCreateOFDPacket [10:41:52]OFDProtocolAddRootSTLVToBuf [10:41:52]FM_MakeSignedData [10:41:52]FM_MakeSignedData [10:41:52]SAM_PROTO_SignData [10:41:52]wFMCommunicate request_size=4 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 0D 01 02 [10:41:52]Write to MH i2c: E2 08 00 0E 07 80 0D 01 02 00 00 00 00 8E [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:52]Read from MH i2c: E2 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 0E 07 00 90 00 89 [10:41:52]RAPDU: 90 00 [10:41:52]wFMCommunicate OK [10:41:52]wFMCommunicate request_size=255 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F0 45 F1 66 0E 04 04 00 D8 01 00 00 B9 [10:41:52]Write to MH i2c: E2 02 01 0F 07 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F0 45 F1 66 0E 04 04 00 D8 01 00 00 B9 00 00 2F [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:52]Read from MH i2c: E2 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 0F 07 00 90 00 8A [10:41:52]RAPDU: 90 00 [10:41:52]wFMCommunicate OK [10:41:52]wFMCommunicate request_size=67 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 79 C3 01 00 35 04 06 00 6F 04 6A B2 4C EA [10:41:52]Write to MH i2c: E2 46 00 10 07 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 79 C3 01 00 35 04 06 00 6F 04 6A B2 4C EA 00 00 E3 [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:52]Read from MH i2c: E2 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 10 07 00 90 00 8B [10:41:52]RAPDU: 90 00 [10:41:52]wFMCommunicate OK [10:41:52]wFMCommunicate request_size=4 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 0D 03 02 [10:41:52]Write to MH i2c: E2 08 00 11 07 80 0D 03 02 00 00 00 00 93 [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:52]Read from MH i2c: E2 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 0B 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 0B 00 11 07 00 98 06 F9 D8 4F 8C D6 75 90 00 29 [10:41:52]RAPDU: 98 06 F9 D8 4F 8C D6 75 90 00 [10:41:52]wFMCommunicate OK [10:41:52]SAM_PROTO_SignData done [10:41:52]FM_MakeSignedData done [10:41:52]CreateOFDProtocolMessage [10:41:52]wFMCommunicate request_size=4 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 11 00 00 [10:41:52]Write to MH i2c: E2 08 00 12 07 80 11 00 00 00 00 00 00 93 [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:53]Read from MH i2c: E2 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: E2 17 00 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: E2 17 00 12 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E1 [10:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:41:53]wFMCommunicate OK [10:41:53]CreateOFDProtocolMessage done [10:41:53]OFDSenderStorePacket 115577 [10:41:53]StoreOFDPacket docnum=115577 [10:41:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 48 01 00 00 AB 54 40 01 1D 7A 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F0 45 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 79 C3 01 00 35 04 06 00 6F 04 6A B2 4C EA 98 06 F9 D8 4F 8C D6 75 [10:41:53]CheckFolder [10:41:53]dirname=/storage/ofd_packets [10:41:53]CheckFolder done [10:41:53]ProducePacketName [10:41:53]name=ofd_packets/00115577 [10:41:53]NVStorageSaveData ofd_packets/00115577 [10:41:53]File name is /storage/ofd_packets/00115577 [10:41:53]Write 358 bytes [10:41:53]NVStorageSaveData done [10:41:53]OFDSenderStorePacket done [10:41:53]KKMCreateOFDPacket done [10:41:53]NVStorageSaveData kkm_last_timestamp [10:41:53]File name is /storage/kkm_last_timestamp [10:41:53]Write 4 bytes [10:41:53]NVStorageSaveData done [10:41:53]ExternCall_PrintAddStr [10:41:53]wPrintStart [10:41:53]Write to MH i2c: 01 00 00 13 07 1A [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: 01 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: 01 07 00 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: 01 07 00 13 07 00 00 00 00 00 FF 0F 2F [10:41:53]RasterBufferAndPrint [10:41:53]line Счет N : (3)343991 [10:41:53]line ИНН: 02508201610067 [10:41:53]line Контрольно-Кассовый Чек [10:41:53]line ПРОДАЖА [10:41:53]line Товар: 5449000027474 [10:41:53]line Напиток FuzeTea зел чай манго,ромашка 1л [10:41:53]line 1.000 * 105.00 [10:41:53]line = 105.00 [10:41:53]line НДС 12% НСП 1% [10:41:53]line > о реализуемом товаре [10:41:53]line ИТОГО: 105.00 [10:41:53]line НСП 1% : 0.93 [10:41:53]line НДС 12% : 11.15 [10:41:53]line Наличными: 105.00 [10:41:53]line Безнал.: 0.00 [10:41:53]line Место: АЗС № 90 "Партнер Нефть" [10:41:53]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:41:53]line СНО: Общий режим [10:41:53]line Чек 60 23.09.2024 10:41 [10:41:53]line Смена: 472 ФФД: 1.0 [10:41:53]line ЗНМ: 0300000120 [10:41:53]line РНМ: 0000000000091831 [10:41:53]line Версия ККМ: 001 [10:41:53]line ФМ: 0000000000871830 [10:41:53]line ФД: 115577 [10:41:53]line ФПД: 122064760622314 [10:41:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T104152&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115577&fm=122064760622314&tin=02508201610067®Number=0000000000091831&sum=10500 [10:41:53]line 0 [10:41:53]OFD Sender: Processing packet 115577 [packets to send 481, broken 480] [10:41:53]ProducePacketName [10:41:53]name=ofd_packets/00115577 [10:41:53]OFD Sender: To server: pG, [10:41:53]CommunicateWithHost lk.salyk.kg:30040 [10:41:53]ConnectInit lk.salyk.kg [10:41:53]written 0, free lines is 4095 [10:41:53]Write to MH i2c: 01 00 00 3B 07 42 [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: 01 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: 01 07 00 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: 01 07 00 3B 07 00 00 00 00 00 55 0C AA [10:41:53]RasterBufferAndPrint [10:41:53]line [10:41:53]line [10:41:53]line [10:41:53]line [10:41:53]line [10:41:53]written 0, free lines is 3160 [10:41:53]MH_Cut [10:41:53]Write to MH i2c: D1 01 00 42 07 01 1B [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: D1 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: D1 01 00 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: D1 01 00 42 07 00 1A [10:41:53]Write to MH i2c: 01 00 00 43 07 4A [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:53]Connected sock=11 [10:41: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 38 33 30 48 01 00 00 AB 54 40 01 1D 7A 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F0 45 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 79 C3 01 00 35 04 06 00 6F 04 6A B2 4C EA 98 06 F9 D8 4F 8C D6 75 [10:41:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D7 4D 47 00 E7 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 38 33 30 10 04 04 00 79 C3 01 00 F4 03 04 00 33 EB F0 66 B6 04 01 00 00 4A 42 42 17 76 6F 79 F6 [10:41:54]CommunicateWithHost err = 0 [10:41:54]CheckOFDResponse [10:41:54]1017 (14) - 77093643461234 [10:41:54]1041 (16) - 0000000000871830 [10:41:54]1040 (4) - 115577 [10:41:54]1012 (4) - 23.09.2024 04:14 [10:41:54]1206 (1) - 0 [10:41:54]OFD Sender: Remove packet 115577 [10:41:54]ProducePacketName [10:41:54]name=ofd_packets/00115577 [10:41:54]NVStorageDeleteData [10:41:54]OFD Sender: No OFD packet to send [10:41:55]*** Cut start [10:41:55]*** Partial cut [10:41:55]*** CUTSNS_PIN = 1 [10:41:55]*** CUTSNS_PIN = 0 [10:41:55]*** Brake cut motor [10:41:55]Read from MH i2c: 01 [10:41:55]MH_I2C_Read... [10:41:55]*** Stop cut motor [10:41:55]*** Cut end [10:41:55]Read from MH i2c: 01 07 00 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: 01 07 00 43 07 00 00 00 00 00 FF 0F 5F [10:41:55]process_action close_receipt done [10:41:55]requested_data is exist [10:41:55]produce_requested_data [10:41:55]requested_item fm.sn is exist - process it [10:41:55]wFMCommunicate request_size=4 [10:41:55]MH_SAM_APDU [10:41:55]CAPDU: 80 11 00 00 [10:41:55]Write to MH i2c: E2 08 00 44 07 80 11 00 00 00 00 00 00 C5 [10:41:55]Write i2c OK [10:41:55]MH_I2C_Read... [10:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:55]Read from MH i2c: E2 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 17 00 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 17 00 44 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 13 [10:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:41:55]wFMCommunicate OK [10:41:55]requested_item fd.num is exist - process it [10:41:55]SAM_PROTO_GetFieldsCounters [10:41:55]wFMCommunicate request_size=4 [10:41:55]MH_SAM_APDU [10:41:55]CAPDU: 80 13 00 00 [10:41:55]Write to MH i2c: E2 08 00 45 07 80 13 00 00 00 00 00 00 C8 [10:41:55]Write i2c OK [10:41:55]MH_I2C_Read... [10:41:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:55]Read from MH i2c: E2 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 62 00 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 62 00 45 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 79 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [10:41: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 79 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:55]wFMCommunicate OK [10:41:55]SAM_PROTO_GetFieldsCounters done [10:41:55]requested_item shift.num is exist - process it [10:41:55]requested_item shift.opened is exist - process it [10:41:55]req_shift_opened [10:41:55]FM_GetShiftState [10:41:55]SAM_PROTO_GetShiftState [10:41:55]wFMCommunicate request_size=4 [10:41:55]MH_SAM_APDU [10:41:55]CAPDU: 80 13 01 00 [10:41:55]Write to MH i2c: E2 08 00 46 07 80 13 01 00 00 00 00 00 CA [10:41:55]Write i2c OK [10:41:55]MH_I2C_Read... [10:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:55]Read from MH i2c: E2 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 0E 00 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 0E 00 46 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 0B [10:41:55]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:41:55]wFMCommunicate OK [10:41:55]SAM_PROTO_GetShiftState done [10:41:55]FM_GetShiftState done [10:41:55]req_shift_opened done [10:41:55]requested_item shift.open_date is exist - process it [10:41:55]req_shift_open_date [10:41:55]req_shift_open_date done [10:41:55]produce_requested_data done [10:41:55]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115577,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:41:55]process_action_free close_receipt [10:41:55]json_value_free [10:41:55]json_value_free done [10:41:55]process_json_proto returns [10:41:55]Send response to host [10:41:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115577,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:41:55]free response buf [10:41:55]execute_script done [10:41:55]execute_script returns [10:41:55]free content buf [10:41:55]Sock 9.Close socket [10:41:55]Sock 9.Thread stoped [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:36]accept exits with 7 [10:42:36]New connection [10:42:36]New thread 3067194724 created [10:42:36]Thread 3067051364 joined [10:42:36]Waiting for new connection... [10:42:36] Sock 7.Parse request [10:42:36]Sock 7.Check first char [10:42:36]Sock 7.First char is OK [10:42:36]request: POST /json_proto HTTP/1.0 [10:42:36]Method: POST [10:42:36]URL: /json_proto [10:42:36]Method is POST - this is cgi request [10:42:36]url: /json_proto [10:42:36]query_string will be loaded in cgi processing [10:42:36]execute_cgi json_proto POST (null) [10:42:36]execute_cgi path=json_proto method=POST [10:42:36]POST find Content-Length [10:42:36]Host: 172.17.41.136:8080 [10:42:36]Content-Length: 680 [10:42:36]Content-Type: application/json [10:42:36] [10:42:36]POST finish read [10:42:36]Found Content-Length = 680 [10:42:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:42:36]execute_script... [10:42: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)24617542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:42:36]POST & json_proto [10:42:36]process_json_proto [10:42:36]json parsed OK: [10:42:36]protocol is kg_v1.0 [10:42:36]action value=close_receipt [10:42:36]process_action close_receipt [10:42:36]cmd_close_receipt [10:42:36]MH_GetDate [10:42:36]Write to MH i2c: F0 00 00 47 07 3D [10:42:36]Write i2c OK [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: F0 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: F0 09 00 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: F0 09 00 47 07 00 1D 46 F1 66 1B D0 5A 64 A9 [10:42:36]GetLastDocTimeStamp 1727088112 [10:42:36]current date 1727088157 [10:42:36]FM_GetShiftState [10:42:36]SAM_PROTO_GetShiftState [10:42:36]wFMCommunicate request_size=4 [10:42:36]MH_SAM_APDU [10:42:36]CAPDU: 80 13 01 00 [10:42:36]Write to MH i2c: E2 08 00 48 07 80 13 01 00 00 00 00 00 CC [10:42:36]Write i2c OK [10:42:36]MH_I2C_Read... [10:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:36]Read from MH i2c: E2 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: E2 0E 00 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: E2 0E 00 48 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 0D [10:42:36]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:42:36]wFMCommunicate OK [10:42:36]SAM_PROTO_GetShiftState done [10:42:36]FM_GetShiftState done [10:42:36]opened in 1727052070 [10:42:36]opened+sec_in_day 1727138470 [10:42:36]quantity*price = 70037 [10:42:36]sum+1 = 70038 [10:42:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 61 23.09.2024 10:42 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115578 ФПД: 37646699315633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T104237&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115578&fm=37646699315633&tin=02508201610067®Number=0000000000091831&sum=70000 [10:42:37]StoreToDocumentArchive [10:42:37]shift 472 fd 115578 [10:42:37]save to /storage/0472/doc_00115578 [10:42:37]save last doc name /storage/0472/doc_00115578 to /storage/kkm_last_doc_name [10:42:37]save OK [10:42:37]Clear old archive folders... [10:42:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:37]tlvbuf is 0095B3B0 [10:42:37]SAM_PROTO_ClearQueue [10:42:37]wFMCommunicate request_size=4 [10:42:37]MH_SAM_APDU [10:42:37]CAPDU: 80 09 00 00 [10:42:37]Write to MH i2c: E2 08 00 55 07 80 09 00 00 00 00 00 00 CE [10:42:37]Write i2c OK [10:42:37]MH_I2C_Read... [10:42:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:37]Read from MH i2c: E2 [10:42:37]MH_I2C_Read... [10:42:37]Read from MH i2c: E2 03 00 [10:42:37]MH_I2C_Read... [10:42:37]Read from MH i2c: E2 03 00 55 07 00 90 00 D0 [10:42:37]RAPDU: 90 00 [10:42:37]wFMCommunicate OK [10:42:37]SAM_PROTO_ClearQueue done [10:42:37]KKMCreateOFDPacket [10:42:37]OFDProtocolAddRootSTLVToBuf [10:42:37]FM_MakeSignedData [10:42:37]FM_MakeSignedData [10:42:37]SAM_PROTO_SignData [10:42:37]wFMCommunicate request_size=4 [10:42:37]MH_SAM_APDU [10:42:37]CAPDU: 80 0D 01 02 [10:42:37]Write to MH i2c: E2 08 00 56 07 80 0D 01 02 00 00 00 00 D6 [10:42:37]Write i2c OK [10:42:37]MH_I2C_Read... [10:42:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:37]Read from MH i2c: E2 [10:42:37]MH_I2C_Read... [10:42:37]Read from MH i2c: E2 03 00 [10:42:37]MH_I2C_Read... [10:42:37]Read from MH i2c: E2 03 00 56 07 00 90 00 D1 [10:42:37]RAPDU: 90 00 [10:42:37]wFMCommunicate OK [10:42:37]wFMCommunicate request_size=255 [10:42:37]MH_SAM_APDU [10:42:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 3D 00 00 00 F4 03 04 00 1D 46 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7A C3 01 00 35 04 06 00 22 [10:42:37]Write to MH i2c: E2 02 01 57 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 3D 00 00 00 F4 03 04 00 1D 46 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7A C3 01 00 35 04 06 00 22 00 00 64 [10:42:37]Write i2c OK [10:42:37]MH_I2C_Read... [10:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:38]Read from MH i2c: E2 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 03 00 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 03 00 57 07 00 90 00 D2 [10:42:38]RAPDU: 90 00 [10:42:38]wFMCommunicate OK [10:42:38]wFMCommunicate request_size=10 [10:42:38]MH_SAM_APDU [10:42:38]CAPDU: 80 0D 02 02 05 3D 4E 23 C1 B1 [10:42:38]Write to MH i2c: E2 0D 00 58 07 80 0D 02 02 05 00 3D 4E 23 C1 B1 00 00 03 [10:42:38]Write i2c OK [10:42:38]MH_I2C_Read... [10:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:38]Read from MH i2c: E2 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 03 00 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 03 00 58 07 00 90 00 D3 [10:42:38]RAPDU: 90 00 [10:42:38]wFMCommunicate OK [10:42:38]wFMCommunicate request_size=4 [10:42:38]MH_SAM_APDU [10:42:38]CAPDU: 80 0D 03 02 [10:42:38]Write to MH i2c: E2 08 00 59 07 80 0D 03 02 00 00 00 00 DB [10:42:38]Write i2c OK [10:42:38]MH_I2C_Read... [10:42:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:38]Read from MH i2c: E2 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 0B 00 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 0B 00 59 07 00 90 76 C6 31 EA B9 58 8D 90 00 61 [10:42:38]RAPDU: 90 76 C6 31 EA B9 58 8D 90 00 [10:42:38]wFMCommunicate OK [10:42:38]SAM_PROTO_SignData done [10:42:38]FM_MakeSignedData done [10:42:38]CreateOFDProtocolMessage [10:42:38]wFMCommunicate request_size=4 [10:42:38]MH_SAM_APDU [10:42:38]CAPDU: 80 11 00 00 [10:42:38]Write to MH i2c: E2 08 00 5A 07 80 11 00 00 00 00 00 00 DB [10:42:38]Write i2c OK [10:42:38]MH_I2C_Read... [10:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:38]Read from MH i2c: E2 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 17 00 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 17 00 5A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 29 [10:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:42:38]wFMCommunicate OK [10:42:38]CreateOFDProtocolMessage done [10:42:38]OFDSenderStorePacket 115578 [10:42:38]StoreOFDPacket docnum=115578 [10:42:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 47 93 07 01 3C 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 3D 00 00 00 F4 03 04 00 1D 46 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7A C3 01 00 35 04 06 00 22 3D 4E 23 C1 B1 90 76 C6 31 EA B9 58 8D [10:42:38]CheckFolder [10:42:38]dirname=/storage/ofd_packets [10:42:38]CheckFolder done [10:42:38]ProducePacketName [10:42:38]name=ofd_packets/00115578 [10:42:38]NVStorageSaveData ofd_packets/00115578 [10:42:38]File name is /storage/ofd_packets/00115578 [10:42:38]Write 301 bytes [10:42:38]NVStorageSaveData done [10:42:38]OFDSenderStorePacket done [10:42:38]KKMCreateOFDPacket done [10:42:38]NVStorageSaveData kkm_last_timestamp [10:42:38]File name is /storage/kkm_last_timestamp [10:42:38]Write 4 bytes [10:42:38]NVStorageSaveData done [10:42:38]ExternCall_PrintAddStr [10:42:38]wPrintStart [10:42:38]Write to MH i2c: 01 00 00 5B 07 62 [10:42:38]Write i2c OK [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: 01 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: 01 07 00 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: 01 07 00 5B 07 00 00 00 00 00 FF 0F 77 [10:42:38]RasterBufferAndPrint [10:42:38]line Счет N : (1)24617542 [10:42:38]line ИНН: 02508201610067 [10:42:38]line Контрольно-Кассовый Чек [10:42:38]line ПРОДАЖА [10:42:38]line ТРК (МРК, ГНК) : 43 [10:42:38]line Товар: 2710124130 [10:42:38]line Аи-92-К-5 [10:42:38]line 10.330 * 67.80 [10:42:38]line = 700.37 [10:42:38]line НДС 12% НСП 1% [10:42:38]line > о реализуемом товаре [10:42:38]line ОКРУГЛЕНИЕ: -0.37 [10:42:38]line ИТОГО: 700.00 [10:42:38]line Внесено: 700.00 [10:42:38]line СДАЧА: 0.00 [10:42:38]line НСП 1% : 6.20 [10:42:38]line НДС 12% : 74.38 [10:42:38]line Наличными: 700.00 [10:42:38]line Безнал.: 0.00 [10:42:38]line Место: АЗС № 90 "Партнер Нефть" [10:42:38]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:42:38]line СНО: Общий режим [10:42:38]line Чек 61 23.09.2024 10:42 [10:42:38]line Смена: 472 ФФД: 1.0 [10:42:38]line ЗНМ: 0300000120 [10:42:38]line РНМ: 0000000000091831 [10:42:38]line Версия ККМ: 001 [10:42:38]line ФМ: 0000000000871830 [10:42:38]line ФД: 115578 [10:42:38]line ФПД: 37646699315633 [10:42:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T104237&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115578&fm=37646699315633&tin=02508201610067®Number=0000000000091831&sum=70000 [10:42:38]OFD Sender: Processing packet 115578 [packets to send 481, broken 480] [10:42:38]ProducePacketName [10:42:38]name=ofd_packets/00115578 [10:42:38]OFD Sender: To server: pG, [10:42:38]CommunicateWithHost lk.salyk.kg:30040 [10:42:38]ConnectInit lk.salyk.kg [10:42:38]written 0, free lines is 4095 [10:42:38]Connected sock=10 [10:42: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 38 33 30 0F 01 00 00 47 93 07 01 3C 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 3D 00 00 00 F4 03 04 00 1D 46 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7A C3 01 00 35 04 06 00 22 3D 4E 23 C1 B1 90 76 C6 31 EA B9 58 8D [10:42:39]Write to MH i2c: 01 00 00 85 07 8C [10:42:39]Write i2c OK [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: 01 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: 01 07 00 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: 01 07 00 85 07 00 00 00 00 00 63 0C 02 [10:42:39]RasterBufferAndPrint [10:42:39]line [10:42:39]line [10:42:39]line [10:42:39]line [10:42:39]line [10:42:39]written 0, free lines is 3175 [10:42:39]MH_Cut [10:42:39]Write to MH i2c: D1 01 00 8C 07 01 65 [10:42:39]Write i2c OK [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: D1 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: D1 01 00 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: D1 01 00 8C 07 00 64 [10:42:39]Write to MH i2c: 01 00 00 8D 07 94 [10:42:39]Write i2c OK [10:42:39]MH_I2C_Read... [10:42:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6F 74 47 00 80 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7A C3 01 00 F4 03 04 00 60 EB F0 66 B6 04 01 00 00 E1 98 CF CB A4 62 59 76 [10:42:39]CommunicateWithHost err = 0 [10:42:39]CheckOFDResponse [10:42:39]1017 (14) - 77093643461234 [10:42:39]1041 (16) - 0000000000871830 [10:42:39]1040 (4) - 115578 [10:42:39]1012 (4) - 23.09.2024 04:15 [10:42:39]1206 (1) - 0 [10:42:39]OFD Sender: Remove packet 115578 [10:42:39]ProducePacketName [10:42:39]name=ofd_packets/00115578 [10:42:39]NVStorageDeleteData [10:42:39]OFD Sender: No OFD packet to send [10:42:40]*** Cut start [10:42:40]*** Partial cut [10:42:40]*** CUTSNS_PIN = 1 [10:42:40]*** CUTSNS_PIN = 0 [10:42:40]*** Brake cut motor [10:42:40]Read from MH i2c: 01 [10:42:40]MH_I2C_Read... [10:42:40]*** Stop cut motor [10:42:40]*** Cut end [10:42:40]Read from MH i2c: 01 07 00 [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: 01 07 00 8D 07 00 00 00 00 00 FF 0F A9 [10:42:40]process_action close_receipt done [10:42:40]requested_data is exist [10:42:40]produce_requested_data [10:42:40]requested_item fm.sn is exist - process it [10:42:40]wFMCommunicate request_size=4 [10:42:40]MH_SAM_APDU [10:42:40]CAPDU: 80 11 00 00 [10:42:40]Write to MH i2c: E2 08 00 8E 07 80 11 00 00 00 00 00 00 0F [10:42:40]Write i2c OK [10:42:40]MH_I2C_Read... [10:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:40]Read from MH i2c: E2 [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: E2 17 00 [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: E2 17 00 8E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5D [10:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:42:41]wFMCommunicate OK [10:42:41]requested_item fd.num is exist - process it [10:42:41]SAM_PROTO_GetFieldsCounters [10:42:41]wFMCommunicate request_size=4 [10:42:41]MH_SAM_APDU [10:42:41]CAPDU: 80 13 00 00 [10:42:41]Write to MH i2c: E2 08 00 8F 07 80 13 00 00 00 00 00 00 12 [10:42:41]Write i2c OK [10:42:41]MH_I2C_Read... [10:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:41]Read from MH i2c: E2 [10:42:41]MH_I2C_Read... [10:42:41]Read from MH i2c: E2 62 00 [10:42:41]MH_I2C_Read... [10:42:41]Read from MH i2c: E2 62 00 8F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7A C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [10:42:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7A C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:41]wFMCommunicate OK [10:42:41]SAM_PROTO_GetFieldsCounters done [10:42:41]requested_item shift.num is exist - process it [10:42:41]requested_item shift.opened is exist - process it [10:42:41]req_shift_opened [10:42:41]FM_GetShiftState [10:42:41]SAM_PROTO_GetShiftState [10:42:41]wFMCommunicate request_size=4 [10:42:41]MH_SAM_APDU [10:42:41]CAPDU: 80 13 01 00 [10:42:41]Write to MH i2c: E2 08 00 90 07 80 13 01 00 00 00 00 00 14 [10:42:41]Write i2c OK [10:42:41]MH_I2C_Read... [10:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:41]Read from MH i2c: E2 [10:42:41]MH_I2C_Read... [10:42:41]Read from MH i2c: E2 0E 00 [10:42:41]MH_I2C_Read... [10:42:41]Read from MH i2c: E2 0E 00 90 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 55 [10:42:41]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:42:41]wFMCommunicate OK [10:42:41]SAM_PROTO_GetShiftState done [10:42:41]FM_GetShiftState done [10:42:41]req_shift_opened done [10:42:41]requested_item shift.open_date is exist - process it [10:42:41]req_shift_open_date [10:42:41]req_shift_open_date done [10:42:41]produce_requested_data done [10:42:41]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115578,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:42:41]process_action_free close_receipt [10:42:41]json_value_free [10:42:41]json_value_free done [10:42:41]process_json_proto returns [10:42:41]Send response to host [10:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115578,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:42:41]free response buf [10:42:41]execute_script done [10:42:41]execute_script returns [10:42:41]free content buf [10:42:41]Sock 7.Close socket [10:42:41]Sock 7.Thread stoped [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:54]accept exits with 9 [10:46:54]New connection [10:46:54]New thread 3067051364 created [10:46:54]Thread 3067194724 joined [10:46:54]Waiting for new connection... [10:46:54] Sock 9.Parse request [10:46:54]Sock 9.Check first char [10:46:54]Sock 9.First char is OK [10:46:54]request: POST /json_proto HTTP/1.0 [10:46:54]Method: POST [10:46:54]URL: /json_proto [10:46:54]Method is POST - this is cgi request [10:46:54]url: /json_proto [10:46:54]query_string will be loaded in cgi processing [10:46:54]execute_cgi json_proto POST (null) [10:46:54]execute_cgi path=json_proto method=POST [10:46:54]POST find Content-Length [10:46:54]Host: 172.17.41.136:8080 [10:46:54]Content-Length: 687 [10:46:54]Content-Type: application/json [10:46:54] [10:46:54]POST finish read [10:46:54]Found Content-Length = 687 [10:46:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:54]execute_script... [10:46: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)24617543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:54]POST & json_proto [10:46:54]process_json_proto [10:46:54]json parsed OK: [10:46:54]protocol is kg_v1.0 [10:46:54]action value=close_receipt [10:46:54]process_action close_receipt [10:46:54]cmd_close_receipt [10:46:54]MH_GetDate [10:46:54]Write to MH i2c: F0 00 00 91 07 87 [10:46:54]Write i2c OK [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: F0 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: F0 09 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: F0 09 00 91 07 00 1E 47 F1 66 1B D0 5A 64 F5 [10:46:54]GetLastDocTimeStamp 1727088157 [10:46:54]current date 1727088414 [10:46:54]FM_GetShiftState [10:46:54]SAM_PROTO_GetShiftState [10:46:54]wFMCommunicate request_size=4 [10:46:54]MH_SAM_APDU [10:46:54]CAPDU: 80 13 01 00 [10:46:54]Write to MH i2c: E2 08 00 92 07 80 13 01 00 00 00 00 00 16 [10:46:54]Write i2c OK [10:46:54]MH_I2C_Read... [10:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:54]Read from MH i2c: E2 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 0E 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 0E 00 92 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 57 [10:46:54]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:46:54]wFMCommunicate OK [10:46:54]SAM_PROTO_GetShiftState done [10:46:54]FM_GetShiftState done [10:46:54]opened in 1727052070 [10:46:54]opened+sec_in_day 1727138470 [10:46:54]quantity*price = 100007 [10:46:54]sum+1 = 100009 [10:46:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 62 23.09.2024 10:46 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115579 ФПД: 109960506327912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T104655&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115579&fm=109960506327912&tin=02508201610067®Number=0000000000091831&sum=100000 [10:46:55]StoreToDocumentArchive [10:46:55]shift 472 fd 115579 [10:46:55]save to /storage/0472/doc_00115579 [10:46:55]save last doc name /storage/0472/doc_00115579 to /storage/kkm_last_doc_name [10:46:55]save OK [10:46:55]Clear old archive folders... [10:46:55]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:46:55]tlvbuf is 0096B940 [10:46:55]SAM_PROTO_ClearQueue [10:46:55]wFMCommunicate request_size=4 [10:46:55]MH_SAM_APDU [10:46:55]CAPDU: 80 09 00 00 [10:46:55]Write to MH i2c: E2 08 00 9F 07 80 09 00 00 00 00 00 00 18 [10:46:55]Write i2c OK [10:46:55]MH_I2C_Read... [10:46:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:55]Read from MH i2c: E2 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 03 00 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 03 00 9F 07 00 90 00 1A [10:46:55]RAPDU: 90 00 [10:46:55]wFMCommunicate OK [10:46:55]SAM_PROTO_ClearQueue done [10:46:55]KKMCreateOFDPacket [10:46:55]OFDProtocolAddRootSTLVToBuf [10:46:55]FM_MakeSignedData [10:46:55]FM_MakeSignedData [10:46:55]SAM_PROTO_SignData [10:46:55]wFMCommunicate request_size=4 [10:46:55]MH_SAM_APDU [10:46:55]CAPDU: 80 0D 01 02 [10:46:55]Write to MH i2c: E2 08 00 A0 07 80 0D 01 02 00 00 00 00 20 [10:46:55]Write i2c OK [10:46:55]MH_I2C_Read... [10:46:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:55]Read from MH i2c: E2 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 03 00 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 03 00 A0 07 00 90 00 1B [10:46:55]RAPDU: 90 00 [10:46:55]wFMCommunicate OK [10:46:55]wFMCommunicate request_size=255 [10:46:55]MH_SAM_APDU [10:46:55]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 1F 47 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7B C3 01 00 35 04 06 00 64 02 [10:46:55]Write to MH i2c: E2 02 01 A1 07 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 1F 47 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7B C3 01 00 35 04 06 00 64 02 00 00 62 [10:46:55]Write i2c OK [10:46:55]MH_I2C_Read... [10:46:55]OFD Sender: No OFD packet to send [10:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:55]Read from MH i2c: E2 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 03 00 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 03 00 A1 07 00 90 00 1C [10:46:55]RAPDU: 90 00 [10:46:55]wFMCommunicate OK [10:46:55]wFMCommunicate request_size=9 [10:46:55]MH_SAM_APDU [10:46:55]CAPDU: 80 0D 02 02 04 2C EB 43 68 [10:46:55]Write to MH i2c: E2 0C 00 A2 07 80 0D 02 02 04 00 2C EB 43 68 00 00 ED [10:46:55]Write i2c OK [10:46:55]MH_I2C_Read... [10:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:55]Read from MH i2c: E2 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 03 00 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 03 00 A2 07 00 90 00 1D [10:46:55]RAPDU: 90 00 [10:46:55]wFMCommunicate OK [10:46:55]wFMCommunicate request_size=4 [10:46:55]MH_SAM_APDU [10:46:55]CAPDU: 80 0D 03 02 [10:46:55]Write to MH i2c: E2 08 00 A3 07 80 0D 03 02 00 00 00 00 25 [10:46:55]Write i2c OK [10:46:55]MH_I2C_Read... [10:46:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:55]Read from MH i2c: E2 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 0B 00 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 0B 00 A3 07 00 2A DC 84 61 8E 9B EB BA 90 00 DF [10:46:55]RAPDU: 2A DC 84 61 8E 9B EB BA 90 00 [10:46:55]wFMCommunicate OK [10:46:55]SAM_PROTO_SignData done [10:46:55]FM_MakeSignedData done [10:46:55]CreateOFDProtocolMessage [10:46:55]wFMCommunicate request_size=4 [10:46:55]MH_SAM_APDU [10:46:55]CAPDU: 80 11 00 00 [10:46:55]Write to MH i2c: E2 08 00 A4 07 80 11 00 00 00 00 00 00 25 [10:46:55]Write i2c OK [10:46:55]MH_I2C_Read... [10:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:55]Read from MH i2c: E2 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 17 00 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 17 00 A4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 73 [10:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:46:55]wFMCommunicate OK [10:46:55]CreateOFDProtocolMessage done [10:46:55]OFDSenderStorePacket 115579 [10:46:55]StoreOFDPacket docnum=115579 [10:46:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 32 17 06 01 FF 75 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 1F 47 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7B C3 01 00 35 04 06 00 64 02 2C EB 43 68 2A DC 84 61 8E 9B EB BA [10:46:55]CheckFolder [10:46:55]dirname=/storage/ofd_packets [10:46:55]CheckFolder done [10:46:55]ProducePacketName [10:46:55]name=ofd_packets/00115579 [10:46:55]NVStorageSaveData ofd_packets/00115579 [10:46:55]File name is /storage/ofd_packets/00115579 [10:46:55]Write 300 bytes [10:46:55]NVStorageSaveData done [10:46:55]OFDSenderStorePacket done [10:46:55]KKMCreateOFDPacket done [10:46:55]NVStorageSaveData kkm_last_timestamp [10:46:55]File name is /storage/kkm_last_timestamp [10:46:55]Write 4 bytes [10:46:55]NVStorageSaveData done [10:46:55]ExternCall_PrintAddStr [10:46:55]wPrintStart [10:46:55]Write to MH i2c: 01 00 00 A5 07 AC [10:46:55]Write i2c OK [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: 01 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: 01 07 00 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: 01 07 00 A5 07 00 00 00 00 00 FF 0F C1 [10:46:55]RasterBufferAndPrint [10:46:55]line Счет N : (1)24617543 [10:46:55]line ИНН: 02508201610067 [10:46:55]line Контрольно-Кассовый Чек [10:46:55]line ПРОДАЖА [10:46:55]line ТРК (МРК, ГНК) : 71 [10:46:55]line Товар: 2711190000 [10:46:55]line ГАЗ-К-5 [10:46:55]line 26.740 * 37.40 [10:46:55]line = 1000.08 [10:46:55]line НДС 12% НСП 1% [10:46:55]line > о реализуемом товаре [10:46:55]line ОКРУГЛЕНИЕ: -0.08 [10:46:55]line ИТОГО: 1000.00 [10:46:55]line Внесено: 1000.00 [10:46:55]line СДАЧА: 0.00 [10:46:55]line НСП 1% : 8.85 [10:46:55]line НДС 12% : 106.20 [10:46:55]line Наличными: 1000.00 [10:46:55]line Безнал.: 0.00 [10:46:55]line Место: АЗС № 90 "Партнер Нефть" [10:46:55]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:46:55]line СНО: Общий режим [10:46:55]line Чек 62 23.09.2024 10:46 [10:46:55]line Смена: 472 ФФД: 1.0 [10:46:55]line ЗНМ: 0300000120 [10:46:55]line РНМ: 0000000000091831 [10:46:55]line Версия ККМ: 001 [10:46:55]line ФМ: 0000000000871830 [10:46:55]line ФД: 115579 [10:46:55]line ФПД: 109960506327912 [10:46:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T104655&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115579&fm=109960506327912&tin=02508201610067®Number=0000000000091831&sum=100000 [10:46:56]OFD Sender: Processing packet 115579 [packets to send 481, broken 480] [10:46:56]ProducePacketName [10:46:56]name=ofd_packets/00115579 [10:46:56]OFD Sender: To server: pG, [10:46:56]CommunicateWithHost lk.salyk.kg:30040 [10:46:56]ConnectInit lk.salyk.kg [10:46:56]written 0, free lines is 4095 [10:46:56]Connected sock=10 [10:46: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 38 33 30 0E 01 00 00 32 17 06 01 FF 75 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 1F 47 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7B C3 01 00 35 04 06 00 64 02 2C EB 43 68 2A DC 84 61 8E 9B EB BA [10:46:56]Write to MH i2c: 01 00 00 CF 07 D6 [10:46:56]Write i2c OK [10:46:56]MH_I2C_Read... [10:46:56]Read from MH i2c: 01 [10:46:56]MH_I2C_Read... [10:46:56]Read from MH i2c: 01 07 00 [10:46:56]MH_I2C_Read... [10:46:56]Read from MH i2c: 01 07 00 CF 07 00 00 00 00 00 51 0C 3A [10:46:56]RasterBufferAndPrint [10:46:56]line [10:46:56]line [10:46:56]line [10:46:56]line [10:46:56]line [10:46:56]written 0, free lines is 3159 [10:46:56]MH_Cut [10:46:56]Write to MH i2c: D1 01 00 D6 07 01 AF [10:46:56]Write i2c OK [10:46:56]MH_I2C_Read... [10:46:56]Read from MH i2c: D1 [10:46:56]MH_I2C_Read... [10:46:56]Read from MH i2c: D1 01 00 [10:46:56]MH_I2C_Read... [10:46:56]Read from MH i2c: D1 01 00 D6 07 00 AE [10:46:56]Write to MH i2c: 01 00 00 D7 07 DE [10:46:56]Write i2c OK [10:46:56]MH_I2C_Read... [10:46:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C6 36 47 00 69 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 38 33 30 10 04 04 00 7B C3 01 00 F4 03 04 00 62 EC F0 66 B6 04 01 00 00 A4 23 27 F2 36 AB EF BB [10:46:56]CommunicateWithHost err = 0 [10:46:56]CheckOFDResponse [10:46:56]1017 (14) - 77093643461234 [10:46:56]1041 (16) - 0000000000871830 [10:46:56]1040 (4) - 115579 [10:46:56]1012 (4) - 23.09.2024 04:19 [10:46:56]1206 (1) - 0 [10:46:56]OFD Sender: Remove packet 115579 [10:46:56]ProducePacketName [10:46:56]name=ofd_packets/00115579 [10:46:56]NVStorageDeleteData [10:46:57]OFD Sender: No OFD packet to send [10:46:57]*** Cut start [10:46:57]*** Partial cut [10:46:57]*** CUTSNS_PIN = 1 [10:46:57]*** CUTSNS_PIN = 0 [10:46:58]*** Brake cut motor [10:46:58]Read from MH i2c: 01 [10:46:58]MH_I2C_Read... [10:46:58]*** Stop cut motor [10:46:58]*** Cut end [10:46:58]Read from MH i2c: 01 07 00 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: 01 07 00 D7 07 00 00 00 00 00 FF 0F F3 [10:46:58]process_action close_receipt done [10:46:58]requested_data is exist [10:46:58]produce_requested_data [10:46:58]requested_item fm.sn is exist - process it [10:46:58]wFMCommunicate request_size=4 [10:46:58]MH_SAM_APDU [10:46:58]CAPDU: 80 11 00 00 [10:46:58]Write to MH i2c: E2 08 00 D8 07 80 11 00 00 00 00 00 00 59 [10:46:58]Write i2c OK [10:46:58]MH_I2C_Read... [10:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:58]Read from MH i2c: E2 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 17 00 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 17 00 D8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A7 [10:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:46:58]wFMCommunicate OK [10:46:58]requested_item fd.num is exist - process it [10:46:58]SAM_PROTO_GetFieldsCounters [10:46:58]wFMCommunicate request_size=4 [10:46:58]MH_SAM_APDU [10:46:58]CAPDU: 80 13 00 00 [10:46:58]Write to MH i2c: E2 08 00 D9 07 80 13 00 00 00 00 00 00 5C [10:46:58]Write i2c OK [10:46:58]MH_I2C_Read... [10:46:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:58]Read from MH i2c: E2 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 62 00 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 62 00 D9 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7B C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [10:46: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7B C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:58]wFMCommunicate OK [10:46:58]SAM_PROTO_GetFieldsCounters done [10:46:58]requested_item shift.num is exist - process it [10:46:58]requested_item shift.opened is exist - process it [10:46:58]req_shift_opened [10:46:58]FM_GetShiftState [10:46:58]SAM_PROTO_GetShiftState [10:46:58]wFMCommunicate request_size=4 [10:46:58]MH_SAM_APDU [10:46:58]CAPDU: 80 13 01 00 [10:46:58]Write to MH i2c: E2 08 00 DA 07 80 13 01 00 00 00 00 00 5E [10:46:58]Write i2c OK [10:46:58]MH_I2C_Read... [10:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:58]Read from MH i2c: E2 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 0E 00 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 0E 00 DA 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 9F [10:46:58]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:46:58]wFMCommunicate OK [10:46:58]SAM_PROTO_GetShiftState done [10:46:58]FM_GetShiftState done [10:46:58]req_shift_opened done [10:46:58]requested_item shift.open_date is exist - process it [10:46:58]req_shift_open_date [10:46:58]req_shift_open_date done [10:46:58]produce_requested_data done [10:46:58]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115579,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:46:58]process_action_free close_receipt [10:46:58]json_value_free [10:46:58]json_value_free done [10:46:58]process_json_proto returns [10:46:58]Send response to host [10:46:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115579,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:46:58]free response buf [10:46:58]execute_script done [10:46:58]execute_script returns [10:46:58]free content buf [10:46:58]Sock 9.Close socket [10:46:58]Sock 9.Thread stoped [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:04]accept exits with 7 [10:48:04]New connection [10:48:04]New thread 3067194724 created [10:48:04]Thread 3067051364 joined [10:48:04]Waiting for new connection... [10:48:04] Sock 7.Parse request [10:48:04]Sock 7.Check first char [10:48:04]Sock 7.First char is OK [10:48:04]request: POST /json_proto HTTP/1.0 [10:48:04]Method: POST [10:48:04]URL: /json_proto [10:48:04]Method is POST - this is cgi request [10:48:04]url: /json_proto [10:48:04]query_string will be loaded in cgi processing [10:48:04]execute_cgi json_proto POST (null) [10:48:04]execute_cgi path=json_proto method=POST [10:48:04]POST find Content-Length [10:48:04]Host: 172.17.41.136:8080 [10:48:04]Content-Length: 660 [10:48:04]Content-Type: application/json [10:48:04] [10:48:04]POST finish read [10:48:04]Found Content-Length = 660 [10:48:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 5.780, "sum" : 400.55, "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:48:04]execute_script... [10:48: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)24617544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 5.780, "sum" : 400.55, "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:48:04]POST & json_proto [10:48:04]process_json_proto [10:48:04]json parsed OK: [10:48:04]protocol is kg_v1.0 [10:48:04]action value=close_receipt [10:48:04]process_action close_receipt [10:48:04]cmd_close_receipt [10:48:04]MH_GetDate [10:48:04]Write to MH i2c: F0 00 00 DB 07 D1 [10:48:04]Write i2c OK [10:48:04]MH_I2C_Read... [10:48:04]Read from MH i2c: F0 [10:48:04]MH_I2C_Read... [10:48:04]Read from MH i2c: F0 09 00 [10:48:04]MH_I2C_Read... [10:48:04]Read from MH i2c: F0 09 00 DB 07 00 65 47 F1 66 1B D0 5A 64 86 [10:48:04]GetLastDocTimeStamp 1727088415 [10:48:04]current date 1727088485 [10:48:04]FM_GetShiftState [10:48:04]SAM_PROTO_GetShiftState [10:48:04]wFMCommunicate request_size=4 [10:48:04]MH_SAM_APDU [10:48:04]CAPDU: 80 13 01 00 [10:48:04]Write to MH i2c: E2 08 00 DC 07 80 13 01 00 00 00 00 00 60 [10:48:04]Write i2c OK [10:48:04]MH_I2C_Read... [10:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:04]Read from MH i2c: E2 [10:48:04]MH_I2C_Read... [10:48:04]Read from MH i2c: E2 0E 00 [10:48:04]MH_I2C_Read... [10:48:04]Read from MH i2c: E2 0E 00 DC 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A1 [10:48:04]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:48:04]wFMCommunicate OK [10:48:04]SAM_PROTO_GetShiftState done [10:48:04]FM_GetShiftState done [10:48:04]opened in 1727052070 [10:48:04]opened+sec_in_day 1727138470 [10:48:04]quantity*price = 40055 [10:48:04]sum+1 = 40056 [10:48:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 63 23.09.2024 10:48 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115580 ФПД: 195985399288120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T104805&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115580&fm=195985399288120&tin=02508201610067®Number=0000000000091831&sum=40000 [10:48:05]StoreToDocumentArchive [10:48:05]shift 472 fd 115580 [10:48:05]save to /storage/0472/doc_00115580 [10:48:05]save last doc name /storage/0472/doc_00115580 to /storage/kkm_last_doc_name [10:48:05]save OK [10:48:05]Clear old archive folders... [10:48:05]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:48:05]tlvbuf is 00942ED0 [10:48:05]SAM_PROTO_ClearQueue [10:48:05]wFMCommunicate request_size=4 [10:48:05]MH_SAM_APDU [10:48:05]CAPDU: 80 09 00 00 [10:48:05]Write to MH i2c: E2 08 00 E9 07 80 09 00 00 00 00 00 00 62 [10:48:05]Write i2c OK [10:48:05]MH_I2C_Read... [10:48:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:05]Read from MH i2c: E2 [10:48:05]MH_I2C_Read... [10:48:05]Read from MH i2c: E2 03 00 [10:48:05]MH_I2C_Read... [10:48:05]Read from MH i2c: E2 03 00 E9 07 00 90 00 64 [10:48:05]RAPDU: 90 00 [10:48:05]wFMCommunicate OK [10:48:05]SAM_PROTO_ClearQueue done [10:48:05]KKMCreateOFDPacket [10:48:05]OFDProtocolAddRootSTLVToBuf [10:48:05]FM_MakeSignedData [10:48:05]FM_MakeSignedData [10:48:05]SAM_PROTO_SignData [10:48:05]wFMCommunicate request_size=4 [10:48:05]MH_SAM_APDU [10:48:05]CAPDU: 80 0D 01 02 [10:48:05]Write to MH i2c: E2 08 00 EA 07 80 0D 01 02 00 00 00 00 6A [10:48:05]Write i2c OK [10:48:05]MH_I2C_Read... [10:48:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:05]Read from MH i2c: E2 [10:48:05]MH_I2C_Read... [10:48:05]Read from MH i2c: E2 03 00 [10:48:05]MH_I2C_Read... [10:48:05]Read from MH i2c: E2 03 00 EA 07 00 90 00 65 [10:48:05]RAPDU: 90 00 [10:48:05]wFMCommunicate OK [10:48:05]wFMCommunicate request_size=253 [10:48:05]MH_SAM_APDU [10:48:05]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 77 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 9E 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 3F 00 00 00 F4 03 04 00 65 47 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7C C3 01 00 35 04 06 00 B2 3F 68 1B 11 38 [10:48:05]Write to MH i2c: E2 00 01 EB 07 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 77 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 9E 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 3F 00 00 00 F4 03 04 00 65 47 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7C C3 01 00 35 04 06 00 B2 3F 68 1B 11 38 00 00 E5 [10:48:05]Write i2c OK [10:48:05]MH_I2C_Read... [10:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:06]Read from MH i2c: E2 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 03 00 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 03 00 EB 07 00 90 00 66 [10:48:06]RAPDU: 90 00 [10:48:06]wFMCommunicate OK [10:48:06]wFMCommunicate request_size=4 [10:48:06]MH_SAM_APDU [10:48:06]CAPDU: 80 0D 03 02 [10:48:06]Write to MH i2c: E2 08 00 EC 07 80 0D 03 02 00 00 00 00 6E [10:48:06]Write i2c OK [10:48:06]MH_I2C_Read... [10:48:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:06]Read from MH i2c: E2 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 0B 00 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 0B 00 EC 07 00 4C 39 71 4B 45 EA 11 A5 90 00 95 [10:48:06]RAPDU: 4C 39 71 4B 45 EA 11 A5 90 00 [10:48:06]wFMCommunicate OK [10:48:06]SAM_PROTO_SignData done [10:48:06]FM_MakeSignedData done [10:48:06]CreateOFDProtocolMessage [10:48:06]wFMCommunicate request_size=4 [10:48:06]MH_SAM_APDU [10:48:06]CAPDU: 80 11 00 00 [10:48:06]Write to MH i2c: E2 08 00 ED 07 80 11 00 00 00 00 00 00 6E [10:48:06]Write i2c OK [10:48:06]MH_I2C_Read... [10:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:06]Read from MH i2c: E2 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 17 00 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 17 00 ED 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BC [10:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:48:06]wFMCommunicate OK [10:48:06]CreateOFDProtocolMessage done [10:48:06]OFDSenderStorePacket 115580 [10:48:06]StoreOFDPacket docnum=115580 [10:48:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 F0 E9 00 01 72 8C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 77 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 9E 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 3F 00 00 00 F4 03 04 00 65 47 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7C C3 01 00 35 04 06 00 B2 3F 68 1B 11 38 4C 39 71 4B 45 EA 11 A5 [10:48:06]CheckFolder [10:48:06]dirname=/storage/ofd_packets [10:48:06]CheckFolder done [10:48:06]ProducePacketName [10:48:06]name=ofd_packets/00115580 [10:48:06]NVStorageSaveData ofd_packets/00115580 [10:48:06]File name is /storage/ofd_packets/00115580 [10:48:06]Write 294 bytes [10:48:06]NVStorageSaveData done [10:48:06]OFDSenderStorePacket done [10:48:06]KKMCreateOFDPacket done [10:48:06]NVStorageSaveData kkm_last_timestamp [10:48:06]File name is /storage/kkm_last_timestamp [10:48:06]Write 4 bytes [10:48:06]NVStorageSaveData done [10:48:06]ExternCall_PrintAddStr [10:48:06]wPrintStart [10:48:06]Write to MH i2c: 01 00 00 EE 07 F5 [10:48:06]Write i2c OK [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: 01 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: 01 07 00 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: 01 07 00 EE 07 00 00 00 00 00 FF 0F 0A [10:48:06]RasterBufferAndPrint [10:48:06]line Счет N : (1)24617544 [10:48:06]line ИНН: 02508201610067 [10:48:06]line Контрольно-Кассовый Чек [10:48:06]line ПРОДАЖА [10:48:06]line ТРК (МРК, ГНК) : 34 [10:48:06]line Товар: 2710124130 [10:48:06]line SU-92 [10:48:06]line 5.780 * 69.30 [10:48:06]line = 400.55 [10:48:06]line НДС 12% НСП 1% [10:48:06]line > о реализуемом товаре [10:48:06]line ОКРУГЛЕНИЕ: -0.55 [10:48:06]line ИТОГО: 400.00 [10:48:06]line Внесено: 400.00 [10:48:06]line СДАЧА: 0.00 [10:48:06]line НСП 1% : 3.54 [10:48:06]line НДС 12% : 42.54 [10:48:06]line Наличными: 400.00 [10:48:06]line Безнал.: 0.00 [10:48:06]line Место: АЗС № 90 "Партнер Нефть" [10:48:06]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:48:06]line СНО: Общий режим [10:48:06]line Чек 63 23.09.2024 10:48 [10:48:06]line Смена: 472 ФФД: 1.0 [10:48:06]line ЗНМ: 0300000120 [10:48:06]line РНМ: 0000000000091831 [10:48:06]line Версия ККМ: 001 [10:48:06]line ФМ: 0000000000871830 [10:48:06]line ФД: 115580 [10:48:06]line ФПД: 195985399288120 [10:48:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T104805&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115580&fm=195985399288120&tin=02508201610067®Number=0000000000091831&sum=40000 [10:48:06]OFD Sender: Processing packet 115580 [packets to send 481, broken 480] [10:48:06]ProducePacketName [10:48:06]name=ofd_packets/00115580 [10:48:06]OFD Sender: To server: pG, [10:48:06]CommunicateWithHost lk.salyk.kg:30040 [10:48:06]ConnectInit lk.salyk.kg [10:48:06]written 0, free lines is 4095 [10:48:06]Connected sock=10 [10:48: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 38 33 30 08 01 00 00 F0 E9 00 01 72 8C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 77 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 9E 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 3F 00 00 00 F4 03 04 00 65 47 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7C C3 01 00 35 04 06 00 B2 3F 68 1B 11 38 4C 39 71 4B 45 EA 11 A5 [10:48:06]Write to MH i2c: 01 00 00 18 08 20 [10:48:06]Write i2c OK [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: 01 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: 01 07 00 [10:48:07]MH_I2C_Read... [10:48:07]Read from MH i2c: 01 07 00 18 08 00 00 00 00 00 65 0C 98 [10:48:07]RasterBufferAndPrint [10:48:07]line [10:48:07]line [10:48:07]line [10:48:07]line [10:48:07]line [10:48:07]written 0, free lines is 3177 [10:48:07]MH_Cut [10:48:07]Write to MH i2c: D1 01 00 1F 08 01 F9 [10:48:07]Write i2c OK [10:48:07]MH_I2C_Read... [10:48:07]Read from MH i2c: D1 [10:48:07]MH_I2C_Read... [10:48:07]Read from MH i2c: D1 01 00 [10:48:07]MH_I2C_Read... [10:48:07]Read from MH i2c: D1 01 00 1F 08 00 F8 [10:48:07]Write to MH i2c: 01 00 00 20 08 28 [10:48:07]Write i2c OK [10:48:07]MH_I2C_Read... [10:48:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 91 29 47 00 49 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 38 33 30 10 04 04 00 7C C3 01 00 F4 03 04 00 A8 EC F0 66 B6 04 01 00 00 4A C5 13 66 B7 4A 42 27 [10:48:07]CommunicateWithHost err = 0 [10:48:07]CheckOFDResponse [10:48:07]1017 (14) - 77093643461234 [10:48:07]1041 (16) - 0000000000871830 [10:48:07]1040 (4) - 115580 [10:48:07]1012 (4) - 23.09.2024 04:20 [10:48:07]1206 (1) - 0 [10:48:07]OFD Sender: Remove packet 115580 [10:48:07]ProducePacketName [10:48:07]name=ofd_packets/00115580 [10:48:07]NVStorageDeleteData [10:48:07]OFD Sender: No OFD packet to send [10:48:08]*** Cut start [10:48:08]*** Partial cut [10:48:08]*** CUTSNS_PIN = 1 [10:48:08]*** CUTSNS_PIN = 0 [10:48:08]*** Brake cut motor [10:48:08]Read from MH i2c: 01 [10:48:08]MH_I2C_Read... [10:48:08]*** Stop cut motor [10:48:08]*** Cut end [10:48:08]Read from MH i2c: 01 07 00 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: 01 07 00 20 08 00 00 00 00 00 FF 0F 3D [10:48:08]process_action close_receipt done [10:48:08]requested_data is exist [10:48:08]produce_requested_data [10:48:08]requested_item fm.sn is exist - process it [10:48:08]wFMCommunicate request_size=4 [10:48:08]MH_SAM_APDU [10:48:08]CAPDU: 80 11 00 00 [10:48:08]Write to MH i2c: E2 08 00 21 08 80 11 00 00 00 00 00 00 A3 [10:48:08]Write i2c OK [10:48:08]MH_I2C_Read... [10:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:08]Read from MH i2c: E2 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: E2 17 00 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: E2 17 00 21 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F1 [10:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:48:08]wFMCommunicate OK [10:48:08]requested_item fd.num is exist - process it [10:48:08]SAM_PROTO_GetFieldsCounters [10:48:08]wFMCommunicate request_size=4 [10:48:08]MH_SAM_APDU [10:48:08]CAPDU: 80 13 00 00 [10:48:08]Write to MH i2c: E2 08 00 22 08 80 13 00 00 00 00 00 00 A6 [10:48:08]Write i2c OK [10:48:08]MH_I2C_Read... [10:48:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:09]Read from MH i2c: E2 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 62 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 62 00 22 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7C C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [10:48:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7C C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:09]wFMCommunicate OK [10:48:09]SAM_PROTO_GetFieldsCounters done [10:48:09]requested_item shift.num is exist - process it [10:48:09]requested_item shift.opened is exist - process it [10:48:09]req_shift_opened [10:48:09]FM_GetShiftState [10:48:09]SAM_PROTO_GetShiftState [10:48:09]wFMCommunicate request_size=4 [10:48:09]MH_SAM_APDU [10:48:09]CAPDU: 80 13 01 00 [10:48:09]Write to MH i2c: E2 08 00 23 08 80 13 01 00 00 00 00 00 A8 [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:09]Read from MH i2c: E2 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 0E 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 0E 00 23 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E9 [10:48:09]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:48:09]wFMCommunicate OK [10:48:09]SAM_PROTO_GetShiftState done [10:48:09]FM_GetShiftState done [10:48:09]req_shift_opened done [10:48:09]requested_item shift.open_date is exist - process it [10:48:09]req_shift_open_date [10:48:09]req_shift_open_date done [10:48:09]produce_requested_data done [10:48:09]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115580,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:48:09]process_action_free close_receipt [10:48:09]json_value_free [10:48:09]json_value_free done [10:48:09]process_json_proto returns [10:48:09]Send response to host [10:48:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115580,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:48:09]free response buf [10:48:09]execute_script done [10:48:09]execute_script returns [10:48:09]free content buf [10:48:09]Sock 7.Close socket [10:48:09]Sock 7.Thread stoped [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:45]accept exits with 9 [10:48:45]New connection [10:48:45]New thread 3067051364 created [10:48:45]Thread 3067194724 joined [10:48:45]Waiting for new connection... [10:48:45] Sock 9.Parse request [10:48:45]Sock 9.Check first char [10:48:45]Sock 9.First char is OK [10:48:45]request: POST /json_proto HTTP/1.0 [10:48:45]Method: POST [10:48:45]URL: /json_proto [10:48:45]Method is POST - this is cgi request [10:48:45]url: /json_proto [10:48:45]query_string will be loaded in cgi processing [10:48:45]execute_cgi json_proto POST (null) [10:48:45]execute_cgi path=json_proto method=POST [10:48:45]POST find Content-Length [10:48:45]Host: 172.17.41.136:8080 [10:48:45]Content-Length: 786 [10:48:45]Content-Type: application/json [10:48:45] [10:48:45]POST finish read [10:48:45]Found Content-Length = 786 [10:48:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 19.490, "sum" : 1350.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1350.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:45]execute_script... [10:48:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 19.490, "sum" : 1350.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1350.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:45]POST & json_proto [10:48:45]process_json_proto [10:48:45]json parsed OK: [10:48:45]protocol is kg_v1.0 [10:48:45]action value=close_receipt [10:48:45]process_action close_receipt [10:48:45]cmd_close_receipt [10:48:45]MH_GetDate [10:48:45]Write to MH i2c: F0 00 00 24 08 1B [10:48:45]Write i2c OK [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: F0 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: F0 09 00 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: F0 09 00 24 08 00 8E 47 F1 66 1B D0 5A 64 F9 [10:48:45]GetLastDocTimeStamp 1727088485 [10:48:45]current date 1727088526 [10:48:45]FM_GetShiftState [10:48:45]SAM_PROTO_GetShiftState [10:48:45]wFMCommunicate request_size=4 [10:48:45]MH_SAM_APDU [10:48:45]CAPDU: 80 13 01 00 [10:48:45]Write to MH i2c: E2 08 00 25 08 80 13 01 00 00 00 00 00 AA [10:48:45]Write i2c OK [10:48:45]MH_I2C_Read... [10:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:46]Read from MH i2c: E2 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 0E 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 0E 00 25 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 EB [10:48:46]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:48:46]wFMCommunicate OK [10:48:46]SAM_PROTO_GetShiftState done [10:48:46]FM_GetShiftState done [10:48:46]opened in 1727052070 [10:48:46]opened+sec_in_day 1727138470 [10:48:46]quantity*price = 135065 [10:48:46]sum+1 = 135067 [10:48:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1350.66 НСП 1% : 11.95 НДС 12% : 143.43 Наличными: 0.00 Безнал.: 1350.66 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 64 23.09.2024 10:48 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115581 ФПД: 83154521206754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T104846&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115581&fm=83154521206754&tin=02508201610067®Number=0000000000091831&sum=135066 [10:48:47]StoreToDocumentArchive [10:48:47]shift 472 fd 115581 [10:48:47]save to /storage/0472/doc_00115581 [10:48:47]save last doc name /storage/0472/doc_00115581 to /storage/kkm_last_doc_name [10:48:47]save OK [10:48:47]Clear old archive folders... [10:48:47]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:48:47]tlvbuf is 0094F7F0 [10:48:47]SAM_PROTO_ClearQueue [10:48:47]wFMCommunicate request_size=4 [10:48:47]MH_SAM_APDU [10:48:47]CAPDU: 80 09 00 00 [10:48:47]Write to MH i2c: E2 08 00 32 08 80 09 00 00 00 00 00 00 AC [10:48:47]Write i2c OK [10:48:47]MH_I2C_Read... [10:48:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:47]Read from MH i2c: E2 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 03 00 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 03 00 32 08 00 90 00 AE [10:48:47]RAPDU: 90 00 [10:48:47]wFMCommunicate OK [10:48:47]SAM_PROTO_ClearQueue done [10:48:47]KKMCreateOFDPacket [10:48:47]OFDProtocolAddRootSTLVToBuf [10:48:47]FM_MakeSignedData [10:48:47]FM_MakeSignedData [10:48:47]SAM_PROTO_SignData [10:48:47]wFMCommunicate request_size=4 [10:48:47]MH_SAM_APDU [10:48:47]CAPDU: 80 0D 01 02 [10:48:47]Write to MH i2c: E2 08 00 33 08 80 0D 01 02 00 00 00 00 B4 [10:48:47]Write i2c OK [10:48:47]MH_I2C_Read... [10:48:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:47]Read from MH i2c: E2 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 03 00 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 03 00 33 08 00 90 00 AF [10:48:47]RAPDU: 90 00 [10:48:47]wFMCommunicate OK [10:48:47]wFMCommunicate request_size=253 [10:48:47]MH_SAM_APDU [10:48:47]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 22 4C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 9A 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 0F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 8E 47 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7D C3 01 00 35 04 06 00 4B A0 EB B2 AF E2 [10:48:47]Write to MH i2c: E2 00 01 34 08 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 22 4C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 9A 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 0F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 8E 47 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7D C3 01 00 35 04 06 00 4B A0 EB B2 AF E2 00 00 8D [10:48:47]Write i2c OK [10:48:47]MH_I2C_Read... [10:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:47]Read from MH i2c: E2 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 03 00 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 03 00 34 08 00 90 00 B0 [10:48:47]RAPDU: 90 00 [10:48:47]wFMCommunicate OK [10:48:47]wFMCommunicate request_size=4 [10:48:47]MH_SAM_APDU [10:48:47]CAPDU: 80 0D 03 02 [10:48:47]Write to MH i2c: E2 08 00 35 08 80 0D 03 02 00 00 00 00 B8 [10:48:47]Write i2c OK [10:48:47]MH_I2C_Read... [10:48:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:47]Read from MH i2c: E2 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 0B 00 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 0B 00 35 08 00 BB 98 13 D5 F4 81 DF 9E 90 00 E6 [10:48:47]RAPDU: BB 98 13 D5 F4 81 DF 9E 90 00 [10:48:47]wFMCommunicate OK [10:48:47]SAM_PROTO_SignData done [10:48:47]FM_MakeSignedData done [10:48:47]CreateOFDProtocolMessage [10:48:47]wFMCommunicate request_size=4 [10:48:47]MH_SAM_APDU [10:48:47]CAPDU: 80 11 00 00 [10:48:47]Write to MH i2c: E2 08 00 36 08 80 11 00 00 00 00 00 00 B8 [10:48:47]Write i2c OK [10:48:47]MH_I2C_Read... [10:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:47]Read from MH i2c: E2 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 17 00 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 17 00 36 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 06 [10:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:48:47]wFMCommunicate OK [10:48:47]CreateOFDProtocolMessage done [10:48:47]OFDSenderStorePacket 115581 [10:48:47]StoreOFDPacket docnum=115581 [10:48:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 E1 29 00 01 86 E9 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 22 4C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 9A 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 0F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 8E 47 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7D C3 01 00 35 04 06 00 4B A0 EB B2 AF E2 BB 98 13 D5 F4 81 DF 9E [10:48:47]CheckFolder [10:48:47]dirname=/storage/ofd_packets [10:48:47]CheckFolder done [10:48:47]ProducePacketName [10:48:47]name=ofd_packets/00115581 [10:48:47]NVStorageSaveData ofd_packets/00115581 [10:48:47]File name is /storage/ofd_packets/00115581 [10:48:47]Write 294 bytes [10:48:47]NVStorageSaveData done [10:48:47]OFDSenderStorePacket done [10:48:47]KKMCreateOFDPacket done [10:48:47]NVStorageSaveData kkm_last_timestamp [10:48:47]File name is /storage/kkm_last_timestamp [10:48:47]Write 4 bytes [10:48:47]NVStorageSaveData done [10:48:47]ExternCall_PrintAddStr [10:48:47]wPrintStart [10:48:47]Write to MH i2c: 01 00 00 37 08 3F [10:48:47]Write i2c OK [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: 01 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: 01 07 00 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: 01 07 00 37 08 00 00 00 00 00 FF 0F 54 [10:48:47]RasterBufferAndPrint [10:48:47]line Счет N : (1)24617545 [10:48:47]line ИНН: 02508201610067 [10:48:47]line Контрольно-Кассовый Чек [10:48:47]line ПРОДАЖА [10:48:47]line ТРК (МРК, ГНК) : 54 [10:48:47]line Товар: 2710124130 [10:48:47]line SU-92 [10:48:47]line 19.490 * 69.30 [10:48:47]line = 1350.66 [10:48:47]line НДС 12% НСП 1% [10:48:47]line > о реализуемом товаре [10:48:47]line ИТОГО: 1350.66 [10:48:47]line НСП 1% : 11.95 [10:48:47]line НДС 12% : 143.43 [10:48:47]line Наличными: 0.00 [10:48:47]line Безнал.: 1350.66 [10:48:47]line Место: АЗС № 90 "Партнер Нефть" [10:48:47]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:48:47]line СНО: Общий режим [10:48:47]line Чек 64 23.09.2024 10:48 [10:48:47]line Смена: 472 ФФД: 1.0 [10:48:47]line ЗНМ: 0300000120 [10:48:47]line РНМ: 0000000000091831 [10:48:47]line Версия ККМ: 001 [10:48:47]line Платежная система: O! деньги [10:48:47]line ФМ: 0000000000871830 [10:48:47]line ФД: 115581 [10:48:47]line ФПД: 83154521206754 [10:48:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T104846&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115581&fm=83154521206754&tin=02508201610067®Number=0000000000091831&sum=135066 [10:48:47]written 0, free lines is 4095 [10:48:47]OFD Sender: Processing packet 115581 [packets to send 481, broken 480] [10:48:47]ProducePacketName [10:48:47]name=ofd_packets/00115581 [10:48:47]OFD Sender: To server: pG, [10:48:47]CommunicateWithHost lk.salyk.kg:30040 [10:48:47]ConnectInit lk.salyk.kg [10:48:47]Connected sock=10 [10:48:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 E1 29 00 01 86 E9 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 22 4C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 9A 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 0F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 8E 47 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7D C3 01 00 35 04 06 00 4B A0 EB B2 AF E2 BB 98 13 D5 F4 81 DF 9E [10:48:48]Write to MH i2c: 01 00 00 60 08 68 [10:48:48]Write i2c OK [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: 01 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: 01 07 00 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: 01 07 00 60 08 00 00 00 00 00 74 0C EF [10:48:48]RasterBufferAndPrint [10:48:48]line [10:48:48]line [10:48:48]line [10:48:48]line [10:48:48]line [10:48:48]written 0, free lines is 3193 [10:48:48]MH_Cut [10:48:48]Write to MH i2c: D1 01 00 67 08 01 41 [10:48:48]Write i2c OK [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: D1 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: D1 01 00 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: D1 01 00 67 08 00 40 [10:48:48]Write to MH i2c: 01 00 00 68 08 70 [10:48:48]Write i2c OK [10:48:48]MH_I2C_Read... [10:48:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 21 09 47 00 55 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 38 33 30 10 04 04 00 7D C3 01 00 F4 03 04 00 D1 EC F0 66 B6 04 01 00 00 71 B4 7C 4E 2D 92 93 F1 [10:48:48]CommunicateWithHost err = 0 [10:48:48]CheckOFDResponse [10:48:48]1017 (14) - 77093643461234 [10:48:48]1041 (16) - 0000000000871830 [10:48:48]1040 (4) - 115581 [10:48:48]1012 (4) - 23.09.2024 04:21 [10:48:48]1206 (1) - 0 [10:48:48]OFD Sender: Remove packet 115581 [10:48:48]ProducePacketName [10:48:48]name=ofd_packets/00115581 [10:48:48]NVStorageDeleteData [10:48:48]OFD Sender: No OFD packet to send [10:48:49]*** Cut start [10:48:49]*** Partial cut [10:48:49]*** CUTSNS_PIN = 1 [10:48:49]*** CUTSNS_PIN = 0 [10:48:49]*** Brake cut motor [10:48:49]Read from MH i2c: 01 [10:48:49]MH_I2C_Read... [10:48:49]*** Stop cut motor [10:48:49]*** Cut end [10:48:49]Read from MH i2c: 01 07 00 [10:48:49]MH_I2C_Read... [10:48:49]Read from MH i2c: 01 07 00 68 08 00 00 00 00 00 FF 0F 85 [10:48:49]process_action close_receipt done [10:48:49]requested_data is exist [10:48:49]produce_requested_data [10:48:49]requested_item fm.sn is exist - process it [10:48:49]wFMCommunicate request_size=4 [10:48:49]MH_SAM_APDU [10:48:49]CAPDU: 80 11 00 00 [10:48:49]Write to MH i2c: E2 08 00 69 08 80 11 00 00 00 00 00 00 EB [10:48:49]Write i2c OK [10:48:49]MH_I2C_Read... [10:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:50]Read from MH i2c: E2 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 17 00 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 17 00 69 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 39 [10:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:48:50]wFMCommunicate OK [10:48:50]requested_item fd.num is exist - process it [10:48:50]SAM_PROTO_GetFieldsCounters [10:48:50]wFMCommunicate request_size=4 [10:48:50]MH_SAM_APDU [10:48:50]CAPDU: 80 13 00 00 [10:48:50]Write to MH i2c: E2 08 00 6A 08 80 13 00 00 00 00 00 00 EE [10:48:50]Write i2c OK [10:48:50]MH_I2C_Read... [10:48:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:50]Read from MH i2c: E2 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 62 00 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 62 00 6A 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7D C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [10:48: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7D C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:50]wFMCommunicate OK [10:48:50]SAM_PROTO_GetFieldsCounters done [10:48:50]requested_item shift.num is exist - process it [10:48:50]requested_item shift.opened is exist - process it [10:48:50]req_shift_opened [10:48:50]FM_GetShiftState [10:48:50]SAM_PROTO_GetShiftState [10:48:50]wFMCommunicate request_size=4 [10:48:50]MH_SAM_APDU [10:48:50]CAPDU: 80 13 01 00 [10:48:50]Write to MH i2c: E2 08 00 6B 08 80 13 01 00 00 00 00 00 F0 [10:48:50]Write i2c OK [10:48:50]MH_I2C_Read... [10:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:50]Read from MH i2c: E2 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 0E 00 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 0E 00 6B 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 31 [10:48:50]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:48:50]wFMCommunicate OK [10:48:50]SAM_PROTO_GetShiftState done [10:48:50]FM_GetShiftState done [10:48:50]req_shift_opened done [10:48:50]requested_item shift.open_date is exist - process it [10:48:50]req_shift_open_date [10:48:50]req_shift_open_date done [10:48:50]produce_requested_data done [10:48:50]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115581,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:48:50]process_action_free close_receipt [10:48:50]json_value_free [10:48:50]json_value_free done [10:48:50]process_json_proto returns [10:48:50]Send response to host [10:48:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115581,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:48:50]free response buf [10:48:50]execute_script done [10:48:50]execute_script returns [10:48:50]free content buf [10:48:50]Sock 9.Close socket [10:48:50]Sock 9.Thread stoped [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]accept exits with 7 [10:50:54]New connection [10:50:54]New thread 3067194724 created [10:50:54]Thread 3067051364 joined [10:50:54]Waiting for new connection... [10:50:54] Sock 7.Parse request [10:50:54]Sock 7.Check first char [10:50:54]Sock 7.First char is OK [10:50:54]request: POST /json_proto HTTP/1.0 [10:50:54]Method: POST [10:50:54]URL: /json_proto [10:50:54]Method is POST - this is cgi request [10:50:54]url: /json_proto [10:50:54]query_string will be loaded in cgi processing [10:50:54]execute_cgi json_proto POST (null) [10:50:54]execute_cgi path=json_proto method=POST [10:50:54]POST find Content-Length [10:50:54]Host: 172.17.41.136:8080 [10:50:54]Content-Length: 805 [10:50:54]Content-Type: application/json [10:50:54] [10:50:54]POST finish read [10:50:54]Found Content-Length = 805 [10:50:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:54]execute_script... [10:50: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)24617546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:54]POST & json_proto [10:50:54]process_json_proto [10:50:54]json parsed OK: [10:50:54]protocol is kg_v1.0 [10:50:54]action value=close_receipt [10:50:54]process_action close_receipt [10:50:54]cmd_close_receipt [10:50:54]MH_GetDate [10:50:54]Write to MH i2c: F0 00 00 6C 08 63 [10:50:54]Write i2c OK [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: F0 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: F0 09 00 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: F0 09 00 6C 08 00 0F 48 F1 66 1B D0 5A 64 C3 [10:50:54]GetLastDocTimeStamp 1727088526 [10:50:54]current date 1727088655 [10:50:54]FM_GetShiftState [10:50:54]SAM_PROTO_GetShiftState [10:50:54]wFMCommunicate request_size=4 [10:50:54]MH_SAM_APDU [10:50:54]CAPDU: 80 13 01 00 [10:50:54]Write to MH i2c: E2 08 00 6D 08 80 13 01 00 00 00 00 00 F2 [10:50:54]Write i2c OK [10:50:54]MH_I2C_Read... [10:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:54]OFD Sender: No OFD packet to send [10:50:54]Read from MH i2c: E2 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 0E 00 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 0E 00 6D 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 33 [10:50:54]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:50:54]wFMCommunicate OK [10:50:54]SAM_PROTO_GetShiftState done [10:50:54]FM_GetShiftState done [10:50:54]opened in 1727052070 [10:50:54]opened+sec_in_day 1727138470 [10:50:54]quantity*price = 100021 [10:50:54]sum+1 = 100023 [10:50:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 65 23.09.2024 10:50 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115582 ФПД: 122254678883877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105055&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115582&fm=122254678883877&tin=02508201610067®Number=0000000000091831&sum=100022 [10:50:55]StoreToDocumentArchive [10:50:55]shift 472 fd 115582 [10:50:55]save to /storage/0472/doc_00115582 [10:50:55]save last doc name /storage/0472/doc_00115582 to /storage/kkm_last_doc_name [10:50:55]save OK [10:50:55]Clear old archive folders... [10:50:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:55]tlvbuf is 00947D20 [10:50:55]SAM_PROTO_ClearQueue [10:50:55]wFMCommunicate request_size=4 [10:50:55]MH_SAM_APDU [10:50:55]CAPDU: 80 09 00 00 [10:50:55]Write to MH i2c: E2 08 00 7A 08 80 09 00 00 00 00 00 00 F4 [10:50:55]Write i2c OK [10:50:55]MH_I2C_Read... [10:50:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:55]Read from MH i2c: E2 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 03 00 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 03 00 7A 08 00 90 00 F6 [10:50:55]RAPDU: 90 00 [10:50:55]wFMCommunicate OK [10:50:55]SAM_PROTO_ClearQueue done [10:50:55]KKMCreateOFDPacket [10:50:55]OFDProtocolAddRootSTLVToBuf [10:50:55]FM_MakeSignedData [10:50:55]FM_MakeSignedData [10:50:55]SAM_PROTO_SignData [10:50:55]wFMCommunicate request_size=4 [10:50:55]MH_SAM_APDU [10:50:55]CAPDU: 80 0D 01 02 [10:50:55]Write to MH i2c: E2 08 00 7B 08 80 0D 01 02 00 00 00 00 FC [10:50:55]Write i2c OK [10:50:55]MH_I2C_Read... [10:50:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:55]Read from MH i2c: E2 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 03 00 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 03 00 7B 08 00 90 00 F7 [10:50:55]RAPDU: 90 00 [10:50:55]wFMCommunicate OK [10:50:55]wFMCommunicate request_size=255 [10:50:55]MH_SAM_APDU [10:50: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 35 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 41 00 00 00 F4 03 04 00 0F 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7E C3 01 00 35 04 06 00 6F [10:50:55]Write to MH i2c: E2 02 01 7C 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 35 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 41 00 00 00 F4 03 04 00 0F 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7E C3 01 00 35 04 06 00 6F 00 00 45 [10:50:55]Write i2c OK [10:50:55]MH_I2C_Read... [10:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:55]Read from MH i2c: E2 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 03 00 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 03 00 7C 08 00 90 00 F8 [10:50:55]RAPDU: 90 00 [10:50:55]wFMCommunicate OK [10:50:55]wFMCommunicate request_size=10 [10:50:55]MH_SAM_APDU [10:50:55]CAPDU: 80 0D 02 02 05 30 A2 B4 FE 25 [10:50:55]Write to MH i2c: E2 0D 00 7D 08 80 0D 02 02 05 00 30 A2 B4 FE 25 00 00 B2 [10:50:55]Write i2c OK [10:50:55]MH_I2C_Read... [10:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:55]Read from MH i2c: E2 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 03 00 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 03 00 7D 08 00 90 00 F9 [10:50:55]RAPDU: 90 00 [10:50:55]wFMCommunicate OK [10:50:55]wFMCommunicate request_size=4 [10:50:55]MH_SAM_APDU [10:50:55]CAPDU: 80 0D 03 02 [10:50:55]Write to MH i2c: E2 08 00 7E 08 80 0D 03 02 00 00 00 00 01 [10:50:55]Write i2c OK [10:50:55]MH_I2C_Read... [10:50:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:55]Read from MH i2c: E2 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 0B 00 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 0B 00 7E 08 00 6D 87 3A 6E EA 45 5E 86 90 00 B1 [10:50:55]RAPDU: 6D 87 3A 6E EA 45 5E 86 90 00 [10:50:55]wFMCommunicate OK [10:50:55]SAM_PROTO_SignData done [10:50:55]FM_MakeSignedData done [10:50:55]CreateOFDProtocolMessage [10:50:55]wFMCommunicate request_size=4 [10:50:55]MH_SAM_APDU [10:50:55]CAPDU: 80 11 00 00 [10:50:55]Write to MH i2c: E2 08 00 7F 08 80 11 00 00 00 00 00 00 01 [10:50:55]Write i2c OK [10:50:55]MH_I2C_Read... [10:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:55]Read from MH i2c: E2 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 17 00 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 17 00 7F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4F [10:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:50:55]wFMCommunicate OK [10:50:55]CreateOFDProtocolMessage done [10:50:55]OFDSenderStorePacket 115582 [10:50:55]StoreOFDPacket docnum=115582 [10:50:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 22 AA 07 01 95 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 41 00 00 00 F4 03 04 00 0F 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7E C3 01 00 35 04 06 00 6F 30 A2 B4 FE 25 6D 87 3A 6E EA 45 5E 86 [10:50:55]CheckFolder [10:50:55]dirname=/storage/ofd_packets [10:50:55]CheckFolder done [10:50:55]ProducePacketName [10:50:55]name=ofd_packets/00115582 [10:50:55]NVStorageSaveData ofd_packets/00115582 [10:50:55]File name is /storage/ofd_packets/00115582 [10:50:55]Write 301 bytes [10:50:55]NVStorageSaveData done [10:50:55]OFDSenderStorePacket done [10:50:55]KKMCreateOFDPacket done [10:50:55]NVStorageSaveData kkm_last_timestamp [10:50:55]File name is /storage/kkm_last_timestamp [10:50:55]Write 4 bytes [10:50:55]NVStorageSaveData done [10:50:55]ExternCall_PrintAddStr [10:50:55]wPrintStart [10:50:55]Write to MH i2c: 01 00 00 80 08 88 [10:50:55]Write i2c OK [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: 01 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: 01 07 00 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: 01 07 00 80 08 00 00 00 00 00 FF 0F 9D [10:50:55]RasterBufferAndPrint [10:50:55]line Счет N : (1)24617546 [10:50:55]line ИНН: 02508201610067 [10:50:55]line Контрольно-Кассовый Чек [10:50:55]line ПРОДАЖА [10:50:55]line ТРК (МРК, ГНК) : 32 [10:50:55]line Товар: 2710124500 [10:50:55]line Аи-95-К-5 [10:50:55]line 13.480 * 74.20 [10:50:55]line = 1000.22 [10:50:55]line НДС 12% НСП 1% [10:50:55]line > о реализуемом товаре [10:50:55]line ИТОГО: 1000.22 [10:50:55]line НСП 1% : 8.85 [10:50:55]line НДС 12% : 106.22 [10:50:55]line Наличными: 0.00 [10:50:55]line Безнал.: 1000.22 [10:50:55]line Место: АЗС № 90 "Партнер Нефть" [10:50:55]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:50:55]line СНО: Общий режим [10:50:55]line Чек 65 23.09.2024 10:50 [10:50:55]line Смена: 472 ФФД: 1.0 [10:50:55]line ЗНМ: 0300000120 [10:50:55]line РНМ: 0000000000091831 [10:50:55]line Версия ККМ: 001 [10:50:55]line Платежная система: O! деньги [10:50:55]line ФМ: 0000000000871830 [10:50:55]line ФД: 115582 [10:50:55]line ФПД: 122254678883877 [10:50:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105055&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115582&fm=122254678883877&tin=02508201610067®Number=0000000000091831&sum=100022 [10:50:55]written 0, free lines is 4095 [10:50:55]OFD Sender: Processing packet 115582 [packets to send 481, broken 480] [10:50:55]ProducePacketName [10:50:55]name=ofd_packets/00115582 [10:50:55]OFD Sender: To server: pG, [10:50:55]CommunicateWithHost lk.salyk.kg:30040 [10:50:55]ConnectInit lk.salyk.kg [10:50:56]Connected sock=10 [10:50: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 38 33 30 0F 01 00 00 22 AA 07 01 95 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 41 00 00 00 F4 03 04 00 0F 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7E C3 01 00 35 04 06 00 6F 30 A2 B4 FE 25 6D 87 3A 6E EA 45 5E 86 [10:50:56]Write to MH i2c: 01 00 00 A9 08 B1 [10:50:56]Write i2c OK [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: 01 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: 01 07 00 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: 01 07 00 A9 08 00 00 00 00 00 6D 0C 31 [10:50:56]RasterBufferAndPrint [10:50:56]line [10:50:56]line [10:50:56]line [10:50:56]line [10:50:56]line [10:50:56]written 0, free lines is 3187 [10:50:56]MH_Cut [10:50:56]Write to MH i2c: D1 01 00 B0 08 01 8A [10:50:56]Write i2c OK [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: D1 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: D1 01 00 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: D1 01 00 B0 08 00 89 [10:50:56]Write to MH i2c: 01 00 00 B1 08 B9 [10:50:56]Write i2c OK [10:50:56]MH_I2C_Read... [10:50:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 AE CB 47 00 18 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7E C3 01 00 F4 03 04 00 51 ED F0 66 B6 04 01 00 00 39 98 C6 75 16 98 E1 43 [10:50:56]CommunicateWithHost err = 0 [10:50:56]CheckOFDResponse [10:50:56]1017 (14) - 77093643461234 [10:50:56]1041 (16) - 0000000000871830 [10:50:56]1040 (4) - 115582 [10:50:56]1012 (4) - 23.09.2024 04:23 [10:50:56]1206 (1) - 0 [10:50:56]OFD Sender: Remove packet 115582 [10:50:56]ProducePacketName [10:50:56]name=ofd_packets/00115582 [10:50:56]NVStorageDeleteData [10:50:56]OFD Sender: No OFD packet to send [10:50:57]*** Cut start [10:50:57]*** Partial cut [10:50:57]*** CUTSNS_PIN = 1 [10:50:57]*** CUTSNS_PIN = 0 [10:50:57]*** Brake cut motor [10:50:58]Read from MH i2c: 01 [10:50:58]MH_I2C_Read... [10:50:58]*** Stop cut motor [10:50:58]*** Cut end [10:50:58]Read from MH i2c: 01 07 00 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: 01 07 00 B1 08 00 00 00 00 00 FF 0F CE [10:50:58]process_action close_receipt done [10:50:58]requested_data is exist [10:50:58]produce_requested_data [10:50:58]requested_item fm.sn is exist - process it [10:50:58]wFMCommunicate request_size=4 [10:50:58]MH_SAM_APDU [10:50:58]CAPDU: 80 11 00 00 [10:50:58]Write to MH i2c: E2 08 00 B2 08 80 11 00 00 00 00 00 00 34 [10:50:58]Write i2c OK [10:50:58]MH_I2C_Read... [10:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:58]Read from MH i2c: E2 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 17 00 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 17 00 B2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 82 [10:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:50:58]wFMCommunicate OK [10:50:58]requested_item fd.num is exist - process it [10:50:58]SAM_PROTO_GetFieldsCounters [10:50:58]wFMCommunicate request_size=4 [10:50:58]MH_SAM_APDU [10:50:58]CAPDU: 80 13 00 00 [10:50:58]Write to MH i2c: E2 08 00 B3 08 80 13 00 00 00 00 00 00 37 [10:50:58]Write i2c OK [10:50:58]MH_I2C_Read... [10:50:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:58]Read from MH i2c: E2 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 62 00 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 62 00 B3 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7E C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [10:50: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7E C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:58]wFMCommunicate OK [10:50:58]SAM_PROTO_GetFieldsCounters done [10:50:58]requested_item shift.num is exist - process it [10:50:58]requested_item shift.opened is exist - process it [10:50:58]req_shift_opened [10:50:58]FM_GetShiftState [10:50:58]SAM_PROTO_GetShiftState [10:50:58]wFMCommunicate request_size=4 [10:50:58]MH_SAM_APDU [10:50:58]CAPDU: 80 13 01 00 [10:50:58]Write to MH i2c: E2 08 00 B4 08 80 13 01 00 00 00 00 00 39 [10:50:58]Write i2c OK [10:50:58]MH_I2C_Read... [10:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:58]Read from MH i2c: E2 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 0E 00 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 0E 00 B4 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7A [10:50:58]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:50:58]wFMCommunicate OK [10:50:58]SAM_PROTO_GetShiftState done [10:50:58]FM_GetShiftState done [10:50:58]req_shift_opened done [10:50:58]requested_item shift.open_date is exist - process it [10:50:58]req_shift_open_date [10:50:58]req_shift_open_date done [10:50:58]produce_requested_data done [10:50:58]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115582,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:50:58]process_action_free close_receipt [10:50:58]json_value_free [10:50:58]json_value_free done [10:50:58]process_json_proto returns [10:50:58]Send response to host [10:50:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115582,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:50:58]free response buf [10:50:58]execute_script done [10:50:58]execute_script returns [10:50:58]free content buf [10:50:58]Sock 7.Close socket [10:50:58]Sock 7.Thread stoped [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:51:57]accept exits with 9 [10:51:57]New connection [10:51:57]New thread 3067051364 created [10:51:57]Thread 3067194724 joined [10:51:57]Waiting for new connection... [10:51:57] Sock 9.Parse request [10:51:57]Sock 9.Check first char [10:51:57]Sock 9.First char is OK [10:51:57]request: POST /json_proto HTTP/1.0 [10:51:57]Method: POST [10:51:57]URL: /json_proto [10:51:57]Method is POST - this is cgi request [10:51:57]url: /json_proto [10:51:57]query_string will be loaded in cgi processing [10:51:57]execute_cgi json_proto POST (null) [10:51:57]execute_cgi path=json_proto method=POST [10:51:57]POST find Content-Length [10:51:57]Host: 172.17.41.136:8080 [10:51:57]Content-Length: 679 [10:51:57]Content-Type: application/json [10:51:57] [10:51:57]POST finish read [10:51:57]Found Content-Length = 679 [10:51:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:51:57]execute_script... [10:51: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)24617549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:51:57]POST & json_proto [10:51:57]process_json_proto [10:51:57]json parsed OK: [10:51:57]protocol is kg_v1.0 [10:51:57]action value=close_receipt [10:51:57]process_action close_receipt [10:51:57]cmd_close_receipt [10:51:57]MH_GetDate [10:51:57]Write to MH i2c: F0 00 00 B5 08 AC [10:51:57]Write i2c OK [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: F0 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: F0 09 00 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: F0 09 00 B5 08 00 4E 48 F1 66 1B D0 5A 64 4B [10:51:57]GetLastDocTimeStamp 1727088655 [10:51:57]current date 1727088718 [10:51:57]FM_GetShiftState [10:51:57]SAM_PROTO_GetShiftState [10:51:57]wFMCommunicate request_size=4 [10:51:57]MH_SAM_APDU [10:51:57]CAPDU: 80 13 01 00 [10:51:57]Write to MH i2c: E2 08 00 B6 08 80 13 01 00 00 00 00 00 3B [10:51:57]Write i2c OK [10:51:57]MH_I2C_Read... [10:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:57]Read from MH i2c: E2 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 0E 00 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 0E 00 B6 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7C [10:51:57]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:51:57]wFMCommunicate OK [10:51:57]SAM_PROTO_GetShiftState done [10:51:57]FM_GetShiftState done [10:51:57]opened in 1727052070 [10:51:57]opened+sec_in_day 1727138470 [10:51:57]quantity*price = 40002 [10:51:57]sum+1 = 40003 [10:51:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 66 23.09.2024 10:51 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115583 ФПД: 252453732954173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105158&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115583&fm=252453732954173&tin=02508201610067®Number=0000000000091831&sum=40000 [10:51:58]StoreToDocumentArchive [10:51:58]shift 472 fd 115583 [10:51:58]save to /storage/0472/doc_00115583 [10:51:58]save last doc name /storage/0472/doc_00115583 to /storage/kkm_last_doc_name [10:51:58]save OK [10:51:58]Clear old archive folders... [10:51:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:58]tlvbuf is 0095BF10 [10:51:58]SAM_PROTO_ClearQueue [10:51:58]wFMCommunicate request_size=4 [10:51:58]MH_SAM_APDU [10:51:58]CAPDU: 80 09 00 00 [10:51:58]Write to MH i2c: E2 08 00 C3 08 80 09 00 00 00 00 00 00 3D [10:51:58]Write i2c OK [10:51:58]MH_I2C_Read... [10:51:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:58]Read from MH i2c: E2 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 03 00 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 03 00 C3 08 00 90 00 3F [10:51:58]RAPDU: 90 00 [10:51:58]wFMCommunicate OK [10:51:58]SAM_PROTO_ClearQueue done [10:51:58]KKMCreateOFDPacket [10:51:58]OFDProtocolAddRootSTLVToBuf [10:51:58]FM_MakeSignedData [10:51:58]FM_MakeSignedData [10:51:58]SAM_PROTO_SignData [10:51:58]wFMCommunicate request_size=4 [10:51:58]MH_SAM_APDU [10:51:58]CAPDU: 80 0D 01 02 [10:51:58]Write to MH i2c: E2 08 00 C4 08 80 0D 01 02 00 00 00 00 45 [10:51:58]Write i2c OK [10:51:58]MH_I2C_Read... [10:51:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:58]Read from MH i2c: E2 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 03 00 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 03 00 C4 08 00 90 00 40 [10:51:58]RAPDU: 90 00 [10:51:58]wFMCommunicate OK [10:51:58]wFMCommunicate request_size=255 [10:51:58]MH_SAM_APDU [10:51:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 4E 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7F C3 01 00 35 04 06 00 E5 [10:51:58]Write to MH i2c: E2 02 01 C5 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 4E 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7F C3 01 00 35 04 06 00 E5 00 00 D1 [10:51:58]Write i2c OK [10:51:58]MH_I2C_Read... [10:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:59]Read from MH i2c: E2 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: E2 03 00 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: E2 03 00 C5 08 00 90 00 41 [10:51:59]RAPDU: 90 00 [10:51:59]wFMCommunicate OK [10:51:59]wFMCommunicate request_size=10 [10:51:59]MH_SAM_APDU [10:51:59]CAPDU: 80 0D 02 02 05 9A F7 13 30 3D [10:51:59]Write to MH i2c: E2 0D 00 C6 08 80 0D 02 02 05 00 9A F7 13 30 3D 00 00 63 [10:51:59]Write i2c OK [10:51:59]MH_I2C_Read... [10:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:59]Read from MH i2c: E2 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: E2 03 00 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: E2 03 00 C6 08 00 90 00 42 [10:51:59]RAPDU: 90 00 [10:51:59]wFMCommunicate OK [10:51:59]wFMCommunicate request_size=4 [10:51:59]MH_SAM_APDU [10:51:59]CAPDU: 80 0D 03 02 [10:51:59]Write to MH i2c: E2 08 00 C7 08 80 0D 03 02 00 00 00 00 4A [10:51:59]Write i2c OK [10:51:59]MH_I2C_Read... [10:51:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:59]Read from MH i2c: E2 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: E2 0B 00 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: E2 0B 00 C7 08 00 3C 56 04 C6 63 9F 35 19 90 00 F7 [10:51:59]RAPDU: 3C 56 04 C6 63 9F 35 19 90 00 [10:51:59]wFMCommunicate OK [10:51:59]SAM_PROTO_SignData done [10:51:59]FM_MakeSignedData done [10:51:59]CreateOFDProtocolMessage [10:51:59]wFMCommunicate request_size=4 [10:51:59]MH_SAM_APDU [10:51:59]CAPDU: 80 11 00 00 [10:51:59]Write to MH i2c: E2 08 00 C8 08 80 11 00 00 00 00 00 00 4A [10:51:59]Write i2c OK [10:51:59]MH_I2C_Read... [10:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:59]Read from MH i2c: E2 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: E2 17 00 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: E2 17 00 C8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 98 [10:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:51:59]wFMCommunicate OK [10:51:59]CreateOFDProtocolMessage done [10:51:59]OFDSenderStorePacket 115583 [10:51:59]StoreOFDPacket docnum=115583 [10:51:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 D6 68 07 01 13 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 4E 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7F C3 01 00 35 04 06 00 E5 9A F7 13 30 3D 3C 56 04 C6 63 9F 35 19 [10:51:59]CheckFolder [10:51:59]dirname=/storage/ofd_packets [10:51:59]CheckFolder done [10:51:59]ProducePacketName [10:51:59]name=ofd_packets/00115583 [10:51:59]NVStorageSaveData ofd_packets/00115583 [10:51:59]File name is /storage/ofd_packets/00115583 [10:51:59]Write 301 bytes [10:51:59]NVStorageSaveData done [10:51:59]OFDSenderStorePacket done [10:51:59]KKMCreateOFDPacket done [10:51:59]NVStorageSaveData kkm_last_timestamp [10:51:59]File name is /storage/kkm_last_timestamp [10:51:59]Write 4 bytes [10:51:59]NVStorageSaveData done [10:51:59]ExternCall_PrintAddStr [10:51:59]wPrintStart [10:51:59]Write to MH i2c: 01 00 00 C9 08 D1 [10:51:59]Write i2c OK [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: 01 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: 01 07 00 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: 01 07 00 C9 08 00 00 00 00 00 FF 0F E6 [10:51:59]RasterBufferAndPrint [10:51:59]line Счет N : (1)24617549 [10:51:59]line ИНН: 02508201610067 [10:51:59]line Контрольно-Кассовый Чек [10:51:59]line ПРОДАЖА [10:51:59]line ТРК (МРК, ГНК) : 53 [10:51:59]line Товар: 2710124130 [10:51:59]line Аи-92-К-5 [10:51:59]line 5.900 * 67.80 [10:51:59]line = 400.02 [10:51:59]line НДС 12% НСП 1% [10:51:59]line > о реализуемом товаре [10:51:59]line ОКРУГЛЕНИЕ: -0.02 [10:51:59]line ИТОГО: 400.00 [10:51:59]line Внесено: 400.00 [10:51:59]line СДАЧА: 0.00 [10:51:59]line НСП 1% : 3.54 [10:51:59]line НДС 12% : 42.48 [10:51:59]line Наличными: 400.00 [10:51:59]line Безнал.: 0.00 [10:51:59]line Место: АЗС № 90 "Партнер Нефть" [10:51:59]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:51:59]line СНО: Общий режим [10:51:59]line Чек 66 23.09.2024 10:51 [10:51:59]line Смена: 472 ФФД: 1.0 [10:51:59]line ЗНМ: 0300000120 [10:51:59]line РНМ: 0000000000091831 [10:51:59]line Версия ККМ: 001 [10:51:59]line ФМ: 0000000000871830 [10:51:59]line ФД: 115583 [10:51:59]line ФПД: 252453732954173 [10:51:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105158&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115583&fm=252453732954173&tin=02508201610067®Number=0000000000091831&sum=40000 [10:51:59]OFD Sender: Processing packet 115583 [packets to send 481, broken 480] [10:51:59]ProducePacketName [10:51:59]name=ofd_packets/00115583 [10:51:59]OFD Sender: To server: pG, [10:51:59]CommunicateWithHost lk.salyk.kg:30040 [10:51:59]ConnectInit lk.salyk.kg [10:51:59]written 0, free lines is 4095 [10:51:59]Connected sock=7 [10:51: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 38 33 30 0F 01 00 00 D6 68 07 01 13 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 4E 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 7F C3 01 00 35 04 06 00 E5 9A F7 13 30 3D 3C 56 04 C6 63 9F 35 19 [10:51:59]Write to MH i2c: 01 00 00 F3 08 FB [10:51:59]Write i2c OK [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: 01 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: 01 07 00 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: 01 07 00 F3 08 00 00 00 00 00 57 0C 65 [10:51:59]RasterBufferAndPrint [10:51:59]line [10:51:59]line [10:51:59]line [10:51:59]line [10:51:59]line [10:51:59]written 0, free lines is 3165 [10:51:59]MH_Cut [10:51:59]Write to MH i2c: D1 01 00 FA 08 01 D4 [10:51:59]Write i2c OK [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: D1 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: D1 01 00 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: D1 01 00 FA 08 00 D3 [10:51:59]Write to MH i2c: 01 00 00 FB 08 03 [10:51:59]Write i2c OK [10:51:59]MH_I2C_Read... [10: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 38 33 30 4F 00 00 00 70 C1 47 00 12 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 38 33 30 10 04 04 00 7F C3 01 00 F4 03 04 00 91 ED F0 66 B6 04 01 00 00 28 9D 5F 59 4E 19 9F C4 [10:52:00]CommunicateWithHost err = 0 [10:52:00]CheckOFDResponse [10:52:00]1017 (14) - 77093643461234 [10:52:00]1041 (16) - 0000000000871830 [10:52:00]1040 (4) - 115583 [10:52:00]1012 (4) - 23.09.2024 04:24 [10:52:00]1206 (1) - 0 [10:52:00]OFD Sender: Remove packet 115583 [10:52:00]ProducePacketName [10:52:00]name=ofd_packets/00115583 [10:52:00]NVStorageDeleteData [10:52:00]OFD Sender: No OFD packet to send [10:52:01]*** Cut start [10:52:01]*** Partial cut [10:52:01]*** CUTSNS_PIN = 1 [10:52:01]*** CUTSNS_PIN = 0 [10:52:01]*** Brake cut motor [10:52:01]Read from MH i2c: 01 [10:52:01]MH_I2C_Read... [10:52:01]*** Stop cut motor [10:52:01]*** Cut end [10:52:01]Read from MH i2c: 01 07 00 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: 01 07 00 FB 08 00 00 00 00 00 FF 0F 18 [10:52:01]process_action close_receipt done [10:52:01]requested_data is exist [10:52:01]produce_requested_data [10:52:01]requested_item fm.sn is exist - process it [10:52:01]wFMCommunicate request_size=4 [10:52:01]MH_SAM_APDU [10:52:01]CAPDU: 80 11 00 00 [10:52:01]Write to MH i2c: E2 08 00 FC 08 80 11 00 00 00 00 00 00 7E [10:52:01]Write i2c OK [10:52:01]MH_I2C_Read... [10:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:01]Read from MH i2c: E2 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: E2 17 00 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: E2 17 00 FC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CC [10:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:52:01]wFMCommunicate OK [10:52:01]requested_item fd.num is exist - process it [10:52:01]SAM_PROTO_GetFieldsCounters [10:52:01]wFMCommunicate request_size=4 [10:52:01]MH_SAM_APDU [10:52:01]CAPDU: 80 13 00 00 [10:52:01]Write to MH i2c: E2 08 00 FD 08 80 13 00 00 00 00 00 00 81 [10:52:01]Write i2c OK [10:52:01]MH_I2C_Read... [10:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:01]Read from MH i2c: E2 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: E2 62 00 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: E2 62 00 FD 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7F C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [10:52: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 7F C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:01]wFMCommunicate OK [10:52:01]SAM_PROTO_GetFieldsCounters done [10:52:01]requested_item shift.num is exist - process it [10:52:01]requested_item shift.opened is exist - process it [10:52:01]req_shift_opened [10:52:01]FM_GetShiftState [10:52:01]SAM_PROTO_GetShiftState [10:52:01]wFMCommunicate request_size=4 [10:52:01]MH_SAM_APDU [10:52:01]CAPDU: 80 13 01 00 [10:52:01]Write to MH i2c: E2 08 00 FE 08 80 13 01 00 00 00 00 00 83 [10:52:02]Write i2c OK [10:52:02]MH_I2C_Read... [10:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:02]Read from MH i2c: E2 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 0E 00 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 0E 00 FE 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C4 [10:52:02]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:52:02]wFMCommunicate OK [10:52:02]SAM_PROTO_GetShiftState done [10:52:02]FM_GetShiftState done [10:52:02]req_shift_opened done [10:52:02]requested_item shift.open_date is exist - process it [10:52:02]req_shift_open_date [10:52:02]req_shift_open_date done [10:52:02]produce_requested_data done [10:52:02]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115583,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:52:02]process_action_free close_receipt [10:52:02]json_value_free [10:52:02]json_value_free done [10:52:02]process_json_proto returns [10:52:02]Send response to host [10:52:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115583,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:52:02]free response buf [10:52:02]execute_script done [10:52:02]execute_script returns [10:52:02]free content buf [10:52:02]Sock 9.Close socket [10:52:02]Sock 9.Thread stoped [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:27]accept exits with 10 [10:52:27]New connection [10:52:27]New thread 3067194724 created [10:52:27]Thread 3067051364 joined [10:52:27]Waiting for new connection... [10:52:27] Sock 10.Parse request [10:52:27]Sock 10.Check first char [10:52:27]Sock 10.First char is OK [10:52:27]request: POST /json_proto HTTP/1.0 [10:52:27]Method: POST [10:52:27]URL: /json_proto [10:52:27]Method is POST - this is cgi request [10:52:27]url: /json_proto [10:52:27]query_string will be loaded in cgi processing [10:52:27]execute_cgi json_proto POST (null) [10:52:27]execute_cgi path=json_proto method=POST [10:52:27]POST find Content-Length [10:52:27]Host: 172.17.41.136:8080 [10:52:27]Content-Length: 756 [10:52:27]Content-Type: application/json [10:52:27] [10:52:27]POST finish read [10:52:27]Found Content-Length = 756 [10:52:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:27]execute_script... [10:52:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:27]POST & json_proto [10:52:27]process_json_proto [10:52:27]json parsed OK: [10:52:27]protocol is kg_v1.0 [10:52:27]action value=close_receipt [10:52:27]process_action close_receipt [10:52:27]cmd_close_receipt [10:52:27]MH_GetDate [10:52:27]Write to MH i2c: F0 00 00 FF 08 F6 [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: F0 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: F0 09 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: F0 09 00 FF 08 00 6C 48 F1 66 1B D0 5A 64 B3 [10:52:27]GetLastDocTimeStamp 1727088718 [10:52:27]current date 1727088748 [10:52:27]FM_GetShiftState [10:52:27]SAM_PROTO_GetShiftState [10:52:27]wFMCommunicate request_size=4 [10:52:27]MH_SAM_APDU [10:52:27]CAPDU: 80 13 01 00 [10:52:27]Write to MH i2c: E2 08 00 00 09 80 13 01 00 00 00 00 00 86 [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:27]Read from MH i2c: E2 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 0E 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 0E 00 00 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C7 [10:52:27]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:52:27]wFMCommunicate OK [10:52:27]SAM_PROTO_GetShiftState done [10:52:27]FM_GetShiftState done [10:52:27]opened in 1727052070 [10:52:27]opened+sec_in_day 1727138470 [10:52:27]quantity*price = 0 [10:52:27]sum+1 = 1 [10:52:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 67 23.09.2024 10:52 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116604 ФМ: 0000000000871830 ФД: 115584 ФПД: 42586826701929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105228&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115584&fm=42586826701929&tin=02508201610067®Number=0000000000091831&sum=0 [10:52:28]StoreToDocumentArchive [10:52:28]shift 472 fd 115584 [10:52:28]save to /storage/0472/doc_00115584 [10:52:28]save last doc name /storage/0472/doc_00115584 to /storage/kkm_last_doc_name [10:52:28]save OK [10:52:28]Clear old archive folders... [10:52:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:28]tlvbuf is 00953D50 [10:52:28]SAM_PROTO_ClearQueue [10:52:28]wFMCommunicate request_size=4 [10:52:28]MH_SAM_APDU [10:52:28]CAPDU: 80 09 00 00 [10:52:28]Write to MH i2c: E2 08 00 0D 09 80 09 00 00 00 00 00 00 88 [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:28]Read from MH i2c: E2 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 03 00 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 03 00 0D 09 00 90 00 8A [10:52:28]RAPDU: 90 00 [10:52:28]wFMCommunicate OK [10:52:28]SAM_PROTO_ClearQueue done [10:52:28]KKMCreateOFDPacket [10:52:28]OFDProtocolAddRootSTLVToBuf [10:52:28]FM_MakeSignedData [10:52:28]FM_MakeSignedData [10:52:28]SAM_PROTO_SignData [10:52:28]wFMCommunicate request_size=4 [10:52:28]MH_SAM_APDU [10:52:28]CAPDU: 80 0D 01 02 [10:52:28]Write to MH i2c: E2 08 00 0E 09 80 0D 01 02 00 00 00 00 90 [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:28]Read from MH i2c: E2 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 03 00 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 03 00 0E 09 00 90 00 8B [10:52:28]RAPDU: 90 00 [10:52:28]wFMCommunicate OK [10:52:28]wFMCommunicate request_size=255 [10:52:28]MH_SAM_APDU [10:52:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 6C 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 80 C3 01 00 35 04 06 00 26 [10:52:28]Write to MH i2c: E2 02 01 0F 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 43 00 00 00 F4 03 04 00 6C 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 80 C3 01 00 35 04 06 00 26 00 00 91 [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:28]Read from MH i2c: E2 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 03 00 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 03 00 0F 09 00 90 00 8C [10:52:28]RAPDU: 90 00 [10:52:28]wFMCommunicate OK [10:52:28]wFMCommunicate request_size=10 [10:52:28]MH_SAM_APDU [10:52:28]CAPDU: 80 0D 02 02 05 BB 84 AD 7C 69 [10:52:28]Write to MH i2c: E2 0D 00 10 09 80 0D 02 02 05 00 BB 84 AD 7C 69 00 00 6E [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:28]Read from MH i2c: E2 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 03 00 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 03 00 10 09 00 90 00 8D [10:52:28]RAPDU: 90 00 [10:52:28]wFMCommunicate OK [10:52:28]wFMCommunicate request_size=4 [10:52:28]MH_SAM_APDU [10:52:28]CAPDU: 80 0D 03 02 [10:52:28]Write to MH i2c: E2 08 00 11 09 80 0D 03 02 00 00 00 00 95 [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:28]Read from MH i2c: E2 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 0B 00 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 0B 00 11 09 00 6A 99 0B 3F 01 6F BD A8 90 00 B8 [10:52:28]RAPDU: 6A 99 0B 3F 01 6F BD A8 90 00 [10:52:28]wFMCommunicate OK [10:52:28]SAM_PROTO_SignData done [10:52:28]FM_MakeSignedData done [10:52:28]CreateOFDProtocolMessage [10:52:28]wFMCommunicate request_size=4 [10:52:28]MH_SAM_APDU [10:52:28]CAPDU: 80 11 00 00 [10:52:28]Write to MH i2c: E2 08 00 12 09 80 11 00 00 00 00 00 00 95 [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:28]Read from MH i2c: E2 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 17 00 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 17 00 12 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E3 [10:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:52:28]wFMCommunicate OK [10:52:28]CreateOFDProtocolMessage done [10:52:28]OFDSenderStorePacket 115584 [10:52:28]StoreOFDPacket docnum=115584 [10:52:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 4A A7 07 01 2F FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 43 00 00 00 F4 03 04 00 6C 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 80 C3 01 00 35 04 06 00 26 BB 84 AD 7C 69 6A 99 0B 3F 01 6F BD A8 [10:52:28]CheckFolder [10:52:28]dirname=/storage/ofd_packets [10:52:28]CheckFolder done [10:52:28]ProducePacketName [10:52:28]name=ofd_packets/00115584 [10:52:28]NVStorageSaveData ofd_packets/00115584 [10:52:28]File name is /storage/ofd_packets/00115584 [10:52:28]Write 301 bytes [10:52:28]NVStorageSaveData done [10:52:28]OFDSenderStorePacket done [10:52:28]KKMCreateOFDPacket done [10:52:28]NVStorageSaveData kkm_last_timestamp [10:52:28]File name is /storage/kkm_last_timestamp [10:52:28]Write 4 bytes [10:52:28]NVStorageSaveData done [10:52:28]ExternCall_PrintAddStr [10:52:28]wPrintStart [10:52:28]Write to MH i2c: 01 00 00 13 09 1C [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: 01 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: 01 07 00 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: 01 07 00 13 09 00 00 00 00 00 FF 0F 31 [10:52:28]RasterBufferAndPrint [10:52:28]line Счет N : (1)24617547 [10:52:28]line ИНН: 02508201610067 [10:52:28]line Контрольно-Кассовый Чек [10:52:28]line ПРОДАЖА [10:52:28]line ТРК (МРК, ГНК) : 63 [10:52:28]line Товар: 2710124130 [10:52:28]line Аи-92-К-5 [10:52:28]line 20.000 * 0.00 [10:52:28]line = 0.00 [10:52:28]line НДС 12% НСП 1% [10:52:28]line > о реализуемом товаре [10:52:28]line ИТОГО: 0.00 [10:52:28]line НСП 1% : 0.00 [10:52:28]line НДС 12% : 0.00 [10:52:28]line Наличными: 0.00 [10:52:28]line Безнал.: 0.00 [10:52:29]line Место: АЗС № 90 "Партнер Нефть" [10:52:29]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:52:29]line СНО: Общий режим [10:52:29]line Чек 67 23.09.2024 10:52 [10:52:29]line Смена: 472 ФФД: 1.0 [10:52:29]line ЗНМ: 0300000120 [10:52:29]line РНМ: 0000000000091831 [10:52:29]line Версия ККМ: 001 [10:52:29]line Талоны: ТК ГПНА Online [10:52:29]line 30116604 [10:52:29]line ФМ: 0000000000871830 [10:52:29]line ФД: 115584 [10:52:29]line ФПД: 42586826701929 [10:52:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105228&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115584&fm=42586826701929&tin=02508201610067®Number=0000000000091831&sum=0 [10:52:29]written 0, free lines is 4095 [10:52:29]OFD Sender: Processing packet 115584 [packets to send 481, broken 480] [10:52:29]ProducePacketName [10:52:29]name=ofd_packets/00115584 [10:52:29]OFD Sender: To server: pG, [10:52:29]CommunicateWithHost lk.salyk.kg:30040 [10:52:29]ConnectInit lk.salyk.kg [10:52:29]Connected sock=9 [10:52:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 4A A7 07 01 2F FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 43 00 00 00 F4 03 04 00 6C 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 80 C3 01 00 35 04 06 00 26 BB 84 AD 7C 69 6A 99 0B 3F 01 6F BD A8 [10:52:29]Write to MH i2c: 01 00 00 3C 09 45 [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: 01 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: 01 07 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: 01 07 00 3C 09 00 00 00 00 00 73 0C CB [10:52:29]RasterBufferAndPrint [10:52:29]line [10:52:29]line [10:52:29]line [10:52:29]line [10:52:29]line [10:52:29]written 0, free lines is 3193 [10:52:29]MH_Cut [10:52:29]Write to MH i2c: D1 01 00 43 09 01 1E [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: D1 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: D1 01 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: D1 01 00 43 09 00 1D [10:52:29]Write to MH i2c: 01 00 00 44 09 4D [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C0 CA 47 00 83 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 38 33 30 10 04 04 00 80 C3 01 00 F4 03 04 00 AF ED F0 66 B6 04 01 00 00 A4 6F AF 09 B1 11 85 48 [10:52:29]CommunicateWithHost err = 0 [10:52:29]CheckOFDResponse [10:52:29]1017 (14) - 77093643461234 [10:52:29]1041 (16) - 0000000000871830 [10:52:29]1040 (4) - 115584 [10:52:29]1012 (4) - 23.09.2024 04:25 [10:52:29]1206 (1) - 0 [10:52:29]OFD Sender: Remove packet 115584 [10:52:29]ProducePacketName [10:52:29]name=ofd_packets/00115584 [10:52:29]NVStorageDeleteData [10:52:30]OFD Sender: No OFD packet to send [10:52:30]*** Cut start [10:52:30]*** Partial cut [10:52:30]*** CUTSNS_PIN = 1 [10:52:30]*** CUTSNS_PIN = 0 [10:52:30]*** Brake cut motor [10:52:31]Read from MH i2c: 01 [10:52:31]MH_I2C_Read... [10:52:31]*** Stop cut motor [10:52:31]*** Cut end [10:52:31]Read from MH i2c: 01 07 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: 01 07 00 44 09 00 00 00 00 00 FF 0F 62 [10:52:31]process_action close_receipt done [10:52:31]requested_data is exist [10:52:31]produce_requested_data [10:52:31]requested_item fm.sn is exist - process it [10:52:31]wFMCommunicate request_size=4 [10:52:31]MH_SAM_APDU [10:52:31]CAPDU: 80 11 00 00 [10:52:31]Write to MH i2c: E2 08 00 45 09 80 11 00 00 00 00 00 00 C8 [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:31]Read from MH i2c: E2 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 17 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 17 00 45 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 16 [10:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:52:31]wFMCommunicate OK [10:52:31]requested_item fd.num is exist - process it [10:52:31]SAM_PROTO_GetFieldsCounters [10:52:31]wFMCommunicate request_size=4 [10:52:31]MH_SAM_APDU [10:52:31]CAPDU: 80 13 00 00 [10:52:31]Write to MH i2c: E2 08 00 46 09 80 13 00 00 00 00 00 00 CB [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:31]Read from MH i2c: E2 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 62 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 62 00 46 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 80 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [10:52:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 80 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:31]wFMCommunicate OK [10:52:31]SAM_PROTO_GetFieldsCounters done [10:52:31]requested_item shift.num is exist - process it [10:52:31]requested_item shift.opened is exist - process it [10:52:31]req_shift_opened [10:52:31]FM_GetShiftState [10:52:31]SAM_PROTO_GetShiftState [10:52:31]wFMCommunicate request_size=4 [10:52:31]MH_SAM_APDU [10:52:31]CAPDU: 80 13 01 00 [10:52:31]Write to MH i2c: E2 08 00 47 09 80 13 01 00 00 00 00 00 CD [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:31]Read from MH i2c: E2 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 0E 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 0E 00 47 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 0E [10:52:31]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:52:31]wFMCommunicate OK [10:52:31]SAM_PROTO_GetShiftState done [10:52:31]FM_GetShiftState done [10:52:31]req_shift_opened done [10:52:31]requested_item shift.open_date is exist - process it [10:52:31]req_shift_open_date [10:52:31]req_shift_open_date done [10:52:31]produce_requested_data done [10:52:31]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115584,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:52:31]process_action_free close_receipt [10:52:31]json_value_free [10:52:31]json_value_free done [10:52:31]process_json_proto returns [10:52:31]Send response to host [10:52:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115584,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:52:31]free response buf [10:52:31]execute_script done [10:52:31]execute_script returns [10:52:31]free content buf [10:52:31]Sock 10.Close socket [10:52:31]Sock 10.Thread stoped [10:52:31]accept exits with 7 [10:52:31]New connection [10:52:31]New thread 3067051364 created [10:52:31]Thread 3067194724 joined [10:52:31]Waiting for new connection... [10:52:31] Sock 7.Parse request [10:52:31]Sock 7.Check first char [10:52:31]Sock 7.First char is OK [10:52:31]request: POST /json_proto HTTP/1.0 [10:52:31]Method: POST [10:52:31]URL: /json_proto [10:52:31]Method is POST - this is cgi request [10:52:31]url: /json_proto [10:52:31]query_string will be loaded in cgi processing [10:52:31]execute_cgi json_proto POST (null) [10:52:31]execute_cgi path=json_proto method=POST [10:52:31]POST find Content-Length [10:52:31]Host: 172.17.41.136:8080 [10:52:31]Content-Length: 684 [10:52:31]Content-Type: application/json [10:52:31] [10:52:31]POST finish read [10:52:31]Found Content-Length = 684 [10:52:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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" ] } } [10:52:31]execute_script... [10:52: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)24617548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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" ] } } [10:52:31]POST & json_proto [10:52:31]process_json_proto [10:52:31]json parsed OK: [10:52:31]protocol is kg_v1.0 [10:52:31]action value=close_receipt [10:52:31]process_action close_receipt [10:52:31]cmd_close_receipt [10:52:31]MH_GetDate [10:52:31]Write to MH i2c: F0 00 00 48 09 40 [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: F0 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: F0 09 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: F0 09 00 48 09 00 70 48 F1 66 1B D0 5A 64 01 [10:52:31]GetLastDocTimeStamp 1727088748 [10:52:31]current date 1727088752 [10:52:31]FM_GetShiftState [10:52:31]SAM_PROTO_GetShiftState [10:52:31]wFMCommunicate request_size=4 [10:52:31]MH_SAM_APDU [10:52:31]CAPDU: 80 13 01 00 [10:52:31]Write to MH i2c: E2 08 00 49 09 80 13 01 00 00 00 00 00 CF [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:31]Read from MH i2c: E2 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 0E 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 0E 00 49 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 10 [10:52:31]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:52:31]wFMCommunicate OK [10:52:31]SAM_PROTO_GetShiftState done [10:52:31]FM_GetShiftState done [10:52:31]opened in 1727052070 [10:52:31]opened+sec_in_day 1727138470 [10:52:31]quantity*price = 200043 [10:52:31]sum+1 = 200044 [10:52:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 68 23.09.2024 10:52 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115585 ФПД: 152633835017196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105232&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115585&fm=152633835017196&tin=02508201610067®Number=0000000000091831&sum=200000 [10:52:33]StoreToDocumentArchive [10:52:33]shift 472 fd 115585 [10:52:33]save to /storage/0472/doc_00115585 [10:52:33]save last doc name /storage/0472/doc_00115585 to /storage/kkm_last_doc_name [10:52:33]save OK [10:52:33]Clear old archive folders... [10:52:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:33]tlvbuf is 0094BE80 [10:52:33]SAM_PROTO_ClearQueue [10:52:33]wFMCommunicate request_size=4 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 09 00 00 [10:52:33]Write to MH i2c: E2 08 00 56 09 80 09 00 00 00 00 00 00 D1 [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 56 09 00 90 00 D3 [10:52:33]RAPDU: 90 00 [10:52:33]wFMCommunicate OK [10:52:33]SAM_PROTO_ClearQueue done [10:52:33]KKMCreateOFDPacket [10:52:33]OFDProtocolAddRootSTLVToBuf [10:52:33]FM_MakeSignedData [10:52:33]FM_MakeSignedData [10:52:33]SAM_PROTO_SignData [10:52:33]wFMCommunicate request_size=4 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 0D 01 02 [10:52:33]Write to MH i2c: E2 08 00 57 09 80 0D 01 02 00 00 00 00 D9 [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 57 09 00 90 00 D4 [10:52:33]RAPDU: 90 00 [10:52:33]wFMCommunicate OK [10:52:33]wFMCommunicate request_size=255 [10:52:33]MH_SAM_APDU [10:52: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 35 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 44 00 00 00 F4 03 04 00 70 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 81 C3 01 00 35 04 06 00 8A [10:52:33]Write to MH i2c: E2 02 01 58 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 35 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 44 00 00 00 F4 03 04 00 70 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 81 C3 01 00 35 04 06 00 8A 00 00 03 [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 58 09 00 90 00 D5 [10:52:33]RAPDU: 90 00 [10:52:33]wFMCommunicate OK [10:52:33]wFMCommunicate request_size=10 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 0D 02 02 05 D1 D5 84 53 EC [10:52:33]Write to MH i2c: E2 0D 00 59 09 80 0D 02 02 05 00 D1 D5 84 53 EC 00 00 4F [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 03 00 59 09 00 90 00 D6 [10:52:33]RAPDU: 90 00 [10:52:33]wFMCommunicate OK [10:52:33]wFMCommunicate request_size=4 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 0D 03 02 [10:52:33]Write to MH i2c: E2 08 00 5A 09 80 0D 03 02 00 00 00 00 DE [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 0B 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 0B 00 5A 09 00 BE 1E 35 2C C7 6D 52 5B 90 00 FD [10:52:33]RAPDU: BE 1E 35 2C C7 6D 52 5B 90 00 [10:52:33]wFMCommunicate OK [10:52:33]SAM_PROTO_SignData done [10:52:33]FM_MakeSignedData done [10:52:33]CreateOFDProtocolMessage [10:52:33]wFMCommunicate request_size=4 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 11 00 00 [10:52:33]Write to MH i2c: E2 08 00 5B 09 80 11 00 00 00 00 00 00 DE [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:34]Read from MH i2c: E2 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: E2 17 00 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: E2 17 00 5B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2C [10:52:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:52:34]wFMCommunicate OK [10:52:34]CreateOFDProtocolMessage done [10:52:34]OFDSenderStorePacket 115585 [10:52:34]StoreOFDPacket docnum=115585 [10:52:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 39 28 07 01 D3 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 35 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 44 00 00 00 F4 03 04 00 70 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 81 C3 01 00 35 04 06 00 8A D1 D5 84 53 EC BE 1E 35 2C C7 6D 52 5B [10:52:34]CheckFolder [10:52:34]dirname=/storage/ofd_packets [10:52:34]CheckFolder done [10:52:34]ProducePacketName [10:52:34]name=ofd_packets/00115585 [10:52:34]NVStorageSaveData ofd_packets/00115585 [10:52:34]File name is /storage/ofd_packets/00115585 [10:52:34]Write 301 bytes [10:52:34]NVStorageSaveData done [10:52:34]OFDSenderStorePacket done [10:52:34]KKMCreateOFDPacket done [10:52:34]NVStorageSaveData kkm_last_timestamp [10:52:34]File name is /storage/kkm_last_timestamp [10:52:34]Write 4 bytes [10:52:34]NVStorageSaveData done [10:52:34]ExternCall_PrintAddStr [10:52:34]wPrintStart [10:52:34]Write to MH i2c: 01 00 00 5C 09 65 [10:52:34]Write i2c OK [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: 01 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: 01 07 00 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: 01 07 00 5C 09 00 00 00 00 00 FF 0F 7A [10:52:34]RasterBufferAndPrint [10:52:34]line Счет N : (1)24617548 [10:52:34]line ИНН: 02508201610067 [10:52:34]line Контрольно-Кассовый Чек [10:52:34]line ПРОДАЖА [10:52:34]line ТРК (МРК, ГНК) : 42 [10:52:34]line Товар: 2710124500 [10:52:34]line Аи-95-К-5 [10:52:34]line 26.960 * 74.20 [10:52:34]line = 2000.43 [10:52:34]line НДС 12% НСП 1% [10:52:34]line > о реализуемом товаре [10:52:34]line ОКРУГЛЕНИЕ: -0.43 [10:52:34]line ИТОГО: 2000.00 [10:52:34]line Внесено: 2000.00 [10:52:34]line СДАЧА: 0.00 [10:52:34]line НСП 1% : 17.70 [10:52:34]line НДС 12% : 212.43 [10:52:34]line Наличными: 2000.00 [10:52:34]line Безнал.: 0.00 [10:52:34]line Место: АЗС № 90 "Партнер Нефть" [10:52:34]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:52:34]line СНО: Общий режим [10:52:34]line Чек 68 23.09.2024 10:52 [10:52:34]line Смена: 472 ФФД: 1.0 [10:52:34]line ЗНМ: 0300000120 [10:52:34]line РНМ: 0000000000091831 [10:52:34]line Версия ККМ: 001 [10:52:34]line ФМ: 0000000000871830 [10:52:34]line ФД: 115585 [10:52:34]line ФПД: 152633835017196 [10:52:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105232&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115585&fm=152633835017196&tin=02508201610067®Number=0000000000091831&sum=200000 [10:52:34]OFD Sender: Processing packet 115585 [packets to send 481, broken 480] [10:52:34]ProducePacketName [10:52:34]name=ofd_packets/00115585 [10:52:34]OFD Sender: To server: pG, [10:52:34]CommunicateWithHost lk.salyk.kg:30040 [10:52:34]ConnectInit lk.salyk.kg [10:52:34]written 0, free lines is 4095 [10:52:34]Write to MH i2c: 01 00 00 86 09 8F [10:52:34]Write i2c OK [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: 01 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: 01 07 00 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: 01 07 00 86 09 00 00 00 00 00 64 0C 06 [10:52:34]RasterBufferAndPrint [10:52:34]line [10:52:34]line [10:52:34]line [10:52:34]line [10:52:34]line [10:52:34]written 0, free lines is 3181 [10:52:34]MH_Cut [10:52:34]Write to MH i2c: D1 01 00 8D 09 01 68 [10:52:34]Connected sock=10 [10:52: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 38 33 30 0F 01 00 00 39 28 07 01 D3 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 35 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 44 00 00 00 F4 03 04 00 70 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 81 C3 01 00 35 04 06 00 8A D1 D5 84 53 EC BE 1E 35 2C C7 6D 52 5B [10:52:34]Write i2c OK [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: D1 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: D1 01 00 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: D1 01 00 8D 09 00 67 [10:52:34]Write to MH i2c: 01 00 00 8E 09 97 [10:52:34]Write i2c OK [10:52:34]MH_I2C_Read... [10:52:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 3D 3D 47 00 33 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 38 33 30 10 04 04 00 81 C3 01 00 F4 03 04 00 B4 ED F0 66 B6 04 01 00 00 DE 82 3C CF 07 6B DE B0 [10:52:35]CommunicateWithHost err = 0 [10:52:35]CheckOFDResponse [10:52:35]1017 (14) - 77093643461234 [10:52:35]1041 (16) - 0000000000871830 [10:52:35]1040 (4) - 115585 [10:52:35]1012 (4) - 23.09.2024 04:25 [10:52:35]1206 (1) - 0 [10:52:35]OFD Sender: Remove packet 115585 [10:52:35]ProducePacketName [10:52:35]name=ofd_packets/00115585 [10:52:35]NVStorageDeleteData [10:52:35]OFD Sender: No OFD packet to send [10:52:36]*** Cut start [10:52:36]*** Partial cut [10:52:36]*** CUTSNS_PIN = 1 [10:52:36]*** CUTSNS_PIN = 0 [10:52:36]*** Brake cut motor [10:52:36]Read from MH i2c: 01 [10:52:36]MH_I2C_Read... [10:52:36]*** Stop cut motor [10:52:36]*** Cut end [10:52:36]Read from MH i2c: 01 07 00 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: 01 07 00 8E 09 00 00 00 00 00 FF 0F AC [10:52:36]process_action close_receipt done [10:52:36]requested_data is exist [10:52:36]produce_requested_data [10:52:36]requested_item fm.sn is exist - process it [10:52:36]wFMCommunicate request_size=4 [10:52:36]MH_SAM_APDU [10:52:36]CAPDU: 80 11 00 00 [10:52:36]Write to MH i2c: E2 08 00 8F 09 80 11 00 00 00 00 00 00 12 [10:52:36]Write i2c OK [10:52:36]MH_I2C_Read... [10:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:36]Read from MH i2c: E2 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: E2 17 00 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: E2 17 00 8F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 60 [10:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:52:36]wFMCommunicate OK [10:52:36]requested_item fd.num is exist - process it [10:52:36]SAM_PROTO_GetFieldsCounters [10:52:36]wFMCommunicate request_size=4 [10:52:36]MH_SAM_APDU [10:52:36]CAPDU: 80 13 00 00 [10:52:36]Write to MH i2c: E2 08 00 90 09 80 13 00 00 00 00 00 00 15 [10:52:36]Write i2c OK [10:52:36]MH_I2C_Read... [10:52:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:36]Read from MH i2c: E2 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: E2 62 00 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: E2 62 00 90 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 81 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [10:52: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 81 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:36]wFMCommunicate OK [10:52:36]SAM_PROTO_GetFieldsCounters done [10:52:36]requested_item shift.num is exist - process it [10:52:36]requested_item shift.opened is exist - process it [10:52:36]req_shift_opened [10:52:36]FM_GetShiftState [10:52:36]SAM_PROTO_GetShiftState [10:52:36]wFMCommunicate request_size=4 [10:52:36]MH_SAM_APDU [10:52:36]CAPDU: 80 13 01 00 [10:52:36]Write to MH i2c: E2 08 00 91 09 80 13 01 00 00 00 00 00 17 [10:52:36]Write i2c OK [10:52:36]MH_I2C_Read... [10:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:37]Read from MH i2c: E2 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: E2 0E 00 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: E2 0E 00 91 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 58 [10:52:37]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:52:37]wFMCommunicate OK [10:52:37]SAM_PROTO_GetShiftState done [10:52:37]FM_GetShiftState done [10:52:37]req_shift_opened done [10:52:37]requested_item shift.open_date is exist - process it [10:52:37]req_shift_open_date [10:52:37]req_shift_open_date done [10:52:37]produce_requested_data done [10:52:37]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115585,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:52:37]process_action_free close_receipt [10:52:37]json_value_free [10:52:37]json_value_free done [10:52:37]process_json_proto returns [10:52:37]Send response to host [10:52:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115585,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:52:37]free response buf [10:52:37]execute_script done [10:52:37]execute_script returns [10:52:37]free content buf [10:52:37]Sock 7.Close socket [10:52:37]Sock 7.Thread stoped [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:02]accept exits with 9 [10:53:02]New connection [10:53:02]New thread 3067194724 created [10:53:02]Thread 3067051364 joined [10:53:02]Waiting for new connection... [10:53:02] Sock 9.Parse request [10:53:02]Sock 9.Check first char [10:53:02]Sock 9.First char is OK [10:53:02]request: POST /json_proto HTTP/1.0 [10:53:02]Method: POST [10:53:02]URL: /json_proto [10:53:02]Method is POST - this is cgi request [10:53:02]url: /json_proto [10:53:02]query_string will be loaded in cgi processing [10:53:02]execute_cgi json_proto POST (null) [10:53:02]execute_cgi path=json_proto method=POST [10:53:02]POST find Content-Length [10:53:02]Host: 172.17.41.136:8080 [10:53:02]Content-Length: 2012 [10:53:02]Content-Type: application/json [10:53:02] [10:53:02]POST finish read [10:53:02]Found Content-Length = 2012 [10:53:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343992", "tax_sys" : 0, "items" : [ { "code": "4870202522688", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 0,45 \u041F\u042D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328497", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u044F\u0433\u043E\u0434,\u043A\u0430\u0440\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 274.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:02]execute_script... [10:53:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343992", "tax_sys" : 0, "items" : [ { "code": "4870202522688", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 0,45 \u041F\u042D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328497", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u044F\u0433\u043E\u0434,\u043A\u0430\u0440\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 274.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:02]POST & json_proto [10:53:02]process_json_proto [10:53:02]json parsed OK: [10:53:02]protocol is kg_v1.0 [10:53:02]action value=close_receipt [10:53:02]process_action close_receipt [10:53:02]cmd_close_receipt [10:53:02]MH_GetDate [10:53:02]Write to MH i2c: F0 00 00 92 09 8A [10:53:02]Write i2c OK [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: F0 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: F0 09 00 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: F0 09 00 92 09 00 8F 48 F1 66 1B D0 5A 64 6A [10:53:02]GetLastDocTimeStamp 1727088752 [10:53:02]current date 1727088783 [10:53:02]FM_GetShiftState [10:53:02]SAM_PROTO_GetShiftState [10:53:02]wFMCommunicate request_size=4 [10:53:02]MH_SAM_APDU [10:53:02]CAPDU: 80 13 01 00 [10:53:02]Write to MH i2c: E2 08 00 93 09 80 13 01 00 00 00 00 00 19 [10:53:02]Write i2c OK [10:53:02]MH_I2C_Read... [10:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:02]Read from MH i2c: E2 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: E2 0E 00 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: E2 0E 00 93 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5A [10:53:02]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:53:02]wFMCommunicate OK [10:53:02]SAM_PROTO_GetShiftState done [10:53:02]FM_GetShiftState done [10:53:02]opened in 1727052070 [10:53:02]opened+sec_in_day 1727138470 [10:53:02]quantity*price = 7000 [10:53:02]sum+1 = 7001 [10:53:02]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202522008 Напиток Maxi Чай Грушевый 0,45л 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870002328497 Напиток DADA ягод,карк ПЭТ 0,5л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 274.00 НСП 1% : 2.42 НДС 12% : 29.09 Наличными: 0.00 Безнал.: 274.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 69 23.09.2024 10:53 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115586 ФПД: 213960568454367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105303&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115586&fm=213960568454367&tin=02508201610067®Number=0000000000091831&sum=27400 0 [10:53:03]StoreToDocumentArchive [10:53:03]shift 472 fd 115586 [10:53:03]save to /storage/0472/doc_00115586 [10:53:03]save last doc name /storage/0472/doc_00115586 to /storage/kkm_last_doc_name [10:53:03]save OK [10:53:03]Clear old archive folders... [10:53:03]ProcessDocumentItem done err = 0, tmpTLVsize=759 [10:53:03]tlvbuf is 00971CA0 [10:53:03]SAM_PROTO_ClearQueue [10:53:03]wFMCommunicate request_size=4 [10:53:03]MH_SAM_APDU [10:53:03]CAPDU: 80 09 00 00 [10:53:03]Write to MH i2c: E2 08 00 A0 09 80 09 00 00 00 00 00 00 1B [10:53:03]Write i2c OK [10:53:03]MH_I2C_Read... [10:53:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:03]Read from MH i2c: E2 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 03 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 03 00 A0 09 00 90 00 1D [10:53:03]RAPDU: 90 00 [10:53:03]wFMCommunicate OK [10:53:03]SAM_PROTO_ClearQueue done [10:53:03]KKMCreateOFDPacket [10:53:03]OFDProtocolAddRootSTLVToBuf [10:53:03]FM_MakeSignedData [10:53:03]FM_MakeSignedData [10:53:03]SAM_PROTO_SignData [10:53:03]wFMCommunicate request_size=4 [10:53:03]MH_SAM_APDU [10:53:03]CAPDU: 80 0D 01 02 [10:53:03]Write to MH i2c: E2 08 00 A1 09 80 0D 01 02 00 00 00 00 23 [10:53:03]Write i2c OK [10:53:03]MH_I2C_Read... [10:53:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:03]Read from MH i2c: E2 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 03 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 03 00 A1 09 00 90 00 1E [10:53:03]RAPDU: 90 00 [10:53:03]wFMCommunicate OK [10:53:03]wFMCommunicate request_size=255 [10:53:03]MH_SAM_APDU [10:53:03]CAPDU: 80 0D 02 02 FA 03 00 F7 02 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 [10:53:03]Write to MH i2c: E2 02 01 A2 09 80 0D 02 02 FA 00 03 00 F7 02 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 74 [10:53:04]Write i2c OK [10:53:04]MH_I2C_Read... [10:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:04]Read from MH i2c: E2 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: E2 03 00 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: E2 03 00 A2 09 00 90 00 1F [10:53:04]RAPDU: 90 00 [10:53:04]wFMCommunicate OK [10:53:04]wFMCommunicate request_size=255 [10:53:04]MH_SAM_APDU [10:53:04]CAPDU: 80 0D 02 02 FA 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 39 37 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B3 D0 BE D0 B4 2C D0 BA D0 B0 D1 80 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 [10:53:04]Write to MH i2c: E2 02 01 A3 09 80 0D 02 02 FA 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 39 37 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B3 D0 BE D0 B4 2C D0 BA D0 B0 D1 80 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 00 00 9F [10:53:04]Write i2c OK [10:53:04]MH_I2C_Read... [10:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:04]Read from MH i2c: E2 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: E2 03 00 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: E2 03 00 A3 09 00 90 00 20 [10:53:04]RAPDU: 90 00 [10:53:04]wFMCommunicate OK [10:53:04]wFMCommunicate request_size=255 [10:53:04]MH_SAM_APDU [10:53:04]CAPDU: 80 0D 02 02 FA 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8F 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 82 [10:53:04]Write to MH i2c: E2 02 01 A4 09 80 0D 02 02 FA 00 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8F 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 82 00 00 27 [10:53:04]Write i2c OK [10:53:04]MH_I2C_Read... [10:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:04]Read from MH i2c: E2 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: E2 03 00 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: E2 03 00 A4 09 00 90 00 21 [10:53:04]RAPDU: 90 00 [10:53:04]wFMCommunicate OK [10:53:04]wFMCommunicate request_size=18 [10:53:04]MH_SAM_APDU [10:53:04]CAPDU: 80 0D 02 02 0D C3 01 00 35 04 06 00 C2 98 93 AD BC DF [10:53:04]Write to MH i2c: E2 15 00 A5 09 80 0D 02 02 0D 00 C3 01 00 35 04 06 00 C2 98 93 AD BC DF 00 00 7A [10:53:04]Write i2c OK [10:53:04]MH_I2C_Read... [10:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:04]Read from MH i2c: E2 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: E2 03 00 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: E2 03 00 A5 09 00 90 00 22 [10:53:04]RAPDU: 90 00 [10:53:04]wFMCommunicate OK [10:53:04]wFMCommunicate request_size=4 [10:53:04]MH_SAM_APDU [10:53:04]CAPDU: 80 0D 03 02 [10:53:04]Write to MH i2c: E2 08 00 A6 09 80 0D 03 02 00 00 00 00 2A [10:53:04]Write i2c OK [10:53:04]MH_I2C_Read... [10:53:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:05]Read from MH i2c: E2 [10:53:05]MH_I2C_Read... [10:53:05]Read from MH i2c: E2 0B 00 [10:53:05]MH_I2C_Read... [10:53:05]Read from MH i2c: E2 0B 00 A6 09 00 B4 B5 29 8A 9D 40 67 D1 90 00 5C [10:53:05]RAPDU: B4 B5 29 8A 9D 40 67 D1 90 00 [10:53:05]wFMCommunicate OK [10:53:05]SAM_PROTO_SignData done [10:53:05]FM_MakeSignedData done [10:53:05]CreateOFDProtocolMessage [10:53:05]wFMCommunicate request_size=4 [10:53:05]MH_SAM_APDU [10:53:05]CAPDU: 80 11 00 00 [10:53:05]Write to MH i2c: E2 08 00 A7 09 80 11 00 00 00 00 00 00 2A [10:53:05]Write i2c OK [10:53:05]MH_I2C_Read... [10:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:05]Read from MH i2c: E2 [10:53:05]MH_I2C_Read... [10:53:05]Read from MH i2c: E2 17 00 [10:53:05]MH_I2C_Read... [10:53:05]Read from MH i2c: E2 17 00 A7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 78 [10:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:53:05]wFMCommunicate OK [10:53:05]CreateOFDProtocolMessage done [10:53:05]OFDSenderStorePacket 115586 [10:53:05]StoreOFDPacket docnum=115586 [10:53:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0B 03 00 00 0D D6 03 03 B0 32 5A 03 01 00 03 00 F7 02 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 39 37 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B3 D0 BE D0 B4 2C D0 BA D0 B0 D1 80 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8F 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 82 C3 01 00 35 04 06 00 C2 98 93 AD BC DF B4 B5 29 8A 9D 40 67 D1 [10:53:05]CheckFolder [10:53:05]dirname=/storage/ofd_packets [10:53:05]CheckFolder done [10:53:05]ProducePacketName [10:53:05]name=ofd_packets/00115586 [10:53:05]NVStorageSaveData ofd_packets/00115586 [10:53:05]File name is /storage/ofd_packets/00115586 [10:53:05]Write 809 bytes [10:53:05]NVStorageSaveData done [10:53:05]OFDSenderStorePacket done [10:53:05]KKMCreateOFDPacket done [10:53:05]NVStorageSaveData kkm_last_timestamp [10:53:05]File name is /storage/kkm_last_timestamp [10:53:05]Write 4 bytes [10:53:05]NVStorageSaveData done [10:53:05]ExternCall_PrintAddStr [10:53:05]wPrintStart [10:53:05]Write to MH i2c: 01 00 00 A8 09 B1 [10:53:05]Write i2c OK [10:53:05]MH_I2C_Read... [10:53:05]Read from MH i2c: 01 [10:53:05]MH_I2C_Read... [10:53:05]Read from MH i2c: 01 07 00 [10:53:05]MH_I2C_Read... [10:53:05]Read from MH i2c: 01 07 00 A8 09 00 00 00 00 00 FF 0F C6 [10:53:05]RasterBufferAndPrint [10:53:05]line Счет N : (3)343992 [10:53:05]line ИНН: 02508201610067 [10:53:05]line Контрольно-Кассовый Чек [10:53:05]line ПРОДАЖА [10:53:05]line Товар: 4870202522688 [10:53:05]line Garden напиток со вкусом граната 0,45 ПЭ [10:53:05]line 1.000 * 70.00 [10:53:05]line = 70.00 [10:53:05]line НДС 12% НСП 1% [10:53:05]line > о реализуемом товаре [10:53:05]line Товар: 4870202522008 [10:53:05]line Напиток Maxi Чай Грушевый 0,45л [10:53:05]line 1.000 * 70.00 [10:53:05]line = 70.00 [10:53:05]line НДС 12% НСП 1% [10:53:05]line > о реализуемом товаре [10:53:05]line Товар: 4870002328497 [10:53:05]line Напиток DADA ягод,карк ПЭТ 0,5л [10:53:05]line 1.000 * 90.00 [10:53:05]line = 90.00 [10:53:05]line НДС 12% НСП 1% [10:53:05]line > о реализуемом товаре [10:53:05]line Товар: 4700000160211 [10:53:05]line Вода Легенда 0,5л [10:53:05]line 1.000 * 40.00 [10:53:05]line = 40.00 [10:53:05]line НДС 12% НСП 1% [10:53:05]line > о реализуемом товаре [10:53:05]line Товар: 2000031750019 [10:53:05]line Пакет Партнер Нефть [10:53:05]line 1.000 * 4.00 [10:53:05]line = 4.00 [10:53:05]line НДС 12% НСП 1% [10:53:05]line > о реализуемом товаре [10:53:05]line ИТОГО: 274.00 [10:53:05]line НСП 1% : 2.42 [10:53:05]line НДС 12% : 29.09 [10:53:05]line Наличными: 0.00 [10:53:05]line Безнал.: 274.00 [10:53:05]line Место: АЗС № 90 "Партнер Нефть" [10:53:05]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:53:05]line СНО: Общий режим [10:53:05]line Чек 69 23.09.2024 10:53 [10:53:05]line Смена: 472 ФФД: 1.0 [10:53:05]line ЗНМ: 0300000120 [10:53:05]line РНМ: 0000000000091831 [10:53:05]line Версия ККМ: 001 [10:53:05]line Платежная система: Бакай Банк [10:53:05]line ФМ: 0000000000871830 [10:53:05]line ФД: 115586 [10:53:05]line ФПД: 213960568454367 [10:53:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105303&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115586&fm=213960568454367&tin=02508201610067®Number=0000000000091831&sum=27400 [10:53:05]line 0 [10:53:05]OFD Sender: Processing packet 115586 [packets to send 481, broken 480] [10:53:05]ProducePacketName [10:53:05]name=ofd_packets/00115586 [10:53:05]OFD Sender: To server: pG, [10:53:05]CommunicateWithHost lk.salyk.kg:30040 [10:53:05]ConnectInit lk.salyk.kg [10:53:05]written 0, free lines is 4095 [10:53:05]Connected sock=10 [10:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0B 03 00 00 0D D6 03 03 B0 32 5A 03 01 00 03 00 F7 02 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 39 37 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B3 D0 BE D0 B4 2C D0 BA D0 B0 D1 80 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8F 48 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 82 C3 01 00 35 04 06 00 C2 98 93 AD BC DF B4 B5 29 8A 9D 40 67 D1 [10:53:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A4 52 47 00 84 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 38 33 30 10 04 04 00 82 C3 01 00 F4 03 04 00 D3 ED F0 66 B6 04 01 00 00 E2 08 42 F5 7C 62 06 0E [10:53:06]CommunicateWithHost err = 0 [10:53:06]CheckOFDResponse [10:53:06]1017 (14) - 77093643461234 [10:53:06]1041 (16) - 0000000000871830 [10:53:06]1040 (4) - 115586 [10:53:06]1012 (4) - 23.09.2024 04:25 [10:53:06]1206 (1) - 0 [10:53:06]OFD Sender: Remove packet 115586 [10:53:06]ProducePacketName [10:53:06]name=ofd_packets/00115586 [10:53:06]NVStorageDeleteData [10:53:06]Write to MH i2c: 01 00 00 EC 09 F5 [10:53:06]Write i2c OK [10:53:06]MH_I2C_Read... [10:53:06]Read from MH i2c: 01 [10:53:06]MH_I2C_Read... [10:53:06]Read from MH i2c: 01 07 00 [10:53:06]MH_I2C_Read... [10:53:06]Read from MH i2c: 01 07 00 EC 09 00 00 00 00 00 30 0A 36 [10:53:06]RasterBufferAndPrint [10:53:06]line [10:53:06]line [10:53:06]line [10:53:06]line [10:53:06]line [10:53:06]written 0, free lines is 2614 [10:53:06]MH_Cut [10:53:06]Write to MH i2c: D1 01 00 F3 09 01 CE [10:53:06]Write i2c OK [10:53:06]MH_I2C_Read... [10:53:06]Read from MH i2c: D1 [10:53:06]MH_I2C_Read... [10:53:06]Read from MH i2c: D1 01 00 [10:53:06]MH_I2C_Read... [10:53:06]Read from MH i2c: D1 01 00 F3 09 00 CD [10:53:06]Write to MH i2c: 01 00 00 F4 09 FD [10:53:06]Write i2c OK [10:53:06]MH_I2C_Read... [10:53:06]OFD Sender: No OFD packet to send [10:53:08]*** Cut start [10:53:08]*** Partial cut [10:53:08]*** CUTSNS_PIN = 1 [10:53:08]*** CUTSNS_PIN = 0 [10:53:08]*** Brake cut motor [10:53:08]Read from MH i2c: 01 [10:53:08]MH_I2C_Read... [10:53:08]*** Stop cut motor [10:53:08]*** Cut end [10:53:08]Read from MH i2c: 01 07 00 [10:53:08]MH_I2C_Read... [10:53:08]Read from MH i2c: 01 07 00 F4 09 00 00 00 00 00 FF 0F 12 [10:53:08]process_action close_receipt done [10:53:08]requested_data is exist [10:53:08]produce_requested_data [10:53:08]requested_item fm.sn is exist - process it [10:53:08]wFMCommunicate request_size=4 [10:53:08]MH_SAM_APDU [10:53:08]CAPDU: 80 11 00 00 [10:53:08]Write to MH i2c: E2 08 00 F5 09 80 11 00 00 00 00 00 00 78 [10:53:08]Write i2c OK [10:53:08]MH_I2C_Read... [10:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:08]Read from MH i2c: E2 [10:53:08]MH_I2C_Read... [10:53:08]Read from MH i2c: E2 17 00 [10:53:08]MH_I2C_Read... [10:53:08]Read from MH i2c: E2 17 00 F5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C6 [10:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:53:08]wFMCommunicate OK [10:53:08]requested_item fd.num is exist - process it [10:53:08]SAM_PROTO_GetFieldsCounters [10:53:08]wFMCommunicate request_size=4 [10:53:08]MH_SAM_APDU [10:53:08]CAPDU: 80 13 00 00 [10:53:08]Write to MH i2c: E2 08 00 F6 09 80 13 00 00 00 00 00 00 7B [10:53:08]Write i2c OK [10:53:08]MH_I2C_Read... [10:53:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:08]Read from MH i2c: E2 [10:53:08]MH_I2C_Read... [10:53:08]Read from MH i2c: E2 62 00 [10:53:08]MH_I2C_Read... [10:53:08]Read from MH i2c: E2 62 00 F6 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 82 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [10:53:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 82 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:08]wFMCommunicate OK [10:53:08]SAM_PROTO_GetFieldsCounters done [10:53:08]requested_item shift.num is exist - process it [10:53:08]requested_item shift.opened is exist - process it [10:53:08]req_shift_opened [10:53:08]FM_GetShiftState [10:53:08]SAM_PROTO_GetShiftState [10:53:08]wFMCommunicate request_size=4 [10:53:08]MH_SAM_APDU [10:53:08]CAPDU: 80 13 01 00 [10:53:08]Write to MH i2c: E2 08 00 F7 09 80 13 01 00 00 00 00 00 7D [10:53:08]Write i2c OK [10:53:08]MH_I2C_Read... [10:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:08]Read from MH i2c: E2 [10:53:08]MH_I2C_Read... [10:53:08]Read from MH i2c: E2 0E 00 [10:53:08]MH_I2C_Read... [10:53:08]Read from MH i2c: E2 0E 00 F7 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 BE [10:53:08]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:53:08]wFMCommunicate OK [10:53:08]SAM_PROTO_GetShiftState done [10:53:08]FM_GetShiftState done [10:53:08]req_shift_opened done [10:53:08]requested_item shift.open_date is exist - process it [10:53:08]req_shift_open_date [10:53:08]req_shift_open_date done [10:53:08]produce_requested_data done [10:53:08]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115586,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:53:08]process_action_free close_receipt [10:53:08]json_value_free [10:53:08]json_value_free done [10:53:08]process_json_proto returns [10:53:08]Send response to host [10:53:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115586,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:53:08]free response buf [10:53:08]execute_script done [10:53:08]execute_script returns [10:53:08]free content buf [10:53:08]Sock 9.Close socket [10:53:08]Sock 9.Thread stoped [10:53:09]accept exits with 7 [10:53:09]New connection [10:53:09]New thread 3067051364 created [10:53:09]Thread 3067194724 joined [10:53:09]Waiting for new connection... [10:53:09] Sock 7.Parse request [10:53:09]Sock 7.Check first char [10:53:09]Sock 7.First char is OK [10:53:09]request: POST /json_proto HTTP/1.0 [10:53:09]Method: POST [10:53:09]URL: /json_proto [10:53:09]Method is POST - this is cgi request [10:53:09]url: /json_proto [10:53:09]query_string will be loaded in cgi processing [10:53:09]execute_cgi json_proto POST (null) [10:53:09]execute_cgi path=json_proto method=POST [10:53:09]POST find Content-Length [10:53:09]Host: 172.17.41.136:8080 [10:53:09]Content-Length: 215 [10:53:09]Content-Type: application/json [10:53:09] [10:53:09]POST finish read [10:53:09]Found Content-Length = 215 [10:53: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" ] } } [10:53:09]execute_script... [10:53: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" ] } } [10:53:09]POST & json_proto [10:53:09]process_json_proto [10:53:09]json parsed OK: [10:53:09]protocol is kg_v1.0 [10:53:09]action value=get_value [10:53:09]process_action get_value [10:53:09]cmd_get_value [10:53:09]process_action get_value done [10:53:09]requested_data is exist [10:53:09]produce_requested_data [10:53:09]requested_item kkm.sn is exist - process it [10:53:09]requested_item kkm.ver is exist - process it [10:53:09]requested_item fm.sn is exist - process it [10:53:09]wFMCommunicate request_size=4 [10:53:09]MH_SAM_APDU [10:53:09]CAPDU: 80 11 00 00 [10:53:09]Write to MH i2c: E2 08 00 F8 09 80 11 00 00 00 00 00 00 7B [10:53:09]Write i2c OK [10:53:09]MH_I2C_Read... [10:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:09]Read from MH i2c: E2 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 17 00 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 17 00 F8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C9 [10:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:53:09]wFMCommunicate OK [10:53:09]requested_item fd.num is exist - process it [10:53:09]SAM_PROTO_GetFieldsCounters [10:53:09]wFMCommunicate request_size=4 [10:53:09]MH_SAM_APDU [10:53:09]CAPDU: 80 13 00 00 [10:53:09]Write to MH i2c: E2 08 00 F9 09 80 13 00 00 00 00 00 00 7E [10:53:09]Write i2c OK [10:53:09]MH_I2C_Read... [10:53:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:09]Read from MH i2c: E2 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 62 00 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 62 00 F9 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 82 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [10: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 82 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:09]wFMCommunicate OK [10:53:09]SAM_PROTO_GetFieldsCounters done [10:53:09]requested_item shift.num is exist - process it [10:53:09]requested_item shift.opened is exist - process it [10:53:09]req_shift_opened [10:53:09]FM_GetShiftState [10:53:09]SAM_PROTO_GetShiftState [10:53:09]wFMCommunicate request_size=4 [10:53:09]MH_SAM_APDU [10:53:09]CAPDU: 80 13 01 00 [10:53:09]Write to MH i2c: E2 08 00 FA 09 80 13 01 00 00 00 00 00 80 [10:53:09]Write i2c OK [10:53:09]MH_I2C_Read... [10:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:09]Read from MH i2c: E2 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 0E 00 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 0E 00 FA 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C1 [10:53:09]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:53:09]wFMCommunicate OK [10:53:09]SAM_PROTO_GetShiftState done [10:53:09]FM_GetShiftState done [10:53:09]req_shift_opened done [10:53:09]requested_item shift.open_date is exist - process it [10:53:09]req_shift_open_date [10:53:09]req_shift_open_date done [10:53:09]produce_requested_data done [10:53:09]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115586,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:53:09]process_action_free get_value [10:53:09]json_value_free [10:53:09]json_value_free done [10:53:09]process_json_proto returns [10:53:09]Send response to host [10:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115586,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:53:09]free response buf [10:53:09]execute_script done [10:53:09]execute_script returns [10:53:09]free content buf [10:53:09]Sock 7.Close socket [10:53:09]Sock 7.Thread stoped [10:53:09]accept exits with 9 [10:53:09]New connection [10:53:09]New thread 3067194724 created [10:53:09]Thread 3067051364 joined [10:53:09]Waiting for new connection... [10:53:09] Sock 9.Parse request [10:53:09]Sock 9.Check first char [10:53:09]Sock 9.First char is OK [10:53:09]request: POST /json_proto HTTP/1.0 [10:53:09]Method: POST [10:53:09]URL: /json_proto [10:53:09]Method is POST - this is cgi request [10:53:09]url: /json_proto [10:53:09]query_string will be loaded in cgi processing [10:53:09]execute_cgi json_proto POST (null) [10:53:09]execute_cgi path=json_proto method=POST [10:53:09]POST find Content-Length [10:53:09]Host: 172.17.41.136:8080 [10:53:09]Content-Length: 331 [10:53:09]Content-Type: application/json [10:53:09] [10:53:09]POST finish read [10:53:09]Found Content-Length = 331 [10:53: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" ] } } [10:53:09]execute_script... [10:53: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" ] } } [10:53:09]POST & json_proto [10:53:09]process_json_proto [10:53:09]json parsed OK: [10:53:09]protocol is kg_v1.0 [10:53:09]action value=get_value [10:53:09]process_action get_value [10:53:09]cmd_get_value [10:53:09]process_action get_value done [10:53:09]requested_data is exist [10:53:09]produce_requested_data [10:53:09]requested_item fm.sale.total is exist - process it [10:53:09]SAM_PROTO_GetFMData [10:53:09]wFMCommunicate request_size=4 [10:53:09]MH_SAM_APDU [10:53:09]CAPDU: 80 13 03 00 [10:53:09]Write to MH i2c: E2 08 00 FB 09 80 13 03 00 00 00 00 00 83 [10:53:09]Write i2c OK [10:53:09]MH_I2C_Read... [10:53:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:53:10]Read from MH i2c: E2 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: E2 FD 00 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: E2 FD 00 FB 09 00 C5 04 85 04 C1 04 6E 04 04 00 D1 BF 01 00 69 04 A3 00 6F 04 04 00 54 BE 01 00 B1 04 05 00 9D 65 16 81 01 70 04 05 00 89 BA 6A 47 01 72 04 04 00 14 AB AB 39 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 44 CF E6 28 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 DF 5A 68 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 41 AD 01 EF 03 09 90 00 09 [10:53:10]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D1 BF 01 00 69 04 A3 00 6F 04 04 00 54 BE 01 00 B1 04 05 00 9D 65 16 81 01 70 04 05 00 89 BA 6A 47 01 72 04 04 00 14 AB AB 39 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 44 CF E6 28 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 DF 5A 68 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 41 AD 01 EF 03 09 90 00 [10:53:10]wFMCommunicate OK [10:53:10]wFMCommunicate request_size=4 [10:53:10]MH_SAM_APDU [10:53:10]CAPDU: 80 17 00 00 [10:53:10]Write to MH i2c: E2 08 00 FC 09 80 17 00 00 00 00 00 00 85 [10:53:10]Write i2c OK [10:53:10]MH_I2C_Read... [10:53:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:53:10]Read from MH i2c: E2 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: E2 FD 00 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: E2 FD 00 FC 09 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 72 [10:53:10]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:53:10]wFMCommunicate OK [10:53:10]wFMCommunicate request_size=4 [10:53:10]MH_SAM_APDU [10:53:10]CAPDU: 80 17 00 00 [10:53:10]Write to MH i2c: E2 08 00 FD 09 80 17 00 00 00 00 00 00 86 [10:53:10]Write i2c OK [10:53:10]MH_I2C_Read... [10:53:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:53:10]Read from MH i2c: E2 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: E2 FD 00 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: E2 FD 00 FD 09 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 98 [10:53:10]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:53:10]wFMCommunicate OK [10:53:10]wFMCommunicate request_size=4 [10:53:10]MH_SAM_APDU [10:53:10]CAPDU: 80 17 00 00 [10:53:10]Write to MH i2c: E2 08 00 FE 09 80 17 00 00 00 00 00 00 87 [10:53:10]Write i2c OK [10:53:10]MH_I2C_Read... [10:53:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:53:11]Read from MH i2c: E2 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 FD 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 FD 00 FE 09 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 13 [10:53:11]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:53:11]wFMCommunicate OK [10:53:11]wFMCommunicate request_size=4 [10:53:11]MH_SAM_APDU [10:53:11]CAPDU: 80 17 00 00 [10:53:11]Write to MH i2c: E2 08 00 FF 09 80 17 00 00 00 00 00 00 88 [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:53:11]Read from MH i2c: E2 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 E2 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 E2 00 FF 09 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 66 [10:53:11]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:53:11]wFMCommunicate OK [10:53:11]SAM_PROTO_GetFMData done [10:53:11]requested_item fm.sale_refund.total is exist - process it [10:53:11]requested_item fm.buy.total is exist - process it [10:53:11]requested_item shift.sale.total is exist - process it [10:53:11]SAM_PROTO_GetShiftData [10:53:11]wFMCommunicate request_size=4 [10:53:11]MH_SAM_APDU [10:53:11]CAPDU: 80 13 02 00 [10:53:11]Write to MH i2c: E2 08 00 00 0A 80 13 02 00 00 00 00 00 88 [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]OFD Sender: No OFD packet to send [10:53:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:53:11]Read from MH i2c: E2 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 FD 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 FD 00 00 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 45 00 00 00 69 04 9B 00 6F 04 04 00 45 00 00 00 B1 04 03 00 8C 96 2B 70 04 03 00 EC 99 24 72 04 03 00 A0 FC 06 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 FF A0 04 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 B2 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [10:53:12]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 45 00 00 00 69 04 9B 00 6F 04 04 00 45 00 00 00 B1 04 03 00 8C 96 2B 70 04 03 00 EC 99 24 72 04 03 00 A0 FC 06 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 FF A0 04 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 B2 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:53:12]wFMCommunicate OK [10:53:12]wFMCommunicate request_size=4 [10:53:12]MH_SAM_APDU [10:53:12]CAPDU: 80 17 00 00 [10:53:12]Write to MH i2c: E2 08 00 01 0A 80 17 00 00 00 00 00 00 8B [10:53:12]Write i2c OK [10:53:12]MH_I2C_Read... [10:53:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:53:12]Read from MH i2c: E2 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 FD 00 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 FD 00 01 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AD [10:53:12]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:53:12]wFMCommunicate OK [10:53:12]wFMCommunicate request_size=4 [10:53:12]MH_SAM_APDU [10:53:12]CAPDU: 80 17 00 00 [10:53:12]Write to MH i2c: E2 08 00 02 0A 80 17 00 00 00 00 00 00 8C [10:53:12]Write i2c OK [10:53:12]MH_I2C_Read... [10:53:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:53:12]Read from MH i2c: E2 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 FD 00 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 FD 00 02 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 43 [10:53:12]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:53:12]wFMCommunicate OK [10:53:12]wFMCommunicate request_size=4 [10:53:12]MH_SAM_APDU [10:53:12]CAPDU: 80 17 00 00 [10:53:12]Write to MH i2c: E2 08 00 03 0A 80 17 00 00 00 00 00 00 8D [10:53:12]Write i2c OK [10:53:12]MH_I2C_Read... [10:53:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:53:13]Read from MH i2c: E2 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 FD 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 FD 00 03 0A 00 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 90 00 FF [10:53:13]RAPDU: 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 90 00 [10:53:13]wFMCommunicate OK [10:53:13]wFMCommunicate request_size=4 [10:53:13]MH_SAM_APDU [10:53:13]CAPDU: 80 17 00 00 [10:53:13]Write to MH i2c: E2 08 00 04 0A 80 17 00 00 00 00 00 00 8E [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:53:13]Read from MH i2c: E2 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 CB 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 CB 00 04 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [10:53:13]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:53:13]wFMCommunicate OK [10:53:13]SAM_PROTO_GetShiftData done [10:53:13]requested_item shift.sale.total_cash is exist - process it [10:53:13]requested_item shift.sale_refund.total is exist - process it [10:53:13]requested_item shift.sale_refund.total_cash is exist - process it [10:53:13]requested_item shift.buy.total is exist - process it [10:53:13]requested_item shift.buy.total_cash is exist - process it [10:53:13]produce_requested_data done [10:53:13]produce_requested_data return {"fm.sale.total":64606959.65,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":28565.88,"shift.sale.total_cash":23987.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} [10:53:13]process_action_free get_value [10:53:13]json_value_free [10:53:13]json_value_free done [10:53:13]process_json_proto returns [10:53:13]Send response to host [10:53:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64606959.65,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":28565.88,"shift.sale.total_cash":23987.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}}} [10:53:13]free response buf [10:53:13]execute_script done [10:53:13]execute_script returns [10:53:13]free content buf [10:53:13]Sock 9.Close socket [10:53:13]Sock 9.Thread stoped [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:55]accept exits with 7 [10:54:55]New connection [10:54:55]New thread 3067051364 created [10:54:55]Thread 3067194724 joined [10:54:55]Waiting for new connection... [10:54:55] Sock 7.Parse request [10:54:55]Sock 7.Check first char [10:54:55]Sock 7.First char is OK [10:54:55]request: POST /json_proto HTTP/1.0 [10:54:55]Method: POST [10:54:55]URL: /json_proto [10:54:55]Method is POST - this is cgi request [10:54:55]url: /json_proto [10:54:55]query_string will be loaded in cgi processing [10:54:55]execute_cgi json_proto POST (null) [10:54:55]execute_cgi path=json_proto method=POST [10:54:55]POST find Content-Length [10:54:55]Host: 172.17.41.136:8080 [10:54:55]Content-Length: 824 [10:54:55]Content-Type: application/json [10:54:55] [10:54:55]POST finish read [10:54:55]Found Content-Length = 824 [10:54:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:55]execute_script... [10: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)24617551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:55]POST & json_proto [10:54:55]process_json_proto [10:54:55]json parsed OK: [10:54:55]protocol is kg_v1.0 [10:54:55]action value=close_receipt [10:54:55]process_action close_receipt [10:54:55]cmd_close_receipt [10:54:55]MH_GetDate [10:54:55]Write to MH i2c: F0 00 00 05 0A FE [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: F0 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: F0 09 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: F0 09 00 05 0A 00 00 49 F1 66 1B D0 5A 64 50 [10:54:55]GetLastDocTimeStamp 1727088783 [10:54:55]current date 1727088896 [10:54:55]FM_GetShiftState [10:54:55]SAM_PROTO_GetShiftState [10:54:55]wFMCommunicate request_size=4 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 13 01 00 [10:54:55]Write to MH i2c: E2 08 00 06 0A 80 13 01 00 00 00 00 00 8D [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 0E 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 0E 00 06 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CE [10:54:55]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:54:55]wFMCommunicate OK [10:54:55]SAM_PROTO_GetShiftState done [10:54:55]FM_GetShiftState done [10:54:55]opened in 1727052070 [10:54:55]opened+sec_in_day 1727138470 [10:54:55]quantity*price = 100007 [10:54:55]sum+1 = 100009 [10:54:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.08 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.08 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 70 23.09.2024 10:54 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115587 ФПД: 80767362811999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105456&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115587&fm=80767362811999&tin=02508201610067®Number=0000000000091831&sum=100008 [10:54:56]StoreToDocumentArchive [10:54:56]shift 472 fd 115587 [10:54:56]save to /storage/0472/doc_00115587 [10:54:56]save last doc name /storage/0472/doc_00115587 to /storage/kkm_last_doc_name [10:54:56]save OK [10:54:56]Clear old archive folders... [10:54:56]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:54:56]tlvbuf is 009489C0 [10:54:56]SAM_PROTO_ClearQueue [10:54:56]wFMCommunicate request_size=4 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 09 00 00 [10:54:56]Write to MH i2c: E2 08 00 13 0A 80 09 00 00 00 00 00 00 8F [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 13 0A 00 90 00 91 [10:54:56]RAPDU: 90 00 [10:54:56]wFMCommunicate OK [10:54:56]SAM_PROTO_ClearQueue done [10:54:56]KKMCreateOFDPacket [10:54:56]OFDProtocolAddRootSTLVToBuf [10:54:56]FM_MakeSignedData [10:54:56]FM_MakeSignedData [10:54:56]SAM_PROTO_SignData [10:54:56]wFMCommunicate request_size=4 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 0D 01 02 [10:54:56]Write to MH i2c: E2 08 00 14 0A 80 0D 01 02 00 00 00 00 97 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 14 0A 00 90 00 92 [10:54:56]RAPDU: 90 00 [10:54:56]wFMCommunicate OK [10:54:56]wFMCommunicate request_size=255 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 00 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 83 C3 01 00 35 04 06 00 49 75 [10:54:56]Write to MH i2c: E2 02 01 15 0A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 00 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 83 C3 01 00 35 04 06 00 49 75 00 00 34 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:56]OFD Sender: No OFD packet to send [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 15 0A 00 90 00 93 [10:54:56]RAPDU: 90 00 [10:54:56]wFMCommunicate OK [10:54:56]wFMCommunicate request_size=9 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 0D 02 02 04 1D F8 48 5F [10:54:56]Write to MH i2c: E2 0C 00 16 0A 80 0D 02 02 04 00 1D F8 48 5F 00 00 5E [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 16 0A 00 90 00 94 [10:54:56]RAPDU: 90 00 [10:54:56]wFMCommunicate OK [10:54:56]wFMCommunicate request_size=4 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 0D 03 02 [10:54:56]Write to MH i2c: E2 08 00 17 0A 80 0D 03 02 00 00 00 00 9C [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 0B 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 0B 00 17 0A 00 C8 91 DA B7 DD EF AD D4 90 00 D4 [10:54:56]RAPDU: C8 91 DA B7 DD EF AD D4 90 00 [10:54:56]wFMCommunicate OK [10:54:56]SAM_PROTO_SignData done [10:54:56]FM_MakeSignedData done [10:54:56]CreateOFDProtocolMessage [10:54:56]wFMCommunicate request_size=4 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 11 00 00 [10:54:56]Write to MH i2c: E2 08 00 18 0A 80 11 00 00 00 00 00 00 9C [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:57]Read from MH i2c: E2 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 17 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 17 00 18 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EA [10:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:54:57]wFMCommunicate OK [10:54:57]CreateOFDProtocolMessage done [10:54:57]OFDSenderStorePacket 115587 [10:54:57]StoreOFDPacket docnum=115587 [10:54:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 06 6E 06 01 0F 27 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 00 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 83 C3 01 00 35 04 06 00 49 75 1D F8 48 5F C8 91 DA B7 DD EF AD D4 [10:54:57]CheckFolder [10:54:57]dirname=/storage/ofd_packets [10:54:57]CheckFolder done [10:54:57]ProducePacketName [10:54:57]name=ofd_packets/00115587 [10:54:57]NVStorageSaveData ofd_packets/00115587 [10:54:57]File name is /storage/ofd_packets/00115587 [10:54:57]Write 300 bytes [10:54:57]NVStorageSaveData done [10:54:57]OFDSenderStorePacket done [10:54:57]KKMCreateOFDPacket done [10:54:57]NVStorageSaveData kkm_last_timestamp [10:54:57]File name is /storage/kkm_last_timestamp [10:54:57]Write 4 bytes [10:54:57]NVStorageSaveData done [10:54:57]ExternCall_PrintAddStr [10:54:57]wPrintStart [10:54:57]Write to MH i2c: 01 00 00 19 0A 23 [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 07 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 07 00 19 0A 00 00 00 00 00 FF 0F 38 [10:54:57]RasterBufferAndPrint [10:54:57]line Счет N : (1)24617551 [10:54:57]line ИНН: 02508201610067 [10:54:57]line Контрольно-Кассовый Чек [10:54:57]line ПРОДАЖА [10:54:57]line ТРК (МРК, ГНК) : 71 [10:54:57]line Товар: 2711190000 [10:54:57]line ГАЗ-К-5 [10:54:57]line 26.740 * 37.40 [10:54:57]line = 1000.08 [10:54:57]line НДС 12% НСП 1% [10:54:57]line > о реализуемом товаре [10:54:57]line ИТОГО: 1000.08 [10:54:57]line НСП 1% : 8.85 [10:54:57]line НДС 12% : 106.20 [10:54:57]line Наличными: 0.00 [10:54:57]line Безнал.: 1000.08 [10:54:57]line Место: АЗС № 90 "Партнер Нефть" [10:54:57]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:54:57]line СНО: Общий режим [10:54:57]line Чек 70 23.09.2024 10:54 [10:54:57]line Смена: 472 ФФД: 1.0 [10:54:57]line ЗНМ: 0300000120 [10:54:57]line РНМ: 0000000000091831 [10:54:57]line Версия ККМ: 001 [10:54:57]line Платежная система: Бакай Банк [10:54:57]line ФМ: 0000000000871830 [10:54:57]line ФД: 115587 [10:54:57]line ФПД: 80767362811999 [10:54:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105456&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115587&fm=80767362811999&tin=02508201610067®Number=0000000000091831&sum=100008 [10:54:57]OFD Sender: Processing packet 115587 [packets to send 481, broken 480] [10:54:57]ProducePacketName [10:54:57]name=ofd_packets/00115587 [10:54:57]OFD Sender: To server: pG, [10:54:57]CommunicateWithHost lk.salyk.kg:30040 [10:54:57]ConnectInit lk.salyk.kg [10:54:57]written 0, free lines is 4095 [10:54:57]Connected sock=9 [10:54:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 06 6E 06 01 0F 27 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 00 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 83 C3 01 00 35 04 06 00 49 75 1D F8 48 5F C8 91 DA B7 DD EF AD D4 [10:54:57]Write to MH i2c: 01 00 00 42 0A 4C [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 07 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 07 00 42 0A 00 00 00 00 00 71 0C D0 [10:54:57]RasterBufferAndPrint [10:54:57]line [10:54:57]line [10:54:57]line [10:54:57]line [10:54:57]line [10:54:57]written 0, free lines is 3191 [10:54:57]MH_Cut [10:54:57]Write to MH i2c: D1 01 00 49 0A 01 25 [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: D1 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: D1 01 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: D1 01 00 49 0A 00 24 [10:54:57]Write to MH i2c: 01 00 00 4A 0A 54 [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 41 44 47 00 76 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 83 C3 01 00 F4 03 04 00 43 EE F0 66 B6 04 01 00 00 B8 A9 B1 EF 1D 65 74 3C [10:54:57]CommunicateWithHost err = 0 [10:54:57]CheckOFDResponse [10:54:57]1017 (14) - 77093643461234 [10:54:57]1041 (16) - 0000000000871830 [10:54:57]1040 (4) - 115587 [10:54:57]1012 (4) - 23.09.2024 04:27 [10:54:57]1206 (1) - 0 [10:54:57]OFD Sender: Remove packet 115587 [10:54:57]ProducePacketName [10:54:57]name=ofd_packets/00115587 [10:54:57]NVStorageDeleteData [10:54:58]OFD Sender: No OFD packet to send [10:54:59]*** Cut start [10:54:59]*** Partial cut [10:54:59]*** CUTSNS_PIN = 1 [10:54:59]*** CUTSNS_PIN = 0 [10:54:59]*** Brake cut motor [10:54:59]Read from MH i2c: 01 [10:54:59]MH_I2C_Read... [10:54:59]*** Stop cut motor [10:54:59]*** Cut end [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 4A 0A 00 00 00 00 00 FF 0F 69 [10:54:59]process_action close_receipt done [10:54:59]requested_data is exist [10:54:59]produce_requested_data [10:54:59]requested_item fm.sn is exist - process it [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 4B 0A 80 11 00 00 00 00 00 00 CF [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 4B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1D [10:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:54:59]wFMCommunicate OK [10:54:59]requested_item fd.num is exist - process it [10:54:59]SAM_PROTO_GetFieldsCounters [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 13 00 00 [10:54:59]Write to MH i2c: E2 08 00 4C 0A 80 13 00 00 00 00 00 00 D2 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 62 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 62 00 4C 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 83 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [10: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 83 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:59]wFMCommunicate OK [10:54:59]SAM_PROTO_GetFieldsCounters done [10:54:59]requested_item shift.num is exist - process it [10:54:59]requested_item shift.opened is exist - process it [10:54:59]req_shift_opened [10:54:59]FM_GetShiftState [10:54:59]SAM_PROTO_GetShiftState [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 13 01 00 [10:54:59]Write to MH i2c: E2 08 00 4D 0A 80 13 01 00 00 00 00 00 D4 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:59]Read from MH i2c: E2 0E 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 0E 00 4D 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 15 [10:54:59]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:54:59]wFMCommunicate OK [10:54:59]SAM_PROTO_GetShiftState done [10:54:59]FM_GetShiftState done [10:54:59]req_shift_opened done [10:54:59]requested_item shift.open_date is exist - process it [10:54:59]req_shift_open_date [10:54:59]req_shift_open_date done [10:54:59]produce_requested_data done [10:54:59]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115587,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:54:59]process_action_free close_receipt [10:54:59]json_value_free [10:54:59]json_value_free done [10:54:59]process_json_proto returns [10:54:59]Send response to host [10:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115587,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:54:59]free response buf [10:54:59]execute_script done [10:54:59]execute_script returns [10:54:59]free content buf [10:54:59]Sock 7.Close socket [10:54:59]Sock 7.Thread stoped [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]accept exits with 10 [10:55:58]New connection [10:55:58]New thread 3067194724 created [10:55:58]Thread 3067051364 joined [10:55:58]Waiting for new connection... [10:55:58] Sock 10.Parse request [10:55:58]Sock 10.Check first char [10:55:58]Sock 10.First char is OK [10:55:58]request: POST /json_proto HTTP/1.0 [10:55:58]Method: POST [10:55:58]URL: /json_proto [10:55:58]Method is POST - this is cgi request [10:55:58]url: /json_proto [10:55:58]query_string will be loaded in cgi processing [10:55:58]execute_cgi json_proto POST (null) [10:55:58]execute_cgi path=json_proto method=POST [10:55:58]POST find Content-Length [10:55:58]Host: 172.17.41.136:8080 [10:55:58]Content-Length: 710 [10:55:58]Content-Type: application/json [10:55:58] [10:55:58]POST finish read [10:55:58]Found Content-Length = 710 [10:55:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343993", "tax_sys" : 0, "items" : [ { "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:58]execute_script... [10:55:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343993", "tax_sys" : 0, "items" : [ { "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:58]POST & json_proto [10:55:58]process_json_proto [10:55:58]json parsed OK: [10:55:58]protocol is kg_v1.0 [10:55:58]action value=close_receipt [10:55:58]process_action close_receipt [10:55:58]cmd_close_receipt [10:55:58]MH_GetDate [10:55:58]Write to MH i2c: F0 00 00 4E 0A 47 [10:55:58]Write i2c OK [10:55:58]MH_I2C_Read... [10:55:58]Read from MH i2c: F0 [10:55:58]MH_I2C_Read... [10:55:58]Read from MH i2c: F0 09 00 [10:55:58]MH_I2C_Read... [10:55:58]Read from MH i2c: F0 09 00 4E 0A 00 3F 49 F1 66 1B D0 5A 64 D8 [10:55:58]GetLastDocTimeStamp 1727088896 [10:55:58]current date 1727088959 [10:55:58]FM_GetShiftState [10:55:58]SAM_PROTO_GetShiftState [10:55:58]wFMCommunicate request_size=4 [10:55:58]MH_SAM_APDU [10:55:58]CAPDU: 80 13 01 00 [10:55:58]Write to MH i2c: E2 08 00 4F 0A 80 13 01 00 00 00 00 00 D6 [10:55:58]Write i2c OK [10:55:58]MH_I2C_Read... [10:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:58]Read from MH i2c: E2 [10:55:58]MH_I2C_Read... [10:55:58]Read from MH i2c: E2 0E 00 [10:55:58]MH_I2C_Read... [10:55:58]Read from MH i2c: E2 0E 00 4F 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 17 [10:55:58]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:55:58]wFMCommunicate OK [10:55:58]SAM_PROTO_GetShiftState done [10:55:58]FM_GetShiftState done [10:55:58]opened in 1727052070 [10:55:58]opened+sec_in_day 1727138470 [10:55:58]quantity*price = 9000 [10:55:58]sum+1 = 9001 [10:55:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 71 23.09.2024 10:55 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115588 ФПД: 152634094127927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105559&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115588&fm=152634094127927&tin=02508201610067®Number=0000000000091831&sum=9000 0 [10:55:59]StoreToDocumentArchive [10:55:59]shift 472 fd 115588 [10:55:59]save to /storage/0472/doc_00115588 [10:55:59]save last doc name /storage/0472/doc_00115588 to /storage/kkm_last_doc_name [10:55:59]save OK [10:55:59]Clear old archive folders... [10:55:59]ProcessDocumentItem done err = 0, tmpTLVsize=305 [10:55:59]tlvbuf is 0094AD20 [10:55:59]SAM_PROTO_ClearQueue [10:55:59]wFMCommunicate request_size=4 [10:55:59]MH_SAM_APDU [10:55:59]CAPDU: 80 09 00 00 [10:55:59]Write to MH i2c: E2 08 00 5C 0A 80 09 00 00 00 00 00 00 D8 [10:55:59]Write i2c OK [10:55:59]MH_I2C_Read... [10:55:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:59]Read from MH i2c: E2 [10:55:59]MH_I2C_Read... [10:55:59]Read from MH i2c: E2 03 00 [10:55:59]MH_I2C_Read... [10:55:59]Read from MH i2c: E2 03 00 5C 0A 00 90 00 DA [10:55:59]RAPDU: 90 00 [10:55:59]wFMCommunicate OK [10:55:59]SAM_PROTO_ClearQueue done [10:55:59]KKMCreateOFDPacket [10:55:59]OFDProtocolAddRootSTLVToBuf [10:55:59]FM_MakeSignedData [10:55:59]FM_MakeSignedData [10:55:59]SAM_PROTO_SignData [10:55:59]wFMCommunicate request_size=4 [10:55:59]MH_SAM_APDU [10:55:59]CAPDU: 80 0D 01 02 [10:55:59]Write to MH i2c: E2 08 00 5D 0A 80 0D 01 02 00 00 00 00 E0 [10:55:59]Write i2c OK [10:55:59]MH_I2C_Read... [10:55:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:59]Read from MH i2c: E2 [10:55:59]MH_I2C_Read... [10:55:59]Read from MH i2c: E2 03 00 [10:55:59]MH_I2C_Read... [10:55:59]Read from MH i2c: E2 03 00 5D 0A 00 90 00 DB [10:55:59]RAPDU: 90 00 [10:55:59]wFMCommunicate OK [10:55:59]wFMCommunicate request_size=255 [10:55:59]MH_SAM_APDU [10:55:59]CAPDU: 80 0D 02 02 FA 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 3F 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 [10:55:59]Write to MH i2c: E2 02 01 5E 0A 80 0D 02 02 FA 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 3F 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 00 00 47 [10:55:59]Write i2c OK [10:55:59]MH_I2C_Read... [10:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:59]Read from MH i2c: E2 [10:55:59]MH_I2C_Read... [10:55:59]Read from MH i2c: E2 03 00 [10:55:59]MH_I2C_Read... [10:55:59]Read from MH i2c: E2 03 00 5E 0A 00 90 00 DC [10:55:59]RAPDU: 90 00 [10:55:59]wFMCommunicate OK [10:55:59]wFMCommunicate request_size=64 [10:55:59]MH_SAM_APDU [10:55:59]CAPDU: 80 0D 02 02 3B 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 84 C3 01 00 35 04 06 00 8A D1 E4 F6 0B 37 [10:55:59]Write to MH i2c: E2 43 00 5F 0A 80 0D 02 02 3B 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 84 C3 01 00 35 04 06 00 8A D1 E4 F6 0B 37 00 00 E7 [10:55:59]Write i2c OK [10:55:59]MH_I2C_Read... [10:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:00]Read from MH i2c: E2 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: E2 03 00 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: E2 03 00 5F 0A 00 90 00 DD [10:56:00]RAPDU: 90 00 [10:56:00]wFMCommunicate OK [10:56:00]wFMCommunicate request_size=4 [10:56:00]MH_SAM_APDU [10:56:00]CAPDU: 80 0D 03 02 [10:56:00]Write to MH i2c: E2 08 00 60 0A 80 0D 03 02 00 00 00 00 E5 [10:56:00]Write i2c OK [10:56:00]MH_I2C_Read... [10:56:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:00]Read from MH i2c: E2 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: E2 0B 00 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: E2 0B 00 60 0A 00 44 2B D3 C9 0D 07 63 89 90 00 F1 [10:56:00]RAPDU: 44 2B D3 C9 0D 07 63 89 90 00 [10:56:00]wFMCommunicate OK [10:56:00]SAM_PROTO_SignData done [10:56:00]FM_MakeSignedData done [10:56:00]CreateOFDProtocolMessage [10:56:00]wFMCommunicate request_size=4 [10:56:00]MH_SAM_APDU [10:56:00]CAPDU: 80 11 00 00 [10:56:00]Write to MH i2c: E2 08 00 61 0A 80 11 00 00 00 00 00 00 E5 [10:56:00]Write i2c OK [10:56:00]MH_I2C_Read... [10:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:00]Read from MH i2c: E2 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: E2 17 00 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: E2 17 00 61 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 33 [10:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:56:00]wFMCommunicate OK [10:56:00]CreateOFDProtocolMessage done [10:56:00]OFDSenderStorePacket 115588 [10:56:00]StoreOFDPacket docnum=115588 [10:56:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 45 01 00 00 A1 0A 3D 01 63 71 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 3F 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 84 C3 01 00 35 04 06 00 8A D1 E4 F6 0B 37 44 2B D3 C9 0D 07 63 89 [10:56:00]CheckFolder [10:56:00]dirname=/storage/ofd_packets [10:56:00]CheckFolder done [10:56:00]ProducePacketName [10:56:00]name=ofd_packets/00115588 [10:56:00]NVStorageSaveData ofd_packets/00115588 [10:56:00]File name is /storage/ofd_packets/00115588 [10:56:00]Write 355 bytes [10:56:00]NVStorageSaveData done [10:56:00]OFDSenderStorePacket done [10:56:00]KKMCreateOFDPacket done [10:56:00]NVStorageSaveData kkm_last_timestamp [10:56:00]File name is /storage/kkm_last_timestamp [10:56:00]Write 4 bytes [10:56:00]NVStorageSaveData done [10:56:00]ExternCall_PrintAddStr [10:56:00]wPrintStart [10:56:00]Write to MH i2c: 01 00 00 62 0A 6C [10:56:00]Write i2c OK [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: 01 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: 01 07 00 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: 01 07 00 62 0A 00 00 00 00 00 FF 0F 81 [10:56:00]RasterBufferAndPrint [10:56:00]line Счет N : (3)343993 [10:56:00]line ИНН: 02508201610067 [10:56:00]line Контрольно-Кассовый Чек [10:56:00]line ПРОДАЖА [10:56:00]line Товар: 4650243870968 [10:56:00]line Напиток Gorilla ж/б 0,45л Персик Абрикос [10:56:00]line 1.000 * 90.00 [10:56:00]line = 90.00 [10:56:00]line НДС 12% НСП 1% [10:56:00]line > о реализуемом товаре [10:56:00]line ИТОГО: 90.00 [10:56:00]line НСП 1% : 0.80 [10:56:00]line НДС 12% : 9.56 [10:56:00]line Наличными: 90.00 [10:56:00]line Безнал.: 0.00 [10:56:00]line Место: АЗС № 90 "Партнер Нефть" [10:56:00]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:56:00]line СНО: Общий режим [10:56:00]line Чек 71 23.09.2024 10:55 [10:56:00]line Смена: 472 ФФД: 1.0 [10:56:00]line ЗНМ: 0300000120 [10:56:00]line РНМ: 0000000000091831 [10:56:00]line Версия ККМ: 001 [10:56:00]line ФМ: 0000000000871830 [10:56:00]line ФД: 115588 [10:56:00]line ФПД: 152634094127927 [10:56:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105559&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115588&fm=152634094127927&tin=02508201610067®Number=0000000000091831&sum=9000 [10:56:00]line 0 [10:56:00]OFD Sender: Processing packet 115588 [packets to send 481, broken 480] [10:56:00]ProducePacketName [10:56:00]name=ofd_packets/00115588 [10:56:00]OFD Sender: To server: pG, [10:56:00]CommunicateWithHost lk.salyk.kg:30040 [10:56:00]ConnectInit lk.salyk.kg [10:56:00]written 0, free lines is 4095 [10:56:00]Connected sock=9 [10:56: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 38 33 30 45 01 00 00 A1 0A 3D 01 63 71 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 3F 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 84 C3 01 00 35 04 06 00 8A D1 E4 F6 0B 37 44 2B D3 C9 0D 07 63 89 [10:56:00]Write to MH i2c: 01 00 00 8A 0A 94 [10:56:00]Write i2c OK [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: 01 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: 01 07 00 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: 01 07 00 8A 0A 00 00 00 00 00 67 0C 0E [10:56:00]RasterBufferAndPrint [10:56:00]line [10:56:00]line [10:56:00]line [10:56:00]line [10:56:00]line [10:56:00]written 0, free lines is 3180 [10:56:00]MH_Cut [10:56:00]Write to MH i2c: D1 01 00 91 0A 01 6D [10:56:00]Write i2c OK [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: D1 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: D1 01 00 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: D1 01 00 91 0A 00 6C [10:56:00]Write to MH i2c: 01 00 00 92 0A 9C [10:56:00]Write i2c OK [10:56:00]MH_I2C_Read... [10:56:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9A 95 47 00 87 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 38 33 30 10 04 04 00 84 C3 01 00 F4 03 04 00 82 EE F0 66 B6 04 01 00 00 B2 EF 90 48 10 C3 9B BD [10:56:01]CommunicateWithHost err = 0 [10:56:01]CheckOFDResponse [10:56:01]1017 (14) - 77093643461234 [10:56:01]1041 (16) - 0000000000871830 [10:56:01]1040 (4) - 115588 [10:56:01]1012 (4) - 23.09.2024 04:28 [10:56:01]1206 (1) - 0 [10:56:01]OFD Sender: Remove packet 115588 [10:56:01]ProducePacketName [10:56:01]name=ofd_packets/00115588 [10:56:01]NVStorageDeleteData [10:56:01]OFD Sender: No OFD packet to send [10:56:02]*** Cut start [10:56:02]*** Partial cut [10:56:02]*** CUTSNS_PIN = 1 [10:56:02]*** CUTSNS_PIN = 0 [10:56:02]*** Brake cut motor [10:56:02]Read from MH i2c: 01 [10:56:02]MH_I2C_Read... [10:56:02]*** Stop cut motor [10:56:02]*** Cut end [10:56:02]Read from MH i2c: 01 07 00 [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: 01 07 00 92 0A 00 00 00 00 00 FF 0F B1 [10:56:02]process_action close_receipt done [10:56:02]requested_data is exist [10:56:02]produce_requested_data [10:56:02]requested_item fm.sn is exist - process it [10:56:02]wFMCommunicate request_size=4 [10:56:02]MH_SAM_APDU [10:56:02]CAPDU: 80 11 00 00 [10:56:02]Write to MH i2c: E2 08 00 93 0A 80 11 00 00 00 00 00 00 17 [10:56:02]Write i2c OK [10:56:02]MH_I2C_Read... [10:56:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:02]Read from MH i2c: E2 [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: E2 17 00 [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: E2 17 00 93 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 65 [10:56:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:56:02]wFMCommunicate OK [10:56:02]requested_item fd.num is exist - process it [10:56:02]SAM_PROTO_GetFieldsCounters [10:56:02]wFMCommunicate request_size=4 [10:56:02]MH_SAM_APDU [10:56:02]CAPDU: 80 13 00 00 [10:56:02]Write to MH i2c: E2 08 00 94 0A 80 13 00 00 00 00 00 00 1A [10:56:02]Write i2c OK [10:56:02]MH_I2C_Read... [10:56:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:02]Read from MH i2c: E2 [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: E2 62 00 [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: E2 62 00 94 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 84 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [10:56: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 84 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:02]wFMCommunicate OK [10:56:02]SAM_PROTO_GetFieldsCounters done [10:56:02]requested_item shift.num is exist - process it [10:56:02]requested_item shift.opened is exist - process it [10:56:02]req_shift_opened [10:56:02]FM_GetShiftState [10:56:02]SAM_PROTO_GetShiftState [10:56:02]wFMCommunicate request_size=4 [10:56:02]MH_SAM_APDU [10:56:02]CAPDU: 80 13 01 00 [10:56:02]Write to MH i2c: E2 08 00 95 0A 80 13 01 00 00 00 00 00 1C [10:56:02]Write i2c OK [10:56:02]MH_I2C_Read... [10:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:02]Read from MH i2c: E2 [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: E2 0E 00 [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: E2 0E 00 95 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5D [10:56:02]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:56:02]wFMCommunicate OK [10:56:02]SAM_PROTO_GetShiftState done [10:56:02]FM_GetShiftState done [10:56:02]req_shift_opened done [10:56:02]requested_item shift.open_date is exist - process it [10:56:02]req_shift_open_date [10:56:02]req_shift_open_date done [10:56:02]produce_requested_data done [10:56:02]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115588,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:56:02]process_action_free close_receipt [10:56:02]json_value_free [10:56:02]json_value_free done [10:56:02]process_json_proto returns [10:56:02]Send response to host [10:56:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115588,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:56:02]free response buf [10:56:02]execute_script done [10:56:02]execute_script returns [10:56:02]free content buf [10:56:02]Sock 10.Close socket [10:56:02]Sock 10.Thread stoped [10:56:03]accept exits with 7 [10:56:03]New connection [10:56:03]New thread 3067051364 created [10:56:03]Thread 3067194724 joined [10:56:03]Waiting for new connection... [10:56:03] Sock 7.Parse request [10:56:03]Sock 7.Check first char [10:56:03]Sock 7.First char is OK [10:56:03]request: POST /json_proto HTTP/1.0 [10:56:03]Method: POST [10:56:03]URL: /json_proto [10:56:03]Method is POST - this is cgi request [10:56:03]url: /json_proto [10:56:03]query_string will be loaded in cgi processing [10:56:03]execute_cgi json_proto POST (null) [10:56:03]execute_cgi path=json_proto method=POST [10:56:03]POST find Content-Length [10:56:03]Host: 172.17.41.136:8080 [10:56:03]Content-Length: 679 [10:56:03]Content-Type: application/json [10:56:03] [10:56:03]POST finish read [10:56:03]Found Content-Length = 679 [10:56:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:56:03]execute_script... [10: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)24617552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:56:03]POST & json_proto [10:56:03]process_json_proto [10:56:03]json parsed OK: [10:56:03]protocol is kg_v1.0 [10:56:03]action value=close_receipt [10:56:03]process_action close_receipt [10:56:03]cmd_close_receipt [10:56:03]MH_GetDate [10:56:03]Write to MH i2c: F0 00 00 96 0A 8F [10:56:03]Write i2c OK [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: F0 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: F0 09 00 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: F0 09 00 96 0A 00 44 49 F1 66 1B D0 5A 64 25 [10:56:03]GetLastDocTimeStamp 1727088959 [10:56:03]current date 1727088964 [10:56:03]FM_GetShiftState [10:56:03]SAM_PROTO_GetShiftState [10:56:03]wFMCommunicate request_size=4 [10:56:03]MH_SAM_APDU [10:56:03]CAPDU: 80 13 01 00 [10:56:03]Write to MH i2c: E2 08 00 97 0A 80 13 01 00 00 00 00 00 1E [10:56:03]Write i2c OK [10:56:03]MH_I2C_Read... [10:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:03]Read from MH i2c: E2 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 0E 00 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 0E 00 97 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5F [10:56:03]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:56:03]wFMCommunicate OK [10:56:03]SAM_PROTO_GetShiftState done [10:56:03]FM_GetShiftState done [10:56:03]opened in 1727052070 [10:56:03]opened+sec_in_day 1727138470 [10:56:03]quantity*price = 40002 [10:56:03]sum+1 = 40003 [10:56:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 72 23.09.2024 10:56 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115589 ФПД: 11590081006141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105604&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115589&fm=11590081006141&tin=02508201610067®Number=0000000000091831&sum=40000 [10:56:04]StoreToDocumentArchive [10:56:04]shift 472 fd 115589 [10:56:04]save to /storage/0472/doc_00115589 [10:56:04]save last doc name /storage/0472/doc_00115589 to /storage/kkm_last_doc_name [10:56:04]save OK [10:56:04]Clear old archive folders... [10:56:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:04]tlvbuf is 00981750 [10:56:04]SAM_PROTO_ClearQueue [10:56:04]wFMCommunicate request_size=4 [10:56:04]MH_SAM_APDU [10:56:04]CAPDU: 80 09 00 00 [10:56:04]Write to MH i2c: E2 08 00 A4 0A 80 09 00 00 00 00 00 00 20 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:04]Read from MH i2c: E2 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 A4 0A 00 90 00 22 [10:56:04]RAPDU: 90 00 [10:56:04]wFMCommunicate OK [10:56:04]SAM_PROTO_ClearQueue done [10:56:04]KKMCreateOFDPacket [10:56:04]OFDProtocolAddRootSTLVToBuf [10:56:04]FM_MakeSignedData [10:56:04]FM_MakeSignedData [10:56:04]SAM_PROTO_SignData [10:56:04]wFMCommunicate request_size=4 [10:56:04]MH_SAM_APDU [10:56:04]CAPDU: 80 0D 01 02 [10:56:04]Write to MH i2c: E2 08 00 A5 0A 80 0D 01 02 00 00 00 00 28 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:04]Read from MH i2c: E2 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 A5 0A 00 90 00 23 [10:56:04]RAPDU: 90 00 [10:56:04]wFMCommunicate OK [10:56:04]wFMCommunicate request_size=255 [10:56:04]MH_SAM_APDU [10:56:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 48 00 00 00 F4 03 04 00 44 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 85 C3 01 00 35 04 06 00 0A [10:56:04]Write to MH i2c: E2 02 01 A6 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 48 00 00 00 F4 03 04 00 44 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 85 C3 01 00 35 04 06 00 0A 00 00 DC [10:56:05]Write i2c OK [10:56:05]MH_I2C_Read... [10:56:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:05]Read from MH i2c: E2 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 03 00 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 03 00 A6 0A 00 90 00 24 [10:56:05]RAPDU: 90 00 [10:56:05]wFMCommunicate OK [10:56:05]wFMCommunicate request_size=10 [10:56:05]MH_SAM_APDU [10:56:05]CAPDU: 80 0D 02 02 05 8A 86 A9 4A 3D [10:56:05]Write to MH i2c: E2 0D 00 A7 0A 80 0D 02 02 05 00 8A 86 A9 4A 3D 00 00 75 [10:56:05]Write i2c OK [10:56:05]MH_I2C_Read... [10:56:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:05]Read from MH i2c: E2 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 03 00 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 03 00 A7 0A 00 90 00 25 [10:56:05]RAPDU: 90 00 [10:56:05]wFMCommunicate OK [10:56:05]wFMCommunicate request_size=4 [10:56:05]MH_SAM_APDU [10:56:05]CAPDU: 80 0D 03 02 [10:56:05]Write to MH i2c: E2 08 00 A8 0A 80 0D 03 02 00 00 00 00 2D [10:56:05]Write i2c OK [10:56:05]MH_I2C_Read... [10:56:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:05]Read from MH i2c: E2 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 0B 00 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 0B 00 A8 0A 00 38 30 08 88 59 96 BA E8 90 00 B7 [10:56:05]RAPDU: 38 30 08 88 59 96 BA E8 90 00 [10:56:05]wFMCommunicate OK [10:56:05]SAM_PROTO_SignData done [10:56:05]FM_MakeSignedData done [10:56:05]CreateOFDProtocolMessage [10:56:05]wFMCommunicate request_size=4 [10:56:05]MH_SAM_APDU [10:56:05]CAPDU: 80 11 00 00 [10:56:05]Write to MH i2c: E2 08 00 A9 0A 80 11 00 00 00 00 00 00 2D [10:56:05]Write i2c OK [10:56:05]MH_I2C_Read... [10:56:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:05]Read from MH i2c: E2 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 17 00 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 17 00 A9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7B [10:56:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:56:05]wFMCommunicate OK [10:56:05]CreateOFDProtocolMessage done [10:56:05]OFDSenderStorePacket 115589 [10:56:05]StoreOFDPacket docnum=115589 [10:56:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 99 FF 07 01 F8 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 48 00 00 00 F4 03 04 00 44 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 85 C3 01 00 35 04 06 00 0A 8A 86 A9 4A 3D 38 30 08 88 59 96 BA E8 [10:56:05]CheckFolder [10:56:05]dirname=/storage/ofd_packets [10:56:05]CheckFolder done [10:56:05]ProducePacketName [10:56:05]name=ofd_packets/00115589 [10:56:05]NVStorageSaveData ofd_packets/00115589 [10:56:05]File name is /storage/ofd_packets/00115589 [10:56:05]Write 301 bytes [10:56:05]NVStorageSaveData done [10:56:05]OFDSenderStorePacket done [10:56:05]KKMCreateOFDPacket done [10:56:05]NVStorageSaveData kkm_last_timestamp [10:56:05]File name is /storage/kkm_last_timestamp [10:56:05]Write 4 bytes [10:56:05]NVStorageSaveData done [10:56:05]ExternCall_PrintAddStr [10:56:05]wPrintStart [10:56:05]Write to MH i2c: 01 00 00 AA 0A B4 [10:56:05]Write i2c OK [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: 01 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: 01 07 00 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: 01 07 00 AA 0A 00 00 00 00 00 FF 0F C9 [10:56:05]RasterBufferAndPrint [10:56:05]line Счет N : (1)24617552 [10:56:05]line ИНН: 02508201610067 [10:56:05]line Контрольно-Кассовый Чек [10:56:05]line ПРОДАЖА [10:56:05]line ТРК (МРК, ГНК) : 33 [10:56:05]line Товар: 2710124130 [10:56:05]line Аи-92-К-5 [10:56:05]line 5.900 * 67.80 [10:56:05]line = 400.02 [10:56:05]line НДС 12% НСП 1% [10:56:05]line > о реализуемом товаре [10:56:05]line ОКРУГЛЕНИЕ: -0.02 [10:56:05]line ИТОГО: 400.00 [10:56:05]line Внесено: 400.00 [10:56:05]line СДАЧА: 0.00 [10:56:05]line НСП 1% : 3.54 [10:56:05]line НДС 12% : 42.48 [10:56:05]line Наличными: 400.00 [10:56:05]line Безнал.: 0.00 [10:56:05]line Место: АЗС № 90 "Партнер Нефть" [10:56:05]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:56:05]line СНО: Общий режим [10:56:05]line Чек 72 23.09.2024 10:56 [10:56:05]line Смена: 472 ФФД: 1.0 [10:56:05]line ЗНМ: 0300000120 [10:56:05]line РНМ: 0000000000091831 [10:56:05]line Версия ККМ: 001 [10:56:05]line ФМ: 0000000000871830 [10:56:05]line ФД: 115589 [10:56:05]line ФПД: 11590081006141 [10:56:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105604&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115589&fm=11590081006141&tin=02508201610067®Number=0000000000091831&sum=40000 [10:56:05]OFD Sender: Processing packet 115589 [packets to send 481, broken 480] [10:56:05]ProducePacketName [10:56:05]name=ofd_packets/00115589 [10:56:05]OFD Sender: To server: pG, [10:56:05]CommunicateWithHost lk.salyk.kg:30040 [10:56:05]ConnectInit lk.salyk.kg [10:56:05]written 0, free lines is 4095 [10:56:06]Connected sock=10 [10: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 38 33 30 0F 01 00 00 99 FF 07 01 F8 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 48 00 00 00 F4 03 04 00 44 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 85 C3 01 00 35 04 06 00 0A 8A 86 A9 4A 3D 38 30 08 88 59 96 BA E8 [10:56:06]Write to MH i2c: 01 00 00 D4 0A DE [10:56:06]Write i2c OK [10:56:06]MH_I2C_Read... [10:56:06]Read from MH i2c: 01 [10:56:06]MH_I2C_Read... [10:56:06]Read from MH i2c: 01 07 00 [10:56:06]MH_I2C_Read... [10:56:06]Read from MH i2c: 01 07 00 D4 0A 00 00 00 00 00 67 0C 58 [10:56:06]RasterBufferAndPrint [10:56:06]line [10:56:06]line [10:56:06]line [10:56:06]line [10:56:06]line [10:56:06]written 0, free lines is 3184 [10:56:06]MH_Cut [10:56:06]Write to MH i2c: D1 01 00 DB 0A 01 B7 [10:56:06]Write i2c OK [10:56:06]MH_I2C_Read... [10:56:06]Read from MH i2c: D1 [10:56:06]MH_I2C_Read... [10:56:06]Read from MH i2c: D1 01 00 [10:56:06]MH_I2C_Read... [10:56:06]Read from MH i2c: D1 01 00 DB 0A 00 B6 [10:56:06]Write to MH i2c: 01 00 00 DC 0A E6 [10:56:06]Write i2c OK [10:56:06]MH_I2C_Read... [10: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 38 33 30 4F 00 00 00 16 A2 47 00 8D 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 38 33 30 10 04 04 00 85 C3 01 00 F4 03 04 00 87 EE F0 66 B6 04 01 00 00 13 EB 82 D5 95 43 DB AB [10:56:06]CommunicateWithHost err = 0 [10:56:06]CheckOFDResponse [10:56:06]1017 (14) - 77093643461234 [10:56:06]1041 (16) - 0000000000871830 [10:56:06]1040 (4) - 115589 [10:56:06]1012 (4) - 23.09.2024 04:28 [10:56:06]1206 (1) - 0 [10:56:06]OFD Sender: Remove packet 115589 [10:56:06]ProducePacketName [10:56:06]name=ofd_packets/00115589 [10:56:06]NVStorageDeleteData [10:56:06]OFD Sender: No OFD packet to send [10:56:07]*** Cut start [10:56:07]*** Partial cut [10:56:07]*** CUTSNS_PIN = 1 [10:56:07]*** CUTSNS_PIN = 0 [10:56:07]*** Brake cut motor [10:56:08]Read from MH i2c: 01 [10:56:08]MH_I2C_Read... [10:56:08]*** Stop cut motor [10:56:08]*** Cut end [10:56:08]Read from MH i2c: 01 07 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: 01 07 00 DC 0A 00 00 00 00 00 FF 0F FB [10:56:08]process_action close_receipt done [10:56:08]requested_data is exist [10:56:08]produce_requested_data [10:56:08]requested_item fm.sn is exist - process it [10:56:08]wFMCommunicate request_size=4 [10:56:08]MH_SAM_APDU [10:56:08]CAPDU: 80 11 00 00 [10:56:08]Write to MH i2c: E2 08 00 DD 0A 80 11 00 00 00 00 00 00 61 [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:08]Read from MH i2c: E2 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 17 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 17 00 DD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AF [10:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:56:08]wFMCommunicate OK [10:56:08]requested_item fd.num is exist - process it [10:56:08]SAM_PROTO_GetFieldsCounters [10:56:08]wFMCommunicate request_size=4 [10:56:08]MH_SAM_APDU [10:56:08]CAPDU: 80 13 00 00 [10:56:08]Write to MH i2c: E2 08 00 DE 0A 80 13 00 00 00 00 00 00 64 [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:08]Read from MH i2c: E2 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 62 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 62 00 DE 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 85 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [10: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 85 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:08]wFMCommunicate OK [10:56:08]SAM_PROTO_GetFieldsCounters done [10:56:08]requested_item shift.num is exist - process it [10:56:08]requested_item shift.opened is exist - process it [10:56:08]req_shift_opened [10:56:08]FM_GetShiftState [10:56:08]SAM_PROTO_GetShiftState [10:56:08]wFMCommunicate request_size=4 [10:56:08]MH_SAM_APDU [10:56:08]CAPDU: 80 13 01 00 [10:56:08]Write to MH i2c: E2 08 00 DF 0A 80 13 01 00 00 00 00 00 66 [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:08]Read from MH i2c: E2 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 0E 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 0E 00 DF 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A7 [10:56:08]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:56:08]wFMCommunicate OK [10:56:08]SAM_PROTO_GetShiftState done [10:56:08]FM_GetShiftState done [10:56:08]req_shift_opened done [10:56:08]requested_item shift.open_date is exist - process it [10:56:08]req_shift_open_date [10:56:08]req_shift_open_date done [10:56:08]produce_requested_data done [10:56:08]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115589,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:56:08]process_action_free close_receipt [10:56:08]json_value_free [10:56:08]json_value_free done [10:56:08]process_json_proto returns [10:56:08]Send response to host [10:56:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115589,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:56:08]free response buf [10:56:08]execute_script done [10:56:08]execute_script returns [10:56:08]free content buf [10:56:08]Sock 7.Close socket [10:56:08]Sock 7.Thread stoped [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:14]accept exits with 9 [10:57:14]New connection [10:57:14]New thread 3067194724 created [10:57:14]Thread 3067051364 joined [10:57:14]Waiting for new connection... [10:57:14] Sock 9.Parse request [10:57:14]Sock 9.Check first char [10:57:14]Sock 9.First char is OK [10:57:14]request: POST /json_proto HTTP/1.0 [10:57:14]Method: POST [10:57:14]URL: /json_proto [10:57:14]Method is POST - this is cgi request [10:57:14]url: /json_proto [10:57:14]query_string will be loaded in cgi processing [10:57:14]execute_cgi json_proto POST (null) [10:57:14]execute_cgi path=json_proto method=POST [10:57:14]POST find Content-Length [10:57:14]Host: 172.17.41.136:8080 [10:57:14]Content-Length: 680 [10:57:14]Content-Type: application/json [10:57:14] [10:57:14]POST finish read [10:57:14]Found Content-Length = 680 [10:57:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.430, "sum" : 910.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 910.00, "total" : 910.00, "payments": [ { "type": 0, "sum" : 910.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:14]execute_script... [10:57: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)24617553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.430, "sum" : 910.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 910.00, "total" : 910.00, "payments": [ { "type": 0, "sum" : 910.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:14]POST & json_proto [10:57:14]process_json_proto [10:57:14]json parsed OK: [10:57:14]protocol is kg_v1.0 [10:57:14]action value=close_receipt [10:57:14]process_action close_receipt [10:57:14]cmd_close_receipt [10:57:14]MH_GetDate [10:57:14]Write to MH i2c: F0 00 00 E0 0A D9 [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: F0 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: F0 09 00 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: F0 09 00 E0 0A 00 8B 49 F1 66 1B D0 5A 64 B6 [10:57:14]GetLastDocTimeStamp 1727088964 [10:57:14]current date 1727089035 [10:57:14]FM_GetShiftState [10:57:14]SAM_PROTO_GetShiftState [10:57:14]wFMCommunicate request_size=4 [10:57:14]MH_SAM_APDU [10:57:14]CAPDU: 80 13 01 00 [10:57:14]Write to MH i2c: E2 08 00 E1 0A 80 13 01 00 00 00 00 00 68 [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:14]Read from MH i2c: E2 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 0E 00 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 0E 00 E1 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A9 [10:57:14]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:57:14]wFMCommunicate OK [10:57:14]SAM_PROTO_GetShiftState done [10:57:14]FM_GetShiftState done [10:57:14]opened in 1727052070 [10:57:14]opened+sec_in_day 1727138470 [10:57:14]quantity*price = 91055 [10:57:14]sum+1 = 91056 [10:57:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 910.00 Внесено: 910.00 СДАЧА: 0.00 НСП 1% : 8.06 НДС 12% : 96.70 Наличными: 910.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 73 23.09.2024 10:57 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115590 ФПД: 219414910462677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105715&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115590&fm=219414910462677&tin=02508201610067®Number=0000000000091831&sum=91000 [10:57:15]StoreToDocumentArchive [10:57:15]shift 472 fd 115590 [10:57:15]save to /storage/0472/doc_00115590 [10:57:15]save last doc name /storage/0472/doc_00115590 to /storage/kkm_last_doc_name [10:57:15]save OK [10:57:15]Clear old archive folders... [10:57:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:15]tlvbuf is 0096CC30 [10:57:15]SAM_PROTO_ClearQueue [10:57:15]wFMCommunicate request_size=4 [10:57:15]MH_SAM_APDU [10:57:15]CAPDU: 80 09 00 00 [10:57:15]Write to MH i2c: E2 08 00 EE 0A 80 09 00 00 00 00 00 00 6A [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:15]Read from MH i2c: E2 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 EE 0A 00 90 00 6C [10:57:15]RAPDU: 90 00 [10:57:15]wFMCommunicate OK [10:57:15]SAM_PROTO_ClearQueue done [10:57:15]KKMCreateOFDPacket [10:57:15]OFDProtocolAddRootSTLVToBuf [10:57:15]FM_MakeSignedData [10:57:15]FM_MakeSignedData [10:57:15]SAM_PROTO_SignData [10:57:15]wFMCommunicate request_size=4 [10:57:15]MH_SAM_APDU [10:57:15]CAPDU: 80 0D 01 02 [10:57:15]Write to MH i2c: E2 08 00 EF 0A 80 0D 01 02 00 00 00 00 72 [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:15]Read from MH i2c: E2 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 EF 0A 00 90 00 6D [10:57:15]RAPDU: 90 00 [10:57:15]wFMCommunicate OK [10:57:15]wFMCommunicate request_size=255 [10:57:15]MH_SAM_APDU [10:57:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 34 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AF 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 8B 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 86 C3 01 00 35 04 06 00 C7 [10:57:15]Write to MH i2c: E2 02 01 F0 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 34 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AF 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 8B 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 86 C3 01 00 35 04 06 00 C7 00 00 F1 [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:16]Read from MH i2c: E2 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 03 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 03 00 F0 0A 00 90 00 6E [10:57:16]RAPDU: 90 00 [10:57:16]wFMCommunicate OK [10:57:16]wFMCommunicate request_size=10 [10:57:16]MH_SAM_APDU [10:57:16]CAPDU: 80 0D 02 02 05 8E 83 CB EA D5 [10:57:16]Write to MH i2c: E2 0D 00 F1 0A 80 0D 02 02 05 00 8E 83 CB EA D5 00 00 1A [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:16]Read from MH i2c: E2 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 03 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 03 00 F1 0A 00 90 00 6F [10:57:16]RAPDU: 90 00 [10:57:16]wFMCommunicate OK [10:57:16]wFMCommunicate request_size=4 [10:57:16]MH_SAM_APDU [10:57:16]CAPDU: 80 0D 03 02 [10:57:16]Write to MH i2c: E2 08 00 F2 0A 80 0D 03 02 00 00 00 00 77 [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:16]Read from MH i2c: E2 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 0B 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 0B 00 F2 0A 00 4D 80 F5 B2 A6 20 3B E5 90 00 D2 [10:57:16]RAPDU: 4D 80 F5 B2 A6 20 3B E5 90 00 [10:57:16]wFMCommunicate OK [10:57:16]SAM_PROTO_SignData done [10:57:16]FM_MakeSignedData done [10:57:16]CreateOFDProtocolMessage [10:57:16]wFMCommunicate request_size=4 [10:57:16]MH_SAM_APDU [10:57:16]CAPDU: 80 11 00 00 [10:57:16]Write to MH i2c: E2 08 00 F3 0A 80 11 00 00 00 00 00 00 77 [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:16]Read from MH i2c: E2 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 17 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 17 00 F3 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C5 [10:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:57:16]wFMCommunicate OK [10:57:16]CreateOFDProtocolMessage done [10:57:16]OFDSenderStorePacket 115590 [10:57:16]StoreOFDPacket docnum=115590 [10:57:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 8B E8 07 01 69 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 34 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AF 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 8B 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 86 C3 01 00 35 04 06 00 C7 8E 83 CB EA D5 4D 80 F5 B2 A6 20 3B E5 [10:57:16]CheckFolder [10:57:16]dirname=/storage/ofd_packets [10:57:16]CheckFolder done [10:57:16]ProducePacketName [10:57:16]name=ofd_packets/00115590 [10:57:16]NVStorageSaveData ofd_packets/00115590 [10:57:16]File name is /storage/ofd_packets/00115590 [10:57:16]Write 301 bytes [10:57:16]NVStorageSaveData done [10:57:16]OFDSenderStorePacket done [10:57:16]KKMCreateOFDPacket done [10:57:16]NVStorageSaveData kkm_last_timestamp [10:57:16]File name is /storage/kkm_last_timestamp [10:57:16]Write 4 bytes [10:57:16]NVStorageSaveData done [10:57:16]ExternCall_PrintAddStr [10:57:16]wPrintStart [10:57:16]Write to MH i2c: 01 00 00 F4 0A FE [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 07 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 07 00 F4 0A 00 00 00 00 00 FF 0F 13 [10:57:16]RasterBufferAndPrint [10:57:16]line Счет N : (1)24617553 [10:57:16]line ИНН: 02508201610067 [10:57:16]line Контрольно-Кассовый Чек [10:57:16]line ПРОДАЖА [10:57:16]line ТРК (МРК, ГНК) : 43 [10:57:16]line Товар: 2710124130 [10:57:16]line Аи-92-К-5 [10:57:16]line 13.430 * 67.80 [10:57:16]line = 910.55 [10:57:16]line НДС 12% НСП 1% [10:57:16]line > о реализуемом товаре [10:57:16]line ОКРУГЛЕНИЕ: -0.55 [10:57:16]line ИТОГО: 910.00 [10:57:16]line Внесено: 910.00 [10:57:16]line СДАЧА: 0.00 [10:57:16]line НСП 1% : 8.06 [10:57:16]line НДС 12% : 96.70 [10:57:16]line Наличными: 910.00 [10:57:16]line Безнал.: 0.00 [10:57:16]line Место: АЗС № 90 "Партнер Нефть" [10:57:16]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:57:16]line СНО: Общий режим [10:57:16]line Чек 73 23.09.2024 10:57 [10:57:16]line Смена: 472 ФФД: 1.0 [10:57:16]line ЗНМ: 0300000120 [10:57:16]line РНМ: 0000000000091831 [10:57:16]line Версия ККМ: 001 [10:57:16]line ФМ: 0000000000871830 [10:57:16]line ФД: 115590 [10:57:16]line ФПД: 219414910462677 [10:57:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105715&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115590&fm=219414910462677&tin=02508201610067®Number=0000000000091831&sum=91000 [10:57:16]OFD Sender: Processing packet 115590 [packets to send 481, broken 480] [10:57:16]ProducePacketName [10:57:16]name=ofd_packets/00115590 [10:57:16]OFD Sender: To server: pG, [10:57:16]CommunicateWithHost lk.salyk.kg:30040 [10:57:16]ConnectInit lk.salyk.kg [10:57:16]written 0, free lines is 4095 [10:57:16]Connected sock=10 [10:57: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 38 33 30 0F 01 00 00 8B E8 07 01 69 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 34 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AF 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 8B 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 86 C3 01 00 35 04 06 00 C7 8E 83 CB EA D5 4D 80 F5 B2 A6 20 3B E5 [10:57:17]Write to MH i2c: 01 00 00 1E 0B 29 [10:57:17]Write i2c OK [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: 01 [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: 01 07 00 [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: 01 07 00 1E 0B 00 00 00 00 00 6E 0C AA [10:57:17]RasterBufferAndPrint [10:57:17]line [10:57:17]line [10:57:17]line [10:57:17]line [10:57:17]line [10:57:17]written 0, free lines is 3186 [10:57:17]MH_Cut [10:57:17]Write to MH i2c: D1 01 00 25 0B 01 02 [10:57:17]Write i2c OK [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: D1 [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: D1 01 00 [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: D1 01 00 25 0B 00 01 [10:57:17]Write to MH i2c: 01 00 00 26 0B 31 [10:57:17]Write i2c OK [10:57:17]MH_I2C_Read... [10:57:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 3B 67 47 00 59 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 38 33 30 10 04 04 00 86 C3 01 00 F4 03 04 00 CE EE F0 66 B6 04 01 00 00 1B 6B C3 0E 70 72 8D 9B [10:57:17]CommunicateWithHost err = 0 [10:57:17]CheckOFDResponse [10:57:17]1017 (14) - 77093643461234 [10:57:17]1041 (16) - 0000000000871830 [10:57:17]1040 (4) - 115590 [10:57:17]1012 (4) - 23.09.2024 04:30 [10:57:17]1206 (1) - 0 [10:57:17]OFD Sender: Remove packet 115590 [10:57:17]ProducePacketName [10:57:17]name=ofd_packets/00115590 [10:57:17]NVStorageDeleteData [10:57:17]OFD Sender: No OFD packet to send [10:57:18]*** Cut start [10:57:18]*** Partial cut [10:57:18]*** CUTSNS_PIN = 1 [10:57:18]*** CUTSNS_PIN = 0 [10:57:18]*** Brake cut motor [10:57:18]Read from MH i2c: 01 [10:57:18]MH_I2C_Read... [10:57:18]*** Stop cut motor [10:57:18]*** Cut end [10:57:18]Read from MH i2c: 01 07 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: 01 07 00 26 0B 00 00 00 00 00 FF 0F 46 [10:57:18]process_action close_receipt done [10:57:18]requested_data is exist [10:57:18]produce_requested_data [10:57:18]requested_item fm.sn is exist - process it [10:57:18]wFMCommunicate request_size=4 [10:57:18]MH_SAM_APDU [10:57:18]CAPDU: 80 11 00 00 [10:57:18]Write to MH i2c: E2 08 00 27 0B 80 11 00 00 00 00 00 00 AC [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:18]Read from MH i2c: E2 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 17 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 17 00 27 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FA [10:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:57:18]wFMCommunicate OK [10:57:18]requested_item fd.num is exist - process it [10:57:18]SAM_PROTO_GetFieldsCounters [10:57:18]wFMCommunicate request_size=4 [10:57:18]MH_SAM_APDU [10:57:18]CAPDU: 80 13 00 00 [10:57:18]Write to MH i2c: E2 08 00 28 0B 80 13 00 00 00 00 00 00 AF [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:19]Read from MH i2c: E2 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 62 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 62 00 28 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 86 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [10:57:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 86 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:19]wFMCommunicate OK [10:57:19]SAM_PROTO_GetFieldsCounters done [10:57:19]requested_item shift.num is exist - process it [10:57:19]requested_item shift.opened is exist - process it [10:57:19]req_shift_opened [10:57:19]FM_GetShiftState [10:57:19]SAM_PROTO_GetShiftState [10:57:19]wFMCommunicate request_size=4 [10:57:19]MH_SAM_APDU [10:57:19]CAPDU: 80 13 01 00 [10:57:19]Write to MH i2c: E2 08 00 29 0B 80 13 01 00 00 00 00 00 B1 [10:57:19]Write i2c OK [10:57:19]MH_I2C_Read... [10:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:19]Read from MH i2c: E2 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 0E 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 0E 00 29 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F2 [10:57:19]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:57:19]wFMCommunicate OK [10:57:19]SAM_PROTO_GetShiftState done [10:57:19]FM_GetShiftState done [10:57:19]req_shift_opened done [10:57:19]requested_item shift.open_date is exist - process it [10:57:19]req_shift_open_date [10:57:19]req_shift_open_date done [10:57:19]produce_requested_data done [10:57:19]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115590,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:57:19]process_action_free close_receipt [10:57:19]json_value_free [10:57:19]json_value_free done [10:57:19]process_json_proto returns [10:57:19]Send response to host [10:57:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115590,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:57:19]free response buf [10:57:19]execute_script done [10:57:19]execute_script returns [10:57:19]free content buf [10:57:19]Sock 9.Close socket [10:57:19]Sock 9.Thread stoped [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:28]accept exits with 7 [10:57:28]New connection [10:57:28]New thread 3067051364 created [10:57:28]Thread 3067194724 joined [10:57:28]Waiting for new connection... [10:57:28] Sock 7.Parse request [10:57:28]Sock 7.Check first char [10:57:28]Sock 7.First char is OK [10:57:28]request: POST /json_proto HTTP/1.0 [10:57:28]Method: POST [10:57:28]URL: /json_proto [10:57:28]Method is POST - this is cgi request [10:57:28]url: /json_proto [10:57:28]query_string will be loaded in cgi processing [10:57:28]execute_cgi json_proto POST (null) [10:57:28]execute_cgi path=json_proto method=POST [10:57:28]POST find Content-Length [10:57:28]Host: 172.17.41.136:8080 [10:57:28]Content-Length: 1247 [10:57:28]Content-Type: application/json [10:57:28] [10:57:28]POST finish read [10:57:28]Found Content-Length = 1247 [10:57:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343994", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:28]execute_script... [10:57:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343994", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:28]POST & json_proto [10:57:28]process_json_proto [10:57:28]json parsed OK: [10:57:28]protocol is kg_v1.0 [10:57:28]action value=close_receipt [10:57:28]process_action close_receipt [10:57:28]cmd_close_receipt [10:57:28]MH_GetDate [10:57:28]Write to MH i2c: F0 00 00 2A 0B 24 [10:57:28]Write i2c OK [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: F0 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: F0 09 00 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: F0 09 00 2A 0B 00 99 49 F1 66 1B D0 5A 64 0F [10:57:28]GetLastDocTimeStamp 1727089035 [10:57:28]current date 1727089049 [10:57:28]FM_GetShiftState [10:57:28]SAM_PROTO_GetShiftState [10:57:28]wFMCommunicate request_size=4 [10:57:28]MH_SAM_APDU [10:57:28]CAPDU: 80 13 01 00 [10:57:28]Write to MH i2c: E2 08 00 2B 0B 80 13 01 00 00 00 00 00 B3 [10:57:28]Write i2c OK [10:57:28]MH_I2C_Read... [10:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:28]Read from MH i2c: E2 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 0E 00 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 0E 00 2B 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F4 [10:57:28]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:57:28]wFMCommunicate OK [10:57:28]SAM_PROTO_GetShiftState done [10:57:28]FM_GetShiftState done [10:57:28]opened in 1727052070 [10:57:28]opened+sec_in_day 1727138470 [10:57:28]quantity*price = 12500 [10:57:28]sum+1 = 12501 [10:57:28]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310326 Вода Адыгене 1л б/г 1.000 * 35.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 310.00 НСП 1% : 2.75 НДС 12% : 32.92 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 74 23.09.2024 10:57 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115591 ФПД: 26150341956327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105730&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115591&fm=26150341956327&tin=02508201610067®Number=0000000000091831&sum=31000 0 [10:57:29]StoreToDocumentArchive [10:57:29]shift 472 fd 115591 [10:57:29]save to /storage/0472/doc_00115591 [10:57:29]save last doc name /storage/0472/doc_00115591 to /storage/kkm_last_doc_name [10:57:29]save OK [10:57:29]Clear old archive folders... [10:57:29]ProcessDocumentItem done err = 0, tmpTLVsize=521 [10:57:29]tlvbuf is 0093A7D0 [10:57:29]SAM_PROTO_ClearQueue [10:57:29]wFMCommunicate request_size=4 [10:57:29]MH_SAM_APDU [10:57:29]CAPDU: 80 09 00 00 [10:57:29]Write to MH i2c: E2 08 00 38 0B 80 09 00 00 00 00 00 00 B5 [10:57:29]Write i2c OK [10:57:29]MH_I2C_Read... [10:57:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:29]Read from MH i2c: E2 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 03 00 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 03 00 38 0B 00 90 00 B7 [10:57:29]RAPDU: 90 00 [10:57:29]wFMCommunicate OK [10:57:29]SAM_PROTO_ClearQueue done [10:57:29]KKMCreateOFDPacket [10:57:29]OFDProtocolAddRootSTLVToBuf [10:57:29]FM_MakeSignedData [10:57:29]FM_MakeSignedData [10:57:29]SAM_PROTO_SignData [10:57:29]wFMCommunicate request_size=4 [10:57:29]MH_SAM_APDU [10:57:29]CAPDU: 80 0D 01 02 [10:57:29]Write to MH i2c: E2 08 00 39 0B 80 0D 01 02 00 00 00 00 BD [10:57:29]Write i2c OK [10:57:29]MH_I2C_Read... [10:57:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:29]Read from MH i2c: E2 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 03 00 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 03 00 39 0B 00 90 00 B8 [10:57:29]RAPDU: 90 00 [10:57:29]wFMCommunicate OK [10:57:29]wFMCommunicate request_size=255 [10:57:29]MH_SAM_APDU [10:57:29]CAPDU: 80 0D 02 02 FA 03 00 09 02 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [10:57:30]Write to MH i2c: E2 02 01 3A 0B 80 0D 02 02 FA 00 03 00 09 02 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 85 [10:57:30]Write i2c OK [10:57:30]MH_I2C_Read... [10:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:30]Read from MH i2c: E2 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 03 00 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 03 00 3A 0B 00 90 00 B9 [10:57:30]RAPDU: 90 00 [10:57:30]wFMCommunicate OK [10:57:30]wFMCommunicate request_size=255 [10:57:30]MH_SAM_APDU [10:57:30]CAPDU: 80 0D 02 02 FA 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 DC 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 4A 00 00 00 F4 03 04 00 9A 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [10:57:30]Write to MH i2c: E2 02 01 3B 0B 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 DC 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 4A 00 00 00 F4 03 04 00 9A 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 84 [10:57:30]Write i2c OK [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 [10:57:30]MH_I2C_Read... [10:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:30]Read from MH i2c: E2 03 00 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 03 00 3B 0B 00 90 00 BA [10:57:30]RAPDU: 90 00 [10:57:30]wFMCommunicate OK [10:57:30]wFMCommunicate request_size=30 [10:57:30]MH_SAM_APDU [10:57:30]CAPDU: 80 0D 02 02 19 30 38 37 31 38 33 30 10 04 04 00 87 C3 01 00 35 04 06 00 17 C8 99 D7 D2 E7 [10:57:30]Write to MH i2c: E2 21 00 3C 0B 80 0D 02 02 19 00 30 38 37 31 38 33 30 10 04 04 00 87 C3 01 00 35 04 06 00 17 C8 99 D7 D2 E7 00 00 08 [10:57:30]Write i2c OK [10:57:30]MH_I2C_Read... [10:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:30]Read from MH i2c: E2 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 03 00 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 03 00 3C 0B 00 90 00 BB [10:57:30]RAPDU: 90 00 [10:57:30]wFMCommunicate OK [10:57:30]wFMCommunicate request_size=4 [10:57:30]MH_SAM_APDU [10:57:30]CAPDU: 80 0D 03 02 [10:57:30]Write to MH i2c: E2 08 00 3D 0B 80 0D 03 02 00 00 00 00 C3 [10:57:30]Write i2c OK [10:57:30]MH_I2C_Read... [10:57:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:30]Read from MH i2c: E2 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 0B 00 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 0B 00 3D 0B 00 2B 2B 68 C2 63 D8 43 2D 90 00 EF [10:57:30]RAPDU: 2B 2B 68 C2 63 D8 43 2D 90 00 [10:57:30]wFMCommunicate OK [10:57:30]SAM_PROTO_SignData done [10:57:30]FM_MakeSignedData done [10:57:30]CreateOFDProtocolMessage [10:57:30]wFMCommunicate request_size=4 [10:57:30]MH_SAM_APDU [10:57:30]CAPDU: 80 11 00 00 [10:57:30]Write to MH i2c: E2 08 00 3E 0B 80 11 00 00 00 00 00 00 C3 [10:57:30]Write i2c OK [10:57:30]MH_I2C_Read... [10:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 17 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 17 00 3E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 11 [10:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:57:31]wFMCommunicate OK [10:57:31]CreateOFDProtocolMessage done [10:57:31]OFDSenderStorePacket 115591 [10:57:31]StoreOFDPacket docnum=115591 [10:57:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1D 02 00 00 7D 4E 15 02 76 C8 5A 03 01 00 03 00 09 02 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 DC 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 4A 00 00 00 F4 03 04 00 9A 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 87 C3 01 00 35 04 06 00 17 C8 99 D7 D2 E7 2B 2B 68 C2 63 D8 43 2D [10:57:31]CheckFolder [10:57:31]dirname=/storage/ofd_packets [10:57:31]CheckFolder done [10:57:31]ProducePacketName [10:57:31]name=ofd_packets/00115591 [10:57:31]NVStorageSaveData ofd_packets/00115591 [10:57:31]File name is /storage/ofd_packets/00115591 [10:57:31]Write 571 bytes [10:57:31]NVStorageSaveData done [10:57:31]OFDSenderStorePacket done [10:57:31]KKMCreateOFDPacket done [10:57:31]NVStorageSaveData kkm_last_timestamp [10:57:31]File name is /storage/kkm_last_timestamp [10:57:31]Write 4 bytes [10:57:31]NVStorageSaveData done [10:57:31]ExternCall_PrintAddStr [10:57:31]wPrintStart [10:57:31]Write to MH i2c: 01 00 00 3F 0B 4A [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 07 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 07 00 3F 0B 00 00 00 00 00 FF 0F 5F [10:57:31]RasterBufferAndPrint [10:57:31]line Счет N : (3)343994 [10:57:31]line ИНН: 02508201610067 [10:57:31]line Контрольно-Кассовый Чек [10:57:31]line ПРОДАЖА [10:57:31]line Товар: 4870202521254 [10:57:31]line Чай холодный MAXI черный со вкусом клубн [10:57:31]line 1.000 * 125.00 [10:57:31]line = 125.00 [10:57:31]line НДС 12% НСП 1% [10:57:31]line > о реализуемом товаре [10:57:31]line Товар: 4700000310326 [10:57:31]line Вода Адыгене 1л б/г [10:57:31]line 1.000 * 35.00 [10:57:31]line = 35.00 [10:57:31]line НДС 12% НСП 1% [10:57:31]line > о реализуемом товаре [10:57:31]line Товар: 4640030091645 [10:57:31]line Сигареты ESSE Exchange M [10:57:31]line 1.000 * 150.00 [10:57:31]line = 150.00 [10:57:31]line НДС 12% НСП 1% [10:57:31]line > о реализуемом товаре [10:57:31]line ИТОГО: 310.00 [10:57:31]line НСП 1% : 2.75 [10:57:31]line НДС 12% : 32.92 [10:57:31]line Наличными: 310.00 [10:57:31]line Безнал.: 0.00 [10:57:31]line Место: АЗС № 90 "Партнер Нефть" [10:57:31]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:57:31]line СНО: Общий режим [10:57:31]line Чек 74 23.09.2024 10:57 [10:57:31]line Смена: 472 ФФД: 1.0 [10:57:31]line ЗНМ: 0300000120 [10:57:31]line РНМ: 0000000000091831 [10:57:31]line Версия ККМ: 001 [10:57:31]line ФМ: 0000000000871830 [10:57:31]line ФД: 115591 [10:57:31]line ФПД: 26150341956327 [10:57:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105730&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115591&fm=26150341956327&tin=02508201610067®Number=0000000000091831&sum=31000 [10:57:31]line 0 [10:57:31]written 0, free lines is 4095 [10:57:31]OFD Sender: Processing packet 115591 [packets to send 481, broken 480] [10:57:31]ProducePacketName [10:57:31]name=ofd_packets/00115591 [10:57:31]OFD Sender: To server: pG, [10:57:31]CommunicateWithHost lk.salyk.kg:30040 [10:57:31]ConnectInit lk.salyk.kg [10:57:31]Connected sock=10 [10:57: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 38 33 30 1D 02 00 00 7D 4E 15 02 76 C8 5A 03 01 00 03 00 09 02 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 DC 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 4A 00 00 00 F4 03 04 00 9A 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 87 C3 01 00 35 04 06 00 17 C8 99 D7 D2 E7 2B 2B 68 C2 63 D8 43 2D [10:57:31]Write to MH i2c: 01 00 00 73 0B 7E [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 07 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 07 00 73 0B 00 00 00 00 00 82 0B 12 [10:57:31]RasterBufferAndPrint [10:57:31]line [10:57:31]line [10:57:31]line [10:57:31]line [10:57:31]line [10:57:31]written 0, free lines is 2950 [10:57:31]MH_Cut [10:57:31]Write to MH i2c: D1 01 00 7A 0B 01 57 [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: D1 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: D1 01 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: D1 01 00 7A 0B 00 56 [10:57:31]Write to MH i2c: 01 00 00 7B 0B 86 [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C4 0B 47 00 8A C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 87 C3 01 00 F4 03 04 00 DD EE F0 66 B6 04 01 00 00 8A E1 7D 7A EB F8 91 6F [10:57:31]CommunicateWithHost err = 0 [10:57:31]CheckOFDResponse [10:57:31]1017 (14) - 77093643461234 [10:57:31]1041 (16) - 0000000000871830 [10:57:31]1040 (4) - 115591 [10:57:31]1012 (4) - 23.09.2024 04:30 [10:57:31]1206 (1) - 0 [10:57:31]OFD Sender: Remove packet 115591 [10:57:31]ProducePacketName [10:57:31]name=ofd_packets/00115591 [10:57:31]NVStorageDeleteData [10:57:32]OFD Sender: No OFD packet to send [10:57:33]*** Cut start [10:57:33]*** Partial cut [10:57:33]*** CUTSNS_PIN = 1 [10:57:33]*** CUTSNS_PIN = 0 [10:57:33]*** Brake cut motor [10:57:33]Read from MH i2c: 01 [10:57:33]MH_I2C_Read... [10:57:33]*** Stop cut motor [10:57:33]*** Cut end [10:57:33]Read from MH i2c: 01 07 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: 01 07 00 7B 0B 00 00 00 00 00 FF 0F 9B [10:57:33]process_action close_receipt done [10:57:33]requested_data is exist [10:57:33]produce_requested_data [10:57:33]requested_item fm.sn is exist - process it [10:57:33]wFMCommunicate request_size=4 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 11 00 00 [10:57:33]Write to MH i2c: E2 08 00 7C 0B 80 11 00 00 00 00 00 00 01 [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 17 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 17 00 7C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4F [10:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:57:33]wFMCommunicate OK [10:57:33]requested_item fd.num is exist - process it [10:57:33]SAM_PROTO_GetFieldsCounters [10:57:33]wFMCommunicate request_size=4 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 13 00 00 [10:57:33]Write to MH i2c: E2 08 00 7D 0B 80 13 00 00 00 00 00 00 04 [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 62 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 62 00 7D 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 87 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [10:57: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 87 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:33]wFMCommunicate OK [10:57:33]SAM_PROTO_GetFieldsCounters done [10:57:33]requested_item shift.num is exist - process it [10:57:33]requested_item shift.opened is exist - process it [10:57:33]req_shift_opened [10:57:33]FM_GetShiftState [10:57:33]SAM_PROTO_GetShiftState [10:57:33]wFMCommunicate request_size=4 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 13 01 00 [10:57:33]Write to MH i2c: E2 08 00 7E 0B 80 13 01 00 00 00 00 00 06 [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 0E 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 0E 00 7E 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 47 [10:57:33]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:57:33]wFMCommunicate OK [10:57:33]SAM_PROTO_GetShiftState done [10:57:33]FM_GetShiftState done [10:57:33]req_shift_opened done [10:57:33]requested_item shift.open_date is exist - process it [10:57:33]req_shift_open_date [10:57:33]req_shift_open_date done [10:57:33]produce_requested_data done [10:57:33]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115591,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:57:33]process_action_free close_receipt [10:57:33]json_value_free [10:57:33]json_value_free done [10:57:33]process_json_proto returns [10:57:33]Send response to host [10:57:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115591,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:57:33]free response buf [10:57:33]execute_script done [10:57:33]execute_script returns [10:57:33]free content buf [10:57:33]Sock 7.Close socket [10:57:33]Sock 7.Thread stoped [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]accept exits with 9 [10:59:02]New connection [10:59:02]New thread 3067194724 created [10:59:02]Thread 3067051364 joined [10:59:02]Waiting for new connection... [10:59:02] Sock 9.Parse request [10:59:02]Sock 9.Check first char [10:59:02]Sock 9.First char is OK [10:59:02]request: POST /json_proto HTTP/1.0 [10:59:02]Method: POST [10:59:02]URL: /json_proto [10:59:02]Method is POST - this is cgi request [10:59:02]url: /json_proto [10:59:02]query_string will be loaded in cgi processing [10:59:02]execute_cgi json_proto POST (null) [10:59:02]execute_cgi path=json_proto method=POST [10:59:02]POST find Content-Length [10:59:02]Host: 172.17.41.136:8080 [10:59:02]Content-Length: 681 [10:59:02]Content-Type: application/json [10:59:02] [10:59:02]POST finish read [10:59:02]Found Content-Length = 681 [10:59:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:59:02]execute_script... [10:59: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)24617554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:59:02]POST & json_proto [10:59:02]process_json_proto [10:59:02]json parsed OK: [10:59:02]protocol is kg_v1.0 [10:59:02]action value=close_receipt [10:59:02]process_action close_receipt [10:59:02]cmd_close_receipt [10:59:02]MH_GetDate [10:59:02]Write to MH i2c: F0 00 00 7F 0B 79 [10:59:02]Write i2c OK [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: F0 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: F0 09 00 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: F0 09 00 7F 0B 00 F7 49 F1 66 1B D0 5A 64 C2 [10:59:02]GetLastDocTimeStamp 1727089050 [10:59:02]current date 1727089143 [10:59:02]FM_GetShiftState [10:59:02]SAM_PROTO_GetShiftState [10:59:02]wFMCommunicate request_size=4 [10:59:02]MH_SAM_APDU [10:59:02]CAPDU: 80 13 01 00 [10:59:02]Write to MH i2c: E2 08 00 80 0B 80 13 01 00 00 00 00 00 08 [10:59:02]Write i2c OK [10:59:02]MH_I2C_Read... [10:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:02]Read from MH i2c: E2 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: E2 0E 00 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: E2 0E 00 80 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 49 [10:59:02]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:59:02]wFMCommunicate OK [10:59:02]SAM_PROTO_GetShiftState done [10:59:02]FM_GetShiftState done [10:59:02]opened in 1727052070 [10:59:02]opened+sec_in_day 1727138470 [10:59:02]quantity*price = 100050 [10:59:02]sum+1 = 100052 [10:59:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 75 23.09.2024 10:59 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115592 ФПД: 216898532056635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105903&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115592&fm=216898532056635&tin=02508201610067®Number=0000000000091831&sum=100000 [10:59:03]StoreToDocumentArchive [10:59:03]shift 472 fd 115592 [10:59:03]save to /storage/0472/doc_00115592 [10:59:03]save last doc name /storage/0472/doc_00115592 to /storage/kkm_last_doc_name [10:59:03]save OK [10:59:03]Clear old archive folders... [10:59:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:59:03]tlvbuf is 0093AB30 [10:59:03]SAM_PROTO_ClearQueue [10:59:03]wFMCommunicate request_size=4 [10:59:03]MH_SAM_APDU [10:59:03]CAPDU: 80 09 00 00 [10:59:03]Write to MH i2c: E2 08 00 8D 0B 80 09 00 00 00 00 00 00 0A [10:59:03]Write i2c OK [10:59:03]MH_I2C_Read... [10:59:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:03]Read from MH i2c: E2 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 03 00 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 03 00 8D 0B 00 90 00 0C [10:59:03]RAPDU: 90 00 [10:59:03]wFMCommunicate OK [10:59:03]SAM_PROTO_ClearQueue done [10:59:03]KKMCreateOFDPacket [10:59:03]OFDProtocolAddRootSTLVToBuf [10:59:03]FM_MakeSignedData [10:59:03]FM_MakeSignedData [10:59:03]SAM_PROTO_SignData [10:59:03]wFMCommunicate request_size=4 [10:59:03]MH_SAM_APDU [10:59:03]CAPDU: 80 0D 01 02 [10:59:03]Write to MH i2c: E2 08 00 8E 0B 80 0D 01 02 00 00 00 00 12 [10:59:03]Write i2c OK [10:59:03]MH_I2C_Read... [10:59:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:03]Read from MH i2c: E2 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 03 00 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 03 00 8E 0B 00 90 00 0D [10:59:03]RAPDU: 90 00 [10:59:03]wFMCommunicate OK [10:59:03]wFMCommunicate request_size=255 [10:59:03]MH_SAM_APDU [10:59:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F7 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 88 C3 01 00 35 04 06 00 C5 44 9F F4 [10:59:03]Write to MH i2c: E2 02 01 8F 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4B 00 00 00 F4 03 04 00 F7 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 88 C3 01 00 35 04 06 00 C5 44 9F F4 00 00 32 [10:59:03]Write i2c OK [10:59:03]MH_I2C_Read... [10:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:03]Read from MH i2c: E2 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 03 00 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [10:59:03]RAPDU: 90 00 [10:59:03]wFMCommunicate OK [10:59:03]wFMCommunicate request_size=7 [10:59:03]MH_SAM_APDU [10:59:03]CAPDU: 80 0D 02 02 02 9E 3B [10:59:03]Write to MH i2c: E2 0A 00 90 0B 80 0D 02 02 02 00 9E 3B 00 00 F2 [10:59:03]Write i2c OK [10:59:03]MH_I2C_Read... [10:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:03]Read from MH i2c: E2 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 03 00 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 03 00 90 0B 00 90 00 0F [10:59:03]RAPDU: 90 00 [10:59:03]wFMCommunicate OK [10:59:03]wFMCommunicate request_size=4 [10:59:03]MH_SAM_APDU [10:59:03]CAPDU: 80 0D 03 02 [10:59:03]Write to MH i2c: E2 08 00 91 0B 80 0D 03 02 00 00 00 00 17 [10:59:03]Write i2c OK [10:59:03]MH_I2C_Read... [10:59:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:03]Read from MH i2c: E2 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 0B 00 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 0B 00 91 0B 00 1E AE C5 16 C0 12 A0 05 90 00 36 [10:59:03]RAPDU: 1E AE C5 16 C0 12 A0 05 90 00 [10:59:03]wFMCommunicate OK [10:59:03]SAM_PROTO_SignData done [10:59:03]FM_MakeSignedData done [10:59:03]CreateOFDProtocolMessage [10:59:03]wFMCommunicate request_size=4 [10:59:03]MH_SAM_APDU [10:59:03]CAPDU: 80 11 00 00 [10:59:03]Write to MH i2c: E2 08 00 92 0B 80 11 00 00 00 00 00 00 17 [10:59:03]Write i2c OK [10:59:03]MH_I2C_Read... [10:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:03]Read from MH i2c: E2 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 17 00 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 17 00 92 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 65 [10:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:59:03]wFMCommunicate OK [10:59:03]CreateOFDProtocolMessage done [10:59:03]OFDSenderStorePacket 115592 [10:59:03]StoreOFDPacket docnum=115592 [10:59:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 E0 6B 04 01 95 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4B 00 00 00 F4 03 04 00 F7 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 88 C3 01 00 35 04 06 00 C5 44 9F F4 9E 3B 1E AE C5 16 C0 12 A0 05 [10:59:03]CheckFolder [10:59:03]dirname=/storage/ofd_packets [10:59:03]CheckFolder done [10:59:03]ProducePacketName [10:59:03]name=ofd_packets/00115592 [10:59:03]NVStorageSaveData ofd_packets/00115592 [10:59:03]File name is /storage/ofd_packets/00115592 [10:59:03]Write 298 bytes [10:59:03]NVStorageSaveData done [10:59:03]OFDSenderStorePacket done [10:59:03]KKMCreateOFDPacket done [10:59:03]NVStorageSaveData kkm_last_timestamp [10:59:03]File name is /storage/kkm_last_timestamp [10:59:03]Write 4 bytes [10:59:03]NVStorageSaveData done [10:59:03]ExternCall_PrintAddStr [10:59:03]wPrintStart [10:59:03]Write to MH i2c: 01 00 00 93 0B 9E [10:59:03]Write i2c OK [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: 01 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: 01 07 00 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: 01 07 00 93 0B 00 00 00 00 00 FF 0F B3 [10:59:03]RasterBufferAndPrint [10:59:03]line Счет N : (1)24617554 [10:59:03]line ИНН: 02508201610067 [10:59:03]line Контрольно-Кассовый Чек [10:59:03]line ПРОДАЖА [10:59:03]line ТРК (МРК, ГНК) : 22 [10:59:03]line Товар: 2710194210 [10:59:03]line ДТ-К-5 [10:59:03]line 13.130 * 76.20 [10:59:03]line = 1000.51 [10:59:03]line НДС 12% НСП 1% [10:59:03]line > о реализуемом товаре [10:59:03]line ОКРУГЛЕНИЕ: -0.51 [10:59:03]line ИТОГО: 1000.00 [10:59:03]line Внесено: 1000.00 [10:59:03]line СДАЧА: 0.00 [10:59:03]line НСП 1% : 8.85 [10:59:03]line НДС 12% : 106.25 [10:59:03]line Наличными: 1000.00 [10:59:03]line Безнал.: 0.00 [10:59:03]line Место: АЗС № 90 "Партнер Нефть" [10:59:03]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:59:03]line СНО: Общий режим [10:59:03]line Чек 75 23.09.2024 10:59 [10:59:03]line Смена: 472 ФФД: 1.0 [10:59:03]line ЗНМ: 0300000120 [10:59:03]line РНМ: 0000000000091831 [10:59:03]line Версия ККМ: 001 [10:59:03]line ФМ: 0000000000871830 [10:59:03]line ФД: 115592 [10:59:03]line ФПД: 216898532056635 [10:59:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105903&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115592&fm=216898532056635&tin=02508201610067®Number=0000000000091831&sum=100000 [10:59:04]OFD Sender: Processing packet 115592 [packets to send 481, broken 480] [10:59:04]ProducePacketName [10:59:04]name=ofd_packets/00115592 [10:59:04]OFD Sender: To server: pG, [10:59:04]CommunicateWithHost lk.salyk.kg:30040 [10:59:04]ConnectInit lk.salyk.kg [10:59:04]written 0, free lines is 4095 [10:59:04]Connected sock=10 [10:59:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 E0 6B 04 01 95 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4B 00 00 00 F4 03 04 00 F7 49 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 88 C3 01 00 35 04 06 00 C5 44 9F F4 9E 3B 1E AE C5 16 C0 12 A0 05 [10:59:04]Write to MH i2c: 01 00 00 BD 0B C8 [10:59:04]Write i2c OK [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: 01 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: 01 07 00 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: 01 07 00 BD 0B 00 00 00 00 00 60 0C 3B [10:59:04]RasterBufferAndPrint [10:59:04]line [10:59:04]line [10:59:04]line [10:59:04]line [10:59:04]line [10:59:04]written 0, free lines is 3173 [10:59:04]MH_Cut [10:59:04]Write to MH i2c: D1 01 00 C4 0B 01 A1 [10:59:04]Write i2c OK [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: D1 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: D1 01 00 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: D1 01 00 C4 0B 00 A0 [10:59:04]Write to MH i2c: 01 00 00 C5 0B D0 [10:59:04]Write i2c OK [10:59:04]MH_I2C_Read... [10:59:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0C E7 47 00 2F 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 38 33 30 10 04 04 00 88 C3 01 00 F4 03 04 00 3A EF F0 66 B6 04 01 00 00 B2 36 0E B9 2B B6 7F 2A [10:59:04]CommunicateWithHost err = 0 [10:59:04]CheckOFDResponse [10:59:04]1017 (14) - 77093643461234 [10:59:04]1041 (16) - 0000000000871830 [10:59:04]1040 (4) - 115592 [10:59:04]1012 (4) - 23.09.2024 04:31 [10:59:04]1206 (1) - 0 [10:59:04]OFD Sender: Remove packet 115592 [10:59:04]ProducePacketName [10:59:04]name=ofd_packets/00115592 [10:59:04]NVStorageDeleteData [10:59:05]OFD Sender: No OFD packet to send [10:59:06]*** Cut start [10:59:06]*** Partial cut [10:59:06]*** CUTSNS_PIN = 1 [10:59:06]*** CUTSNS_PIN = 0 [10:59:06]*** Brake cut motor [10:59:06]Read from MH i2c: 01 [10:59:06]MH_I2C_Read... [10:59:06]*** Stop cut motor [10:59:06]*** Cut end [10:59:06]Read from MH i2c: 01 07 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: 01 07 00 C5 0B 00 00 00 00 00 FF 0F E5 [10:59:06]process_action close_receipt done [10:59:06]requested_data is exist [10:59:06]produce_requested_data [10:59:06]requested_item fm.sn is exist - process it [10:59:06]wFMCommunicate request_size=4 [10:59:06]MH_SAM_APDU [10:59:06]CAPDU: 80 11 00 00 [10:59:06]Write to MH i2c: E2 08 00 C6 0B 80 11 00 00 00 00 00 00 4B [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:06]Read from MH i2c: E2 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 17 00 [10:59:06]MH_I2C_Read... [10:59:06]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 38 33 30 90 00 99 [10:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:59:06]wFMCommunicate OK [10:59:06]requested_item fd.num is exist - process it [10:59:06]SAM_PROTO_GetFieldsCounters [10:59:06]wFMCommunicate request_size=4 [10:59:06]MH_SAM_APDU [10:59:06]CAPDU: 80 13 00 00 [10:59:06]Write to MH i2c: E2 08 00 C7 0B 80 13 00 00 00 00 00 00 4E [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:06]Read from MH i2c: E2 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 62 00 [10:59:06]MH_I2C_Read... [10:59:06]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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 88 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [10:59:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 88 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:06]wFMCommunicate OK [10:59:06]SAM_PROTO_GetFieldsCounters done [10:59:06]requested_item shift.num is exist - process it [10:59:06]requested_item shift.opened is exist - process it [10:59:06]req_shift_opened [10:59:06]FM_GetShiftState [10:59:06]SAM_PROTO_GetShiftState [10:59:06]wFMCommunicate request_size=4 [10:59:06]MH_SAM_APDU [10:59:06]CAPDU: 80 13 01 00 [10:59:06]Write to MH i2c: E2 08 00 C8 0B 80 13 01 00 00 00 00 00 50 [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:06]Read from MH i2c: E2 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 0E 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 0E 00 C8 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 91 [10:59:06]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [10:59:06]wFMCommunicate OK [10:59:06]SAM_PROTO_GetShiftState done [10:59:06]FM_GetShiftState done [10:59:06]req_shift_opened done [10:59:06]requested_item shift.open_date is exist - process it [10:59:06]req_shift_open_date [10:59:06]req_shift_open_date done [10:59:06]produce_requested_data done [10:59:06]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115592,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [10:59:06]process_action_free close_receipt [10:59:06]json_value_free [10:59:06]json_value_free done [10:59:06]process_json_proto returns [10:59:06]Send response to host [10:59:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115592,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [10:59:06]free response buf [10:59:06]execute_script done [10:59:06]execute_script returns [10:59:06]free content buf [10:59:06]Sock 9.Close socket [10:59:06]Sock 9.Thread stoped [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:20]accept exits with 7 [11:00:20]New connection [11:00:20]New thread 3067051364 created [11:00:20]Thread 3067194724 joined [11:00:20]Waiting for new connection... [11:00:20] Sock 7.Parse request [11:00:20]Sock 7.Check first char [11:00:20]Sock 7.First char is OK [11:00:20]request: POST /json_proto HTTP/1.0 [11:00:20]Method: POST [11:00:20]URL: /json_proto [11:00:20]Method is POST - this is cgi request [11:00:20]url: /json_proto [11:00:20]query_string will be loaded in cgi processing [11:00:20]execute_cgi json_proto POST (null) [11:00:20]execute_cgi path=json_proto method=POST [11:00:20]POST find Content-Length [11:00:20]Host: 172.17.41.136:8080 [11:00:20]Content-Length: 1232 [11:00:20]Content-Type: application/json [11:00:20] [11:00:20]POST finish read [11:00:20]Found Content-Length = 1232 [11:00:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343995", "tax_sys" : 0, "items" : [ { "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000002952", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:20]execute_script... [11:00:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343995", "tax_sys" : 0, "items" : [ { "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000002952", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:20]POST & json_proto [11:00:20]process_json_proto [11:00:20]json parsed OK: [11:00:20]protocol is kg_v1.0 [11:00:20]action value=close_receipt [11:00:20]process_action close_receipt [11:00:20]cmd_close_receipt [11:00:20]MH_GetDate [11:00:20]Write to MH i2c: F0 00 00 C9 0B C3 [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: F0 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: F0 09 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: F0 09 00 C9 0B 00 45 4A F1 66 1B D0 5A 64 5B [11:00:20]GetLastDocTimeStamp 1727089143 [11:00:20]current date 1727089221 [11:00:20]FM_GetShiftState [11:00:20]SAM_PROTO_GetShiftState [11:00:20]wFMCommunicate request_size=4 [11:00:20]MH_SAM_APDU [11:00:20]CAPDU: 80 13 01 00 [11:00:20]Write to MH i2c: E2 08 00 CA 0B 80 13 01 00 00 00 00 00 52 [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:20]Read from MH i2c: E2 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 0E 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 0E 00 CA 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 93 [11:00:20]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:00:20]wFMCommunicate OK [11:00:20]SAM_PROTO_GetShiftState done [11:00:20]FM_GetShiftState done [11:00:20]opened in 1727052070 [11:00:20]opened+sec_in_day 1727138470 [11:00:20]quantity*price = 9500 [11:00:20]sum+1 = 9501 [11:00:20]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000002952 Холодный чай Fuse персик 0,33 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189394 Холодный чай Fuse ягода 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 76 23.09.2024 11:00 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115593 ФПД: 262838253009413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110022&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115593&fm=262838253009413&tin=02508201610067®Number=0000000000091831&sum=26000 0 [11:00:21]StoreToDocumentArchive [11:00:21]shift 472 fd 115593 [11:00:21]save to /storage/0472/doc_00115593 [11:00:21]save last doc name /storage/0472/doc_00115593 to /storage/kkm_last_doc_name [11:00:21]save OK [11:00:21]Clear old archive folders... [11:00:21]ProcessDocumentItem done err = 0, tmpTLVsize=522 [11:00:21]tlvbuf is 0095B2F0 [11:00:21]SAM_PROTO_ClearQueue [11:00:21]wFMCommunicate request_size=4 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 09 00 00 [11:00:21]Write to MH i2c: E2 08 00 D7 0B 80 09 00 00 00 00 00 00 54 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 D7 0B 00 90 00 56 [11:00:21]RAPDU: 90 00 [11:00:21]wFMCommunicate OK [11:00:21]SAM_PROTO_ClearQueue done [11:00:21]KKMCreateOFDPacket [11:00:21]OFDProtocolAddRootSTLVToBuf [11:00:21]FM_MakeSignedData [11:00:21]FM_MakeSignedData [11:00:21]SAM_PROTO_SignData [11:00:21]wFMCommunicate request_size=4 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 0D 01 02 [11:00:21]Write to MH i2c: E2 08 00 D8 0B 80 0D 01 02 00 00 00 00 5C [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 D8 0B 00 90 00 57 [11:00:21]RAPDU: 90 00 [11:00:21]wFMCommunicate OK [11:00:21]wFMCommunicate request_size=255 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 0D 02 02 FA 03 00 0A 02 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 [11:00:22]Write to MH i2c: E2 02 01 D9 0B 80 0D 02 02 FA 00 03 00 0A 02 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 00 00 D3 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 D9 0B 00 90 00 58 [11:00:22]RAPDU: 90 00 [11:00:22]wFMCommunicate OK [11:00:22]wFMCommunicate request_size=255 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 0D 02 02 FA 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 46 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [11:00:22]Write to MH i2c: E2 02 01 DA 0B 80 0D 02 02 FA 00 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 46 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 2A [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 DA 0B 00 90 00 59 [11:00:22]RAPDU: 90 00 [11:00:22]wFMCommunicate OK [11:00:22]wFMCommunicate request_size=31 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 89 C3 01 00 35 04 06 00 EF 0C CC B4 3A 05 [11:00:22]Write to MH i2c: E2 22 00 DB 0B 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 89 C3 01 00 35 04 06 00 EF 0C CC B4 3A 05 00 00 8D [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 DB 0B 00 90 00 5A [11:00:22]RAPDU: 90 00 [11:00:22]wFMCommunicate OK [11:00:22]wFMCommunicate request_size=4 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 0D 03 02 [11:00:22]Write to MH i2c: E2 08 00 DC 0B 80 0D 03 02 00 00 00 00 62 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 0B 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 0B 00 DC 0B 00 32 C7 81 FC D5 07 2C 19 90 00 FA [11:00:22]RAPDU: 32 C7 81 FC D5 07 2C 19 90 00 [11:00:22]wFMCommunicate OK [11:00:22]SAM_PROTO_SignData done [11:00:22]FM_MakeSignedData done [11:00:22]CreateOFDProtocolMessage [11:00:22]wFMCommunicate request_size=4 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 11 00 00 [11:00:22]Write to MH i2c: E2 08 00 DD 0B 80 11 00 00 00 00 00 00 62 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 17 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 17 00 DD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B0 [11:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:00:22]wFMCommunicate OK [11:00:22]CreateOFDProtocolMessage done [11:00:22]OFDSenderStorePacket 115593 [11:00:22]StoreOFDPacket docnum=115593 [11:00:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 02 00 00 27 4B 16 02 0D 25 5A 03 01 00 03 00 0A 02 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 46 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 89 C3 01 00 35 04 06 00 EF 0C CC B4 3A 05 32 C7 81 FC D5 07 2C 19 [11:00:22]CheckFolder [11:00:22]dirname=/storage/ofd_packets [11:00:22]CheckFolder done [11:00:22]ProducePacketName [11:00:22]name=ofd_packets/00115593 [11:00:22]NVStorageSaveData ofd_packets/00115593 [11:00:22]File name is /storage/ofd_packets/00115593 [11:00:22]Write 572 bytes [11:00:22]NVStorageSaveData done [11:00:22]OFDSenderStorePacket done [11:00:22]KKMCreateOFDPacket done [11:00:22]NVStorageSaveData kkm_last_timestamp [11:00:22]File name is /storage/kkm_last_timestamp [11:00:22]Write 4 bytes [11:00:22]NVStorageSaveData done [11:00:22]ExternCall_PrintAddStr [11:00:22]wPrintStart [11:00:22]Write to MH i2c: 01 00 00 DE 0B E9 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 07 00 [11:00:22]MH_I2C_Read... [11:00:23]Read from MH i2c: 01 07 00 DE 0B 00 00 00 00 00 FF 0F FE [11:00:23]RasterBufferAndPrint [11:00:23]line Счет N : (3)343995 [11:00:23]line ИНН: 02508201610067 [11:00:23]line Контрольно-Кассовый Чек [11:00:23]line ПРОДАЖА [11:00:23]line Товар: 4700000483259 [11:00:23]line Напиток Nitro Fresh Мохито [11:00:23]line 1.000 * 95.00 [11:00:23]line = 95.00 [11:00:23]line НДС 12% НСП 1% [11:00:23]line > о реализуемом товаре [11:00:23]line Товар: 5449000002952 [11:00:23]line Холодный чай Fuse персик 0,33 ж/б [11:00:23]line 1.000 * 90.00 [11:00:23]line = 90.00 [11:00:23]line НДС 12% НСП 1% [11:00:23]line > о реализуемом товаре [11:00:23]line Товар: 5449000189394 [11:00:23]line Холодный чай Fuse ягода 0,5л [11:00:23]line 1.000 * 75.00 [11:00:23]line = 75.00 [11:00:23]line НДС 12% НСП 1% [11:00:23]line > о реализуемом товаре [11:00:23]line ИТОГО: 260.00 [11:00:23]line НСП 1% : 2.30 [11:00:23]line НДС 12% : 27.61 [11:00:23]line Наличными: 260.00 [11:00:23]line Безнал.: 0.00 [11:00:23]line Место: АЗС № 90 "Партнер Нефть" [11:00:23]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:00:23]line СНО: Общий режим [11:00:23]line Чек 76 23.09.2024 11:00 [11:00:23]line Смена: 472 ФФД: 1.0 [11:00:23]line ЗНМ: 0300000120 [11:00:23]line РНМ: 0000000000091831 [11:00:23]line Версия ККМ: 001 [11:00:23]line ФМ: 0000000000871830 [11:00:23]line ФД: 115593 [11:00:23]line ФПД: 262838253009413 [11:00:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110022&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115593&fm=262838253009413&tin=02508201610067®Number=0000000000091831&sum=26000 [11:00:23]line 0 [11:00:23]written 0, free lines is 4095 [11:00:23]OFD Sender: Processing packet 115593 [packets to send 481, broken 480] [11:00:23]ProducePacketName [11:00:23]name=ofd_packets/00115593 [11:00:23]OFD Sender: To server: pG, [11:00:23]CommunicateWithHost lk.salyk.kg:30040 [11:00:23]ConnectInit lk.salyk.kg [11:00:23]Connected sock=10 [11:00: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 38 33 30 1E 02 00 00 27 4B 16 02 0D 25 5A 03 01 00 03 00 0A 02 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 46 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 89 C3 01 00 35 04 06 00 EF 0C CC B4 3A 05 32 C7 81 FC D5 07 2C 19 [11:00:23]Write to MH i2c: 01 00 00 12 0C 1E [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: 01 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: 01 07 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: 01 07 00 12 0C 00 00 00 00 00 7D 0B AD [11:00:23]RasterBufferAndPrint [11:00:23]line [11:00:23]line [11:00:23]line [11:00:23]line [11:00:23]line [11:00:23]written 0, free lines is 2944 [11:00:23]MH_Cut [11:00:23]Write to MH i2c: D1 01 00 19 0C 01 F7 [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: D1 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: D1 01 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: D1 01 00 19 0C 00 F6 [11:00:23]Write to MH i2c: 01 00 00 1A 0C 26 [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 AE 16 47 00 E7 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 38 33 30 10 04 04 00 89 C3 01 00 F4 03 04 00 89 EF F0 66 B6 04 01 00 00 56 5F 9C D5 35 AE 75 95 [11:00:23]CommunicateWithHost err = 0 [11:00:23]CheckOFDResponse [11:00:23]1017 (14) - 77093643461234 [11:00:23]1041 (16) - 0000000000871830 [11:00:23]1040 (4) - 115593 [11:00:23]1012 (4) - 23.09.2024 04:33 [11:00:23]1206 (1) - 0 [11:00:23]OFD Sender: Remove packet 115593 [11:00:23]ProducePacketName [11:00:23]name=ofd_packets/00115593 [11:00:23]NVStorageDeleteData [11:00:24]OFD Sender: No OFD packet to send [11:00:25]*** Cut start [11:00:25]*** Partial cut [11:00:25]*** CUTSNS_PIN = 1 [11:00:25]*** CUTSNS_PIN = 0 [11:00:25]*** Brake cut motor [11:00:25]Read from MH i2c: 01 [11:00:25]MH_I2C_Read... [11:00:25]*** Stop cut motor [11:00:25]*** Cut end [11:00:25]Read from MH i2c: 01 07 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: 01 07 00 1A 0C 00 00 00 00 00 FF 0F 3B [11:00:25]process_action close_receipt done [11:00:25]requested_data is exist [11:00:25]produce_requested_data [11:00:25]requested_item fm.sn is exist - process it [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 11 00 00 [11:00:25]Write to MH i2c: E2 08 00 1B 0C 80 11 00 00 00 00 00 00 A1 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 17 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 17 00 1B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EF [11:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:00:25]wFMCommunicate OK [11:00:25]requested_item fd.num is exist - process it [11:00:25]SAM_PROTO_GetFieldsCounters [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 13 00 00 [11:00:25]Write to MH i2c: E2 08 00 1C 0C 80 13 00 00 00 00 00 00 A4 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 62 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 62 00 1C 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 89 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [11:00:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 89 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:25]wFMCommunicate OK [11:00:25]SAM_PROTO_GetFieldsCounters done [11:00:25]requested_item shift.num is exist - process it [11:00:25]requested_item shift.opened is exist - process it [11:00:25]req_shift_opened [11:00:25]FM_GetShiftState [11:00:25]SAM_PROTO_GetShiftState [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 13 01 00 [11:00:25]Write to MH i2c: E2 08 00 1D 0C 80 13 01 00 00 00 00 00 A6 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 0E 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 0E 00 1D 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E7 [11:00:25]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:00:25]wFMCommunicate OK [11:00:25]SAM_PROTO_GetShiftState done [11:00:25]FM_GetShiftState done [11:00:25]req_shift_opened done [11:00:25]requested_item shift.open_date is exist - process it [11:00:25]req_shift_open_date [11:00:25]req_shift_open_date done [11:00:25]produce_requested_data done [11:00:25]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115593,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:00:25]process_action_free close_receipt [11:00:25]json_value_free [11:00:25]json_value_free done [11:00:26]process_json_proto returns [11:00:26]Send response to host [11:00:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115593,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:00:26]free response buf [11:00:26]execute_script done [11:00:26]execute_script returns [11:00:26]free content buf [11:00:26]Sock 7.Close socket [11:00:26]Sock 7.Thread stoped [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:48]accept exits with 9 [11:00:48]New connection [11:00:48]New thread 3067194724 created [11:00:48]Thread 3067051364 joined [11:00:48]Waiting for new connection... [11:00:48] Sock 9.Parse request [11:00:48]Sock 9.Check first char [11:00:48]Sock 9.First char is OK [11:00:48]request: POST /json_proto HTTP/1.0 [11:00:48]Method: POST [11:00:48]URL: /json_proto [11:00:48]Method is POST - this is cgi request [11:00:48]url: /json_proto [11:00:48]query_string will be loaded in cgi processing [11:00:48]execute_cgi json_proto POST (null) [11:00:48]execute_cgi path=json_proto method=POST [11:00:48]POST find Content-Length [11:00:48]Host: 172.17.41.136:8080 [11:00:48]Content-Length: 985 [11:00:48]Content-Type: application/json [11:00:48] [11:00:48]POST finish read [11:00:48]Found Content-Length = 985 [11:00:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 58.390, "sum" : 3900.45, "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 90\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 58.39 \u0441\u043E\u043C", "deposit" : 3900.00, "total" : 3900.00, "payments": [ { "type": 0, "sum" : 3900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:48]execute_script... [11:00: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)24617555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 58.390, "sum" : 3900.45, "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 90\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 58.39 \u0441\u043E\u043C", "deposit" : 3900.00, "total" : 3900.00, "payments": [ { "type": 0, "sum" : 3900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:48]POST & json_proto [11:00:48]process_json_proto [11:00:48]json parsed OK: [11:00:48]protocol is kg_v1.0 [11:00:48]action value=close_receipt [11:00:48]process_action close_receipt [11:00:48]cmd_close_receipt [11:00:48]MH_GetDate [11:00:48]Write to MH i2c: F0 00 00 1E 0C 19 [11:00:48]Write i2c OK [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: F0 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: F0 09 00 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: F0 09 00 1E 0C 00 61 4A F1 66 1B D0 5A 64 CD [11:00:48]GetLastDocTimeStamp 1727089222 [11:00:48]current date 1727089249 [11:00:48]FM_GetShiftState [11:00:48]SAM_PROTO_GetShiftState [11:00:48]wFMCommunicate request_size=4 [11:00:48]MH_SAM_APDU [11:00:48]CAPDU: 80 13 01 00 [11:00:48]Write to MH i2c: E2 08 00 1F 0C 80 13 01 00 00 00 00 00 A8 [11:00:48]Write i2c OK [11:00:48]MH_I2C_Read... [11:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:48]Read from MH i2c: E2 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: E2 0E 00 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: E2 0E 00 1F 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E9 [11:00:48]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:00:48]wFMCommunicate OK [11:00:48]SAM_PROTO_GetShiftState done [11:00:48]FM_GetShiftState done [11:00:48]opened in 1727052070 [11:00:48]opened+sec_in_day 1727138470 [11:00:48]quantity*price = 390045 [11:00:48]sum+1 = 390046 [11:00:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 3900.00 Внесено: 3900.00 СДАЧА: 0.00 НСП 1% : 34.52 НДС 12% : 414.21 Наличными: 3900.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 77 23.09.2024 11:00 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Дисконтная программа АИ-92 номер 90 сэкономлено 58.39 сом ФМ: 0000000000871830 ФД: 115594 ФПД: 161706728081650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110049&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115594&fm=161706728081650&tin=02508201610067®Number=0000000000091831&sum=390000 [11:00:49]StoreToDocumentArchive [11:00:49]shift 472 fd 115594 [11:00:49]save to /storage/0472/doc_00115594 [11:00:49]save last doc name /storage/0472/doc_00115594 to /storage/kkm_last_doc_name [11:00:49]save OK [11:00:49]Clear old archive folders... [11:00:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:49]tlvbuf is 0098DF50 [11:00:49]SAM_PROTO_ClearQueue [11:00:49]wFMCommunicate request_size=4 [11:00:49]MH_SAM_APDU [11:00:49]CAPDU: 80 09 00 00 [11:00:49]Write to MH i2c: E2 08 00 2C 0C 80 09 00 00 00 00 00 00 AA [11:00:49]Write i2c OK [11:00:49]MH_I2C_Read... [11:00:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:49]Read from MH i2c: E2 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: E2 03 00 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: E2 03 00 2C 0C 00 90 00 AC [11:00:49]RAPDU: 90 00 [11:00:49]wFMCommunicate OK [11:00:49]SAM_PROTO_ClearQueue done [11:00:49]KKMCreateOFDPacket [11:00:49]OFDProtocolAddRootSTLVToBuf [11:00:49]FM_MakeSignedData [11:00:49]FM_MakeSignedData [11:00:49]SAM_PROTO_SignData [11:00:49]wFMCommunicate request_size=4 [11:00:49]MH_SAM_APDU [11:00:49]CAPDU: 80 0D 01 02 [11:00:49]Write to MH i2c: E2 08 00 2D 0C 80 0D 01 02 00 00 00 00 B2 [11:00:49]Write i2c OK [11:00:49]MH_I2C_Read... [11:00:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:49]Read from MH i2c: E2 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: E2 03 00 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: E2 03 00 2D 0C 00 90 00 AD [11:00:49]RAPDU: 90 00 [11:00:49]wFMCommunicate OK [11:00:49]wFMCommunicate request_size=255 [11:00:49]MH_SAM_APDU [11:00:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 E4 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9D F3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 F3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD A1 00 00 00 00 07 04 06 00 70 F3 05 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 61 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8A C3 01 00 35 04 06 00 93 [11:00:49]Write to MH i2c: E2 02 01 2E 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 E4 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9D F3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 F3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD A1 00 00 00 00 07 04 06 00 70 F3 05 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 61 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8A C3 01 00 35 04 06 00 93 00 00 45 [11:00:49]Write i2c OK [11:00:49]MH_I2C_Read... [11:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:50]Read from MH i2c: E2 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 03 00 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 03 00 2E 0C 00 90 00 AE [11:00:50]RAPDU: 90 00 [11:00:50]wFMCommunicate OK [11:00:50]wFMCommunicate request_size=10 [11:00:50]MH_SAM_APDU [11:00:50]CAPDU: 80 0D 02 02 05 12 48 15 C8 F2 [11:00:50]Write to MH i2c: E2 0D 00 2F 0C 80 0D 02 02 05 00 12 48 15 C8 F2 00 00 E8 [11:00:50]Write i2c OK [11:00:50]MH_I2C_Read... [11:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:50]Read from MH i2c: E2 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 03 00 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 03 00 2F 0C 00 90 00 AF [11:00:50]RAPDU: 90 00 [11:00:50]wFMCommunicate OK [11:00:50]wFMCommunicate request_size=4 [11:00:50]MH_SAM_APDU [11:00:50]CAPDU: 80 0D 03 02 [11:00:50]Write to MH i2c: E2 08 00 30 0C 80 0D 03 02 00 00 00 00 B7 [11:00:50]Write i2c OK [11:00:50]MH_I2C_Read... [11:00:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:50]Read from MH i2c: E2 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 0B 00 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 0B 00 30 0C 00 BC 96 55 4F F3 56 E5 E3 90 00 BF [11:00:50]RAPDU: BC 96 55 4F F3 56 E5 E3 90 00 [11:00:50]wFMCommunicate OK [11:00:50]SAM_PROTO_SignData done [11:00:50]FM_MakeSignedData done [11:00:50]CreateOFDProtocolMessage [11:00:50]wFMCommunicate request_size=4 [11:00:50]MH_SAM_APDU [11:00:50]CAPDU: 80 11 00 00 [11:00:50]Write to MH i2c: E2 08 00 31 0C 80 11 00 00 00 00 00 00 B7 [11:00:50]Write i2c OK [11:00:50]MH_I2C_Read... [11:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:50]Read from MH i2c: E2 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 17 00 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 17 00 31 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 05 [11:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:00:50]wFMCommunicate OK [11:00:50]CreateOFDProtocolMessage done [11:00:50]OFDSenderStorePacket 115594 [11:00:50]StoreOFDPacket docnum=115594 [11:00:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 19 43 07 01 80 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 E4 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9D F3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 F3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD A1 00 00 00 00 07 04 06 00 70 F3 05 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 61 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8A C3 01 00 35 04 06 00 93 12 48 15 C8 F2 BC 96 55 4F F3 56 E5 E3 [11:00:50]CheckFolder [11:00:50]dirname=/storage/ofd_packets [11:00:50]CheckFolder done [11:00:50]ProducePacketName [11:00:50]name=ofd_packets/00115594 [11:00:50]NVStorageSaveData ofd_packets/00115594 [11:00:50]File name is /storage/ofd_packets/00115594 [11:00:50]Write 301 bytes [11:00:50]NVStorageSaveData done [11:00:50]OFDSenderStorePacket done [11:00:50]KKMCreateOFDPacket done [11:00:50]NVStorageSaveData kkm_last_timestamp [11:00:50]File name is /storage/kkm_last_timestamp [11:00:50]Write 4 bytes [11:00:50]NVStorageSaveData done [11:00:50]ExternCall_PrintAddStr [11:00:50]wPrintStart [11:00:50]Write to MH i2c: 01 00 00 32 0C 3E [11:00:50]Write i2c OK [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: 01 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: 01 07 00 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: 01 07 00 32 0C 00 00 00 00 00 FF 0F 53 [11:00:50]RasterBufferAndPrint [11:00:50]line Счет N : (1)24617555 [11:00:50]line ИНН: 02508201610067 [11:00:50]line Контрольно-Кассовый Чек [11:00:50]line ПРОДАЖА [11:00:50]line ТРК (МРК, ГНК) : 53 [11:00:50]line Товар: 2710124130 [11:00:50]line Аи-92-К-5 [11:00:50]line 58.390 * 66.80 [11:00:50]line = 3900.45 [11:00:50]line НДС 12% НСП 1% [11:00:50]line > о реализуемом товаре [11:00:50]line ОКРУГЛЕНИЕ: -0.45 [11:00:50]line ИТОГО: 3900.00 [11:00:50]line Внесено: 3900.00 [11:00:50]line СДАЧА: 0.00 [11:00:50]line НСП 1% : 34.52 [11:00:50]line НДС 12% : 414.21 [11:00:50]line Наличными: 3900.00 [11:00:50]line Безнал.: 0.00 [11:00:50]line Место: АЗС № 90 "Партнер Нефть" [11:00:50]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:00:50]line СНО: Общий режим [11:00:50]line Чек 77 23.09.2024 11:00 [11:00:50]line Смена: 472 ФФД: 1.0 [11:00:50]line ЗНМ: 0300000120 [11:00:50]line РНМ: 0000000000091831 [11:00:50]line Версия ККМ: 001 [11:00:50]line [11:00:50]line Дисконтная программа [11:00:50]line АИ-92 [11:00:50]line номер 90 [11:00:50]line сэкономлено 58.39 сом [11:00:50]line ФМ: 0000000000871830 [11:00:50]line ФД: 115594 [11:00:50]line ФПД: 161706728081650 [11:00:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110049&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115594&fm=161706728081650&tin=02508201610067®Number=0000000000091831&sum=390000 [11:00:50]written 0, free lines is 4095 [11:00:50]OFD Sender: Processing packet 115594 [packets to send 481, broken 480] [11:00:50]ProducePacketName [11:00:50]name=ofd_packets/00115594 [11:00:50]OFD Sender: To server: pG, [11:00:50]CommunicateWithHost lk.salyk.kg:30040 [11:00:50]ConnectInit lk.salyk.kg [11:00:51]Connected sock=10 [11:00: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 38 33 30 0F 01 00 00 19 43 07 01 80 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 E4 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9D F3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 F3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD A1 00 00 00 00 07 04 06 00 70 F3 05 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 61 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8A C3 01 00 35 04 06 00 93 12 48 15 C8 F2 BC 96 55 4F F3 56 E5 E3 [11:00:51]Write to MH i2c: 01 00 00 61 0C 6D [11:00:51]Write i2c OK [11:00:51]MH_I2C_Read... [11:00:51]Read from MH i2c: 01 [11:00:51]MH_I2C_Read... [11:00:51]Read from MH i2c: 01 07 00 [11:00:51]MH_I2C_Read... [11:00:51]Read from MH i2c: 01 07 00 61 0C 00 00 00 00 00 F2 0B 71 [11:00:51]RasterBufferAndPrint [11:00:51]line [11:00:51]line [11:00:51]line [11:00:51]line [11:00:51]line [11:00:51]written 0, free lines is 3061 [11:00:51]MH_Cut [11:00:51]Write to MH i2c: D1 01 00 68 0C 01 46 [11:00:51]Write i2c OK [11:00:51]MH_I2C_Read... [11:00:51]Read from MH i2c: D1 [11:00:51]MH_I2C_Read... [11:00:51]Read from MH i2c: D1 01 00 [11:00:51]MH_I2C_Read... [11:00:51]Read from MH i2c: D1 01 00 68 0C 00 45 [11:00:51]Write to MH i2c: 01 00 00 69 0C 75 [11:00:51]Write i2c OK [11:00:51]MH_I2C_Read... [11:00:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6D BC 47 00 C6 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 38 33 30 10 04 04 00 8A C3 01 00 F4 03 04 00 A4 EF F0 66 B6 04 01 00 00 E1 D5 F0 9D BE 86 22 1C [11:00:51]CommunicateWithHost err = 0 [11:00:51]CheckOFDResponse [11:00:51]1017 (14) - 77093643461234 [11:00:51]1041 (16) - 0000000000871830 [11:00:51]1040 (4) - 115594 [11:00:51]1012 (4) - 23.09.2024 04:33 [11:00:51]1206 (1) - 0 [11:00:51]OFD Sender: Remove packet 115594 [11:00:51]ProducePacketName [11:00:51]name=ofd_packets/00115594 [11:00:51]NVStorageDeleteData [11:00:51]OFD Sender: No OFD packet to send [11:00:52]*** Cut start [11:00:52]*** Partial cut [11:00:52]*** CUTSNS_PIN = 1 [11:00:52]*** CUTSNS_PIN = 0 [11:00:52]*** Brake cut motor [11:00:53]Read from MH i2c: 01 [11:00:53]MH_I2C_Read... [11:00:53]*** Stop cut motor [11:00:53]*** Cut end [11:00:53]Read from MH i2c: 01 07 00 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: 01 07 00 69 0C 00 00 00 00 00 FF 0F 8A [11:00:53]process_action close_receipt done [11:00:53]requested_data is exist [11:00:53]produce_requested_data [11:00:53]requested_item fm.sn is exist - process it [11:00:53]wFMCommunicate request_size=4 [11:00:53]MH_SAM_APDU [11:00:53]CAPDU: 80 11 00 00 [11:00:53]Write to MH i2c: E2 08 00 6A 0C 80 11 00 00 00 00 00 00 F0 [11:00:53]Write i2c OK [11:00:53]MH_I2C_Read... [11:00:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:53]Read from MH i2c: E2 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 17 00 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 17 00 6A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3E [11:00:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:00:53]wFMCommunicate OK [11:00:53]requested_item fd.num is exist - process it [11:00:53]SAM_PROTO_GetFieldsCounters [11:00:53]wFMCommunicate request_size=4 [11:00:53]MH_SAM_APDU [11:00:53]CAPDU: 80 13 00 00 [11:00:53]Write to MH i2c: E2 08 00 6B 0C 80 13 00 00 00 00 00 00 F3 [11:00:53]Write i2c OK [11:00:53]MH_I2C_Read... [11:00:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:53]Read from MH i2c: E2 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 62 00 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 62 00 6B 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8A C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [11:00: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8A C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:53]wFMCommunicate OK [11:00:53]SAM_PROTO_GetFieldsCounters done [11:00:53]requested_item shift.num is exist - process it [11:00:53]requested_item shift.opened is exist - process it [11:00:53]req_shift_opened [11:00:53]FM_GetShiftState [11:00:53]SAM_PROTO_GetShiftState [11:00:53]wFMCommunicate request_size=4 [11:00:53]MH_SAM_APDU [11:00:53]CAPDU: 80 13 01 00 [11:00:53]Write to MH i2c: E2 08 00 6C 0C 80 13 01 00 00 00 00 00 F5 [11:00:53]Write i2c OK [11:00:53]MH_I2C_Read... [11:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:53]Read from MH i2c: E2 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 0E 00 [11:00:53]MH_I2C_Read... [11:00:53]Read from MH i2c: E2 0E 00 6C 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 36 [11:00:53]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:00:53]wFMCommunicate OK [11:00:53]SAM_PROTO_GetShiftState done [11:00:53]FM_GetShiftState done [11:00:53]req_shift_opened done [11:00:53]requested_item shift.open_date is exist - process it [11:00:53]req_shift_open_date [11:00:53]req_shift_open_date done [11:00:53]produce_requested_data done [11:00:53]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115594,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:00:53]process_action_free close_receipt [11:00:53]json_value_free [11:00:53]json_value_free done [11:00:53]process_json_proto returns [11:00:53]Send response to host [11:00:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115594,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:00:53]free response buf [11:00:53]execute_script done [11:00:53]execute_script returns [11:00:53]free content buf [11:00:53]Sock 9.Close socket [11:00:53]Sock 9.Thread stoped [11:00:54]accept exits with 7 [11:00:54]New connection [11:00:54]New thread 3067051364 created [11:00:54]Thread 3067194724 joined [11:00:54]Waiting for new connection... [11:00:54] Sock 7.Parse request [11:00:54]Sock 7.Check first char [11:00:54]Sock 7.First char is OK [11:00:54]request: POST /json_proto HTTP/1.0 [11:00:54]Method: POST [11:00:54]URL: /json_proto [11:00:54]Method is POST - this is cgi request [11:00:54]url: /json_proto [11:00:54]query_string will be loaded in cgi processing [11:00:54]execute_cgi json_proto POST (null) [11:00:54]execute_cgi path=json_proto method=POST [11:00:54]POST find Content-Length [11:00:54]Host: 172.17.41.136:8080 [11:00:54]Content-Length: 683 [11:00:54]Content-Type: application/json [11:00:54] [11:00:54]POST finish read [11:00:54]Found Content-Length = 683 [11:00:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343996", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:54]execute_script... [11:00:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343996", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:54]POST & json_proto [11:00:54]process_json_proto [11:00:54]json parsed OK: [11:00:54]protocol is kg_v1.0 [11:00:54]action value=close_receipt [11:00:54]process_action close_receipt [11:00:54]cmd_close_receipt [11:00:54]MH_GetDate [11:00:54]Write to MH i2c: F0 00 00 6D 0C 68 [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: F0 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: F0 09 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: F0 09 00 6D 0C 00 67 4A F1 66 1B D0 5A 64 22 [11:00:54]GetLastDocTimeStamp 1727089249 [11:00:54]current date 1727089255 [11:00:54]FM_GetShiftState [11:00:54]SAM_PROTO_GetShiftState [11:00:54]wFMCommunicate request_size=4 [11:00:54]MH_SAM_APDU [11:00:54]CAPDU: 80 13 01 00 [11:00:54]Write to MH i2c: E2 08 00 6E 0C 80 13 01 00 00 00 00 00 F7 [11:00:54]Write i2c OK [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 [11:00:54]MH_I2C_Read... [11:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:54]Read from MH i2c: E2 0E 00 [11:00:54]MH_I2C_Read... [11:00:54]Read from MH i2c: E2 0E 00 6E 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 38 [11:00:54]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:00:54]wFMCommunicate OK [11:00:54]SAM_PROTO_GetShiftState done [11:00:54]FM_GetShiftState done [11:00:54]opened in 1727052070 [11:00:54]opened+sec_in_day 1727138470 [11:00:54]quantity*price = 14000 [11:00:54]sum+1 = 14001 [11:00:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 78 23.09.2024 11:00 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115595 ФПД: 12185184554655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110055&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115595&fm=12185184554655&tin=02508201610067®Number=0000000000091831&sum=14000 0 [11:00:55]StoreToDocumentArchive [11:00:55]shift 472 fd 115595 [11:00:55]save to /storage/0472/doc_00115595 [11:00:55]save last doc name /storage/0472/doc_00115595 to /storage/kkm_last_doc_name [11:00:55]save OK [11:00:55]Clear old archive folders... [11:00:55]ProcessDocumentItem done err = 0, tmpTLVsize=292 [11:00:55]tlvbuf is 009A1E30 [11:00:55]SAM_PROTO_ClearQueue [11:00:55]wFMCommunicate request_size=4 [11:00:55]MH_SAM_APDU [11:00:55]CAPDU: 80 09 00 00 [11:00:55]Write to MH i2c: E2 08 00 7B 0C 80 09 00 00 00 00 00 00 F9 [11:00:55]Write i2c OK [11:00:55]MH_I2C_Read... [11:00:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:55]Read from MH i2c: E2 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: E2 03 00 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: E2 03 00 7B 0C 00 90 00 FB [11:00:55]RAPDU: 90 00 [11:00:55]wFMCommunicate OK [11:00:55]SAM_PROTO_ClearQueue done [11:00:55]KKMCreateOFDPacket [11:00:55]OFDProtocolAddRootSTLVToBuf [11:00:55]FM_MakeSignedData [11:00:55]FM_MakeSignedData [11:00:55]SAM_PROTO_SignData [11:00:55]wFMCommunicate request_size=4 [11:00:55]MH_SAM_APDU [11:00:55]CAPDU: 80 0D 01 02 [11:00:55]Write to MH i2c: E2 08 00 7C 0C 80 0D 01 02 00 00 00 00 01 [11:00:55]Write i2c OK [11:00:55]MH_I2C_Read... [11:00:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:55]Read from MH i2c: E2 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: E2 03 00 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: E2 03 00 7C 0C 00 90 00 FC [11:00:55]RAPDU: 90 00 [11:00:55]wFMCommunicate OK [11:00:55]wFMCommunicate request_size=255 [11:00:55]MH_SAM_APDU [11:00:55]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 67 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [11:00:55]Write to MH i2c: E2 02 01 7D 0C 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 67 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 92 [11:00:55]Write i2c OK [11:00:55]MH_I2C_Read... [11:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:55]Read from MH i2c: E2 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: E2 03 00 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: E2 03 00 7D 0C 00 90 00 FD [11:00:55]RAPDU: 90 00 [11:00:55]wFMCommunicate OK [11:00:55]wFMCommunicate request_size=51 [11:00:55]MH_SAM_APDU [11:00:55]CAPDU: 80 0D 02 02 2E 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8B C3 01 00 35 04 06 00 0B 15 15 98 CE 9F [11:00:55]Write to MH i2c: E2 36 00 7E 0C 80 0D 02 02 2E 00 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8B C3 01 00 35 04 06 00 0B 15 15 98 CE 9F 00 00 16 [11:00:55]Write i2c OK [11:00:55]MH_I2C_Read... [11:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:56]Read from MH i2c: E2 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 03 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 03 00 7E 0C 00 90 00 FE [11:00:56]RAPDU: 90 00 [11:00:56]wFMCommunicate OK [11:00:56]wFMCommunicate request_size=4 [11:00:56]MH_SAM_APDU [11:00:56]CAPDU: 80 0D 03 02 [11:00:56]Write to MH i2c: E2 08 00 7F 0C 80 0D 03 02 00 00 00 00 06 [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:56]Read from MH i2c: E2 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 0B 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 0B 00 7F 0C 00 8F 06 71 E3 6D 53 FA 6D 90 00 17 [11:00:56]RAPDU: 8F 06 71 E3 6D 53 FA 6D 90 00 [11:00:56]wFMCommunicate OK [11:00:56]SAM_PROTO_SignData done [11:00:56]FM_MakeSignedData done [11:00:56]CreateOFDProtocolMessage [11:00:56]wFMCommunicate request_size=4 [11:00:56]MH_SAM_APDU [11:00:56]CAPDU: 80 11 00 00 [11:00:56]Write to MH i2c: E2 08 00 80 0C 80 11 00 00 00 00 00 00 06 [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:56]Read from MH i2c: E2 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 17 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 17 00 80 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 54 [11:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:00:56]wFMCommunicate OK [11:00:56]CreateOFDProtocolMessage done [11:00:56]OFDSenderStorePacket 115595 [11:00:56]StoreOFDPacket docnum=115595 [11:00:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 38 01 00 00 26 39 30 01 62 50 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 67 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8B C3 01 00 35 04 06 00 0B 15 15 98 CE 9F 8F 06 71 E3 6D 53 FA 6D [11:00:56]CheckFolder [11:00:56]dirname=/storage/ofd_packets [11:00:56]CheckFolder done [11:00:56]ProducePacketName [11:00:56]name=ofd_packets/00115595 [11:00:56]NVStorageSaveData ofd_packets/00115595 [11:00:56]File name is /storage/ofd_packets/00115595 [11:00:56]Write 342 bytes [11:00:56]NVStorageSaveData done [11:00:56]OFDSenderStorePacket done [11:00:56]KKMCreateOFDPacket done [11:00:56]NVStorageSaveData kkm_last_timestamp [11:00:56]File name is /storage/kkm_last_timestamp [11:00:56]Write 4 bytes [11:00:56]NVStorageSaveData done [11:00:56]ExternCall_PrintAddStr [11:00:56]wPrintStart [11:00:56]Write to MH i2c: 01 00 00 81 0C 8D [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: 01 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: 01 07 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: 01 07 00 81 0C 00 00 00 00 00 FF 0F A2 [11:00:56]RasterBufferAndPrint [11:00:56]line Счет N : (3)343996 [11:00:56]line ИНН: 02508201610067 [11:00:56]line Контрольно-Кассовый Чек [11:00:56]line ПРОДАЖА [11:00:56]line Товар: 4870202522008 [11:00:56]line Напиток Maxi Чай Грушевый 0,45л [11:00:56]line 2.000 * 70.00 [11:00:56]line = 140.00 [11:00:56]line НДС 12% НСП 1% [11:00:56]line > о реализуемом товаре [11:00:56]line ИТОГО: 140.00 [11:00:56]line НСП 1% : 1.24 [11:00:56]line НДС 12% : 14.87 [11:00:56]line Наличными: 140.00 [11:00:56]line Безнал.: 0.00 [11:00:56]line Место: АЗС № 90 "Партнер Нефть" [11:00:56]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:00:56]line СНО: Общий режим [11:00:56]line Чек 78 23.09.2024 11:00 [11:00:56]line Смена: 472 ФФД: 1.0 [11:00:56]line ЗНМ: 0300000120 [11:00:56]line РНМ: 0000000000091831 [11:00:56]line Версия ККМ: 001 [11:00:56]line ФМ: 0000000000871830 [11:00:56]line ФД: 115595 [11:00:56]line ФПД: 12185184554655 [11:00:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110055&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115595&fm=12185184554655&tin=02508201610067®Number=0000000000091831&sum=14000 [11:00:56]line 0 [11:00:56]OFD Sender: Processing packet 115595 [packets to send 481, broken 480] [11:00:56]ProducePacketName [11:00:56]name=ofd_packets/00115595 [11:00:56]OFD Sender: To server: pG, [11:00:56]CommunicateWithHost lk.salyk.kg:30040 [11:00:56]ConnectInit lk.salyk.kg [11:00:56]written 0, free lines is 4095 [11:00:56]Connected sock=10 [11:00:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 38 01 00 00 26 39 30 01 62 50 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 67 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8B C3 01 00 35 04 06 00 0B 15 15 98 CE 9F 8F 06 71 E3 6D 53 FA 6D [11:00:56]Write to MH i2c: 01 00 00 A9 0C B5 [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: 01 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: 01 07 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: 01 07 00 A9 0C 00 00 00 00 00 C4 0C 8C [11:00:56]RasterBufferAndPrint [11:00:56]line [11:00:56]line [11:00:56]line [11:00:56]line [11:00:56]line [11:00:56]written 0, free lines is 3274 [11:00:56]MH_Cut [11:00:56]Write to MH i2c: D1 01 00 B0 0C 01 8E [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: D1 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: D1 01 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: D1 01 00 B0 0C 00 8D [11:00:56]Write to MH i2c: 01 00 00 B1 0C BD [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 5B 51 47 00 60 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 38 33 30 10 04 04 00 8B C3 01 00 F4 03 04 00 AA EF F0 66 B6 04 01 00 00 61 AD 99 29 E6 A6 A5 E3 [11:00:57]CommunicateWithHost err = 0 [11:00:57]CheckOFDResponse [11:00:57]1017 (14) - 77093643461234 [11:00:57]1041 (16) - 0000000000871830 [11:00:57]1040 (4) - 115595 [11:00:57]1012 (4) - 23.09.2024 04:33 [11:00:57]1206 (1) - 0 [11:00:57]OFD Sender: Remove packet 115595 [11:00:57]ProducePacketName [11:00:57]name=ofd_packets/00115595 [11:00:57]NVStorageDeleteData [11:00:57]OFD Sender: No OFD packet to send [11:00:57]*** Cut start [11:00:57]*** Partial cut [11:00:57]*** CUTSNS_PIN = 1 [11:00:57]*** CUTSNS_PIN = 0 [11:00:58]*** Brake cut motor [11:00:58]Read from MH i2c: 01 [11:00:58]MH_I2C_Read... [11:00:58]*** Stop cut motor [11:00:58]*** Cut end [11:00:58]Read from MH i2c: 01 07 00 [11:00:58]MH_I2C_Read... [11:00:58]Read from MH i2c: 01 07 00 B1 0C 00 00 00 00 00 FF 0F D2 [11:00:58]process_action close_receipt done [11:00:58]requested_data is exist [11:00:58]produce_requested_data [11:00:58]requested_item fm.sn is exist - process it [11:00:58]wFMCommunicate request_size=4 [11:00:58]MH_SAM_APDU [11:00:58]CAPDU: 80 11 00 00 [11:00:58]Write to MH i2c: E2 08 00 B2 0C 80 11 00 00 00 00 00 00 38 [11:00:58]Write i2c OK [11:00:58]MH_I2C_Read... [11:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:58]Read from MH i2c: E2 [11:00:58]MH_I2C_Read... [11:00:58]Read from MH i2c: E2 17 00 [11:00:58]MH_I2C_Read... [11:00:58]Read from MH i2c: E2 17 00 B2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 86 [11:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:00:58]wFMCommunicate OK [11:00:58]requested_item fd.num is exist - process it [11:00:58]SAM_PROTO_GetFieldsCounters [11:00:58]wFMCommunicate request_size=4 [11:00:58]MH_SAM_APDU [11:00:58]CAPDU: 80 13 00 00 [11:00:58]Write to MH i2c: E2 08 00 B3 0C 80 13 00 00 00 00 00 00 3B [11:00:58]Write i2c OK [11:00:58]MH_I2C_Read... [11:00:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:58]Read from MH i2c: E2 [11:00:58]MH_I2C_Read... [11:00:58]Read from MH i2c: E2 62 00 [11:00:58]MH_I2C_Read... [11:00:58]Read from MH i2c: E2 62 00 B3 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8B C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [11:00:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8B C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:58]wFMCommunicate OK [11:00:58]SAM_PROTO_GetFieldsCounters done [11:00:58]requested_item shift.num is exist - process it [11:00:58]requested_item shift.opened is exist - process it [11:00:58]req_shift_opened [11:00:58]FM_GetShiftState [11:00:58]SAM_PROTO_GetShiftState [11:00:58]wFMCommunicate request_size=4 [11:00:58]MH_SAM_APDU [11:00:58]CAPDU: 80 13 01 00 [11:00:58]Write to MH i2c: E2 08 00 B4 0C 80 13 01 00 00 00 00 00 3D [11:00:58]Write i2c OK [11:00:58]MH_I2C_Read... [11:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:58]Read from MH i2c: E2 [11:00:58]MH_I2C_Read... [11:00:58]Read from MH i2c: E2 0E 00 [11:00:58]MH_I2C_Read... [11:00:58]Read from MH i2c: E2 0E 00 B4 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7E [11:00:58]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:00:58]wFMCommunicate OK [11:00:58]SAM_PROTO_GetShiftState done [11:00:58]FM_GetShiftState done [11:00:58]req_shift_opened done [11:00:58]requested_item shift.open_date is exist - process it [11:00:58]req_shift_open_date [11:00:58]req_shift_open_date done [11:00:58]produce_requested_data done [11:00:58]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115595,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:00:58]process_action_free close_receipt [11:00:58]json_value_free [11:00:58]json_value_free done [11:00:58]process_json_proto returns [11:00:58]Send response to host [11:00:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115595,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:00:58]free response buf [11:00:58]execute_script done [11:00:58]execute_script returns [11:00:58]free content buf [11:00:58]Sock 7.Close socket [11:00:58]Sock 7.Thread stoped [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]accept exits with 9 [11:01:22]New connection [11:01:22]New thread 3067194724 created [11:01:22]Thread 3067051364 joined [11:01:22]Waiting for new connection... [11:01:22] Sock 9.Parse request [11:01:22]Sock 9.Check first char [11:01:22]Sock 9.First char is OK [11:01:22]request: POST /json_proto HTTP/1.0 [11:01:22]Method: POST [11:01:22]URL: /json_proto [11:01:22]Method is POST - this is cgi request [11:01:22]url: /json_proto [11:01:22]query_string will be loaded in cgi processing [11:01:22]execute_cgi json_proto POST (null) [11:01:22]execute_cgi path=json_proto method=POST [11:01:22]POST find Content-Length [11:01:22]Host: 172.17.41.136:8080 [11:01:22]Content-Length: 684 [11:01:22]Content-Type: application/json [11:01:22] [11:01:22]POST finish read [11:01:22]Found Content-Length = 684 [11:01:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:22]execute_script... [11:01: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)24617556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:22]POST & json_proto [11:01:22]process_json_proto [11:01:22]json parsed OK: [11:01:22]protocol is kg_v1.0 [11:01:22]action value=close_receipt [11:01:22]process_action close_receipt [11:01:22]cmd_close_receipt [11:01:22]MH_GetDate [11:01:22]Write to MH i2c: F0 00 00 B5 0C B0 [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: F0 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: F0 09 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: F0 09 00 B5 0C 00 83 4A F1 66 1B D0 5A 64 86 [11:01:22]GetLastDocTimeStamp 1727089255 [11:01:22]current date 1727089283 [11:01:22]FM_GetShiftState [11:01:22]SAM_PROTO_GetShiftState [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 13 01 00 [11:01:22]Write to MH i2c: E2 08 00 B6 0C 80 13 01 00 00 00 00 00 3F [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 0E 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 0E 00 B6 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 80 [11:01:22]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:01:22]wFMCommunicate OK [11:01:22]SAM_PROTO_GetShiftState done [11:01:22]FM_GetShiftState done [11:01:22]opened in 1727052070 [11:01:22]opened+sec_in_day 1727138470 [11:01:22]quantity*price = 100005 [11:01:22]sum+1 = 100006 [11:01:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 79 23.09.2024 11:01 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115596 ФПД: 206633759529130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110123&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115596&fm=206633759529130&tin=02508201610067®Number=0000000000091831&sum=100000 [11:01:23]StoreToDocumentArchive [11:01:23]shift 472 fd 115596 [11:01:23]save to /storage/0472/doc_00115596 [11:01:23]save last doc name /storage/0472/doc_00115596 to /storage/kkm_last_doc_name [11:01:23]save OK [11:01:23]Clear old archive folders... [11:01:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:23]tlvbuf is 0091DAD0 [11:01:23]SAM_PROTO_ClearQueue [11:01:23]wFMCommunicate request_size=4 [11:01:23]MH_SAM_APDU [11:01:23]CAPDU: 80 09 00 00 [11:01:23]Write to MH i2c: E2 08 00 C3 0C 80 09 00 00 00 00 00 00 41 [11:01:23]Write i2c OK [11:01:23]MH_I2C_Read... [11:01:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:23]Read from MH i2c: E2 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: E2 03 00 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: E2 03 00 C3 0C 00 90 00 43 [11:01:23]RAPDU: 90 00 [11:01:23]wFMCommunicate OK [11:01:23]SAM_PROTO_ClearQueue done [11:01:23]KKMCreateOFDPacket [11:01:23]OFDProtocolAddRootSTLVToBuf [11:01:23]FM_MakeSignedData [11:01:23]FM_MakeSignedData [11:01:23]SAM_PROTO_SignData [11:01:23]wFMCommunicate request_size=4 [11:01:23]MH_SAM_APDU [11:01:23]CAPDU: 80 0D 01 02 [11:01:23]Write to MH i2c: E2 08 00 C4 0C 80 0D 01 02 00 00 00 00 49 [11:01:23]Write i2c OK [11:01:23]MH_I2C_Read... [11:01:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:23]Read from MH i2c: E2 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: E2 03 00 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: E2 03 00 C4 0C 00 90 00 44 [11:01:23]RAPDU: 90 00 [11:01:23]wFMCommunicate OK [11:01:23]wFMCommunicate request_size=255 [11:01:23]MH_SAM_APDU [11:01:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 83 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8C C3 01 00 35 04 06 00 BB [11:01:23]Write to MH i2c: E2 02 01 C5 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 83 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8C C3 01 00 35 04 06 00 BB 00 00 A6 [11:01:23]Write i2c OK [11:01:23]MH_I2C_Read... [11:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:24]Read from MH i2c: E2 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 03 00 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [11:01:24]RAPDU: 90 00 [11:01:24]wFMCommunicate OK [11:01:24]wFMCommunicate request_size=10 [11:01:24]MH_SAM_APDU [11:01:24]CAPDU: 80 0D 02 02 05 EE AB D5 D8 AA [11:01:24]Write to MH i2c: E2 0D 00 C6 0C 80 0D 02 02 05 00 EE AB D5 D8 AA 00 00 46 [11:01:24]Write i2c OK [11:01:24]MH_I2C_Read... [11:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:24]Read from MH i2c: E2 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 03 00 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [11:01:24]RAPDU: 90 00 [11:01:24]wFMCommunicate OK [11:01:24]wFMCommunicate request_size=4 [11:01:24]MH_SAM_APDU [11:01:24]CAPDU: 80 0D 03 02 [11:01:24]Write to MH i2c: E2 08 00 C7 0C 80 0D 03 02 00 00 00 00 4E [11:01:24]Write i2c OK [11:01:24]MH_I2C_Read... [11:01:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:24]Read from MH i2c: E2 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 0B 00 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 0B 00 C7 0C 00 71 2F 90 50 89 9D 22 45 90 00 5C [11:01:24]RAPDU: 71 2F 90 50 89 9D 22 45 90 00 [11:01:24]wFMCommunicate OK [11:01:24]SAM_PROTO_SignData done [11:01:24]FM_MakeSignedData done [11:01:24]CreateOFDProtocolMessage [11:01:24]wFMCommunicate request_size=4 [11:01:24]MH_SAM_APDU [11:01:24]CAPDU: 80 11 00 00 [11:01:24]Write to MH i2c: E2 08 00 C8 0C 80 11 00 00 00 00 00 00 4E [11:01:24]Write i2c OK [11:01:24]MH_I2C_Read... [11:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:24]Read from MH i2c: E2 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 17 00 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 17 00 C8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9C [11:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:01:24]wFMCommunicate OK [11:01:24]CreateOFDProtocolMessage done [11:01:24]OFDSenderStorePacket 115596 [11:01:24]StoreOFDPacket docnum=115596 [11:01:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 B9 B9 07 01 53 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 83 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8C C3 01 00 35 04 06 00 BB EE AB D5 D8 AA 71 2F 90 50 89 9D 22 45 [11:01:24]CheckFolder [11:01:24]dirname=/storage/ofd_packets [11:01:24]CheckFolder done [11:01:24]ProducePacketName [11:01:24]name=ofd_packets/00115596 [11:01:24]NVStorageSaveData ofd_packets/00115596 [11:01:24]File name is /storage/ofd_packets/00115596 [11:01:24]Write 301 bytes [11:01:24]NVStorageSaveData done [11:01:24]OFDSenderStorePacket done [11:01:24]KKMCreateOFDPacket done [11:01:24]NVStorageSaveData kkm_last_timestamp [11:01:24]File name is /storage/kkm_last_timestamp [11:01:24]Write 4 bytes [11:01:24]NVStorageSaveData done [11:01:24]ExternCall_PrintAddStr [11:01:24]wPrintStart [11:01:24]Write to MH i2c: 01 00 00 C9 0C D5 [11:01:24]Write i2c OK [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: 01 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: 01 07 00 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: 01 07 00 C9 0C 00 00 00 00 00 FF 0F EA [11:01:24]RasterBufferAndPrint [11:01:24]line Счет N : (1)24617556 [11:01:24]line ИНН: 02508201610067 [11:01:24]line Контрольно-Кассовый Чек [11:01:24]line ПРОДАЖА [11:01:24]line ТРК (МРК, ГНК) : 43 [11:01:24]line Товар: 2710124130 [11:01:24]line Аи-92-К-5 [11:01:24]line 14.750 * 67.80 [11:01:24]line = 1000.05 [11:01:24]line НДС 12% НСП 1% [11:01:24]line > о реализуемом товаре [11:01:24]line ОКРУГЛЕНИЕ: -0.05 [11:01:24]line ИТОГО: 1000.00 [11:01:24]line Внесено: 1000.00 [11:01:24]line СДАЧА: 0.00 [11:01:24]line НСП 1% : 8.85 [11:01:24]line НДС 12% : 106.20 [11:01:24]line Наличными: 1000.00 [11:01:24]line Безнал.: 0.00 [11:01:24]line Место: АЗС № 90 "Партнер Нефть" [11:01:24]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:01:24]line СНО: Общий режим [11:01:24]line Чек 79 23.09.2024 11:01 [11:01:24]line Смена: 472 ФФД: 1.0 [11:01:24]line ЗНМ: 0300000120 [11:01:24]line РНМ: 0000000000091831 [11:01:24]line Версия ККМ: 001 [11:01:24]line ФМ: 0000000000871830 [11:01:24]line ФД: 115596 [11:01:24]line ФПД: 206633759529130 [11:01:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110123&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115596&fm=206633759529130&tin=02508201610067®Number=0000000000091831&sum=100000 [11:01:24]written 0, free lines is 4095 [11:01:24]OFD Sender: Processing packet 115596 [packets to send 481, broken 480] [11:01:24]ProducePacketName [11:01:24]name=ofd_packets/00115596 [11:01:24]OFD Sender: To server: pG, [11:01:24]CommunicateWithHost lk.salyk.kg:30040 [11:01:24]ConnectInit lk.salyk.kg [11:01:24]Connected sock=10 [11:01: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 38 33 30 0F 01 00 00 B9 B9 07 01 53 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 83 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8C C3 01 00 35 04 06 00 BB EE AB D5 D8 AA 71 2F 90 50 89 9D 22 45 [11:01:24]Write to MH i2c: 01 00 00 F3 0C FF [11:01:24]Write i2c OK [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: 01 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: 01 07 00 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: 01 07 00 F3 0C 00 00 00 00 00 6D 0C 7F [11:01:24]RasterBufferAndPrint [11:01:24]line [11:01:24]line [11:01:24]line [11:01:24]line [11:01:24]line [11:01:24]written 0, free lines is 3184 [11:01:24]MH_Cut [11:01:24]Write to MH i2c: D1 01 00 FA 0C 01 D8 [11:01:24]Write i2c OK [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: D1 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: D1 01 00 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: D1 01 00 FA 0C 00 D7 [11:01:24]Write to MH i2c: 01 00 00 FB 0C 07 [11:01:24]Write i2c OK [11:01:24]MH_I2C_Read... [11:01:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6B 08 47 00 8D 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 38 33 30 10 04 04 00 8C C3 01 00 F4 03 04 00 C6 EF F0 66 B6 04 01 00 00 CA 20 C1 39 BC 1E 80 16 [11:01:25]CommunicateWithHost err = 0 [11:01:25]CheckOFDResponse [11:01:25]1017 (14) - 77093643461234 [11:01:25]1041 (16) - 0000000000871830 [11:01:25]1040 (4) - 115596 [11:01:25]1012 (4) - 23.09.2024 04:34 [11:01:25]1206 (1) - 0 [11:01:25]OFD Sender: Remove packet 115596 [11:01:25]ProducePacketName [11:01:25]name=ofd_packets/00115596 [11:01:25]NVStorageDeleteData [11:01:25]OFD Sender: No OFD packet to send [11:01:26]*** Cut start [11:01:26]*** Partial cut [11:01:26]*** CUTSNS_PIN = 1 [11:01:26]*** CUTSNS_PIN = 0 [11:01:26]*** Brake cut motor [11:01:26]Read from MH i2c: 01 [11:01:26]MH_I2C_Read... [11:01:26]*** Stop cut motor [11:01:26]*** Cut end [11:01:26]Read from MH i2c: 01 07 00 [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: 01 07 00 FB 0C 00 00 00 00 00 FF 0F 1C [11:01:26]process_action close_receipt done [11:01:26]requested_data is exist [11:01:26]produce_requested_data [11:01:26]requested_item fm.sn is exist - process it [11:01:26]wFMCommunicate request_size=4 [11:01:26]MH_SAM_APDU [11:01:26]CAPDU: 80 11 00 00 [11:01:26]Write to MH i2c: E2 08 00 FC 0C 80 11 00 00 00 00 00 00 82 [11:01:26]Write i2c OK [11:01:26]MH_I2C_Read... [11:01:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:26]Read from MH i2c: E2 [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: E2 17 00 [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: E2 17 00 FC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D0 [11:01:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:01:26]wFMCommunicate OK [11:01:26]requested_item fd.num is exist - process it [11:01:26]SAM_PROTO_GetFieldsCounters [11:01:26]wFMCommunicate request_size=4 [11:01:26]MH_SAM_APDU [11:01:26]CAPDU: 80 13 00 00 [11:01:26]Write to MH i2c: E2 08 00 FD 0C 80 13 00 00 00 00 00 00 85 [11:01:26]Write i2c OK [11:01:26]MH_I2C_Read... [11:01:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:26]Read from MH i2c: E2 [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: E2 62 00 [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: E2 62 00 FD 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8C C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [11:01: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8C C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:26]wFMCommunicate OK [11:01:26]SAM_PROTO_GetFieldsCounters done [11:01:26]requested_item shift.num is exist - process it [11:01:26]requested_item shift.opened is exist - process it [11:01:26]req_shift_opened [11:01:26]FM_GetShiftState [11:01:26]SAM_PROTO_GetShiftState [11:01:26]wFMCommunicate request_size=4 [11:01:26]MH_SAM_APDU [11:01:26]CAPDU: 80 13 01 00 [11:01:26]Write to MH i2c: E2 08 00 FE 0C 80 13 01 00 00 00 00 00 87 [11:01:26]Write i2c OK [11:01:26]MH_I2C_Read... [11:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:26]Read from MH i2c: E2 [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: E2 0E 00 [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: E2 0E 00 FE 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C8 [11:01:26]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:01:26]wFMCommunicate OK [11:01:26]SAM_PROTO_GetShiftState done [11:01:26]FM_GetShiftState done [11:01:26]req_shift_opened done [11:01:26]requested_item shift.open_date is exist - process it [11:01:26]req_shift_open_date [11:01:26]req_shift_open_date done [11:01:26]produce_requested_data done [11:01:26]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115596,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:01:26]process_action_free close_receipt [11:01:26]json_value_free [11:01:26]json_value_free done [11:01:26]process_json_proto returns [11:01:26]Send response to host [11:01:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115596,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:01:26]free response buf [11:01:26]execute_script done [11:01:26]execute_script returns [11:01:26]free content buf [11:01:26]Sock 9.Close socket [11:01:26]Sock 9.Thread stoped [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:42]accept exits with 7 [11:01:42]New connection [11:01:42]New thread 3067051364 created [11:01:42]Thread 3067194724 joined [11:01:42]Waiting for new connection... [11:01:42] Sock 7.Parse request [11:01:42]Sock 7.Check first char [11:01:42]Sock 7.First char is OK [11:01:42]request: POST /json_proto HTTP/1.0 [11:01:42]Method: POST [11:01:42]URL: /json_proto [11:01:42]Method is POST - this is cgi request [11:01:42]url: /json_proto [11:01:42]query_string will be loaded in cgi processing [11:01:42]execute_cgi json_proto POST (null) [11:01:42]execute_cgi path=json_proto method=POST [11:01:42]POST find Content-Length [11:01:42]Host: 172.17.41.136:8080 [11:01:42]Content-Length: 756 [11:01:42]Content-Type: application/json [11:01:42] [11:01:42]POST finish read [11:01:42]Found Content-Length = 756 [11:01:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30096129", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:42]execute_script... [11:01: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)24617558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30096129", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:42]POST & json_proto [11:01:42]process_json_proto [11:01:42]json parsed OK: [11:01:42]protocol is kg_v1.0 [11:01:42]action value=close_receipt [11:01:42]process_action close_receipt [11:01:42]cmd_close_receipt [11:01:42]MH_GetDate [11:01:42]Write to MH i2c: F0 00 00 FF 0C FA [11:01:42]Write i2c OK [11:01:42]MH_I2C_Read... [11:01:42]Read from MH i2c: F0 [11:01:42]MH_I2C_Read... [11:01:42]Read from MH i2c: F0 09 00 [11:01:42]MH_I2C_Read... [11:01:42]Read from MH i2c: F0 09 00 FF 0C 00 97 4A F1 66 1B D0 5A 64 E4 [11:01:42]GetLastDocTimeStamp 1727089283 [11:01:42]current date 1727089303 [11:01:42]FM_GetShiftState [11:01:42]SAM_PROTO_GetShiftState [11:01:42]wFMCommunicate request_size=4 [11:01:42]MH_SAM_APDU [11:01:42]CAPDU: 80 13 01 00 [11:01:42]Write to MH i2c: E2 08 00 00 0D 80 13 01 00 00 00 00 00 8A [11:01:42]Write i2c OK [11:01:42]MH_I2C_Read... [11:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:42]Read from MH i2c: E2 [11:01:42]MH_I2C_Read... [11:01:42]Read from MH i2c: E2 0E 00 [11:01:42]MH_I2C_Read... [11:01:42]Read from MH i2c: E2 0E 00 00 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CB [11:01:42]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:01:42]wFMCommunicate OK [11:01:42]SAM_PROTO_GetShiftState done [11:01:42]FM_GetShiftState done [11:01:42]opened in 1727052070 [11:01:42]opened+sec_in_day 1727138470 [11:01:42]quantity*price = 0 [11:01:42]sum+1 = 1 [11:01:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 80 23.09.2024 11:01 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30096129 ФМ: 0000000000871830 ФД: 115597 ФПД: 232698771982051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110143&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115597&fm=232698771982051&tin=02508201610067®Number=0000000000091831&sum=0 [11:01:44]StoreToDocumentArchive [11:01:44]shift 472 fd 115597 [11:01:44]save to /storage/0472/doc_00115597 [11:01:44]save last doc name /storage/0472/doc_00115597 to /storage/kkm_last_doc_name [11:01:44]save OK [11:01:44]Clear old archive folders... [11:01:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:44]tlvbuf is 0093BA80 [11:01:44]SAM_PROTO_ClearQueue [11:01:44]wFMCommunicate request_size=4 [11:01:44]MH_SAM_APDU [11:01:44]CAPDU: 80 09 00 00 [11:01:44]Write to MH i2c: E2 08 00 0D 0D 80 09 00 00 00 00 00 00 8C [11:01:44]Write i2c OK [11:01:44]MH_I2C_Read... [11:01:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:44]Read from MH i2c: E2 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 03 00 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 03 00 0D 0D 00 90 00 8E [11:01:44]RAPDU: 90 00 [11:01:44]wFMCommunicate OK [11:01:44]SAM_PROTO_ClearQueue done [11:01:44]KKMCreateOFDPacket [11:01:44]OFDProtocolAddRootSTLVToBuf [11:01:44]FM_MakeSignedData [11:01:44]FM_MakeSignedData [11:01:44]SAM_PROTO_SignData [11:01:44]wFMCommunicate request_size=4 [11:01:44]MH_SAM_APDU [11:01:44]CAPDU: 80 0D 01 02 [11:01:44]Write to MH i2c: E2 08 00 0E 0D 80 0D 01 02 00 00 00 00 94 [11:01:44]Write i2c OK [11:01:44]MH_I2C_Read... [11:01:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:44]Read from MH i2c: E2 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 03 00 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 03 00 0E 0D 00 90 00 8F [11:01:44]RAPDU: 90 00 [11:01:44]wFMCommunicate OK [11:01:44]wFMCommunicate request_size=255 [11:01:44]MH_SAM_APDU [11:01:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 50 00 00 00 F4 03 04 00 97 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8D C3 01 00 35 04 06 00 D3 [11:01:44]Write to MH i2c: E2 02 01 0F 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 50 00 00 00 F4 03 04 00 97 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8D C3 01 00 35 04 06 00 D3 00 00 5B [11:01:44]Write i2c OK [11:01:44]MH_I2C_Read... [11:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:44]Read from MH i2c: E2 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 03 00 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [11:01:44]RAPDU: 90 00 [11:01:44]wFMCommunicate OK [11:01:44]wFMCommunicate request_size=10 [11:01:44]MH_SAM_APDU [11:01:44]CAPDU: 80 0D 02 02 05 A3 67 A4 C6 E3 [11:01:44]Write to MH i2c: E2 0D 00 10 0D 80 0D 02 02 05 00 A3 67 A4 C6 E3 00 00 F8 [11:01:44]Write i2c OK [11:01:44]MH_I2C_Read... [11:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:44]Read from MH i2c: E2 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 03 00 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [11:01:44]RAPDU: 90 00 [11:01:44]wFMCommunicate OK [11:01:44]wFMCommunicate request_size=4 [11:01:44]MH_SAM_APDU [11:01:44]CAPDU: 80 0D 03 02 [11:01:44]Write to MH i2c: E2 08 00 11 0D 80 0D 03 02 00 00 00 00 99 [11:01:44]Write i2c OK [11:01:44]MH_I2C_Read... [11:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:44]Read from MH i2c: E2 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 0B 00 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 0B 00 11 0D 00 67 76 E1 81 5A FA 01 E8 90 00 16 [11:01:44]RAPDU: 67 76 E1 81 5A FA 01 E8 90 00 [11:01:44]wFMCommunicate OK [11:01:44]SAM_PROTO_SignData done [11:01:44]FM_MakeSignedData done [11:01:44]CreateOFDProtocolMessage [11:01:44]wFMCommunicate request_size=4 [11:01:44]MH_SAM_APDU [11:01:44]CAPDU: 80 11 00 00 [11:01:44]Write to MH i2c: E2 08 00 12 0D 80 11 00 00 00 00 00 00 99 [11:01:44]Write i2c OK [11:01:44]MH_I2C_Read... [11:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:44]Read from MH i2c: E2 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 17 00 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 17 00 12 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E7 [11:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:01:44]wFMCommunicate OK [11:01:44]CreateOFDProtocolMessage done [11:01:44]OFDSenderStorePacket 115597 [11:01:44]StoreOFDPacket docnum=115597 [11:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 4B 9A 07 01 B4 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 50 00 00 00 F4 03 04 00 97 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8D C3 01 00 35 04 06 00 D3 A3 67 A4 C6 E3 67 76 E1 81 5A FA 01 E8 [11:01:44]CheckFolder [11:01:44]dirname=/storage/ofd_packets [11:01:44]CheckFolder done [11:01:44]ProducePacketName [11:01:44]name=ofd_packets/00115597 [11:01:44]NVStorageSaveData ofd_packets/00115597 [11:01:44]File name is /storage/ofd_packets/00115597 [11:01:44]Write 301 bytes [11:01:44]NVStorageSaveData done [11:01:44]OFDSenderStorePacket done [11:01:44]KKMCreateOFDPacket done [11:01:44]NVStorageSaveData kkm_last_timestamp [11:01:44]File name is /storage/kkm_last_timestamp [11:01:44]Write 4 bytes [11:01:44]NVStorageSaveData done [11:01:44]ExternCall_PrintAddStr [11:01:44]wPrintStart [11:01:44]Write to MH i2c: 01 00 00 13 0D 20 [11:01:44]Write i2c OK [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: 01 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: 01 07 00 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: 01 07 00 13 0D 00 00 00 00 00 FF 0F 35 [11:01:44]RasterBufferAndPrint [11:01:44]line Счет N : (1)24617558 [11:01:44]line ИНН: 02508201610067 [11:01:44]line Контрольно-Кассовый Чек [11:01:44]line ПРОДАЖА [11:01:44]line ТРК (МРК, ГНК) : 63 [11:01:44]line Товар: 2710124130 [11:01:44]line Аи-92-К-5 [11:01:44]line 35.000 * 0.00 [11:01:44]line = 0.00 [11:01:44]line НДС 12% НСП 1% [11:01:44]line > о реализуемом товаре [11:01:44]line ИТОГО: 0.00 [11:01:44]line НСП 1% : 0.00 [11:01:44]line НДС 12% : 0.00 [11:01:44]line Наличными: 0.00 [11:01:44]line Безнал.: 0.00 [11:01:44]line Место: АЗС № 90 "Партнер Нефть" [11:01:44]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:01:44]line СНО: Общий режим [11:01:44]line Чек 80 23.09.2024 11:01 [11:01:44]line Смена: 472 ФФД: 1.0 [11:01:44]line ЗНМ: 0300000120 [11:01:44]line РНМ: 0000000000091831 [11:01:44]line Версия ККМ: 001 [11:01:44]line Талоны: ТК ГПНА Online [11:01:44]line 30096129 [11:01:44]line ФМ: 0000000000871830 [11:01:44]line ФД: 115597 [11:01:44]line ФПД: 232698771982051 [11:01:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110143&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115597&fm=232698771982051&tin=02508201610067®Number=0000000000091831&sum=0 [11:01:44]written 0, free lines is 4095 [11:01:44]OFD Sender: Processing packet 115597 [packets to send 481, broken 480] [11:01:44]ProducePacketName [11:01:44]name=ofd_packets/00115597 [11:01:44]OFD Sender: To server: pG, [11:01:44]CommunicateWithHost lk.salyk.kg:30040 [11:01:44]ConnectInit lk.salyk.kg [11:01:44]Connected sock=10 [11:01: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 38 33 30 0F 01 00 00 4B 9A 07 01 B4 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 50 00 00 00 F4 03 04 00 97 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8D C3 01 00 35 04 06 00 D3 A3 67 A4 C6 E3 67 76 E1 81 5A FA 01 E8 [11:01:45]Write to MH i2c: 01 00 00 3C 0D 49 [11:01:45]Write i2c OK [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: 01 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: 01 07 00 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: 01 07 00 3C 0D 00 00 00 00 00 75 0C D1 [11:01:45]RasterBufferAndPrint [11:01:45]line [11:01:45]line [11:01:45]line [11:01:45]line [11:01:45]line [11:01:45]written 0, free lines is 3193 [11:01:45]MH_Cut [11:01:45]Write to MH i2c: D1 01 00 43 0D 01 22 [11:01:45]Write i2c OK [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: D1 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: D1 01 00 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: D1 01 00 43 0D 00 21 [11:01:45]Write to MH i2c: 01 00 00 44 0D 51 [11:01:45]Write i2c OK [11:01:45]MH_I2C_Read... [11:01:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 4C D6 47 00 61 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 38 33 30 10 04 04 00 8D C3 01 00 F4 03 04 00 DA EF F0 66 B6 04 01 00 00 1B 98 63 C4 FC 28 A3 98 [11:01:45]CommunicateWithHost err = 0 [11:01:45]CheckOFDResponse [11:01:45]1017 (14) - 77093643461234 [11:01:45]1041 (16) - 0000000000871830 [11:01:45]1040 (4) - 115597 [11:01:45]1012 (4) - 23.09.2024 04:34 [11:01:45]1206 (1) - 0 [11:01:45]OFD Sender: Remove packet 115597 [11:01:45]ProducePacketName [11:01:45]name=ofd_packets/00115597 [11:01:45]NVStorageDeleteData [11:01:45]OFD Sender: No OFD packet to send [11:01:46]*** Cut start [11:01:46]*** Partial cut [11:01:46]*** CUTSNS_PIN = 1 [11:01:46]*** CUTSNS_PIN = 0 [11:01:46]*** Brake cut motor [11:01:46]Read from MH i2c: 01 [11:01:46]MH_I2C_Read... [11:01:46]*** Stop cut motor [11:01:46]*** Cut end [11:01:46]Read from MH i2c: 01 07 00 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: 01 07 00 44 0D 00 00 00 00 00 FF 0F 66 [11:01:46]process_action close_receipt done [11:01:46]requested_data is exist [11:01:46]produce_requested_data [11:01:46]requested_item fm.sn is exist - process it [11:01:46]wFMCommunicate request_size=4 [11:01:46]MH_SAM_APDU [11:01:46]CAPDU: 80 11 00 00 [11:01:46]Write to MH i2c: E2 08 00 45 0D 80 11 00 00 00 00 00 00 CC [11:01:46]Write i2c OK [11:01:46]MH_I2C_Read... [11:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:46]Read from MH i2c: E2 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: E2 17 00 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: E2 17 00 45 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1A [11:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:01:46]wFMCommunicate OK [11:01:46]requested_item fd.num is exist - process it [11:01:46]SAM_PROTO_GetFieldsCounters [11:01:46]wFMCommunicate request_size=4 [11:01:46]MH_SAM_APDU [11:01:46]CAPDU: 80 13 00 00 [11:01:46]Write to MH i2c: E2 08 00 46 0D 80 13 00 00 00 00 00 00 CF [11:01:46]Write i2c OK [11:01:46]MH_I2C_Read... [11:01:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:47]Read from MH i2c: E2 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 62 00 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 62 00 46 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8D C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [11:01: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8D C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:47]wFMCommunicate OK [11:01:47]SAM_PROTO_GetFieldsCounters done [11:01:47]requested_item shift.num is exist - process it [11:01:47]requested_item shift.opened is exist - process it [11:01:47]req_shift_opened [11:01:47]FM_GetShiftState [11:01:47]SAM_PROTO_GetShiftState [11:01:47]wFMCommunicate request_size=4 [11:01:47]MH_SAM_APDU [11:01:47]CAPDU: 80 13 01 00 [11:01:47]Write to MH i2c: E2 08 00 47 0D 80 13 01 00 00 00 00 00 D1 [11:01:47]Write i2c OK [11:01:47]MH_I2C_Read... [11:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:47]Read from MH i2c: E2 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 0E 00 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 0E 00 47 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 12 [11:01:47]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:01:47]wFMCommunicate OK [11:01:47]SAM_PROTO_GetShiftState done [11:01:47]FM_GetShiftState done [11:01:47]req_shift_opened done [11:01:47]requested_item shift.open_date is exist - process it [11:01:47]req_shift_open_date [11:01:47]req_shift_open_date done [11:01:47]produce_requested_data done [11:01:47]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115597,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:01:47]process_action_free close_receipt [11:01:47]json_value_free [11:01:47]json_value_free done [11:01:47]process_json_proto returns [11:01:47]Send response to host [11:01:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115597,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:01:47]free response buf [11:01:47]execute_script done [11:01:47]execute_script returns [11:01:47]free content buf [11:01:47]Sock 7.Close socket [11:01:47]Sock 7.Thread stoped [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:31]accept exits with 9 [11:02:31]New connection [11:02:31]New thread 3067194724 created [11:02:31]Thread 3067051364 joined [11:02:31]Waiting for new connection... [11:02:31] Sock 9.Parse request [11:02:31]Sock 9.Check first char [11:02:31]Sock 9.First char is OK [11:02:31]request: POST /json_proto HTTP/1.0 [11:02:31]Method: POST [11:02:31]URL: /json_proto [11:02:31]Method is POST - this is cgi request [11:02:31]url: /json_proto [11:02:31]query_string will be loaded in cgi processing [11:02:31]execute_cgi json_proto POST (null) [11:02:31]execute_cgi path=json_proto method=POST [11:02:31]POST find Content-Length [11:02:31]Host: 172.17.41.136:8080 [11:02:31]Content-Length: 684 [11:02:31]Content-Type: application/json [11:02:31] [11:02:31]POST finish read [11:02:31]Found Content-Length = 684 [11:02:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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:02:31]execute_script... [11:02: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)24617559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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:02:31]POST & json_proto [11:02:31]process_json_proto [11:02:31]json parsed OK: [11:02:31]protocol is kg_v1.0 [11:02:31]action value=close_receipt [11:02:31]process_action close_receipt [11:02:31]cmd_close_receipt [11:02:31]MH_GetDate [11:02:31]Write to MH i2c: F0 00 00 48 0D 44 [11:02:31]Write i2c OK [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: F0 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: F0 09 00 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: F0 09 00 48 0D 00 C8 4A F1 66 1B D0 5A 64 5F [11:02:31]GetLastDocTimeStamp 1727089303 [11:02:31]current date 1727089352 [11:02:31]FM_GetShiftState [11:02:31]SAM_PROTO_GetShiftState [11:02:31]wFMCommunicate request_size=4 [11:02:31]MH_SAM_APDU [11:02:31]CAPDU: 80 13 01 00 [11:02:31]Write to MH i2c: E2 08 00 49 0D 80 13 01 00 00 00 00 00 D3 [11:02:31]Write i2c OK [11:02:31]MH_I2C_Read... [11:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:31]Read from MH i2c: E2 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 0E 00 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 0E 00 49 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 14 [11:02:31]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:02:31]wFMCommunicate OK [11:02:31]SAM_PROTO_GetShiftState done [11:02:31]FM_GetShiftState done [11:02:31]opened in 1727052070 [11:02:31]opened+sec_in_day 1727138470 [11:02:31]quantity*price = 200010 [11:02:31]sum+1 = 200011 [11:02:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 81 23.09.2024 11:02 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115598 ФПД: 164341198847814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110232&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115598&fm=164341198847814&tin=02508201610067®Number=0000000000091831&sum=200000 [11:02:32]StoreToDocumentArchive [11:02:32]shift 472 fd 115598 [11:02:32]save to /storage/0472/doc_00115598 [11:02:32]save last doc name /storage/0472/doc_00115598 to /storage/kkm_last_doc_name [11:02:32]save OK [11:02:32]Clear old archive folders... [11:02:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:32]tlvbuf is 0093B370 [11:02:32]SAM_PROTO_ClearQueue [11:02:32]wFMCommunicate request_size=4 [11:02:32]MH_SAM_APDU [11:02:32]CAPDU: 80 09 00 00 [11:02:32]Write to MH i2c: E2 08 00 56 0D 80 09 00 00 00 00 00 00 D5 [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:32]Read from MH i2c: E2 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 03 00 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 03 00 56 0D 00 90 00 D7 [11:02:32]RAPDU: 90 00 [11:02:32]wFMCommunicate OK [11:02:32]SAM_PROTO_ClearQueue done [11:02:32]KKMCreateOFDPacket [11:02:32]OFDProtocolAddRootSTLVToBuf [11:02:32]FM_MakeSignedData [11:02:32]FM_MakeSignedData [11:02:32]SAM_PROTO_SignData [11:02:32]wFMCommunicate request_size=4 [11:02:32]MH_SAM_APDU [11:02:32]CAPDU: 80 0D 01 02 [11:02:32]Write to MH i2c: E2 08 00 57 0D 80 0D 01 02 00 00 00 00 DD [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:32]Read from MH i2c: E2 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 03 00 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 03 00 57 0D 00 90 00 D8 [11:02:32]RAPDU: 90 00 [11:02:32]wFMCommunicate OK [11:02:32]wFMCommunicate request_size=255 [11:02:32]MH_SAM_APDU [11:02:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 51 00 00 00 F4 03 04 00 C8 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8E C3 01 00 35 04 06 00 95 [11:02:32]Write to MH i2c: E2 02 01 58 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 51 00 00 00 F4 03 04 00 C8 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8E C3 01 00 35 04 06 00 95 00 00 D2 [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:33]Read from MH i2c: E2 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 03 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 03 00 58 0D 00 90 00 D9 [11:02:33]RAPDU: 90 00 [11:02:33]wFMCommunicate OK [11:02:33]wFMCommunicate request_size=10 [11:02:33]MH_SAM_APDU [11:02:33]CAPDU: 80 0D 02 02 05 77 AA C7 7F 46 [11:02:33]Write to MH i2c: E2 0D 00 59 0D 80 0D 02 02 05 00 77 AA C7 7F 46 00 00 97 [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:33]Read from MH i2c: E2 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 03 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 03 00 59 0D 00 90 00 DA [11:02:33]RAPDU: 90 00 [11:02:33]wFMCommunicate OK [11:02:33]wFMCommunicate request_size=4 [11:02:33]MH_SAM_APDU [11:02:33]CAPDU: 80 0D 03 02 [11:02:33]Write to MH i2c: E2 08 00 5A 0D 80 0D 03 02 00 00 00 00 E2 [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:33]Read from MH i2c: E2 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 0B 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 0B 00 5A 0D 00 E1 7F C5 5A 58 32 64 84 90 00 D4 [11:02:33]RAPDU: E1 7F C5 5A 58 32 64 84 90 00 [11:02:33]wFMCommunicate OK [11:02:33]SAM_PROTO_SignData done [11:02:33]FM_MakeSignedData done [11:02:33]CreateOFDProtocolMessage [11:02:33]wFMCommunicate request_size=4 [11:02:33]MH_SAM_APDU [11:02:33]CAPDU: 80 11 00 00 [11:02:33]Write to MH i2c: E2 08 00 5B 0D 80 11 00 00 00 00 00 00 E2 [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:33]Read from MH i2c: E2 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 17 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 17 00 5B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 30 [11:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:02:33]wFMCommunicate OK [11:02:33]CreateOFDProtocolMessage done [11:02:33]OFDSenderStorePacket 115598 [11:02:33]StoreOFDPacket docnum=115598 [11:02:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 D1 06 07 01 53 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 51 00 00 00 F4 03 04 00 C8 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8E C3 01 00 35 04 06 00 95 77 AA C7 7F 46 E1 7F C5 5A 58 32 64 84 [11:02:33]CheckFolder [11:02:33]dirname=/storage/ofd_packets [11:02:33]CheckFolder done [11:02:33]ProducePacketName [11:02:33]name=ofd_packets/00115598 [11:02:33]NVStorageSaveData ofd_packets/00115598 [11:02:33]File name is /storage/ofd_packets/00115598 [11:02:33]Write 301 bytes [11:02:33]NVStorageSaveData done [11:02:33]OFDSenderStorePacket done [11:02:33]KKMCreateOFDPacket done [11:02:33]NVStorageSaveData kkm_last_timestamp [11:02:33]File name is /storage/kkm_last_timestamp [11:02:33]Write 4 bytes [11:02:33]NVStorageSaveData done [11:02:33]ExternCall_PrintAddStr [11:02:33]wPrintStart [11:02:33]Write to MH i2c: 01 00 00 5C 0D 69 [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: 01 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: 01 07 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: 01 07 00 5C 0D 00 00 00 00 00 FF 0F 7E [11:02:33]RasterBufferAndPrint [11:02:33]line Счет N : (1)24617559 [11:02:33]line ИНН: 02508201610067 [11:02:33]line Контрольно-Кассовый Чек [11:02:33]line ПРОДАЖА [11:02:33]line ТРК (МРК, ГНК) : 33 [11:02:33]line Товар: 2710124130 [11:02:33]line Аи-92-К-5 [11:02:33]line 29.500 * 67.80 [11:02:33]line = 2000.10 [11:02:33]line НДС 12% НСП 1% [11:02:33]line > о реализуемом товаре [11:02:33]line ОКРУГЛЕНИЕ: -0.10 [11:02:33]line ИТОГО: 2000.00 [11:02:33]line Внесено: 2000.00 [11:02:33]line СДАЧА: 0.00 [11:02:33]line НСП 1% : 17.70 [11:02:33]line НДС 12% : 212.40 [11:02:33]line Наличными: 2000.00 [11:02:33]line Безнал.: 0.00 [11:02:33]line Место: АЗС № 90 "Партнер Нефть" [11:02:33]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:02:33]line СНО: Общий режим [11:02:33]line Чек 81 23.09.2024 11:02 [11:02:33]line Смена: 472 ФФД: 1.0 [11:02:33]line ЗНМ: 0300000120 [11:02:33]line РНМ: 0000000000091831 [11:02:33]line Версия ККМ: 001 [11:02:33]line ФМ: 0000000000871830 [11:02:33]line ФД: 115598 [11:02:33]line ФПД: 164341198847814 [11:02:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110232&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115598&fm=164341198847814&tin=02508201610067®Number=0000000000091831&sum=200000 [11:02:33]written 0, free lines is 4095 [11:02:33]OFD Sender: Processing packet 115598 [packets to send 481, broken 480] [11:02:33]ProducePacketName [11:02:33]name=ofd_packets/00115598 [11:02:33]OFD Sender: To server: pG, [11:02:33]CommunicateWithHost lk.salyk.kg:30040 [11:02:33]ConnectInit lk.salyk.kg [11:02:33]Connected sock=7 [11:02: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 38 33 30 0F 01 00 00 D1 06 07 01 53 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 51 00 00 00 F4 03 04 00 C8 4A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8E C3 01 00 35 04 06 00 95 77 AA C7 7F 46 E1 7F C5 5A 58 32 64 84 [11:02:34]Write to MH i2c: 01 00 00 86 0D 93 [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: 01 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: 01 07 00 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: 01 07 00 86 0D 00 00 00 00 00 65 0C 0B [11:02:34]RasterBufferAndPrint [11:02:34]line [11:02:34]line [11:02:34]line [11:02:34]line [11:02:34]line [11:02:34]written 0, free lines is 3178 [11:02:34]MH_Cut [11:02:34]Write to MH i2c: D1 01 00 8D 0D 01 6C [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: D1 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: D1 01 00 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: D1 01 00 8D 0D 00 6B [11:02:34]Write to MH i2c: 01 00 00 8E 0D 9B [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 61 6B 47 00 3E 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 38 33 30 10 04 04 00 8E C3 01 00 F4 03 04 00 0B F0 F0 66 B6 04 01 00 00 CE BE 54 BB DE 3E 81 53 [11:02:34]CommunicateWithHost err = 0 [11:02:34]CheckOFDResponse [11:02:34]1017 (14) - 77093643461234 [11:02:34]1041 (16) - 0000000000871830 [11:02:34]1040 (4) - 115598 [11:02:34]1012 (4) - 23.09.2024 04:35 [11:02:34]1206 (1) - 0 [11:02:34]OFD Sender: Remove packet 115598 [11:02:34]ProducePacketName [11:02:34]name=ofd_packets/00115598 [11:02:34]NVStorageDeleteData [11:02:34]OFD Sender: No OFD packet to send [11:02:35]*** Cut start [11:02:35]*** Partial cut [11:02:35]*** CUTSNS_PIN = 1 [11:02:35]*** CUTSNS_PIN = 0 [11:02:35]*** Brake cut motor [11:02:35]Read from MH i2c: 01 [11:02:35]MH_I2C_Read... [11:02:35]*** Stop cut motor [11:02:35]*** Cut end [11:02:35]Read from MH i2c: 01 07 00 [11:02:35]MH_I2C_Read... [11:02:35]Read from MH i2c: 01 07 00 8E 0D 00 00 00 00 00 FF 0F B0 [11:02:35]process_action close_receipt done [11:02:35]requested_data is exist [11:02:35]produce_requested_data [11:02:35]requested_item fm.sn is exist - process it [11:02:35]wFMCommunicate request_size=4 [11:02:35]MH_SAM_APDU [11:02:35]CAPDU: 80 11 00 00 [11:02:36]Write to MH i2c: E2 08 00 8F 0D 80 11 00 00 00 00 00 00 16 [11:02:36]Write i2c OK [11:02:36]MH_I2C_Read... [11:02:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:36]Read from MH i2c: E2 [11:02:36]MH_I2C_Read... [11:02:36]Read from MH i2c: E2 17 00 [11:02:36]MH_I2C_Read... [11:02:36]Read from MH i2c: E2 17 00 8F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 64 [11:02:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:02:36]wFMCommunicate OK [11:02:36]requested_item fd.num is exist - process it [11:02:36]SAM_PROTO_GetFieldsCounters [11:02:36]wFMCommunicate request_size=4 [11:02:36]MH_SAM_APDU [11:02:36]CAPDU: 80 13 00 00 [11:02:36]Write to MH i2c: E2 08 00 90 0D 80 13 00 00 00 00 00 00 19 [11:02:36]Write i2c OK [11:02:36]MH_I2C_Read... [11:02:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:36]Read from MH i2c: E2 [11:02:36]MH_I2C_Read... [11:02:36]Read from MH i2c: E2 62 00 [11:02:36]MH_I2C_Read... [11:02:36]Read from MH i2c: E2 62 00 90 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8E C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [11:02: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8E C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:36]wFMCommunicate OK [11:02:36]SAM_PROTO_GetFieldsCounters done [11:02:36]requested_item shift.num is exist - process it [11:02:36]requested_item shift.opened is exist - process it [11:02:36]req_shift_opened [11:02:36]FM_GetShiftState [11:02:36]SAM_PROTO_GetShiftState [11:02:36]wFMCommunicate request_size=4 [11:02:36]MH_SAM_APDU [11:02:36]CAPDU: 80 13 01 00 [11:02:36]Write to MH i2c: E2 08 00 91 0D 80 13 01 00 00 00 00 00 1B [11:02:36]Write i2c OK [11:02:36]MH_I2C_Read... [11:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:36]Read from MH i2c: E2 [11:02:36]MH_I2C_Read... [11:02:36]Read from MH i2c: E2 0E 00 [11:02:36]MH_I2C_Read... [11:02:36]Read from MH i2c: E2 0E 00 91 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5C [11:02:36]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:02:36]wFMCommunicate OK [11:02:36]SAM_PROTO_GetShiftState done [11:02:36]FM_GetShiftState done [11:02:36]req_shift_opened done [11:02:36]requested_item shift.open_date is exist - process it [11:02:36]req_shift_open_date [11:02:36]req_shift_open_date done [11:02:36]produce_requested_data done [11:02:36]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115598,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:02:36]process_action_free close_receipt [11:02:36]json_value_free [11:02:36]json_value_free done [11:02:36]process_json_proto returns [11:02:36]Send response to host [11:02:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115598,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:02:36]free response buf [11:02:36]execute_script done [11:02:36]execute_script returns [11:02:36]free content buf [11:02:36]Sock 9.Close socket [11:02:36]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]accept exits with 10 [11:03:34]New connection [11:03:34]New thread 3067051364 created [11:03:34]Thread 3067194724 joined [11:03:34]Waiting for new connection... [11:03:34] Sock 10.Parse request [11:03:34]Sock 10.Check first char [11:03:34]Sock 10.First char is OK [11:03:34]request: POST /json_proto HTTP/1.0 [11:03:34]Method: POST [11:03:34]URL: /json_proto [11:03:34]Method is POST - this is cgi request [11:03:34]url: /json_proto [11:03:34]query_string will be loaded in cgi processing [11:03:34]execute_cgi json_proto POST (null) [11:03:34]execute_cgi path=json_proto method=POST [11:03:34]POST find Content-Length [11:03:34]Host: 172.17.41.136:8080 [11:03:34]Content-Length: 676 [11:03:34]Content-Type: application/json [11:03:34] [11:03:34]POST finish read [11:03:34]Found Content-Length = 676 [11:03:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:34]execute_script... [11: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)24617560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:34]POST & json_proto [11:03:34]process_json_proto [11:03:34]json parsed OK: [11:03:34]protocol is kg_v1.0 [11:03:34]action value=close_receipt [11:03:34]process_action close_receipt [11:03:34]cmd_close_receipt [11:03:34]MH_GetDate [11:03:34]Write to MH i2c: F0 00 00 92 0D 8E [11:03:34]Write i2c OK [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: F0 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: F0 09 00 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: F0 09 00 92 0D 00 07 4B F1 66 1B D0 5A 64 E9 [11:03:34]GetLastDocTimeStamp 1727089352 [11:03:34]current date 1727089415 [11:03:34]FM_GetShiftState [11:03:34]SAM_PROTO_GetShiftState [11:03:34]wFMCommunicate request_size=4 [11:03:34]MH_SAM_APDU [11:03:34]CAPDU: 80 13 01 00 [11:03:34]Write to MH i2c: E2 08 00 93 0D 80 13 01 00 00 00 00 00 1D [11:03:34]Write i2c OK [11:03:34]MH_I2C_Read... [11:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:34]Read from MH i2c: E2 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 0E 00 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 0E 00 93 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5E [11:03:34]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:03:34]wFMCommunicate OK [11:03:34]SAM_PROTO_GetShiftState done [11:03:34]FM_GetShiftState done [11:03:34]opened in 1727052070 [11:03:34]opened+sec_in_day 1727138470 [11:03:34]quantity*price = 60045 [11:03:34]sum+1 = 60047 [11:03:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 82 23.09.2024 11:03 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115599 ФПД: 141916582421573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110335&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115599&fm=141916582421573&tin=02508201610067®Number=0000000000091831&sum=60000 [11:03:35]StoreToDocumentArchive [11:03:35]shift 472 fd 115599 [11:03:35]save to /storage/0472/doc_00115599 [11:03:35]save last doc name /storage/0472/doc_00115599 to /storage/kkm_last_doc_name [11:03:35]save OK [11:03:35]Clear old archive folders... [11:03:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:03:35]tlvbuf is 0098E440 [11:03:35]SAM_PROTO_ClearQueue [11:03:35]wFMCommunicate request_size=4 [11:03:35]MH_SAM_APDU [11:03:35]CAPDU: 80 09 00 00 [11:03:35]Write to MH i2c: E2 08 00 A0 0D 80 09 00 00 00 00 00 00 1F [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:35]Read from MH i2c: E2 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 A0 0D 00 90 00 21 [11:03:35]RAPDU: 90 00 [11:03:35]wFMCommunicate OK [11:03:35]SAM_PROTO_ClearQueue done [11:03:35]KKMCreateOFDPacket [11:03:35]OFDProtocolAddRootSTLVToBuf [11:03:35]FM_MakeSignedData [11:03:35]FM_MakeSignedData [11:03:35]SAM_PROTO_SignData [11:03:35]wFMCommunicate request_size=4 [11:03:35]MH_SAM_APDU [11:03:35]CAPDU: 80 0D 01 02 [11:03:35]Write to MH i2c: E2 08 00 A1 0D 80 0D 01 02 00 00 00 00 27 [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:35]Read from MH i2c: E2 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 A1 0D 00 90 00 22 [11:03:35]RAPDU: 90 00 [11:03:35]wFMCommunicate OK [11:03:35]wFMCommunicate request_size=255 [11:03:35]MH_SAM_APDU [11:03:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 07 4B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8F C3 01 00 35 04 06 00 81 12 87 7B [11:03:35]Write to MH i2c: E2 02 01 A2 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 07 4B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8F C3 01 00 35 04 06 00 81 12 87 7B 00 00 21 [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:36]Read from MH i2c: E2 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: E2 03 00 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: E2 03 00 A2 0D 00 90 00 23 [11:03:36]RAPDU: 90 00 [11:03:36]wFMCommunicate OK [11:03:36]wFMCommunicate request_size=7 [11:03:36]MH_SAM_APDU [11:03:36]CAPDU: 80 0D 02 02 02 A4 45 [11:03:36]Write to MH i2c: E2 0A 00 A3 0D 80 0D 02 02 02 00 A4 45 00 00 17 [11:03:36]Write i2c OK [11:03:36]MH_I2C_Read... [11:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:36]Read from MH i2c: E2 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: E2 03 00 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: E2 03 00 A3 0D 00 90 00 24 [11:03:36]RAPDU: 90 00 [11:03:36]wFMCommunicate OK [11:03:36]wFMCommunicate request_size=4 [11:03:36]MH_SAM_APDU [11:03:36]CAPDU: 80 0D 03 02 [11:03:36]Write to MH i2c: E2 08 00 A4 0D 80 0D 03 02 00 00 00 00 2C [11:03:36]Write i2c OK [11:03:36]MH_I2C_Read... [11:03:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:36]Read from MH i2c: E2 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: E2 0B 00 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: E2 0B 00 A4 0D 00 09 5D B4 56 D5 A9 CE 2D 90 00 16 [11:03:36]RAPDU: 09 5D B4 56 D5 A9 CE 2D 90 00 [11:03:36]wFMCommunicate OK [11:03:36]SAM_PROTO_SignData done [11:03:36]FM_MakeSignedData done [11:03:36]CreateOFDProtocolMessage [11:03:36]wFMCommunicate request_size=4 [11:03:36]MH_SAM_APDU [11:03:36]CAPDU: 80 11 00 00 [11:03:36]Write to MH i2c: E2 08 00 A5 0D 80 11 00 00 00 00 00 00 2C [11:03:36]Write i2c OK [11:03:36]MH_I2C_Read... [11:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:36]Read from MH i2c: E2 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: E2 17 00 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: E2 17 00 A5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7A [11:03:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:03:36]wFMCommunicate OK [11:03:36]CreateOFDProtocolMessage done [11:03:36]OFDSenderStorePacket 115599 [11:03:36]StoreOFDPacket docnum=115599 [11:03:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 66 78 04 01 CD 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 07 4B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8F C3 01 00 35 04 06 00 81 12 87 7B A4 45 09 5D B4 56 D5 A9 CE 2D [11:03:36]CheckFolder [11:03:36]dirname=/storage/ofd_packets [11:03:36]CheckFolder done [11:03:36]ProducePacketName [11:03:36]name=ofd_packets/00115599 [11:03:36]NVStorageSaveData ofd_packets/00115599 [11:03:36]File name is /storage/ofd_packets/00115599 [11:03:36]Write 298 bytes [11:03:36]NVStorageSaveData done [11:03:36]OFDSenderStorePacket done [11:03:36]KKMCreateOFDPacket done [11:03:36]NVStorageSaveData kkm_last_timestamp [11:03:36]File name is /storage/kkm_last_timestamp [11:03:36]Write 4 bytes [11:03:36]NVStorageSaveData done [11:03:36]ExternCall_PrintAddStr [11:03:36]wPrintStart [11:03:36]Write to MH i2c: 01 00 00 A6 0D B3 [11:03:36]Write i2c OK [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: 01 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: 01 07 00 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: 01 07 00 A6 0D 00 00 00 00 00 FF 0F C8 [11:03:36]RasterBufferAndPrint [11:03:36]line Счет N : (1)24617560 [11:03:36]line ИНН: 02508201610067 [11:03:36]line Контрольно-Кассовый Чек [11:03:36]line ПРОДАЖА [11:03:36]line ТРК (МРК, ГНК) : 65 [11:03:36]line Товар: 2710194210 [11:03:36]line ДТ-К-5 [11:03:36]line 7.880 * 76.20 [11:03:36]line = 600.46 [11:03:36]line НДС 12% НСП 1% [11:03:36]line > о реализуемом товаре [11:03:36]line ОКРУГЛЕНИЕ: -0.46 [11:03:36]line ИТОГО: 600.00 [11:03:36]line Внесено: 600.00 [11:03:36]line СДАЧА: 0.00 [11:03:36]line НСП 1% : 5.31 [11:03:36]line НДС 12% : 63.77 [11:03:36]line Наличными: 600.00 [11:03:36]line Безнал.: 0.00 [11:03:36]line Место: АЗС № 90 "Партнер Нефть" [11:03:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:03:36]line СНО: Общий режим [11:03:36]line Чек 82 23.09.2024 11:03 [11:03:36]line Смена: 472 ФФД: 1.0 [11:03:36]line ЗНМ: 0300000120 [11:03:36]line РНМ: 0000000000091831 [11:03:36]line Версия ККМ: 001 [11:03:36]line ФМ: 0000000000871830 [11:03:36]line ФД: 115599 [11:03:36]line ФПД: 141916582421573 [11:03:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110335&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115599&fm=141916582421573&tin=02508201610067®Number=0000000000091831&sum=60000 [11:03:36]OFD Sender: Processing packet 115599 [packets to send 481, broken 480] [11:03:36]ProducePacketName [11:03:36]name=ofd_packets/00115599 [11:03:36]OFD Sender: To server: pG, [11:03:36]CommunicateWithHost lk.salyk.kg:30040 [11:03:36]ConnectInit lk.salyk.kg [11:03:36]written 0, free lines is 4095 [11:03:36]Connected sock=9 [11: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 38 33 30 0C 01 00 00 66 78 04 01 CD 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 07 4B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 8F C3 01 00 35 04 06 00 81 12 87 7B A4 45 09 5D B4 56 D5 A9 CE 2D [11:03:37]Write to MH i2c: 01 00 00 D0 0D DD [11:03:37]Write i2c OK [11:03:37]MH_I2C_Read... [11:03:37]Read from MH i2c: 01 [11:03:37]MH_I2C_Read... [11:03:37]Read from MH i2c: 01 07 00 [11:03:37]MH_I2C_Read... [11:03:37]Read from MH i2c: 01 07 00 D0 0D 00 00 00 00 00 5C 0C 4C [11:03:37]RasterBufferAndPrint [11:03:37]line [11:03:37]line [11:03:37]line [11:03:37]line [11:03:37]line [11:03:37]written 0, free lines is 3169 [11:03:37]MH_Cut [11:03:37]Write to MH i2c: D1 01 00 D7 0D 01 B6 [11:03:37]Write i2c OK [11:03:37]MH_I2C_Read... [11:03:37]Read from MH i2c: D1 [11:03:37]MH_I2C_Read... [11:03:37]Read from MH i2c: D1 01 00 [11:03:37]MH_I2C_Read... [11:03:37]Read from MH i2c: D1 01 00 D7 0D 00 B5 [11:03:37]Write to MH i2c: 01 00 00 D8 0D E5 [11:03:37]Write i2c OK [11:03:37]MH_I2C_Read... [11: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 38 33 30 4F 00 00 00 9C 4D 47 00 6A 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 38 33 30 10 04 04 00 8F C3 01 00 F4 03 04 00 4A F0 F0 66 B6 04 01 00 00 B9 62 E6 67 E4 95 00 64 [11:03:37]CommunicateWithHost err = 0 [11:03:37]CheckOFDResponse [11:03:37]1017 (14) - 77093643461234 [11:03:37]1041 (16) - 0000000000871830 [11:03:37]1040 (4) - 115599 [11:03:37]1012 (4) - 23.09.2024 04:36 [11:03:37]1206 (1) - 0 [11:03:37]OFD Sender: Remove packet 115599 [11:03:37]ProducePacketName [11:03:37]name=ofd_packets/00115599 [11:03:37]NVStorageDeleteData [11:03:37]OFD Sender: No OFD packet to send [11:03:38]*** Cut start [11:03:38]*** Partial cut [11:03:38]*** CUTSNS_PIN = 1 [11:03:38]*** CUTSNS_PIN = 0 [11:03:38]*** Brake cut motor [11:03:38]Read from MH i2c: 01 [11:03:38]MH_I2C_Read... [11:03:38]*** Stop cut motor [11:03:38]*** Cut end [11:03:38]Read from MH i2c: 01 07 00 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: 01 07 00 D8 0D 00 00 00 00 00 FF 0F FA [11:03:38]process_action close_receipt done [11:03:38]requested_data is exist [11:03:38]produce_requested_data [11:03:38]requested_item fm.sn is exist - process it [11:03:38]wFMCommunicate request_size=4 [11:03:38]MH_SAM_APDU [11:03:38]CAPDU: 80 11 00 00 [11:03:38]Write to MH i2c: E2 08 00 D9 0D 80 11 00 00 00 00 00 00 60 [11:03:38]Write i2c OK [11:03:38]MH_I2C_Read... [11:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:39]Read from MH i2c: E2 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 17 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 17 00 D9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AE [11:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:03:39]wFMCommunicate OK [11:03:39]requested_item fd.num is exist - process it [11:03:39]SAM_PROTO_GetFieldsCounters [11:03:39]wFMCommunicate request_size=4 [11:03:39]MH_SAM_APDU [11:03:39]CAPDU: 80 13 00 00 [11:03:39]Write to MH i2c: E2 08 00 DA 0D 80 13 00 00 00 00 00 00 63 [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:39]Read from MH i2c: E2 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 62 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 62 00 DA 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8F C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [11:03: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 8F C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:39]wFMCommunicate OK [11:03:39]SAM_PROTO_GetFieldsCounters done [11:03:39]requested_item shift.num is exist - process it [11:03:39]requested_item shift.opened is exist - process it [11:03:39]req_shift_opened [11:03:39]FM_GetShiftState [11:03:39]SAM_PROTO_GetShiftState [11:03:39]wFMCommunicate request_size=4 [11:03:39]MH_SAM_APDU [11:03:39]CAPDU: 80 13 01 00 [11:03:39]Write to MH i2c: E2 08 00 DB 0D 80 13 01 00 00 00 00 00 65 [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:39]Read from MH i2c: E2 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 0E 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 0E 00 DB 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A6 [11:03:39]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:03:39]wFMCommunicate OK [11:03:39]SAM_PROTO_GetShiftState done [11:03:39]FM_GetShiftState done [11:03:39]req_shift_opened done [11:03:39]requested_item shift.open_date is exist - process it [11:03:39]req_shift_open_date [11:03:39]req_shift_open_date done [11:03:39]produce_requested_data done [11:03:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115599,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:03:39]process_action_free close_receipt [11:03:39]json_value_free [11:03:39]json_value_free done [11:03:39]process_json_proto returns [11:03:39]Send response to host [11:03:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115599,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:03:39]free response buf [11:03:39]execute_script done [11:03:39]execute_script returns [11:03:39]free content buf [11:03:39]Sock 10.Close socket [11:03:39]Sock 10.Thread stoped [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:36]accept exits with 7 [11:07:36]New connection [11:07:36]New thread 3067194724 created [11:07:36]Thread 3067051364 joined [11:07:36]Waiting for new connection... [11:07:36] Sock 7.Parse request [11:07:36]Sock 7.Check first char [11:07:36]Sock 7.First char is OK [11:07:36]request: POST /json_proto HTTP/1.0 [11:07:36]Method: POST [11:07:36]URL: /json_proto [11:07:36]Method is POST - this is cgi request [11:07:36]url: /json_proto [11:07:36]query_string will be loaded in cgi processing [11:07:36]execute_cgi json_proto POST (null) [11:07:36]execute_cgi path=json_proto method=POST [11:07:36]POST find Content-Length [11:07:36]Host: 172.17.41.136:8080 [11:07:36]Content-Length: 755 [11:07:36]Content-Type: application/json [11:07:36] [11:07:36]POST finish read [11:07:36]Found Content-Length = 755 [11:07:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A3002200", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:36]execute_script... [11:07: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)24617565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A3002200", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:36]POST & json_proto [11:07:36]process_json_proto [11:07:36]json parsed OK: [11:07:36]protocol is kg_v1.0 [11:07:36]action value=close_receipt [11:07:36]process_action close_receipt [11:07:36]cmd_close_receipt [11:07:36]MH_GetDate [11:07:36]Write to MH i2c: F0 00 00 DC 0D D8 [11:07:36]Write i2c OK [11:07:36]MH_I2C_Read... [11:07:36]Read from MH i2c: F0 [11:07:36]MH_I2C_Read... [11:07:36]Read from MH i2c: F0 09 00 [11:07:36]MH_I2C_Read... [11:07:36]Read from MH i2c: F0 09 00 DC 0D 00 F9 4B F1 66 1B D0 5A 64 25 [11:07:36]GetLastDocTimeStamp 1727089415 [11:07:36]current date 1727089657 [11:07:36]FM_GetShiftState [11:07:36]SAM_PROTO_GetShiftState [11:07:36]wFMCommunicate request_size=4 [11:07:36]MH_SAM_APDU [11:07:36]CAPDU: 80 13 01 00 [11:07:36]Write to MH i2c: E2 08 00 DD 0D 80 13 01 00 00 00 00 00 67 [11:07:36]Write i2c OK [11:07:36]MH_I2C_Read... [11:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:36]Read from MH i2c: E2 [11:07:36]MH_I2C_Read... [11:07:36]Read from MH i2c: E2 0E 00 [11:07:36]MH_I2C_Read... [11:07:36]Read from MH i2c: E2 0E 00 DD 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A8 [11:07:36]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:07:36]wFMCommunicate OK [11:07:36]SAM_PROTO_GetShiftState done [11:07:36]FM_GetShiftState done [11:07:36]opened in 1727052070 [11:07:36]opened+sec_in_day 1727138470 [11:07:36]quantity*price = 0 [11:07:36]sum+1 = 1 [11:07:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 83 23.09.2024 11:07 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 3002200 ФМ: 0000000000871830 ФД: 115600 ФПД: 228535881539758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110737&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115600&fm=228535881539758&tin=02508201610067®Number=0000000000091831&sum=0 [11:07:37]StoreToDocumentArchive [11:07:37]shift 472 fd 115600 [11:07:37]save to /storage/0472/doc_00115600 [11:07:37]save last doc name /storage/0472/doc_00115600 to /storage/kkm_last_doc_name [11:07:37]save OK [11:07:37]Clear old archive folders... [11:07:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:37]tlvbuf is 0098EB70 [11:07:37]SAM_PROTO_ClearQueue [11:07:37]wFMCommunicate request_size=4 [11:07:37]MH_SAM_APDU [11:07:37]CAPDU: 80 09 00 00 [11:07:37]Write to MH i2c: E2 08 00 EA 0D 80 09 00 00 00 00 00 00 69 [11:07:37]Write i2c OK [11:07:37]MH_I2C_Read... [11:07:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:37]Read from MH i2c: E2 [11:07:37]MH_I2C_Read... [11:07:37]Read from MH i2c: E2 03 00 [11:07:37]MH_I2C_Read... [11:07:37]Read from MH i2c: E2 03 00 EA 0D 00 90 00 6B [11:07:37]RAPDU: 90 00 [11:07:37]wFMCommunicate OK [11:07:37]SAM_PROTO_ClearQueue done [11:07:37]KKMCreateOFDPacket [11:07:37]OFDProtocolAddRootSTLVToBuf [11:07:37]FM_MakeSignedData [11:07:37]FM_MakeSignedData [11:07:37]SAM_PROTO_SignData [11:07:37]wFMCommunicate request_size=4 [11:07:37]MH_SAM_APDU [11:07:37]CAPDU: 80 0D 01 02 [11:07:37]Write to MH i2c: E2 08 00 EB 0D 80 0D 01 02 00 00 00 00 71 [11:07:37]Write i2c OK [11:07:37]MH_I2C_Read... [11:07:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:38]Read from MH i2c: E2 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: E2 03 00 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: E2 03 00 EB 0D 00 90 00 6C [11:07:38]RAPDU: 90 00 [11:07:38]wFMCommunicate OK [11:07:38]wFMCommunicate request_size=255 [11:07:38]MH_SAM_APDU [11:07: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 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F9 4B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 90 C3 01 00 35 04 06 00 CF [11:07:38]Write to MH i2c: E2 02 01 EC 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 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F9 4B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 90 C3 01 00 35 04 06 00 CF 00 00 CF [11:07:38]Write i2c OK [11:07:38]MH_I2C_Read... [11:07:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:38]Read from MH i2c: E2 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: E2 03 00 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: E2 03 00 EC 0D 00 90 00 6D [11:07:38]RAPDU: 90 00 [11:07:38]wFMCommunicate OK [11:07:38]wFMCommunicate request_size=10 [11:07:38]MH_SAM_APDU [11:07:38]CAPDU: 80 0D 02 02 05 DA 28 09 A0 AE [11:07:38]Write to MH i2c: E2 0D 00 ED 0D 80 0D 02 02 05 00 DA 28 09 A0 AE 00 00 D7 [11:07:38]Write i2c OK [11:07:38]MH_I2C_Read... [11:07:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:38]Read from MH i2c: E2 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: E2 03 00 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: E2 03 00 ED 0D 00 90 00 6E [11:07:38]RAPDU: 90 00 [11:07:38]wFMCommunicate OK [11:07:38]wFMCommunicate request_size=4 [11:07:38]MH_SAM_APDU [11:07:38]CAPDU: 80 0D 03 02 [11:07:38]Write to MH i2c: E2 08 00 EE 0D 80 0D 03 02 00 00 00 00 76 [11:07:38]Write i2c OK [11:07:38]MH_I2C_Read... [11:07:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:38]OFD Sender: No OFD packet to send [11:07:38]Read from MH i2c: E2 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: E2 0B 00 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: E2 0B 00 EE 0D 00 78 9D 30 0D F3 67 A8 0E 90 00 D9 [11:07:38]RAPDU: 78 9D 30 0D F3 67 A8 0E 90 00 [11:07:38]wFMCommunicate OK [11:07:38]SAM_PROTO_SignData done [11:07:38]FM_MakeSignedData done [11:07:38]CreateOFDProtocolMessage [11:07:38]wFMCommunicate request_size=4 [11:07:38]MH_SAM_APDU [11:07:38]CAPDU: 80 11 00 00 [11:07:38]Write to MH i2c: E2 08 00 EF 0D 80 11 00 00 00 00 00 00 76 [11:07:38]Write i2c OK [11:07:38]MH_I2C_Read... [11:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:38]Read from MH i2c: E2 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: E2 17 00 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: E2 17 00 EF 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C4 [11:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:07:38]wFMCommunicate OK [11:07:38]CreateOFDProtocolMessage done [11:07:38]OFDSenderStorePacket 115600 [11:07:38]StoreOFDPacket docnum=115600 [11:07:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 FD D3 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F9 4B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 90 C3 01 00 35 04 06 00 CF DA 28 09 A0 AE 78 9D 30 0D F3 67 A8 0E [11:07:38]CheckFolder [11:07:38]dirname=/storage/ofd_packets [11:07:38]CheckFolder done [11:07:38]ProducePacketName [11:07:38]name=ofd_packets/00115600 [11:07:38]NVStorageSaveData ofd_packets/00115600 [11:07:38]File name is /storage/ofd_packets/00115600 [11:07:38]Write 301 bytes [11:07:38]NVStorageSaveData done [11:07:38]OFDSenderStorePacket done [11:07:38]KKMCreateOFDPacket done [11:07:38]NVStorageSaveData kkm_last_timestamp [11:07:38]File name is /storage/kkm_last_timestamp [11:07:38]Write 4 bytes [11:07:38]NVStorageSaveData done [11:07:38]ExternCall_PrintAddStr [11:07:38]wPrintStart [11:07:38]Write to MH i2c: 01 00 00 F0 0D FD [11:07:38]Write i2c OK [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: 01 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: 01 07 00 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: 01 07 00 F0 0D 00 00 00 00 00 FF 0F 12 [11:07:38]RasterBufferAndPrint [11:07:38]line Счет N : (1)24617565 [11:07:38]line ИНН: 02508201610067 [11:07:38]line Контрольно-Кассовый Чек [11:07:38]line ПРОДАЖА [11:07:38]line ТРК (МРК, ГНК) : 32 [11:07:38]line Товар: 2710124500 [11:07:38]line Аи-95-К-5 [11:07:38]line 20.000 * 0.00 [11:07:38]line = 0.00 [11:07:38]line НДС 12% НСП 1% [11:07:38]line > о реализуемом товаре [11:07:38]line ИТОГО: 0.00 [11:07:38]line НСП 1% : 0.00 [11:07:38]line НДС 12% : 0.00 [11:07:38]line Наличными: 0.00 [11:07:38]line Безнал.: 0.00 [11:07:38]line Место: АЗС № 90 "Партнер Нефть" [11:07:38]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:07:38]line СНО: Общий режим [11:07:38]line Чек 83 23.09.2024 11:07 [11:07:38]line Смена: 472 ФФД: 1.0 [11:07:38]line ЗНМ: 0300000120 [11:07:38]line РНМ: 0000000000091831 [11:07:38]line Версия ККМ: 001 [11:07:38]line Талоны: ТК ГПНА Online [11:07:38]line 3002200 [11:07:38]line ФМ: 0000000000871830 [11:07:38]line ФД: 115600 [11:07:38]line ФПД: 228535881539758 [11:07:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110737&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115600&fm=228535881539758&tin=02508201610067®Number=0000000000091831&sum=0 [11:07:38]written 0, free lines is 4095 [11:07:38]OFD Sender: Processing packet 115600 [packets to send 481, broken 480] [11:07:38]ProducePacketName [11:07:38]name=ofd_packets/00115600 [11:07:38]OFD Sender: To server: pG, [11:07:38]CommunicateWithHost lk.salyk.kg:30040 [11:07:38]ConnectInit lk.salyk.kg [11:07:38]Write to MH i2c: 01 00 00 19 0E 27 [11:07:38]Write i2c OK [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: 01 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: 01 07 00 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: 01 07 00 19 0E 00 00 00 00 00 6D 0C A7 [11:07:38]RasterBufferAndPrint [11:07:38]line [11:07:38]line [11:07:38]line [11:07:38]line [11:07:38]line [11:07:38]written 0, free lines is 3184 [11:07:38]MH_Cut [11:07:38]Write to MH i2c: D1 01 00 20 0E 01 00 [11:07:38]Write i2c OK [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: D1 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: D1 01 00 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: D1 01 00 20 0E 00 FF [11:07:38]Write to MH i2c: 01 00 00 21 0E 2F [11:07:38]Write i2c OK [11:07:38]MH_I2C_Read... [11:07:38]Connected sock=11 [11:07: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 38 33 30 0F 01 00 00 FD D3 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F9 4B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 90 C3 01 00 35 04 06 00 CF DA 28 09 A0 AE 78 9D 30 0D F3 67 A8 0E [11:07:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9A CA 47 00 B9 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 38 33 30 10 04 04 00 90 C3 01 00 F4 03 04 00 3C F1 F0 66 B6 04 01 00 00 2F 0B 84 8E DF B8 B2 F4 [11:07:39]CommunicateWithHost err = 0 [11:07:39]CheckOFDResponse [11:07:39]1017 (14) - 77093643461234 [11:07:39]1041 (16) - 0000000000871830 [11:07:39]1040 (4) - 115600 [11:07:39]1012 (4) - 23.09.2024 04:40 [11:07:39]1206 (1) - 0 [11:07:39]OFD Sender: Remove packet 115600 [11:07:39]ProducePacketName [11:07:39]name=ofd_packets/00115600 [11:07:39]NVStorageDeleteData [11:07:39]OFD Sender: No OFD packet to send [11:07:40]*** Cut start [11:07:40]*** Partial cut [11:07:40]*** CUTSNS_PIN = 1 [11:07:40]*** CUTSNS_PIN = 0 [11:07:40]*** Brake cut motor [11:07:40]Read from MH i2c: 01 [11:07:40]MH_I2C_Read... [11:07:40]*** Stop cut motor [11:07:40]*** Cut end [11:07:40]Read from MH i2c: 01 07 00 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: 01 07 00 21 0E 00 00 00 00 00 FF 0F 44 [11:07:40]process_action close_receipt done [11:07:40]requested_data is exist [11:07:40]produce_requested_data [11:07:40]requested_item fm.sn is exist - process it [11:07:40]wFMCommunicate request_size=4 [11:07:40]MH_SAM_APDU [11:07:40]CAPDU: 80 11 00 00 [11:07:40]Write to MH i2c: E2 08 00 22 0E 80 11 00 00 00 00 00 00 AA [11:07:40]Write i2c OK [11:07:40]MH_I2C_Read... [11:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:40]Read from MH i2c: E2 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: E2 17 00 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: E2 17 00 22 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F8 [11:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:07:40]wFMCommunicate OK [11:07:40]requested_item fd.num is exist - process it [11:07:40]SAM_PROTO_GetFieldsCounters [11:07:40]wFMCommunicate request_size=4 [11:07:40]MH_SAM_APDU [11:07:40]CAPDU: 80 13 00 00 [11:07:40]Write to MH i2c: E2 08 00 23 0E 80 13 00 00 00 00 00 00 AD [11:07:40]Write i2c OK [11:07:40]MH_I2C_Read... [11:07:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:41]Read from MH i2c: E2 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 62 00 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 62 00 23 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 90 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [11:07: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 90 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:41]wFMCommunicate OK [11:07:41]SAM_PROTO_GetFieldsCounters done [11:07:41]requested_item shift.num is exist - process it [11:07:41]requested_item shift.opened is exist - process it [11:07:41]req_shift_opened [11:07:41]FM_GetShiftState [11:07:41]SAM_PROTO_GetShiftState [11:07:41]wFMCommunicate request_size=4 [11:07:41]MH_SAM_APDU [11:07:41]CAPDU: 80 13 01 00 [11:07:41]Write to MH i2c: E2 08 00 24 0E 80 13 01 00 00 00 00 00 AF [11:07:41]Write i2c OK [11:07:41]MH_I2C_Read... [11:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:41]Read from MH i2c: E2 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 0E 00 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 0E 00 24 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F0 [11:07:41]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:07:41]wFMCommunicate OK [11:07:41]SAM_PROTO_GetShiftState done [11:07:41]FM_GetShiftState done [11:07:41]req_shift_opened done [11:07:41]requested_item shift.open_date is exist - process it [11:07:41]req_shift_open_date [11:07:41]req_shift_open_date done [11:07:41]produce_requested_data done [11:07:41]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115600,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:07:41]process_action_free close_receipt [11:07:41]json_value_free [11:07:41]json_value_free done [11:07:41]process_json_proto returns [11:07:41]Send response to host [11:07:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115600,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:07:41]free response buf [11:07:41]execute_script done [11:07:41]execute_script returns [11:07:41]free content buf [11:07:41]Sock 7.Close socket [11:07:41]Sock 7.Thread stoped [11:07:41]accept exits with 9 [11:07:41]New connection [11:07:41]New thread 3067051364 created [11:07:41]Thread 3067194724 joined [11:07:41]Waiting for new connection... [11:07:41] Sock 9.Parse request [11:07:41]Sock 9.Check first char [11:07:41]Sock 9.First char is OK [11:07:41]request: POST /json_proto HTTP/1.0 [11:07:41]Method: POST [11:07:41]URL: /json_proto [11:07:41]Method is POST - this is cgi request [11:07:41]url: /json_proto [11:07:41]query_string will be loaded in cgi processing [11:07:41]execute_cgi json_proto POST (null) [11:07:41]execute_cgi path=json_proto method=POST [11:07:41]POST find Content-Length [11:07:41]Host: 172.17.41.136:8080 [11:07:41]Content-Length: 794 [11:07:41]Content-Type: application/json [11:07:41] [11:07:41]POST finish read [11:07:41]Found Content-Length = 794 [11:07:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 50.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\u000A90796", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:41]execute_script... [11:07: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)24617563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 50.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\u000A90796", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:41]POST & json_proto [11:07:41]process_json_proto [11:07:41]json parsed OK: [11:07:41]protocol is kg_v1.0 [11:07:41]action value=close_receipt [11:07:41]process_action close_receipt [11:07:41]cmd_close_receipt [11:07:41]MH_GetDate [11:07:41]Write to MH i2c: F0 00 00 25 0E 22 [11:07:41]Write i2c OK [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: F0 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: F0 09 00 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: F0 09 00 25 0E 00 FE 4B F1 66 1B D0 5A 64 74 [11:07:41]GetLastDocTimeStamp 1727089657 [11:07:41]current date 1727089662 [11:07:41]FM_GetShiftState [11:07:41]SAM_PROTO_GetShiftState [11:07:41]wFMCommunicate request_size=4 [11:07:41]MH_SAM_APDU [11:07:41]CAPDU: 80 13 01 00 [11:07:41]Write to MH i2c: E2 08 00 26 0E 80 13 01 00 00 00 00 00 B1 [11:07:41]Write i2c OK [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 [11:07:41]MH_I2C_Read... [11:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:41]Read from MH i2c: E2 0E 00 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 0E 00 26 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F2 [11:07:41]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:07:41]wFMCommunicate OK [11:07:41]SAM_PROTO_GetShiftState done [11:07:41]FM_GetShiftState done [11:07:41]opened in 1727052070 [11:07:41]opened+sec_in_day 1727138470 [11:07:41]quantity*price = 0 [11:07:41]sum+1 = 1 [11:07:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 84 23.09.2024 11:07 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливная Карта 90796 ФМ: 0000000000871830 ФД: 115601 ФПД: 98254781394105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110742&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115601&fm=98254781394105&tin=02508201610067®Number=0000000000091831&sum=0 [11:07:42]StoreToDocumentArchive [11:07:42]shift 472 fd 115601 [11:07:42]save to /storage/0472/doc_00115601 [11:07:42]save last doc name /storage/0472/doc_00115601 to /storage/kkm_last_doc_name [11:07:42]save OK [11:07:42]Clear old archive folders... [11:07:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:42]tlvbuf is 0093BA80 [11:07:42]SAM_PROTO_ClearQueue [11:07:42]wFMCommunicate request_size=4 [11:07:42]MH_SAM_APDU [11:07:42]CAPDU: 80 09 00 00 [11:07:42]Write to MH i2c: E2 08 00 33 0E 80 09 00 00 00 00 00 00 B3 [11:07:42]Write i2c OK [11:07:42]MH_I2C_Read... [11:07:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:42]Read from MH i2c: E2 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: E2 03 00 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: E2 03 00 33 0E 00 90 00 B5 [11:07:42]RAPDU: 90 00 [11:07:42]wFMCommunicate OK [11:07:42]SAM_PROTO_ClearQueue done [11:07:42]KKMCreateOFDPacket [11:07:42]OFDProtocolAddRootSTLVToBuf [11:07:42]FM_MakeSignedData [11:07:42]FM_MakeSignedData [11:07:42]SAM_PROTO_SignData [11:07:42]wFMCommunicate request_size=4 [11:07:42]MH_SAM_APDU [11:07:42]CAPDU: 80 0D 01 02 [11:07:42]Write to MH i2c: E2 08 00 34 0E 80 0D 01 02 00 00 00 00 BB [11:07:42]Write i2c OK [11:07:42]MH_I2C_Read... [11:07:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:43]Read from MH i2c: E2 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 03 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 03 00 34 0E 00 90 00 B6 [11:07:43]RAPDU: 90 00 [11:07:43]wFMCommunicate OK [11:07:43]wFMCommunicate request_size=255 [11:07:43]MH_SAM_APDU [11:07: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 54 00 00 00 F4 03 04 00 FE 4B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 91 C3 01 00 35 04 06 00 59 [11:07:43]Write to MH i2c: E2 02 01 35 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 54 00 00 00 F4 03 04 00 FE 4B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 91 C3 01 00 35 04 06 00 59 00 00 4F [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:43]Read from MH i2c: E2 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 03 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 03 00 35 0E 00 90 00 B7 [11:07:43]RAPDU: 90 00 [11:07:43]wFMCommunicate OK [11:07:43]wFMCommunicate request_size=10 [11:07:43]MH_SAM_APDU [11:07:43]CAPDU: 80 0D 02 02 05 5C B9 57 AC B9 [11:07:43]Write to MH i2c: E2 0D 00 36 0E 80 0D 02 02 05 00 5C B9 57 AC B9 00 00 99 [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:43]Read from MH i2c: E2 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 03 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 03 00 36 0E 00 90 00 B8 [11:07:43]RAPDU: 90 00 [11:07:43]wFMCommunicate OK [11:07:43]wFMCommunicate request_size=4 [11:07:43]MH_SAM_APDU [11:07:43]CAPDU: 80 0D 03 02 [11:07:43]Write to MH i2c: E2 08 00 37 0E 80 0D 03 02 00 00 00 00 C0 [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:43]Read from MH i2c: E2 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 0B 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 0B 00 37 0E 00 97 D0 F9 DF A9 52 89 B6 90 00 3A [11:07:43]RAPDU: 97 D0 F9 DF A9 52 89 B6 90 00 [11:07:43]wFMCommunicate OK [11:07:43]SAM_PROTO_SignData done [11:07:43]FM_MakeSignedData done [11:07:43]CreateOFDProtocolMessage [11:07:43]wFMCommunicate request_size=4 [11:07:43]MH_SAM_APDU [11:07:43]CAPDU: 80 11 00 00 [11:07:43]Write to MH i2c: E2 08 00 38 0E 80 11 00 00 00 00 00 00 C0 [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:43]Read from MH i2c: E2 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 17 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 17 00 38 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0E [11:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:07:43]wFMCommunicate OK [11:07:43]CreateOFDProtocolMessage done [11:07:43]OFDSenderStorePacket 115601 [11:07:43]StoreOFDPacket docnum=115601 [11:07:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 97 92 07 01 5B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 54 00 00 00 F4 03 04 00 FE 4B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 91 C3 01 00 35 04 06 00 59 5C B9 57 AC B9 97 D0 F9 DF A9 52 89 B6 [11:07:43]CheckFolder [11:07:43]dirname=/storage/ofd_packets [11:07:43]CheckFolder done [11:07:43]ProducePacketName [11:07:43]name=ofd_packets/00115601 [11:07:43]NVStorageSaveData ofd_packets/00115601 [11:07:43]File name is /storage/ofd_packets/00115601 [11:07:43]Write 301 bytes [11:07:43]NVStorageSaveData done [11:07:43]OFDSenderStorePacket done [11:07:43]KKMCreateOFDPacket done [11:07:43]NVStorageSaveData kkm_last_timestamp [11:07:43]File name is /storage/kkm_last_timestamp [11:07:43]Write 4 bytes [11:07:43]NVStorageSaveData done [11:07:43]ExternCall_PrintAddStr [11:07:43]wPrintStart [11:07:43]Write to MH i2c: 01 00 00 39 0E 47 [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 07 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 07 00 39 0E 00 00 00 00 00 FF 0F 5C [11:07:43]RasterBufferAndPrint [11:07:43]line Счет N : (1)24617563 [11:07:43]line ИНН: 02508201610067 [11:07:43]line Контрольно-Кассовый Чек [11:07:43]line ПРОДАЖА [11:07:43]line ТРК (МРК, ГНК) : 52 [11:07:43]line Товар: 2710124500 [11:07:43]line Аи-95-К-5 [11:07:43]line 50.000 * 0.00 [11:07:43]line = 0.00 [11:07:43]line НДС 12% НСП 1% [11:07:43]line > о реализуемом товаре [11:07:43]line ИТОГО: 0.00 [11:07:43]line НСП 1% : 0.00 [11:07:43]line НДС 12% : 0.00 [11:07:43]line Наличными: 0.00 [11:07:43]line Безнал.: 0.00 [11:07:43]line Место: АЗС № 90 "Партнер Нефть" [11:07:43]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:07:43]line СНО: Общий режим [11:07:43]line Чек 84 23.09.2024 11:07 [11:07:43]line Смена: 472 ФФД: 1.0 [11:07:43]line ЗНМ: 0300000120 [11:07:43]line РНМ: 0000000000091831 [11:07:43]line Версия ККМ: 001 [11:07:43]line Талоны: Топливная Карта [11:07:43]line 90796 [11:07:43]line ФМ: 0000000000871830 [11:07:43]line ФД: 115601 [11:07:43]line ФПД: 98254781394105 [11:07:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110742&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115601&fm=98254781394105&tin=02508201610067®Number=0000000000091831&sum=0 [11:07:43]written 0, free lines is 4095 [11:07:43]OFD Sender: Processing packet 115601 [packets to send 481, broken 480] [11:07:43]ProducePacketName [11:07:43]name=ofd_packets/00115601 [11:07:43]OFD Sender: To server: pG, [11:07:43]CommunicateWithHost lk.salyk.kg:30040 [11:07:43]ConnectInit lk.salyk.kg [11:07:43]Connected sock=10 [11:07: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 38 33 30 0F 01 00 00 97 92 07 01 5B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 54 00 00 00 F4 03 04 00 FE 4B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 91 C3 01 00 35 04 06 00 59 5C B9 57 AC B9 97 D0 F9 DF A9 52 89 B6 [11:07:43]Write to MH i2c: 01 00 00 62 0E 70 [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 07 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 07 00 62 0E 00 00 00 00 00 81 0C 04 [11:07:43]RasterBufferAndPrint [11:07:43]line [11:07:43]line [11:07:43]line [11:07:43]line [11:07:43]line [11:07:43]written 0, free lines is 3210 [11:07:43]MH_Cut [11:07:44]Write to MH i2c: D1 01 00 69 0E 01 49 [11:07:44]Write i2c OK [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: D1 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: D1 01 00 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: D1 01 00 69 0E 00 48 [11:07:44]Write to MH i2c: 01 00 00 6A 0E 78 [11:07:44]Write i2c OK [11:07:44]MH_I2C_Read... [11:07:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 CB 79 47 00 E4 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 38 33 30 10 04 04 00 91 C3 01 00 F4 03 04 00 41 F1 F0 66 B6 04 01 00 00 0D 8E 56 89 66 DD 07 39 [11:07:44]CommunicateWithHost err = 0 [11:07:44]CheckOFDResponse [11:07:44]1017 (14) - 77093643461234 [11:07:44]1041 (16) - 0000000000871830 [11:07:44]1040 (4) - 115601 [11:07:44]1012 (4) - 23.09.2024 04:40 [11:07:44]1206 (1) - 0 [11:07:44]OFD Sender: Remove packet 115601 [11:07:44]ProducePacketName [11:07:44]name=ofd_packets/00115601 [11:07:44]NVStorageDeleteData [11:07:44]OFD Sender: No OFD packet to send [11:07:45]*** Cut start [11:07:45]*** Partial cut [11:07:45]*** CUTSNS_PIN = 1 [11:07:45]*** CUTSNS_PIN = 0 [11:07:45]*** Brake cut motor [11:07:45]Read from MH i2c: 01 [11:07:45]MH_I2C_Read... [11:07:45]*** Stop cut motor [11:07:45]*** Cut end [11:07:45]Read from MH i2c: 01 07 00 [11:07:45]MH_I2C_Read... [11:07:45]Read from MH i2c: 01 07 00 6A 0E 00 00 00 00 00 FF 0F 8D [11:07:45]process_action close_receipt done [11:07:45]requested_data is exist [11:07:45]produce_requested_data [11:07:45]requested_item fm.sn is exist - process it [11:07:45]wFMCommunicate request_size=4 [11:07:45]MH_SAM_APDU [11:07:45]CAPDU: 80 11 00 00 [11:07:45]Write to MH i2c: E2 08 00 6B 0E 80 11 00 00 00 00 00 00 F3 [11:07:45]Write i2c OK [11:07:45]MH_I2C_Read... [11:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:45]Read from MH i2c: E2 [11:07:45]MH_I2C_Read... [11:07:45]Read from MH i2c: E2 17 00 [11:07:45]MH_I2C_Read... [11:07:45]Read from MH i2c: E2 17 00 6B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 41 [11:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:07:45]wFMCommunicate OK [11:07:45]requested_item fd.num is exist - process it [11:07:45]SAM_PROTO_GetFieldsCounters [11:07:45]wFMCommunicate request_size=4 [11:07:45]MH_SAM_APDU [11:07:45]CAPDU: 80 13 00 00 [11:07:45]Write to MH i2c: E2 08 00 6C 0E 80 13 00 00 00 00 00 00 F6 [11:07:45]Write i2c OK [11:07:45]MH_I2C_Read... [11:07:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:46]Read from MH i2c: E2 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: E2 62 00 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: E2 62 00 6C 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 91 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [11:07: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 91 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:46]wFMCommunicate OK [11:07:46]SAM_PROTO_GetFieldsCounters done [11:07:46]requested_item shift.num is exist - process it [11:07:46]requested_item shift.opened is exist - process it [11:07:46]req_shift_opened [11:07:46]FM_GetShiftState [11:07:46]SAM_PROTO_GetShiftState [11:07:46]wFMCommunicate request_size=4 [11:07:46]MH_SAM_APDU [11:07:46]CAPDU: 80 13 01 00 [11:07:46]Write to MH i2c: E2 08 00 6D 0E 80 13 01 00 00 00 00 00 F8 [11:07:46]Write i2c OK [11:07:46]MH_I2C_Read... [11:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:46]Read from MH i2c: E2 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: E2 0E 00 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: E2 0E 00 6D 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 39 [11:07:46]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:07:46]wFMCommunicate OK [11:07:46]SAM_PROTO_GetShiftState done [11:07:46]FM_GetShiftState done [11:07:46]req_shift_opened done [11:07:46]requested_item shift.open_date is exist - process it [11:07:46]req_shift_open_date [11:07:46]req_shift_open_date done [11:07:46]produce_requested_data done [11:07:46]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115601,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:07:46]process_action_free close_receipt [11:07:46]json_value_free [11:07:46]json_value_free done [11:07:46]process_json_proto returns [11:07:46]Send response to host [11:07:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115601,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:07:46]free response buf [11:07:46]execute_script done [11:07:46]execute_script returns [11:07:46]free content buf [11:07:46]Sock 9.Close socket [11:07:46]Sock 9.Thread stoped [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27: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:16]accept exits with 7 [11:28:16]New connection [11:28:16]New thread 3067194724 created [11:28:16]Thread 3067051364 joined [11:28:16]Waiting for new connection... [11:28:16] Sock 7.Parse request [11:28:16]Sock 7.Check first char [11:28:16]Sock 7.First char is OK [11:28:16]request: POST /json_proto HTTP/1.0 [11:28:16]Method: POST [11:28:16]URL: /json_proto [11:28:16]Method is POST - this is cgi request [11:28:16]url: /json_proto [11:28:16]query_string will be loaded in cgi processing [11:28:16]execute_cgi json_proto POST (null) [11:28:16]execute_cgi path=json_proto method=POST [11:28:16]POST find Content-Length [11:28:16]Host: 172.17.41.136:8080 [11:28:16]Content-Length: 686 [11:28:16]Content-Type: application/json [11:28:16] [11:28:16]POST finish read [11:28:16]Found Content-Length = 686 [11:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343997", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:16]execute_script... [11:28:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343997", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:16]POST & json_proto [11:28:16]process_json_proto [11:28:16]json parsed OK: [11:28:16]protocol is kg_v1.0 [11:28:16]action value=close_receipt [11:28:16]process_action close_receipt [11:28:16]cmd_close_receipt [11:28:16]MH_GetDate [11:28:16]Write to MH i2c: F0 00 00 6E 0E 6B [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: F0 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: F0 09 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: F0 09 00 6E 0E 00 D1 50 F1 66 1B D0 5A 64 95 [11:28:16]GetLastDocTimeStamp 1727089662 [11:28:16]current date 1727090897 [11:28:16]FM_GetShiftState [11:28:16]SAM_PROTO_GetShiftState [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 13 01 00 [11:28:16]Write to MH i2c: E2 08 00 6F 0E 80 13 01 00 00 00 00 00 FA [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 6F 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 3B [11:28:16]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_GetShiftState done [11:28:16]FM_GetShiftState done [11:28:16]opened in 1727052070 [11:28:16]opened+sec_in_day 1727138470 [11:28:16]quantity*price = 15000 [11:28:16]sum+1 = 15001 [11:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 85 23.09.2024 11:28 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115602 ФПД: 219023803404194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T112817&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115602&fm=219023803404194&tin=02508201610067®Number=0000000000091831&sum=15000 0 [11:28:17]StoreToDocumentArchive [11:28:17]shift 472 fd 115602 [11:28:17]save to /storage/0472/doc_00115602 [11:28:17]save last doc name /storage/0472/doc_00115602 to /storage/kkm_last_doc_name [11:28:17]save OK [11:28:17]Clear old archive folders... [11:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=295 [11:28:17]tlvbuf is 0098E2E0 [11:28:17]SAM_PROTO_ClearQueue [11:28:17]wFMCommunicate request_size=4 [11:28:17]MH_SAM_APDU [11:28:17]CAPDU: 80 09 00 00 [11:28:17]Write to MH i2c: E2 08 00 7C 0E 80 09 00 00 00 00 00 00 FC [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:17]Read from MH i2c: E2 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 7C 0E 00 90 00 FE [11:28:17]RAPDU: 90 00 [11:28:17]wFMCommunicate OK [11:28:17]SAM_PROTO_ClearQueue done [11:28:17]KKMCreateOFDPacket [11:28:17]OFDProtocolAddRootSTLVToBuf [11:28:17]FM_MakeSignedData [11:28:17]FM_MakeSignedData [11:28:17]SAM_PROTO_SignData [11:28:17]wFMCommunicate request_size=4 [11:28:17]MH_SAM_APDU [11:28:17]CAPDU: 80 0D 01 02 [11:28:17]Write to MH i2c: E2 08 00 7D 0E 80 0D 01 02 00 00 00 00 04 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:17]Read from MH i2c: E2 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 7D 0E 00 90 00 FF [11:28:17]RAPDU: 90 00 [11:28:17]wFMCommunicate OK [11:28:17]wFMCommunicate request_size=255 [11:28:17]MH_SAM_APDU [11:28:17]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D1 50 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [11:28:17]Write to MH i2c: E2 02 01 7E 0E 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D1 50 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 79 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]OFD Sender: No OFD packet to send [11:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:17]Read from MH i2c: E2 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 7E 0E 00 90 00 00 [11:28:17]RAPDU: 90 00 [11:28:17]wFMCommunicate OK [11:28:17]wFMCommunicate request_size=54 [11:28:17]MH_SAM_APDU [11:28:17]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 92 C3 01 00 35 04 06 00 C7 33 73 FF CF A2 [11:28:17]Write to MH i2c: E2 39 00 7F 0E 80 0D 02 02 31 00 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 92 C3 01 00 35 04 06 00 C7 33 73 FF CF A2 00 00 59 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:17]Read from MH i2c: E2 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 7F 0E 00 90 00 01 [11:28:17]RAPDU: 90 00 [11:28:17]wFMCommunicate OK [11:28:17]wFMCommunicate request_size=4 [11:28:17]MH_SAM_APDU [11:28:17]CAPDU: 80 0D 03 02 [11:28:17]Write to MH i2c: E2 08 00 80 0E 80 0D 03 02 00 00 00 00 09 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:17]Read from MH i2c: E2 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 0B 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 0B 00 80 0E 00 3A F8 28 CE A4 D5 72 1A 90 00 37 [11:28:17]RAPDU: 3A F8 28 CE A4 D5 72 1A 90 00 [11:28:17]wFMCommunicate OK [11:28:17]SAM_PROTO_SignData done [11:28:17]FM_MakeSignedData done [11:28:17]CreateOFDProtocolMessage [11:28:17]wFMCommunicate request_size=4 [11:28:17]MH_SAM_APDU [11:28:17]CAPDU: 80 11 00 00 [11:28:17]Write to MH i2c: E2 08 00 81 0E 80 11 00 00 00 00 00 00 09 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:17]Read from MH i2c: E2 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 17 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 17 00 81 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 57 [11:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:28:17]wFMCommunicate OK [11:28:17]CreateOFDProtocolMessage done [11:28:17]OFDSenderStorePacket 115602 [11:28:17]StoreOFDPacket docnum=115602 [11:28:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3B 01 00 00 7B 9B 33 01 19 AC 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D1 50 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 92 C3 01 00 35 04 06 00 C7 33 73 FF CF A2 3A F8 28 CE A4 D5 72 1A [11:28:17]CheckFolder [11:28:17]dirname=/storage/ofd_packets [11:28:17]CheckFolder done [11:28:17]ProducePacketName [11:28:17]name=ofd_packets/00115602 [11:28:17]NVStorageSaveData ofd_packets/00115602 [11:28:17]File name is /storage/ofd_packets/00115602 [11:28:17]Write 345 bytes [11:28:17]NVStorageSaveData done [11:28:17]OFDSenderStorePacket done [11:28:17]KKMCreateOFDPacket done [11:28:17]NVStorageSaveData kkm_last_timestamp [11:28:17]File name is /storage/kkm_last_timestamp [11:28:17]Write 4 bytes [11:28:17]NVStorageSaveData done [11:28:17]ExternCall_PrintAddStr [11:28:17]wPrintStart [11:28:17]Write to MH i2c: 01 00 00 82 0E 90 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: 01 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: 01 07 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: 01 07 00 82 0E 00 00 00 00 00 FF 0F A5 [11:28:17]RasterBufferAndPrint [11:28:17]line Счет N : (3)343997 [11:28:17]line ИНН: 02508201610067 [11:28:17]line Контрольно-Кассовый Чек [11:28:17]line ПРОДАЖА [11:28:17]line Товар: 5449000027450 [11:28:17]line Напиток FuzeTea чай манго,ром 0,5л [11:28:17]line 2.000 * 75.00 [11:28:17]line = 150.00 [11:28:17]line НДС 12% НСП 1% [11:28:17]line > о реализуемом товаре [11:28:17]line ИТОГО: 150.00 [11:28:17]line НСП 1% : 1.33 [11:28:17]line НДС 12% : 15.93 [11:28:17]line Наличными: 150.00 [11:28:17]line Безнал.: 0.00 [11:28:17]line Место: АЗС № 90 "Партнер Нефть" [11:28:17]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:28:17]line СНО: Общий режим [11:28:17]line Чек 85 23.09.2024 11:28 [11:28:17]line Смена: 472 ФФД: 1.0 [11:28:17]line ЗНМ: 0300000120 [11:28:17]line РНМ: 0000000000091831 [11:28:17]line Версия ККМ: 001 [11:28:17]line ФМ: 0000000000871830 [11:28:17]line ФД: 115602 [11:28:17]line ФПД: 219023803404194 [11:28:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T112817&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115602&fm=219023803404194&tin=02508201610067®Number=0000000000091831&sum=15000 [11:28:17]line 0 [11:28:17]written 0, free lines is 4095 [11:28:18]OFD Sender: Processing packet 115602 [packets to send 481, broken 480] [11:28:18]ProducePacketName [11:28:18]name=ofd_packets/00115602 [11:28:18]OFD Sender: To server: pG, [11:28:18]CommunicateWithHost lk.salyk.kg:30040 [11:28:18]ConnectInit lk.salyk.kg [11:28:18]Write to MH i2c: 01 00 00 AA 0E B8 [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: 01 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: 01 07 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: 01 07 00 AA 0E 00 00 00 00 00 57 0C 22 [11:28:18]RasterBufferAndPrint [11:28:18]line [11:28:18]line [11:28:18]line [11:28:18]line [11:28:18]line [11:28:18]written 0, free lines is 3163 [11:28:18]MH_Cut [11:28:18]Write to MH i2c: D1 01 00 B1 0E 01 91 [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: D1 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: D1 01 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: D1 01 00 B1 0E 00 90 [11:28:18]Write to MH i2c: 01 00 00 B2 0E C0 [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:18]Connected sock=10 [11:28: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 38 33 30 3B 01 00 00 7B 9B 33 01 19 AC 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D1 50 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 92 C3 01 00 35 04 06 00 C7 33 73 FF CF A2 3A F8 28 CE A4 D5 72 1A [11:28:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F5 95 47 00 0F 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 38 33 30 10 04 04 00 92 C3 01 00 F4 03 04 00 14 F6 F0 66 B6 04 01 00 00 3E F1 E1 52 85 59 58 67 [11:28:18]CommunicateWithHost err = 0 [11:28:18]CheckOFDResponse [11:28:18]1017 (14) - 77093643461234 [11:28:18]1041 (16) - 0000000000871830 [11:28:18]1040 (4) - 115602 [11:28:18]1012 (4) - 23.09.2024 05:01 [11:28:18]1206 (1) - 0 [11:28:18]OFD Sender: Remove packet 115602 [11:28:18]ProducePacketName [11:28:18]name=ofd_packets/00115602 [11:28:18]NVStorageDeleteData [11:28:19]OFD Sender: No OFD packet to send [11:28:19]*** Cut start [11:28:19]*** Partial cut [11:28:19]*** CUTSNS_PIN = 1 [11:28:19]*** CUTSNS_PIN = 0 [11:28:19]*** Brake cut motor [11:28:20]Read from MH i2c: 01 [11:28:20]MH_I2C_Read... [11:28:20]*** Stop cut motor [11:28:20]*** Cut end [11:28:20]Read from MH i2c: 01 07 00 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: 01 07 00 B2 0E 00 00 00 00 00 FF 0F D5 [11:28:20]process_action close_receipt done [11:28:20]requested_data is exist [11:28:20]produce_requested_data [11:28:20]requested_item fm.sn is exist - process it [11:28:20]wFMCommunicate request_size=4 [11:28:20]MH_SAM_APDU [11:28:20]CAPDU: 80 11 00 00 [11:28:20]Write to MH i2c: E2 08 00 B3 0E 80 11 00 00 00 00 00 00 3B [11:28:20]Write i2c OK [11:28:20]MH_I2C_Read... [11:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:20]Read from MH i2c: E2 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: E2 17 00 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: E2 17 00 B3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 89 [11:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:28:20]wFMCommunicate OK [11:28:20]requested_item fd.num is exist - process it [11:28:20]SAM_PROTO_GetFieldsCounters [11:28:20]wFMCommunicate request_size=4 [11:28:20]MH_SAM_APDU [11:28:20]CAPDU: 80 13 00 00 [11:28:20]Write to MH i2c: E2 08 00 B4 0E 80 13 00 00 00 00 00 00 3E [11:28:20]Write i2c OK [11:28:20]MH_I2C_Read... [11:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:20]Read from MH i2c: E2 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: E2 62 00 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: E2 62 00 B4 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 92 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [11:28: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 92 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:20]wFMCommunicate OK [11:28:20]SAM_PROTO_GetFieldsCounters done [11:28:20]requested_item shift.num is exist - process it [11:28:20]requested_item shift.opened is exist - process it [11:28:20]req_shift_opened [11:28:20]FM_GetShiftState [11:28:20]SAM_PROTO_GetShiftState [11:28:20]wFMCommunicate request_size=4 [11:28:20]MH_SAM_APDU [11:28:20]CAPDU: 80 13 01 00 [11:28:20]Write to MH i2c: E2 08 00 B5 0E 80 13 01 00 00 00 00 00 40 [11:28:20]Write i2c OK [11:28:20]MH_I2C_Read... [11:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:20]Read from MH i2c: E2 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: E2 0E 00 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: E2 0E 00 B5 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 81 [11:28:20]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:28:20]wFMCommunicate OK [11:28:20]SAM_PROTO_GetShiftState done [11:28:20]FM_GetShiftState done [11:28:20]req_shift_opened done [11:28:20]requested_item shift.open_date is exist - process it [11:28:20]req_shift_open_date [11:28:20]req_shift_open_date done [11:28:20]produce_requested_data done [11:28:20]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115602,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:28:20]process_action_free close_receipt [11:28:20]json_value_free [11:28:20]json_value_free done [11:28:20]process_json_proto returns [11:28:20]Send response to host [11:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115602,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:28:20]free response buf [11:28:20]execute_script done [11:28:20]execute_script returns [11:28:20]free content buf [11:28:20]Sock 7.Close socket [11:28:20]Sock 7.Thread stoped [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:43]accept exits with 9 [11:28:43]New connection [11:28:43]New thread 3067051364 created [11:28:43]Thread 3067194724 joined [11:28:43]Waiting for new connection... [11:28:43] Sock 9.Parse request [11:28:43]Sock 9.Check first char [11:28:43]Sock 9.First char is OK [11:28:43]request: POST /json_proto HTTP/1.0 [11:28:43]Method: POST [11:28:43]URL: /json_proto [11:28:43]Method is POST - this is cgi request [11:28:43]url: /json_proto [11:28:43]query_string will be loaded in cgi processing [11:28:43]execute_cgi json_proto POST (null) [11:28:43]execute_cgi path=json_proto method=POST [11:28:43]POST find Content-Length [11:28:43]Host: 172.17.41.136:8080 [11:28:43]Content-Length: 903 [11:28:43]Content-Type: application/json [11:28:43] [11:28:43]POST finish read [11:28:43]Found Content-Length = 903 [11:28:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343998", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 204.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:43]execute_script... [11:28:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343998", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 204.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:43]POST & json_proto [11:28:43]process_json_proto [11:28:43]json parsed OK: [11:28:43]protocol is kg_v1.0 [11:28:43]action value=close_receipt [11:28:43]process_action close_receipt [11:28:43]cmd_close_receipt [11:28:43]MH_GetDate [11:28:43]Write to MH i2c: F0 00 00 B6 0E B3 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: F0 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: F0 09 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: F0 09 00 B6 0E 00 EC 50 F1 66 1B D0 5A 64 F8 [11:28:43]GetLastDocTimeStamp 1727090897 [11:28:43]current date 1727090924 [11:28:43]FM_GetShiftState [11:28:43]SAM_PROTO_GetShiftState [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 13 01 00 [11:28:43]Write to MH i2c: E2 08 00 B7 0E 80 13 01 00 00 00 00 00 42 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 0E 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 0E 00 B7 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 83 [11:28:43]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:28:43]wFMCommunicate OK [11:28:43]SAM_PROTO_GetShiftState done [11:28:43]FM_GetShiftState done [11:28:43]opened in 1727052070 [11:28:43]opened+sec_in_day 1727138470 [11:28:43]quantity*price = 15400 [11:28:43]sum+1 = 15401 [11:28:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 204.00 НСП 1% : 1.80 НДС 12% : 21.66 Наличными: 204.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 86 23.09.2024 11:28 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115603 ФПД: 46881082863171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T112844&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115603&fm=46881082863171&tin=02508201610067®Number=0000000000091831&sum=20400 0 [11:28:44]StoreToDocumentArchive [11:28:44]shift 472 fd 115603 [11:28:44]save to /storage/0472/doc_00115603 [11:28:44]save last doc name /storage/0472/doc_00115603 to /storage/kkm_last_doc_name [11:28:44]save OK [11:28:44]Clear old archive folders... [11:28:44]ProcessDocumentItem done err = 0, tmpTLVsize=392 [11:28:44]tlvbuf is 0098DC00 [11:28:44]SAM_PROTO_ClearQueue [11:28:44]wFMCommunicate request_size=4 [11:28:44]MH_SAM_APDU [11:28:44]CAPDU: 80 09 00 00 [11:28:44]Write to MH i2c: E2 08 00 C4 0E 80 09 00 00 00 00 00 00 44 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:44]Read from MH i2c: E2 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 03 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 03 00 C4 0E 00 90 00 46 [11:28:44]RAPDU: 90 00 [11:28:44]wFMCommunicate OK [11:28:44]SAM_PROTO_ClearQueue done [11:28:44]KKMCreateOFDPacket [11:28:44]OFDProtocolAddRootSTLVToBuf [11:28:44]FM_MakeSignedData [11:28:44]FM_MakeSignedData [11:28:44]SAM_PROTO_SignData [11:28:44]wFMCommunicate request_size=4 [11:28:44]MH_SAM_APDU [11:28:44]CAPDU: 80 0D 01 02 [11:28:44]Write to MH i2c: E2 08 00 C5 0E 80 0D 01 02 00 00 00 00 4C [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:44]Read from MH i2c: E2 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 03 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 03 00 C5 0E 00 90 00 47 [11:28:44]RAPDU: 90 00 [11:28:44]wFMCommunicate OK [11:28:44]wFMCommunicate request_size=255 [11:28:44]MH_SAM_APDU [11:28:44]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [11:28:44]Write to MH i2c: E2 02 01 C6 0E 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 48 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 03 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 03 00 C6 0E 00 90 00 48 [11:28:45]RAPDU: 90 00 [11:28:45]wFMCommunicate OK [11:28:45]wFMCommunicate request_size=151 [11:28:45]MH_SAM_APDU [11:28:45]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 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 EC 50 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 93 C3 01 00 35 04 06 00 2A A3 5A 4A 6E 43 [11:28:45]Write to MH i2c: E2 9A 00 C7 0E 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 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 EC 50 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 93 C3 01 00 35 04 06 00 2A A3 5A 4A 6E 43 00 00 09 [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 03 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 03 00 C7 0E 00 90 00 49 [11:28:45]RAPDU: 90 00 [11:28:45]wFMCommunicate OK [11:28:45]wFMCommunicate request_size=4 [11:28:45]MH_SAM_APDU [11:28:45]CAPDU: 80 0D 03 02 [11:28:45]Write to MH i2c: E2 08 00 C8 0E 80 0D 03 02 00 00 00 00 51 [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 0B 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 0B 00 C8 0E 00 3C 90 32 25 F7 46 68 56 90 00 70 [11:28:45]RAPDU: 3C 90 32 25 F7 46 68 56 90 00 [11:28:45]wFMCommunicate OK [11:28:45]SAM_PROTO_SignData done [11:28:45]FM_MakeSignedData done [11:28:45]CreateOFDProtocolMessage [11:28:45]wFMCommunicate request_size=4 [11:28:45]MH_SAM_APDU [11:28:45]CAPDU: 80 11 00 00 [11:28:45]Write to MH i2c: E2 08 00 C9 0E 80 11 00 00 00 00 00 00 51 [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 17 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 17 00 C9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9F [11:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:28:45]wFMCommunicate OK [11:28:45]CreateOFDProtocolMessage done [11:28:45]OFDSenderStorePacket 115603 [11:28:45]StoreOFDPacket docnum=115603 [11:28:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9C 01 00 00 D9 16 94 01 AC 30 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 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 EC 50 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 93 C3 01 00 35 04 06 00 2A A3 5A 4A 6E 43 3C 90 32 25 F7 46 68 56 [11:28:45]CheckFolder [11:28:45]dirname=/storage/ofd_packets [11:28:45]CheckFolder done [11:28:45]ProducePacketName [11:28:45]name=ofd_packets/00115603 [11:28:45]NVStorageSaveData ofd_packets/00115603 [11:28:45]File name is /storage/ofd_packets/00115603 [11:28:45]Write 442 bytes [11:28:45]NVStorageSaveData done [11:28:45]OFDSenderStorePacket done [11:28:45]KKMCreateOFDPacket done [11:28:45]NVStorageSaveData kkm_last_timestamp [11:28:45]File name is /storage/kkm_last_timestamp [11:28:45]Write 4 bytes [11:28:45]NVStorageSaveData done [11:28:45]ExternCall_PrintAddStr [11:28:45]wPrintStart [11:28:45]Write to MH i2c: 01 00 00 CA 0E D8 [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: 01 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: 01 07 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: 01 07 00 CA 0E 00 00 00 00 00 FF 0F ED [11:28:45]RasterBufferAndPrint [11:28:45]line Счет N : (3)343998 [11:28:45]line ИНН: 02508201610067 [11:28:45]line Контрольно-Кассовый Чек [11:28:45]line ПРОДАЖА [11:28:45]line Товар: 4700000480050 [11:28:45]line Напиток Nitro Energy эн green ж/б 0,45л [11:28:45]line 2.000 * 77.00 [11:28:45]line = 154.00 [11:28:45]line НДС 12% НСП 1% [11:28:45]line > о реализуемом товаре [11:28:45]line Товар: 4700000160358 [11:28:45]line Вода Легенда 1л [11:28:45]line 1.000 * 50.00 [11:28:45]line = 50.00 [11:28:45]line НДС 12% НСП 1% [11:28:45]line > о реализуемом товаре [11:28:45]line ИТОГО: 204.00 [11:28:45]line НСП 1% : 1.80 [11:28:45]line НДС 12% : 21.66 [11:28:45]line Наличными: 204.00 [11:28:45]line Безнал.: 0.00 [11:28:45]line Место: АЗС № 90 "Партнер Нефть" [11:28:45]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:28:45]line СНО: Общий режим [11:28:45]line Чек 86 23.09.2024 11:28 [11:28:45]line Смена: 472 ФФД: 1.0 [11:28:45]line ЗНМ: 0300000120 [11:28:45]line РНМ: 0000000000091831 [11:28:45]line Версия ККМ: 001 [11:28:45]line ФМ: 0000000000871830 [11:28:45]line ФД: 115603 [11:28:45]line ФПД: 46881082863171 [11:28:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T112844&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115603&fm=46881082863171&tin=02508201610067®Number=0000000000091831&sum=20400 [11:28:45]line 0 [11:28:45]OFD Sender: Processing packet 115603 [packets to send 481, broken 480] [11:28:45]ProducePacketName [11:28:45]name=ofd_packets/00115603 [11:28:45]OFD Sender: To server: pG, [11:28:45]CommunicateWithHost lk.salyk.kg:30040 [11:28:45]ConnectInit lk.salyk.kg [11:28:45]written 0, free lines is 4095 [11:28:45]Connected sock=10 [11:28:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9C 01 00 00 D9 16 94 01 AC 30 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 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 EC 50 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 93 C3 01 00 35 04 06 00 2A A3 5A 4A 6E 43 3C 90 32 25 F7 46 68 56 [11:28:46]Write to MH i2c: 01 00 00 F8 0E 06 [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: 01 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: 01 07 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: 01 07 00 F8 0E 00 00 00 00 00 EE 0B 06 [11:28:46]RasterBufferAndPrint [11:28:46]line [11:28:46]line [11:28:46]line [11:28:46]line [11:28:46]line [11:28:46]written 0, free lines is 3059 [11:28:46]MH_Cut [11:28:46]Write to MH i2c: D1 01 00 FF 0E 01 DF [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: D1 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: D1 01 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: D1 01 00 FF 0E 00 DE [11:28:46]Write to MH i2c: 01 00 00 00 0F 0F [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 09 9A 47 00 77 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 93 C3 01 00 F4 03 04 00 2F F6 F0 66 B6 04 01 00 00 D6 E8 3C 51 DB 4E BA E5 [11:28:46]CommunicateWithHost err = 0 [11:28:46]CheckOFDResponse [11:28:46]1017 (14) - 77093643461234 [11:28:46]1041 (16) - 0000000000871830 [11:28:46]1040 (4) - 115603 [11:28:46]1012 (4) - 23.09.2024 05:01 [11:28:46]1206 (1) - 0 [11:28:46]OFD Sender: Remove packet 115603 [11:28:46]ProducePacketName [11:28:46]name=ofd_packets/00115603 [11:28:46]NVStorageDeleteData [11:28:46]OFD Sender: No OFD packet to send [11:28:47]*** Cut start [11:28:47]*** Partial cut [11:28:47]*** CUTSNS_PIN = 1 [11:28:47]*** CUTSNS_PIN = 0 [11:28:47]*** Brake cut motor [11:28:48]Read from MH i2c: 01 [11:28:48]MH_I2C_Read... [11:28:48]*** Stop cut motor [11:28:48]*** Cut end [11:28:48]Read from MH i2c: 01 07 00 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: 01 07 00 00 0F 00 00 00 00 00 FF 0F 24 [11:28:48]process_action close_receipt done [11:28:48]requested_data is exist [11:28:48]produce_requested_data [11:28:48]requested_item fm.sn is exist - process it [11:28:48]wFMCommunicate request_size=4 [11:28:48]MH_SAM_APDU [11:28:48]CAPDU: 80 11 00 00 [11:28:48]Write to MH i2c: E2 08 00 01 0F 80 11 00 00 00 00 00 00 8A [11:28:48]Write i2c OK [11:28:48]MH_I2C_Read... [11:28:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:48]Read from MH i2c: E2 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: E2 17 00 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: E2 17 00 01 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [11:28:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:28:48]wFMCommunicate OK [11:28:48]requested_item fd.num is exist - process it [11:28:48]SAM_PROTO_GetFieldsCounters [11:28:48]wFMCommunicate request_size=4 [11:28:48]MH_SAM_APDU [11:28:48]CAPDU: 80 13 00 00 [11:28:48]Write to MH i2c: E2 08 00 02 0F 80 13 00 00 00 00 00 00 8D [11:28:48]Write i2c OK [11:28:48]MH_I2C_Read... [11:28:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:48]Read from MH i2c: E2 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: E2 62 00 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: E2 62 00 02 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 93 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [11:28:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 93 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:48]wFMCommunicate OK [11:28:48]SAM_PROTO_GetFieldsCounters done [11:28:48]requested_item shift.num is exist - process it [11:28:48]requested_item shift.opened is exist - process it [11:28:48]req_shift_opened [11:28:48]FM_GetShiftState [11:28:48]SAM_PROTO_GetShiftState [11:28:48]wFMCommunicate request_size=4 [11:28:48]MH_SAM_APDU [11:28:48]CAPDU: 80 13 01 00 [11:28:48]Write to MH i2c: E2 08 00 03 0F 80 13 01 00 00 00 00 00 8F [11:28:48]Write i2c OK [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: E2 [11:28:48]MH_I2C_Read... [11:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:48]Read from MH i2c: E2 0E 00 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: E2 0E 00 03 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D0 [11:28:48]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:28:48]wFMCommunicate OK [11:28:48]SAM_PROTO_GetShiftState done [11:28:48]FM_GetShiftState done [11:28:48]req_shift_opened done [11:28:48]requested_item shift.open_date is exist - process it [11:28:48]req_shift_open_date [11:28:48]req_shift_open_date done [11:28:48]produce_requested_data done [11:28:48]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115603,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:28:48]process_action_free close_receipt [11:28:48]json_value_free [11:28:48]json_value_free done [11:28:48]process_json_proto returns [11:28:48]Send response to host [11:28:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115603,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:28:48]free response buf [11:28:48]execute_script done [11:28:48]execute_script returns [11:28:48]free content buf [11:28:48]Sock 9.Close socket [11:28:48]Sock 9.Thread stoped [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:42:08]ConnectInit Can't connect to host [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:42:57]accept exits with 7 [11:42:57]New connection [11:42:57]New thread 3067501924 created [11:42:57]Waiting for new connection... [11:42:57] Sock 7.Parse request [11:42:57]Sock 7.Check first char [11:42:57]Sock 7.First char is OK [11:42:57]request: POST /json_proto HTTP/1.0 [11:42:57]Method: POST [11:42:57]URL: /json_proto [11:42:57]Method is POST - this is cgi request [11:42:57]url: /json_proto [11:42:57]query_string will be loaded in cgi processing [11:42:57]execute_cgi json_proto POST (null) [11:42:57]execute_cgi path=json_proto method=POST [11:42:57]POST find Content-Length [11:42:57]Host: 172.17.41.136:8080 [11:42:57]Content-Length: 215 [11:42:57]Content-Type: application/json [11:42:57] [11:42:57]POST finish read [11:42:57]Found Content-Length = 215 [11:42:57]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" ] } } [11:42:57]execute_script... [11:42:57]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" ] } } [11:42:57]POST & json_proto [11:42:57]process_json_proto [11:42:57]json parsed OK: [11:42:57]protocol is kg_v1.0 [11:42:57]action value=get_value [11:42:57]process_action get_value [11:42:57]cmd_get_value [11:42:57]process_action get_value done [11:42:57]requested_data is exist [11:42:57]produce_requested_data [11:42:57]requested_item kkm.sn is exist - process it [11:42:57]requested_item kkm.ver is exist - process it [11:42:57]requested_item fm.sn is exist - process it [11:42:57]wFMCommunicate request_size=4 [11:42:57]MH_SAM_APDU [11:42:57]CAPDU: 80 11 00 00 [11:42:57]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:42:57]Write i2c OK [11:42:57]MH_I2C_Read... [11:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:57]Read from MH i2c: E2 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 17 00 [11:42:57]MH_I2C_Read... [11:42:57]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 38 33 30 90 00 D8 [11:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:42:57]wFMCommunicate OK [11:42:57]requested_item fd.num is exist - process it [11:42:57]SAM_PROTO_GetFieldsCounters [11:42:57]wFMCommunicate request_size=4 [11:42:57]MH_SAM_APDU [11:42:57]CAPDU: 80 13 00 00 [11:42:57]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:42:57]Write i2c OK [11:42:57]MH_I2C_Read... [11:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:57]Read from MH i2c: E2 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 62 00 [11:42:57]MH_I2C_Read... [11:42:57]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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 93 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [11:42: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 93 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:57]wFMCommunicate OK [11:42:57]SAM_PROTO_GetFieldsCounters done [11:42:57]requested_item shift.num is exist - process it [11:42:57]requested_item shift.opened is exist - process it [11:42:57]req_shift_opened [11:42:57]FM_GetShiftState [11:42:57]SAM_PROTO_GetShiftState [11:42:57]wFMCommunicate request_size=4 [11:42:57]MH_SAM_APDU [11:42:57]CAPDU: 80 13 01 00 [11:42:57]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:42:57]Write i2c OK [11:42:57]MH_I2C_Read... [11:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:57]Read from MH i2c: E2 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 0E 00 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D0 [11:42:57]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:42:57]wFMCommunicate OK [11:42:57]SAM_PROTO_GetShiftState done [11:42:57]FM_GetShiftState done [11:42:57]req_shift_opened done [11:42:57]requested_item shift.open_date is exist - process it [11:42:57]req_shift_open_date [11:42:57]req_shift_open_date done [11:42:57]produce_requested_data done [11:42:57]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115603,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:42:57]process_action_free get_value [11:42:57]json_value_free [11:42:57]json_value_free done [11:42:57]process_json_proto returns [11:42:57]Send response to host [11:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115603,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:42:57]free response buf [11:42:57]execute_script done [11:42:57]execute_script returns [11:42:57]free content buf [11:42:57]Sock 7.Close socket [11:42:57]Sock 7.Thread stoped [11:43:00]OFD Sender: No OFD packet to send [11:43:00]accept exits with 10 [11:43:00]New connection [11:43:00]New thread 3067358564 created [11:43:00]Thread 3067501924 joined [11:43:00]Waiting for new connection... [11:43:00] Sock 10.Parse request [11:43:00]Sock 10.Check first char [11:43:00]Sock 10.First char is OK [11:43:00]request: POST /json_proto HTTP/1.0 [11:43:00]Method: POST [11:43:00]URL: /json_proto [11:43:00]Method is POST - this is cgi request [11:43:00]url: /json_proto [11:43:00]query_string will be loaded in cgi processing [11:43:00]execute_cgi json_proto POST (null) [11:43:00]execute_cgi path=json_proto method=POST [11:43:00]POST find Content-Length [11:43:00]Host: 172.17.41.136:8080 [11:43:00]Content-Length: 331 [11:43:00]Content-Type: application/json [11:43:00] [11:43:00]POST finish read [11:43:00]Found Content-Length = 331 [11:43:00]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" ] } } [11:43:00]execute_script... [11:43:00]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" ] } } [11:43:00]POST & json_proto [11:43:00]process_json_proto [11:43:00]json parsed OK: [11:43:00]protocol is kg_v1.0 [11:43:00]action value=get_value [11:43:00]process_action get_value [11:43:00]cmd_get_value [11:43:00]process_action get_value done [11:43:00]requested_data is exist [11:43:00]produce_requested_data [11:43:00]requested_item fm.sale.total is exist - process it [11:43:00]SAM_PROTO_GetFMData [11:43:00]wFMCommunicate request_size=4 [11:43:00]MH_SAM_APDU [11:43:00]CAPDU: 80 13 03 00 [11:43:00]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:43:00]Write i2c OK [11:43:00]MH_I2C_Read... [11:43:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:43:01]Read from MH i2c: E2 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: E2 FD 00 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 E2 BF 01 00 69 04 A3 00 6F 04 04 00 65 BE 01 00 B1 04 05 00 15 A7 28 81 01 70 04 05 00 59 75 7B 47 01 72 04 04 00 BC 31 AD 39 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 A8 BF E8 28 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 3D 84 68 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 41 AD 01 EF 03 09 90 00 B0 [11:43:01]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E2 BF 01 00 69 04 A3 00 6F 04 04 00 65 BE 01 00 B1 04 05 00 15 A7 28 81 01 70 04 05 00 59 75 7B 47 01 72 04 04 00 BC 31 AD 39 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 A8 BF E8 28 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 3D 84 68 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 41 AD 01 EF 03 09 90 00 [11:43:01]wFMCommunicate OK [11:43:01]wFMCommunicate request_size=4 [11:43:01]MH_SAM_APDU [11:43:01]CAPDU: 80 17 00 00 [11:43:01]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:43:01]Write i2c OK [11:43:01]MH_I2C_Read... [11:43:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:43:01]Read from MH i2c: E2 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: E2 FD 00 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 81 [11:43:01]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:43:01]wFMCommunicate OK [11:43:01]wFMCommunicate request_size=4 [11:43:01]MH_SAM_APDU [11:43:01]CAPDU: 80 17 00 00 [11:43:01]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:43:01]Write i2c OK [11:43:01]MH_I2C_Read... [11:43:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:43:01]Read from MH i2c: E2 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: E2 FD 00 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A7 [11:43:01]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:43:01]wFMCommunicate OK [11:43:01]wFMCommunicate request_size=4 [11:43:01]MH_SAM_APDU [11:43:01]CAPDU: 80 17 00 00 [11:43:01]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:43:01]Write i2c OK [11:43:01]MH_I2C_Read... [11:43:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:43:02]Read from MH i2c: E2 [11:43:02]MH_I2C_Read... [11:43:02]Read from MH i2c: E2 FD 00 [11:43:02]MH_I2C_Read... [11:43:02]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [11:43:02]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:43:02]wFMCommunicate OK [11:43:02]wFMCommunicate request_size=4 [11:43:02]MH_SAM_APDU [11:43:02]CAPDU: 80 17 00 00 [11:43:02]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:43:02]Write i2c OK [11:43:02]MH_I2C_Read... [11:43:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:43:02]Read from MH i2c: E2 [11:43:02]MH_I2C_Read... [11:43:02]Read from MH i2c: E2 E2 00 [11:43:02]MH_I2C_Read... [11:43:02]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [11:43:02]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:43:02]wFMCommunicate OK [11:43:02]SAM_PROTO_GetFMData done [11:43:02]requested_item fm.sale_refund.total is exist - process it [11:43:02]requested_item fm.buy.total is exist - process it [11:43:02]requested_item shift.sale.total is exist - process it [11:43:02]SAM_PROTO_GetShiftData [11:43:02]wFMCommunicate request_size=4 [11:43:02]MH_SAM_APDU [11:43:02]CAPDU: 80 13 02 00 [11:43:02]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:43:02]Write i2c OK [11:43:02]MH_I2C_Read... [11:43:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:43:02]Read from MH i2c: E2 [11:43:02]MH_I2C_Read... [11:43:02]Read from MH i2c: E2 FD 00 [11:43:02]MH_I2C_Read... [11:43:02]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 04 D8 3D 70 04 03 00 BC 54 35 72 04 03 00 48 83 08 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 63 91 06 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 10 8C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CA [11:43:02]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 04 D8 3D 70 04 03 00 BC 54 35 72 04 03 00 48 83 08 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 63 91 06 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 10 8C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:43:02]wFMCommunicate OK [11:43:02]wFMCommunicate request_size=4 [11:43:02]MH_SAM_APDU [11:43:02]CAPDU: 80 17 00 00 [11:43:02]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:43:02]Write i2c OK [11:43:02]MH_I2C_Read... [11:43:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:43:03]Read from MH i2c: E2 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 FD 00 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BB [11:43:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:43:03]wFMCommunicate OK [11:43:03]wFMCommunicate request_size=4 [11:43:03]MH_SAM_APDU [11:43:03]CAPDU: 80 17 00 00 [11:43:03]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:43:03]Write i2c OK [11:43:03]MH_I2C_Read... [11:43:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:43:03]Read from MH i2c: E2 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 FD 00 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [11:43:03]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:43:03]wFMCommunicate OK [11:43:03]wFMCommunicate request_size=4 [11:43:03]MH_SAM_APDU [11:43:03]CAPDU: 80 17 00 00 [11:43:03]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:43:03]Write i2c OK [11:43:03]MH_I2C_Read... [11:43:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:43:03]Read from MH i2c: E2 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 FD 00 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 0D [11:43:03]RAPDU: 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 90 00 [11:43:03]wFMCommunicate OK [11:43:03]wFMCommunicate request_size=4 [11:43:03]MH_SAM_APDU [11:43:03]CAPDU: 80 17 00 00 [11:43:03]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:43:03]Write i2c OK [11:43:03]MH_I2C_Read... [11:43:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [11:43:03]Read from MH i2c: E2 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 CB 00 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 85 [11:43:04]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:43:04]wFMCommunicate OK [11:43:04]SAM_PROTO_GetShiftData done [11:43:04]requested_item shift.sale.total_cash is exist - process it [11:43:04]requested_item shift.sale_refund.total is exist - process it [11:43:04]requested_item shift.sale_refund.total_cash is exist - process it [11:43:04]requested_item shift.buy.total is exist - process it [11:43:04]requested_item shift.buy.total_cash is exist - process it [11:43:04]produce_requested_data done [11:43:04]produce_requested_data return {"fm.sale.total":64618923.73,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":40529.96,"shift.sale.total_cash":34951.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} [11:43:04]process_action_free get_value [11:43:04]json_value_free [11:43:04]json_value_free done [11:43:04]process_json_proto returns [11:43:04]Send response to host [11:43:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64618923.73,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":40529.96,"shift.sale.total_cash":34951.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}}} [11:43:04]free response buf [11:43:04]execute_script done [11:43:04]execute_script returns [11:43:04]free content buf [11:43:04]Sock 10.Close socket [11:43:04]Sock 10.Thread stoped [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47: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:24]accept exits with 8 [11:48:24]New connection [11:48:24]New thread 3067501924 created [11:48:24]Thread 3067358564 joined [11:48:24]Waiting for new connection... [11:48:24] Sock 8.Parse request [11:48:24]Sock 8.Check first char [11:48:24]Sock 8.First char is OK [11:48:24]request: POST /json_proto HTTP/1.0 [11:48:24]Method: POST [11:48:24]URL: /json_proto [11:48:24]Method is POST - this is cgi request [11:48:24]url: /json_proto [11:48:24]query_string will be loaded in cgi processing [11:48:24]execute_cgi json_proto POST (null) [11:48:24]execute_cgi path=json_proto method=POST [11:48:24]POST find Content-Length [11:48:24]Host: 172.17.41.136:8080 [11:48:24]Content-Length: 1427 [11:48:24]Content-Type: application/json [11:48:24] [11:48:24]POST finish read [11:48:24]Found Content-Length = 1427 [11:48:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343999", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 365.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:24]execute_script... [11:48:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)343999", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 365.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:24]POST & json_proto [11:48:24]process_json_proto [11:48:24]json parsed OK: [11:48:24]protocol is kg_v1.0 [11:48:24]action value=close_receipt [11:48:24]process_action close_receipt [11:48:24]cmd_close_receipt [11:48:24]MH_GetDate [11:48:24]Write to MH i2c: F0 00 00 1D 00 0C [11:48:24]Write i2c OK [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: F0 [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: F0 09 00 [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: F0 09 00 1D 00 00 89 55 F1 66 1B D0 5A 64 F3 [11:48:24]GetLastDocTimeStamp 1727090924 [11:48:24]current date 1727092105 [11:48:24]FM_GetShiftState [11:48:24]SAM_PROTO_GetShiftState [11:48:24]wFMCommunicate request_size=4 [11:48:24]MH_SAM_APDU [11:48:24]CAPDU: 80 13 01 00 [11:48:24]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:48:24]Write i2c OK [11:48:24]MH_I2C_Read... [11:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:24]Read from MH i2c: E2 [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: E2 0E 00 [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 DC [11:48:24]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:48:24]wFMCommunicate OK [11:48:24]SAM_PROTO_GetShiftState done [11:48:24]FM_GetShiftState done [11:48:24]opened in 1727052070 [11:48:24]opened+sec_in_day 1727138470 [11:48:24]quantity*price = 12500 [11:48:24]sum+1 = 12501 [11:48:24]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870227273831 Лимонад Sunbel Мохито 1л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 365.00 НСП 1% : 3.23 НДС 12% : 38.76 Наличными: 365.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 87 23.09.2024 11:48 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115604 ФПД: 120850611135960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T114825&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115604&fm=120850611135960&tin=02508201610067®Number=0000000000091831&sum=36500 0 [11:48:25]StoreToDocumentArchive [11:48:25]shift 472 fd 115604 [11:48:25]save to /storage/0472/doc_00115604 [11:48:25]save last doc name /storage/0472/doc_00115604 to /storage/kkm_last_doc_name [11:48:25]save OK [11:48:25]Clear old archive folders... [11:48:25]ProcessDocumentItem done err = 0, tmpTLVsize=605 [11:48:25]tlvbuf is 01F60390 [11:48:25]SAM_PROTO_ClearQueue [11:48:25]wFMCommunicate request_size=4 [11:48:25]MH_SAM_APDU [11:48:25]CAPDU: 80 09 00 00 [11:48:25]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:26]Read from MH i2c: E2 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:48:26]RAPDU: 90 00 [11:48:26]wFMCommunicate OK [11:48:26]SAM_PROTO_ClearQueue done [11:48:26]KKMCreateOFDPacket [11:48:26]OFDProtocolAddRootSTLVToBuf [11:48:26]FM_MakeSignedData [11:48:26]FM_MakeSignedData [11:48:26]SAM_PROTO_SignData [11:48:26]wFMCommunicate request_size=4 [11:48:26]MH_SAM_APDU [11:48:26]CAPDU: 80 0D 01 02 [11:48:26]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:26]Read from MH i2c: E2 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:48:26]RAPDU: 90 00 [11:48:26]wFMCommunicate OK [11:48:26]wFMCommunicate request_size=255 [11:48:26]MH_SAM_APDU [11:48:26]CAPDU: 80 0D 02 02 FA 03 00 5D 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 [11:48:26]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 5D 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 00 00 1A [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]OFD Sender: No OFD packet to send [11:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:26]Read from MH i2c: E2 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:48:26]RAPDU: 90 00 [11:48:26]wFMCommunicate OK [11:48:26]wFMCommunicate request_size=255 [11:48:26]MH_SAM_APDU [11:48:26]CAPDU: 80 0D 02 02 FA 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 0F 00 00 00 00 07 04 06 00 [11:48:26]Write to MH i2c: E2 02 01 2E 00 80 0D 02 02 FA 00 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 0F 00 00 00 00 07 04 06 00 00 00 EF [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:26]Read from MH i2c: E2 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:48:26]RAPDU: 90 00 [11:48:26]wFMCommunicate OK [11:48:26]wFMCommunicate request_size=114 [11:48:26]MH_SAM_APDU [11:48:26]CAPDU: 80 0D 02 02 6D 94 8E 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 89 55 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 94 C3 01 00 35 04 06 00 6D E9 B9 BF 65 D8 [11:48:26]Write to MH i2c: E2 75 00 2F 00 80 0D 02 02 6D 00 94 8E 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 89 55 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 94 C3 01 00 35 04 06 00 6D E9 B9 BF 65 D8 00 00 8E [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:26]Read from MH i2c: E2 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [11:48:26]RAPDU: 90 00 [11:48:26]wFMCommunicate OK [11:48:26]wFMCommunicate request_size=4 [11:48:26]MH_SAM_APDU [11:48:26]CAPDU: 80 0D 03 02 [11:48:26]Write to MH i2c: E2 08 00 30 00 80 0D 03 02 00 00 00 00 AB [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:26]Read from MH i2c: E2 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 0B 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 0B 00 30 00 00 56 97 41 56 B1 7B F8 E9 90 00 3D [11:48:26]RAPDU: 56 97 41 56 B1 7B F8 E9 90 00 [11:48:26]wFMCommunicate OK [11:48:26]SAM_PROTO_SignData done [11:48:26]FM_MakeSignedData done [11:48:26]CreateOFDProtocolMessage [11:48:26]wFMCommunicate request_size=4 [11:48:26]MH_SAM_APDU [11:48:26]CAPDU: 80 11 00 00 [11:48:26]Write to MH i2c: E2 08 00 31 00 80 11 00 00 00 00 00 00 AB [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:26]Read from MH i2c: E2 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 17 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: E2 17 00 31 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F9 [11:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:48:26]wFMCommunicate OK [11:48:26]CreateOFDProtocolMessage done [11:48:26]OFDSenderStorePacket 115604 [11:48:26]StoreOFDPacket docnum=115604 [11:48:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 71 02 00 00 9C 5C 69 02 04 25 5A 03 01 00 03 00 5D 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 0F 00 00 00 00 07 04 06 00 94 8E 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 89 55 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 94 C3 01 00 35 04 06 00 6D E9 B9 BF 65 D8 56 97 41 56 B1 7B F8 E9 [11:48:26]CheckFolder [11:48:26]dirname=/storage/ofd_packets [11:48:26]CheckFolder done [11:48:26]ProducePacketName [11:48:26]name=ofd_packets/00115604 [11:48:26]NVStorageSaveData ofd_packets/00115604 [11:48:26]File name is /storage/ofd_packets/00115604 [11:48:26]Write 655 bytes [11:48:26]NVStorageSaveData done [11:48:26]OFDSenderStorePacket done [11:48:26]KKMCreateOFDPacket done [11:48:26]NVStorageSaveData kkm_last_timestamp [11:48:26]File name is /storage/kkm_last_timestamp [11:48:26]Write 4 bytes [11:48:26]NVStorageSaveData done [11:48:26]ExternCall_PrintAddStr [11:48:26]wPrintStart [11:48:26]Write to MH i2c: 01 00 00 32 00 32 [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: 01 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: 01 07 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: 01 07 00 32 00 00 00 00 00 00 FF 0F 47 [11:48:26]RasterBufferAndPrint [11:48:26]line Счет N : (3)343999 [11:48:26]line ИНН: 02508201610067 [11:48:26]line Контрольно-Кассовый Чек [11:48:26]line ПРОДАЖА [11:48:26]line Товар: 2000036190018 [11:48:26]line Кофе Американо XL(GABB TRADE) [11:48:26]line 1.000 * 125.00 [11:48:26]line = 125.00 [11:48:26]line НДС 12% НСП 1% [11:48:26]line > о реализуемом товаре [11:48:26]line Товар: 2000036210013 [11:48:26]line Кофе Капучино (GABB TRADE) [11:48:26]line 1.000 * 115.00 [11:48:26]line = 115.00 [11:48:26]line НДС 12% НСП 1% [11:48:27]line > о реализуемом товаре [11:48:27]line Товар: 4870227273831 [11:48:27]line Лимонад Sunbel Мохито 1л [11:48:27]line 1.000 * 85.00 [11:48:27]line = 85.00 [11:48:27]line НДС 12% НСП 1% [11:48:27]line > о реализуемом товаре [11:48:27]line Товар: 4700000160211 [11:48:27]line Вода Легенда 0,5л [11:48:27]line 1.000 * 40.00 [11:48:27]line = 40.00 [11:48:27]line НДС 12% НСП 1% [11:48:27]line > о реализуемом товаре [11:48:27]line ИТОГО: 365.00 [11:48:27]line НСП 1% : 3.23 [11:48:27]line НДС 12% : 38.76 [11:48:27]line Наличными: 365.00 [11:48:27]line Безнал.: 0.00 [11:48:27]line Место: АЗС № 90 "Партнер Нефть" [11:48:27]OFD Sender: Processing packet 115604 [packets to send 481, broken 480] [11:48:27]ProducePacketName [11:48:27]name=ofd_packets/00115604 [11:48:27]OFD Sender: To server: pG, [11:48:27]CommunicateWithHost lk.salyk.kg:30040 [11:48:27]ConnectInit lk.salyk.kg [11:48:27]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:48:27]line СНО: Общий режим [11:48:27]line Чек 87 23.09.2024 11:48 [11:48:27]line Смена: 472 ФФД: 1.0 [11:48:27]line ЗНМ: 0300000120 [11:48:27]line РНМ: 0000000000091831 [11:48:27]line Версия ККМ: 001 [11:48:27]line ФМ: 0000000000871830 [11:48:27]line ФД: 115604 [11:48:27]line ФПД: 120850611135960 [11:48:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T114825&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115604&fm=120850611135960&tin=02508201610067®Number=0000000000091831&sum=36500 [11:48:27]line 0 [11:48:27]written 0, free lines is 4095 [11:48:27]Connected sock=10 [11:48:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 71 02 00 00 9C 5C 69 02 04 25 5A 03 01 00 03 00 5D 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 0F 00 00 00 00 07 04 06 00 94 8E 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 89 55 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 94 C3 01 00 35 04 06 00 6D E9 B9 BF 65 D8 56 97 41 56 B1 7B F8 E9 [11:48:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6E 76 47 00 67 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 38 33 30 10 04 04 00 94 C3 01 00 F4 03 04 00 CD FA F0 66 B6 04 01 00 00 0F 7B 14 6E A7 3D BD 57 [11:48:27]CommunicateWithHost err = 0 [11:48:27]CheckOFDResponse [11:48:27]1017 (14) - 77093643461234 [11:48:27]1041 (16) - 0000000000871830 [11:48:27]1040 (4) - 115604 [11:48:27]1012 (4) - 23.09.2024 05:21 [11:48:27]1206 (1) - 0 [11:48:27]OFD Sender: Remove packet 115604 [11:48:27]ProducePacketName [11:48:27]name=ofd_packets/00115604 [11:48:27]NVStorageDeleteData [11:48:27]Write to MH i2c: 01 00 00 6C 00 6C [11:48:27]Write i2c OK [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: 01 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: 01 07 00 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: 01 07 00 6C 00 00 00 00 00 00 EA 0A 67 [11:48:27]RasterBufferAndPrint [11:48:27]line [11:48:27]line [11:48:27]line [11:48:27]line [11:48:27]line [11:48:27]written 0, free lines is 2797 [11:48:27]MH_Cut [11:48:27]Write to MH i2c: D1 01 00 73 00 01 45 [11:48:27]Write i2c OK [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: D1 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: D1 01 00 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: D1 01 00 73 00 00 44 [11:48:27]Write to MH i2c: 01 00 00 74 00 74 [11:48:27]Write i2c OK [11:48:27]MH_I2C_Read... [11:48:28]OFD Sender: No OFD packet to send [11:48:29]*** Cut start [11:48:29]*** Partial cut [11:48:29]*** CUTSNS_PIN = 1 [11:48:29]*** CUTSNS_PIN = 0 [11:48:29]*** Brake cut motor [11:48:30]Read from MH i2c: 01 [11:48:30]MH_I2C_Read... [11:48:30]*** Stop cut motor [11:48:30]*** Cut end [11:48:30]Read from MH i2c: 01 07 00 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: 01 07 00 74 00 00 00 00 00 00 FF 0F 89 [11:48:30]process_action close_receipt done [11:48:30]requested_data is exist [11:48:30]produce_requested_data [11:48:30]requested_item fm.sn is exist - process it [11:48:30]wFMCommunicate request_size=4 [11:48:30]MH_SAM_APDU [11:48:30]CAPDU: 80 11 00 00 [11:48:30]Write to MH i2c: E2 08 00 75 00 80 11 00 00 00 00 00 00 EF [11:48:30]Write i2c OK [11:48:30]MH_I2C_Read... [11:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:30]Read from MH i2c: E2 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 17 00 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 17 00 75 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3D [11:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:48:30]wFMCommunicate OK [11:48:30]requested_item fd.num is exist - process it [11:48:30]SAM_PROTO_GetFieldsCounters [11:48:30]wFMCommunicate request_size=4 [11:48:30]MH_SAM_APDU [11:48:30]CAPDU: 80 13 00 00 [11:48:30]Write to MH i2c: E2 08 00 76 00 80 13 00 00 00 00 00 00 F2 [11:48:30]Write i2c OK [11:48:30]MH_I2C_Read... [11:48:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:30]Read from MH i2c: E2 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 62 00 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 62 00 76 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 94 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [11:48:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 94 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:30]wFMCommunicate OK [11:48:30]SAM_PROTO_GetFieldsCounters done [11:48:30]requested_item shift.num is exist - process it [11:48:30]requested_item shift.opened is exist - process it [11:48:30]req_shift_opened [11:48:30]FM_GetShiftState [11:48:30]SAM_PROTO_GetShiftState [11:48:30]wFMCommunicate request_size=4 [11:48:30]MH_SAM_APDU [11:48:30]CAPDU: 80 13 01 00 [11:48:30]Write to MH i2c: E2 08 00 77 00 80 13 01 00 00 00 00 00 F4 [11:48:30]Write i2c OK [11:48:30]MH_I2C_Read... [11:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:30]Read from MH i2c: E2 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 0E 00 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 0E 00 77 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 35 [11:48:30]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:48:30]wFMCommunicate OK [11:48:30]SAM_PROTO_GetShiftState done [11:48:30]FM_GetShiftState done [11:48:30]req_shift_opened done [11:48:30]requested_item shift.open_date is exist - process it [11:48:30]req_shift_open_date [11:48:30]req_shift_open_date done [11:48:30]produce_requested_data done [11:48:30]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115604,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:48:30]process_action_free close_receipt [11:48:30]json_value_free [11:48:30]json_value_free done [11:48:30]process_json_proto returns [11:48:30]Send response to host [11:48:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115604,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:48:30]free response buf [11:48:30]execute_script done [11:48:30]execute_script returns [11:48:30]free content buf [11:48:30]Sock 8.Close socket [11:48:30]Sock 8.Thread stoped [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:57]accept exits with 9 [11:48:57]New connection [11:48:57]New thread 3067358564 created [11:48:57]Thread 3067501924 joined [11:48:57]Waiting for new connection... [11:48:57] Sock 9.Parse request [11:48:57]Sock 9.Check first char [11:48:57]Sock 9.First char is OK [11:48:57]request: POST /json_proto HTTP/1.0 [11:48:57]Method: POST [11:48:57]URL: /json_proto [11:48:57]Method is POST - this is cgi request [11:48:57]url: /json_proto [11:48:57]query_string will be loaded in cgi processing [11:48:57]execute_cgi json_proto POST (null) [11:48:57]execute_cgi path=json_proto method=POST [11:48:57]POST find Content-Length [11:48:57]Host: 172.17.41.136:8080 [11:48:57]Content-Length: 681 [11:48:57]Content-Type: application/json [11:48:57] [11:48:57]POST finish read [11:48:57]Found Content-Length = 681 [11:48:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:57]execute_script... [11:48:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:57]POST & json_proto [11:48:57]process_json_proto [11:48:57]json parsed OK: [11:48:57]protocol is kg_v1.0 [11:48:57]action value=close_receipt [11:48:57]process_action close_receipt [11:48:57]cmd_close_receipt [11:48:57]MH_GetDate [11:48:57]Write to MH i2c: F0 00 00 78 00 67 [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: F0 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: F0 09 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: F0 09 00 78 00 00 AA 55 F1 66 1B D0 5A 64 6F [11:48:57]GetLastDocTimeStamp 1727092105 [11:48:57]current date 1727092138 [11:48:57]FM_GetShiftState [11:48:57]SAM_PROTO_GetShiftState [11:48:57]wFMCommunicate request_size=4 [11:48:57]MH_SAM_APDU [11:48:57]CAPDU: 80 13 01 00 [11:48:57]Write to MH i2c: E2 08 00 79 00 80 13 01 00 00 00 00 00 F6 [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:57]Read from MH i2c: E2 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 0E 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 0E 00 79 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 37 [11:48:57]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:48:57]wFMCommunicate OK [11:48:57]SAM_PROTO_GetShiftState done [11:48:57]FM_GetShiftState done [11:48:57]opened in 1727052070 [11:48:57]opened+sec_in_day 1727138470 [11:48:57]quantity*price = 100050 [11:48:57]sum+1 = 100052 [11:48:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 88 23.09.2024 11:48 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115605 ФПД: 276430120286414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T114858&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115605&fm=276430120286414&tin=02508201610067®Number=0000000000091831&sum=100000 [11:48:58]StoreToDocumentArchive [11:48:58]shift 472 fd 115605 [11:48:58]save to /storage/0472/doc_00115605 [11:48:58]save last doc name /storage/0472/doc_00115605 to /storage/kkm_last_doc_name [11:48:58]save OK [11:48:58]Clear old archive folders... [11:48:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:48:58]tlvbuf is 01F56340 [11:48:58]SAM_PROTO_ClearQueue [11:48:58]wFMCommunicate request_size=4 [11:48:58]MH_SAM_APDU [11:48:58]CAPDU: 80 09 00 00 [11:48:58]Write to MH i2c: E2 08 00 86 00 80 09 00 00 00 00 00 00 F8 [11:48:58]Write i2c OK [11:48:58]MH_I2C_Read... [11:48:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:58]Read from MH i2c: E2 [11:48:58]MH_I2C_Read... [11:48:58]Read from MH i2c: E2 03 00 [11:48:58]MH_I2C_Read... [11:48:58]Read from MH i2c: E2 03 00 86 00 00 90 00 FA [11:48:58]RAPDU: 90 00 [11:48:58]wFMCommunicate OK [11:48:58]SAM_PROTO_ClearQueue done [11:48:58]KKMCreateOFDPacket [11:48:58]OFDProtocolAddRootSTLVToBuf [11:48:58]FM_MakeSignedData [11:48:58]FM_MakeSignedData [11:48:58]SAM_PROTO_SignData [11:48:58]wFMCommunicate request_size=4 [11:48:58]MH_SAM_APDU [11:48:58]CAPDU: 80 0D 01 02 [11:48:58]Write to MH i2c: E2 08 00 87 00 80 0D 01 02 00 00 00 00 00 [11:48:58]Write i2c OK [11:48:58]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 03 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 03 00 87 00 00 90 00 FB [11:48:59]RAPDU: 90 00 [11:48:59]wFMCommunicate OK [11:48:59]wFMCommunicate request_size=255 [11:48:59]MH_SAM_APDU [11: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 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 AA 55 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 95 C3 01 00 35 04 06 00 FB 69 67 1F [11:48:59]Write to MH i2c: E2 02 01 88 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 AA 55 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 95 C3 01 00 35 04 06 00 FB 69 67 1F 00 00 47 [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 03 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 03 00 88 00 00 90 00 FC [11:48:59]RAPDU: 90 00 [11:48:59]wFMCommunicate OK [11:48:59]wFMCommunicate request_size=7 [11:48:59]MH_SAM_APDU [11:48:59]CAPDU: 80 0D 02 02 02 F8 CE [11:48:59]Write to MH i2c: E2 0A 00 89 00 80 0D 02 02 02 00 F8 CE 00 00 CD [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 03 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 03 00 89 00 00 90 00 FD [11:48:59]RAPDU: 90 00 [11:48:59]wFMCommunicate OK [11:48:59]wFMCommunicate request_size=4 [11:48:59]MH_SAM_APDU [11:48:59]CAPDU: 80 0D 03 02 [11:48:59]Write to MH i2c: E2 08 00 8A 00 80 0D 03 02 00 00 00 00 05 [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 0B 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 0B 00 8A 00 00 90 E3 AF B5 CA 28 E4 E3 90 00 96 [11:48:59]RAPDU: 90 E3 AF B5 CA 28 E4 E3 90 00 [11:48:59]wFMCommunicate OK [11:48:59]SAM_PROTO_SignData done [11:48:59]FM_MakeSignedData done [11:48:59]CreateOFDProtocolMessage [11:48:59]wFMCommunicate request_size=4 [11:48:59]MH_SAM_APDU [11:48:59]CAPDU: 80 11 00 00 [11:48:59]Write to MH i2c: E2 08 00 8B 00 80 11 00 00 00 00 00 00 05 [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 17 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 17 00 8B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 53 [11:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:48:59]wFMCommunicate OK [11:48:59]CreateOFDProtocolMessage done [11:48:59]OFDSenderStorePacket 115605 [11:48:59]StoreOFDPacket docnum=115605 [11:48:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 01 CD 04 01 D4 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 AA 55 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 95 C3 01 00 35 04 06 00 FB 69 67 1F F8 CE 90 E3 AF B5 CA 28 E4 E3 [11:48:59]CheckFolder [11:48:59]dirname=/storage/ofd_packets [11:48:59]CheckFolder done [11:48:59]ProducePacketName [11:48:59]name=ofd_packets/00115605 [11:48:59]NVStorageSaveData ofd_packets/00115605 [11:48:59]File name is /storage/ofd_packets/00115605 [11:48:59]Write 298 bytes [11:48:59]NVStorageSaveData done [11:48:59]OFDSenderStorePacket done [11:48:59]KKMCreateOFDPacket done [11:48:59]NVStorageSaveData kkm_last_timestamp [11:48:59]File name is /storage/kkm_last_timestamp [11:48:59]Write 4 bytes [11:48:59]NVStorageSaveData done [11:48:59]ExternCall_PrintAddStr [11:48:59]wPrintStart [11:48:59]Write to MH i2c: 01 00 00 8C 00 8C [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: 01 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: 01 07 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: 01 07 00 8C 00 00 00 00 00 00 FF 0F A1 [11:48:59]RasterBufferAndPrint [11:48:59]line Счет N : (1)24617592 [11:48:59]line ИНН: 02508201610067 [11:48:59]line Контрольно-Кассовый Чек [11:48:59]line ПРОДАЖА [11:48:59]line ТРК (МРК, ГНК) : 65 [11:48:59]line Товар: 2710194210 [11:48:59]line ДТ-К-5 [11:48:59]line 13.130 * 76.20 [11:48:59]line = 1000.51 [11:48:59]line НДС 12% НСП 1% [11:48:59]line > о реализуемом товаре [11:48:59]line ОКРУГЛЕНИЕ: -0.51 [11:48:59]line ИТОГО: 1000.00 [11:48:59]line Внесено: 1000.00 [11:48:59]line СДАЧА: 0.00 [11:48:59]line НСП 1% : 8.85 [11:48:59]line НДС 12% : 106.25 [11:48:59]line Наличными: 1000.00 [11:48:59]line Безнал.: 0.00 [11:48:59]line Место: АЗС № 90 "Партнер Нефть" [11:48:59]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:48:59]line СНО: Общий режим [11:48:59]line Чек 88 23.09.2024 11:48 [11:48:59]line Смена: 472 ФФД: 1.0 [11:48:59]line ЗНМ: 0300000120 [11:48:59]line РНМ: 0000000000091831 [11:48:59]line Версия ККМ: 001 [11:48:59]line ФМ: 0000000000871830 [11:48:59]line ФД: 115605 [11:48:59]line ФПД: 276430120286414 [11:48:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T114858&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115605&fm=276430120286414&tin=02508201610067®Number=0000000000091831&sum=100000 [11:48:59]OFD Sender: Processing packet 115605 [packets to send 481, broken 480] [11:48:59]ProducePacketName [11:48:59]name=ofd_packets/00115605 [11:48:59]OFD Sender: To server: pG, [11:48:59]CommunicateWithHost lk.salyk.kg:30040 [11:48:59]ConnectInit lk.salyk.kg [11:48:59]written 0, free lines is 4095 [11:48:59]Connected sock=10 [11:48:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 01 CD 04 01 D4 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 AA 55 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 95 C3 01 00 35 04 06 00 FB 69 67 1F F8 CE 90 E3 AF B5 CA 28 E4 E3 [11:49:00]Write to MH i2c: 01 00 00 B6 00 B6 [11:49:00]Write i2c OK [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: 01 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: 01 07 00 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: 01 07 00 B6 00 00 00 00 00 00 56 0C 1F [11:49:00]RasterBufferAndPrint [11:49:00]line [11:49:00]line [11:49:00]line [11:49:00]line [11:49:00]line [11:49:00]written 0, free lines is 3162 [11:49:00]MH_Cut [11:49:00]Write to MH i2c: D1 01 00 BD 00 01 8F [11:49:00]Write i2c OK [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: D1 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: D1 01 00 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: D1 01 00 BD 00 00 8E [11:49:00]Write to MH i2c: 01 00 00 BE 00 BE [11:49:00]Write i2c OK [11:49:00]MH_I2C_Read... [11: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 38 33 30 4F 00 00 00 16 3B 47 00 8E 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 38 33 30 10 04 04 00 95 C3 01 00 F4 03 04 00 ED FA F0 66 B6 04 01 00 00 8A C5 EA 1D B5 DB 9F F0 [11:49:00]CommunicateWithHost err = 0 [11:49:00]CheckOFDResponse [11:49:00]1017 (14) - 77093643461234 [11:49:00]1041 (16) - 0000000000871830 [11:49:00]1040 (4) - 115605 [11:49:00]1012 (4) - 23.09.2024 05:21 [11:49:00]1206 (1) - 0 [11:49:00]OFD Sender: Remove packet 115605 [11:49:00]ProducePacketName [11:49:00]name=ofd_packets/00115605 [11:49:00]NVStorageDeleteData [11:49:00]OFD Sender: No OFD packet to send [11:49:01]*** Cut start [11:49:01]*** Partial cut [11:49:01]*** CUTSNS_PIN = 1 [11:49:01]*** CUTSNS_PIN = 0 [11:49:01]*** Brake cut motor [11:49:02]Read from MH i2c: 01 [11:49:02]MH_I2C_Read... [11:49:02]*** Stop cut motor [11:49:02]*** Cut end [11:49:02]Read from MH i2c: 01 07 00 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: 01 07 00 BE 00 00 00 00 00 00 FF 0F D3 [11:49:02]process_action close_receipt done [11:49:02]requested_data is exist [11:49:02]produce_requested_data [11:49:02]requested_item fm.sn is exist - process it [11:49:02]wFMCommunicate request_size=4 [11:49:02]MH_SAM_APDU [11:49:02]CAPDU: 80 11 00 00 [11:49:02]Write to MH i2c: E2 08 00 BF 00 80 11 00 00 00 00 00 00 39 [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:02]Read from MH i2c: E2 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: E2 17 00 [11:49:02]MH_I2C_Read... [11:49:02]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 38 33 30 90 00 87 [11:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:49:02]wFMCommunicate OK [11:49:02]requested_item fd.num is exist - process it [11:49:02]SAM_PROTO_GetFieldsCounters [11:49:02]wFMCommunicate request_size=4 [11:49:02]MH_SAM_APDU [11:49:02]CAPDU: 80 13 00 00 [11:49:02]Write to MH i2c: E2 08 00 C0 00 80 13 00 00 00 00 00 00 3C [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:02]Read from MH i2c: E2 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: E2 62 00 [11:49:02]MH_I2C_Read... [11:49:02]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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 95 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [11: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 95 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:02]wFMCommunicate OK [11:49:02]SAM_PROTO_GetFieldsCounters done [11:49:02]requested_item shift.num is exist - process it [11:49:02]requested_item shift.opened is exist - process it [11:49:02]req_shift_opened [11:49:02]FM_GetShiftState [11:49:02]SAM_PROTO_GetShiftState [11:49:02]wFMCommunicate request_size=4 [11:49:02]MH_SAM_APDU [11:49:02]CAPDU: 80 13 01 00 [11:49:02]Write to MH i2c: E2 08 00 C1 00 80 13 01 00 00 00 00 00 3E [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:02]Read from MH i2c: E2 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: E2 0E 00 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: E2 0E 00 C1 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7F [11:49:02]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:49:02]wFMCommunicate OK [11:49:02]SAM_PROTO_GetShiftState done [11:49:02]FM_GetShiftState done [11:49:02]req_shift_opened done [11:49:02]requested_item shift.open_date is exist - process it [11:49:02]req_shift_open_date [11:49:02]req_shift_open_date done [11:49:02]produce_requested_data done [11:49:02]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115605,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:49:02]process_action_free close_receipt [11:49:02]json_value_free [11:49:02]json_value_free done [11:49:02]process_json_proto returns [11:49:02]Send response to host [11:49:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115605,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:49:02]free response buf [11:49:02]execute_script done [11:49:02]execute_script returns [11:49:02]free content buf [11:49:02]Sock 9.Close socket [11:49:02]Sock 9.Thread stoped [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]accept exits with 8 [11:50:00]New connection [11:50:00]New thread 3067501924 created [11:50:00]Thread 3067358564 joined [11:50:00]Waiting for new connection... [11:50:00] Sock 8.Parse request [11:50:00]Sock 8.Check first char [11:50:00]Sock 8.First char is OK [11:50:00]request: POST /json_proto HTTP/1.0 [11:50:00]Method: POST [11:50:00]URL: /json_proto [11:50:00]Method is POST - this is cgi request [11:50:00]url: /json_proto [11:50:00]query_string will be loaded in cgi processing [11:50:00]execute_cgi json_proto POST (null) [11:50:00]execute_cgi path=json_proto method=POST [11:50:00]POST find Content-Length [11:50:00]Host: 172.17.41.136:8080 [11:50:00]Content-Length: 681 [11:50:00]Content-Type: application/json [11:50:00] [11:50:00]POST finish read [11:50:00]Found Content-Length = 681 [11:50:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:00]execute_script... [11:50: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)24617594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:00]POST & json_proto [11:50:00]process_json_proto [11:50:00]json parsed OK: [11:50:00]protocol is kg_v1.0 [11:50:00]action value=close_receipt [11:50:00]process_action close_receipt [11:50:00]cmd_close_receipt [11:50:00]MH_GetDate [11:50:00]Write to MH i2c: F0 00 00 C2 00 B1 [11:50:00]Write i2c OK [11:50:00]MH_I2C_Read... [11:50:00]Read from MH i2c: F0 [11:50:00]MH_I2C_Read... [11:50:00]Read from MH i2c: F0 09 00 [11:50:00]MH_I2C_Read... [11:50:00]Read from MH i2c: F0 09 00 C2 00 00 E9 55 F1 66 1B D0 5A 64 F8 [11:50:00]GetLastDocTimeStamp 1727092138 [11:50:00]current date 1727092201 [11:50:00]FM_GetShiftState [11:50:00]SAM_PROTO_GetShiftState [11:50:00]wFMCommunicate request_size=4 [11:50:00]MH_SAM_APDU [11:50:00]CAPDU: 80 13 01 00 [11:50:00]Write to MH i2c: E2 08 00 C3 00 80 13 01 00 00 00 00 00 40 [11:50:00]Write i2c OK [11:50:00]MH_I2C_Read... [11:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:00]Read from MH i2c: E2 [11:50:00]MH_I2C_Read... [11:50:00]Read from MH i2c: E2 0E 00 [11:50:00]MH_I2C_Read... [11:50:00]Read from MH i2c: E2 0E 00 C3 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 81 [11:50:00]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:50:00]wFMCommunicate OK [11:50:00]SAM_PROTO_GetShiftState done [11:50:00]FM_GetShiftState done [11:50:00]opened in 1727052070 [11:50:00]opened+sec_in_day 1727138470 [11:50:00]quantity*price = 150037 [11:50:00]sum+1 = 150039 [11:50:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 89 23.09.2024 11:50 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115606 ФПД: 195884697026255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115001&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115606&fm=195884697026255&tin=02508201610067®Number=0000000000091831&sum=150000 [11:50:01]StoreToDocumentArchive [11:50:01]shift 472 fd 115606 [11:50:01]save to /storage/0472/doc_00115606 [11:50:01]save last doc name /storage/0472/doc_00115606 to /storage/kkm_last_doc_name [11:50:01]save OK [11:50:01]Clear old archive folders... [11:50:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:50:01]tlvbuf is 01F5EDF0 [11:50:01]SAM_PROTO_ClearQueue [11:50:01]wFMCommunicate request_size=4 [11:50:01]MH_SAM_APDU [11:50:01]CAPDU: 80 09 00 00 [11:50:01]Write to MH i2c: E2 08 00 D0 00 80 09 00 00 00 00 00 00 42 [11:50:01]Write i2c OK [11:50:01]MH_I2C_Read... [11:50:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:01]Read from MH i2c: E2 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 D0 00 00 90 00 44 [11:50:01]RAPDU: 90 00 [11:50:01]wFMCommunicate OK [11:50:01]SAM_PROTO_ClearQueue done [11:50:01]KKMCreateOFDPacket [11:50:01]OFDProtocolAddRootSTLVToBuf [11:50:01]FM_MakeSignedData [11:50:01]FM_MakeSignedData [11:50:01]SAM_PROTO_SignData [11:50:01]wFMCommunicate request_size=4 [11:50:01]MH_SAM_APDU [11:50:01]CAPDU: 80 0D 01 02 [11:50:01]Write to MH i2c: E2 08 00 D1 00 80 0D 01 02 00 00 00 00 4A [11:50:01]Write i2c OK [11:50:01]MH_I2C_Read... [11:50:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:01]Read from MH i2c: E2 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 D1 00 00 90 00 45 [11:50:01]RAPDU: 90 00 [11:50:01]wFMCommunicate OK [11:50:01]wFMCommunicate request_size=255 [11:50:01]MH_SAM_APDU [11:50:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 59 00 00 00 F4 03 04 00 E9 55 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 96 C3 01 00 35 04 06 00 B2 27 F5 C8 [11:50:01]Write to MH i2c: E2 02 01 D2 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 59 00 00 00 F4 03 04 00 E9 55 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 96 C3 01 00 35 04 06 00 B2 27 F5 C8 00 00 F5 [11:50:01]Write i2c OK [11:50:01]MH_I2C_Read... [11:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:01]Read from MH i2c: E2 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 D2 00 00 90 00 46 [11:50:01]RAPDU: 90 00 [11:50:01]wFMCommunicate OK [11:50:01]wFMCommunicate request_size=7 [11:50:01]MH_SAM_APDU [11:50:01]CAPDU: 80 0D 02 02 02 7E CF [11:50:01]Write to MH i2c: E2 0A 00 D3 00 80 0D 02 02 02 00 7E CF 00 00 9E [11:50:01]Write i2c OK [11:50:01]MH_I2C_Read... [11:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:01]Read from MH i2c: E2 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 D3 00 00 90 00 47 [11:50:01]RAPDU: 90 00 [11:50:01]wFMCommunicate OK [11:50:01]wFMCommunicate request_size=4 [11:50:01]MH_SAM_APDU [11:50:01]CAPDU: 80 0D 03 02 [11:50:01]Write to MH i2c: E2 08 00 D4 00 80 0D 03 02 00 00 00 00 4F [11:50:01]Write i2c OK [11:50:01]MH_I2C_Read... [11:50:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:01]Read from MH i2c: E2 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 0B 00 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 0B 00 D4 00 00 A5 30 A9 27 AD 0A 63 0C 90 00 1B [11:50:01]RAPDU: A5 30 A9 27 AD 0A 63 0C 90 00 [11:50:01]wFMCommunicate OK [11:50:01]SAM_PROTO_SignData done [11:50:01]FM_MakeSignedData done [11:50:01]CreateOFDProtocolMessage [11:50:01]wFMCommunicate request_size=4 [11:50:01]MH_SAM_APDU [11:50:01]CAPDU: 80 11 00 00 [11:50:01]Write to MH i2c: E2 08 00 D5 00 80 11 00 00 00 00 00 00 4F [11:50:01]Write i2c OK [11:50:01]MH_I2C_Read... [11:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:02]Read from MH i2c: E2 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 17 00 [11:50:02]MH_I2C_Read... [11:50:02]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 38 33 30 90 00 9D [11:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:50:02]wFMCommunicate OK [11:50:02]CreateOFDProtocolMessage done [11:50:02]OFDSenderStorePacket 115606 [11:50:02]StoreOFDPacket docnum=115606 [11:50:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 E2 4B 04 01 B5 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E9 55 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 96 C3 01 00 35 04 06 00 B2 27 F5 C8 7E CF A5 30 A9 27 AD 0A 63 0C [11:50:02]CheckFolder [11:50:02]dirname=/storage/ofd_packets [11:50:02]CheckFolder done [11:50:02]ProducePacketName [11:50:02]name=ofd_packets/00115606 [11:50:02]NVStorageSaveData ofd_packets/00115606 [11:50:02]File name is /storage/ofd_packets/00115606 [11:50:02]Write 298 bytes [11:50:02]NVStorageSaveData done [11:50:02]OFDSenderStorePacket done [11:50:02]KKMCreateOFDPacket done [11:50:02]NVStorageSaveData kkm_last_timestamp [11:50:02]File name is /storage/kkm_last_timestamp [11:50:02]Write 4 bytes [11:50:02]NVStorageSaveData done [11:50:02]ExternCall_PrintAddStr [11:50:02]wPrintStart [11:50:02]Write to MH i2c: 01 00 00 D6 00 D6 [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: 01 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: 01 07 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: 01 07 00 D6 00 00 00 00 00 00 FF 0F EB [11:50:02]RasterBufferAndPrint [11:50:02]line Счет N : (1)24617594 [11:50:02]line ИНН: 02508201610067 [11:50:02]line Контрольно-Кассовый Чек [11:50:02]line ПРОДАЖА [11:50:02]line ТРК (МРК, ГНК) : 21 [11:50:02]line Товар: 2710194210 [11:50:02]line ДТ-К-5 [11:50:02]line 19.690 * 76.20 [11:50:02]line = 1500.38 [11:50:02]line НДС 12% НСП 1% [11:50:02]line > о реализуемом товаре [11:50:02]line ОКРУГЛЕНИЕ: -0.38 [11:50:02]line ИТОГО: 1500.00 [11:50:02]line Внесено: 1500.00 [11:50:02]line СДАЧА: 0.00 [11:50:02]line НСП 1% : 13.28 [11:50:02]line НДС 12% : 159.33 [11:50:02]line Наличными: 1500.00 [11:50:02]line Безнал.: 0.00 [11:50:02]line Место: АЗС № 90 "Партнер Нефть" [11:50:02]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:50:02]line СНО: Общий режим [11:50:02]line Чек 89 23.09.2024 11:50 [11:50:02]line Смена: 472 ФФД: 1.0 [11:50:02]line ЗНМ: 0300000120 [11:50:02]line РНМ: 0000000000091831 [11:50:02]line Версия ККМ: 001 [11:50:02]line ФМ: 0000000000871830 [11:50:02]line ФД: 115606 [11:50:02]line ФПД: 195884697026255 [11:50:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115001&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115606&fm=195884697026255&tin=02508201610067®Number=0000000000091831&sum=150000 [11:50:02]OFD Sender: Processing packet 115606 [packets to send 481, broken 480] [11:50:02]ProducePacketName [11:50:02]name=ofd_packets/00115606 [11:50:02]OFD Sender: To server: pG, [11:50:02]CommunicateWithHost lk.salyk.kg:30040 [11:50:02]ConnectInit lk.salyk.kg [11:50:02]written 0, free lines is 4095 [11:50:02]Connected sock=10 [11:50: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 38 33 30 0C 01 00 00 E2 4B 04 01 B5 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E9 55 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 96 C3 01 00 35 04 06 00 B2 27 F5 C8 7E CF A5 30 A9 27 AD 0A 63 0C [11:50:02]Write to MH i2c: 01 00 00 00 01 01 [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: 01 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: 01 07 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: 01 07 00 00 01 00 00 00 00 00 55 0C 69 [11:50:02]RasterBufferAndPrint [11:50:02]line [11:50:02]line [11:50:02]line [11:50:02]line [11:50:02]line [11:50:02]written 0, free lines is 3161 [11:50:02]MH_Cut [11:50:02]Write to MH i2c: D1 01 00 07 01 01 DA [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: D1 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: D1 01 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: D1 01 00 07 01 00 D9 [11:50:02]Write to MH i2c: 01 00 00 08 01 09 [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E6 1A 47 00 D5 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 38 33 30 10 04 04 00 96 C3 01 00 F4 03 04 00 2C FB F0 66 B6 04 01 00 00 2B AC EB 59 FD DC D8 62 [11:50:02]CommunicateWithHost err = 0 [11:50:02]CheckOFDResponse [11:50:02]1017 (14) - 77093643461234 [11:50:02]1041 (16) - 0000000000871830 [11:50:02]1040 (4) - 115606 [11:50:02]1012 (4) - 23.09.2024 05:22 [11:50:02]1206 (1) - 0 [11:50:02]OFD Sender: Remove packet 115606 [11:50:02]ProducePacketName [11:50:02]name=ofd_packets/00115606 [11:50:02]NVStorageDeleteData [11:50:03]OFD Sender: No OFD packet to send [11:50:04]*** Cut start [11:50:04]*** Partial cut [11:50:04]*** CUTSNS_PIN = 1 [11:50:04]*** CUTSNS_PIN = 0 [11:50:04]*** Brake cut motor [11:50:04]Read from MH i2c: 01 [11:50:04]MH_I2C_Read... [11:50:04]*** Stop cut motor [11:50:04]*** Cut end [11:50:04]Read from MH i2c: 01 07 00 [11:50:04]MH_I2C_Read... [11:50:04]Read from MH i2c: 01 07 00 08 01 00 00 00 00 00 FF 0F 1E [11:50:04]process_action close_receipt done [11:50:04]requested_data is exist [11:50:04]produce_requested_data [11:50:04]requested_item fm.sn is exist - process it [11:50:04]wFMCommunicate request_size=4 [11:50:04]MH_SAM_APDU [11:50:04]CAPDU: 80 11 00 00 [11:50:04]Write to MH i2c: E2 08 00 09 01 80 11 00 00 00 00 00 00 84 [11:50:04]Write i2c OK [11:50:04]MH_I2C_Read... [11:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:04]Read from MH i2c: E2 [11:50:04]MH_I2C_Read... [11:50:04]Read from MH i2c: E2 17 00 [11:50:04]MH_I2C_Read... [11:50:04]Read from MH i2c: E2 17 00 09 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [11:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:50:04]wFMCommunicate OK [11:50:04]requested_item fd.num is exist - process it [11:50:04]SAM_PROTO_GetFieldsCounters [11:50:04]wFMCommunicate request_size=4 [11:50:04]MH_SAM_APDU [11:50:04]CAPDU: 80 13 00 00 [11:50:04]Write to MH i2c: E2 08 00 0A 01 80 13 00 00 00 00 00 00 87 [11:50:04]Write i2c OK [11:50:04]MH_I2C_Read... [11:50:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:04]Read from MH i2c: E2 [11:50:04]MH_I2C_Read... [11:50:04]Read from MH i2c: E2 62 00 [11:50:04]MH_I2C_Read... [11:50:04]Read from MH i2c: E2 62 00 0A 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 96 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [11:50: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 96 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:04]wFMCommunicate OK [11:50:04]SAM_PROTO_GetFieldsCounters done [11:50:04]requested_item shift.num is exist - process it [11:50:04]requested_item shift.opened is exist - process it [11:50:04]req_shift_opened [11:50:04]FM_GetShiftState [11:50:04]SAM_PROTO_GetShiftState [11:50:04]wFMCommunicate request_size=4 [11:50:04]MH_SAM_APDU [11:50:04]CAPDU: 80 13 01 00 [11:50:04]Write to MH i2c: E2 08 00 0B 01 80 13 01 00 00 00 00 00 89 [11:50:04]Write i2c OK [11:50:04]MH_I2C_Read... [11:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:05]Read from MH i2c: E2 [11:50:05]MH_I2C_Read... [11:50:05]Read from MH i2c: E2 0E 00 [11:50:05]MH_I2C_Read... [11:50:05]Read from MH i2c: E2 0E 00 0B 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CA [11:50:05]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:50:05]wFMCommunicate OK [11:50:05]SAM_PROTO_GetShiftState done [11:50:05]FM_GetShiftState done [11:50:05]req_shift_opened done [11:50:05]requested_item shift.open_date is exist - process it [11:50:05]req_shift_open_date [11:50:05]req_shift_open_date done [11:50:05]produce_requested_data done [11:50:05]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115606,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:50:05]process_action_free close_receipt [11:50:05]json_value_free [11:50:05]json_value_free done [11:50:05]process_json_proto returns [11:50:05]Send response to host [11:50:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115606,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:50:05]free response buf [11:50:05]execute_script done [11:50:05]execute_script returns [11:50:05]free content buf [11:50:05]Sock 8.Close socket [11:50:05]Sock 8.Thread stoped [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:26]accept exits with 9 [11:52:26]New connection [11:52:26]New thread 3067358564 created [11:52:26]Thread 3067501924 joined [11:52:26]Waiting for new connection... [11:52:26] Sock 9.Parse request [11:52:26]Sock 9.Check first char [11:52:26]Sock 9.First char is OK [11:52:26]request: POST /json_proto HTTP/1.0 [11:52:26]Method: POST [11:52:26]URL: /json_proto [11:52:26]Method is POST - this is cgi request [11:52:26]url: /json_proto [11:52:26]query_string will be loaded in cgi processing [11:52:26]execute_cgi json_proto POST (null) [11:52:26]execute_cgi path=json_proto method=POST [11:52:26]POST find Content-Length [11:52:26]Host: 172.17.41.136:8080 [11:52:26]Content-Length: 756 [11:52:26]Content-Type: application/json [11:52:26] [11:52:26]POST finish read [11:52:26]Found Content-Length = 756 [11:52:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 51.990, "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\u000A30114021", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:26]execute_script... [11:52: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)24617596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 51.990, "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\u000A30114021", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:26]POST & json_proto [11:52:26]process_json_proto [11:52:26]json parsed OK: [11:52:26]protocol is kg_v1.0 [11:52:26]action value=close_receipt [11:52:26]process_action close_receipt [11:52:26]cmd_close_receipt [11:52:26]MH_GetDate [11:52:26]Write to MH i2c: F0 00 00 0C 01 FC [11:52:26]Write i2c OK [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: F0 [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: F0 09 00 [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: F0 09 00 0C 01 00 7B 56 F1 66 1B D0 5A 64 D6 [11:52:26]GetLastDocTimeStamp 1727092201 [11:52:26]current date 1727092347 [11:52:26]FM_GetShiftState [11:52:26]SAM_PROTO_GetShiftState [11:52:26]wFMCommunicate request_size=4 [11:52:26]MH_SAM_APDU [11:52:26]CAPDU: 80 13 01 00 [11:52:26]Write to MH i2c: E2 08 00 0D 01 80 13 01 00 00 00 00 00 8B [11:52:26]Write i2c OK [11:52:26]MH_I2C_Read... [11:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:26]Read from MH i2c: E2 [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: E2 0E 00 [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: E2 0E 00 0D 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CC [11:52:26]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:52:26]wFMCommunicate OK [11:52:26]SAM_PROTO_GetShiftState done [11:52:26]FM_GetShiftState done [11:52:26]opened in 1727052070 [11:52:26]opened+sec_in_day 1727138470 [11:52:26]quantity*price = 0 [11:52:26]sum+1 = 1 [11:52:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 90 23.09.2024 11:52 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30114021 ФМ: 0000000000871830 ФД: 115607 ФПД: 17379459736278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115227&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115607&fm=17379459736278&tin=02508201610067®Number=0000000000091831&sum=0 [11:52:27]StoreToDocumentArchive [11:52:27]shift 472 fd 115607 [11:52:27]save to /storage/0472/doc_00115607 [11:52:27]save last doc name /storage/0472/doc_00115607 to /storage/kkm_last_doc_name [11:52:27]save OK [11:52:27]Clear old archive folders... [11:52:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:27]tlvbuf is 01F585E0 [11:52:27]SAM_PROTO_ClearQueue [11:52:27]wFMCommunicate request_size=4 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 09 00 00 [11:52:27]Write to MH i2c: E2 08 00 1A 01 80 09 00 00 00 00 00 00 8D [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 1A 01 00 90 00 8F [11:52:27]RAPDU: 90 00 [11:52:27]wFMCommunicate OK [11:52:27]SAM_PROTO_ClearQueue done [11:52:27]KKMCreateOFDPacket [11:52:27]OFDProtocolAddRootSTLVToBuf [11:52:27]FM_MakeSignedData [11:52:27]FM_MakeSignedData [11:52:27]SAM_PROTO_SignData [11:52:27]wFMCommunicate request_size=4 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 0D 01 02 [11:52:27]Write to MH i2c: E2 08 00 1B 01 80 0D 01 02 00 00 00 00 95 [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 1B 01 00 90 00 90 [11:52:27]RAPDU: 90 00 [11:52:27]wFMCommunicate OK [11:52:27]wFMCommunicate request_size=255 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 16 CB 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 5A 00 00 00 F4 03 04 00 7B 56 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 97 C3 01 00 35 04 06 00 0F [11:52:27]Write to MH i2c: E2 02 01 1C 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 35 FF 03 08 00 03 16 CB 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 5A 00 00 00 F4 03 04 00 7B 56 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 97 C3 01 00 35 04 06 00 0F 00 00 41 [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 1C 01 00 90 00 91 [11:52:27]RAPDU: 90 00 [11:52:27]wFMCommunicate OK [11:52:27]wFMCommunicate request_size=10 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 0D 02 02 05 CE 78 86 22 D6 [11:52:27]Write to MH i2c: E2 0D 00 1D 01 80 0D 02 02 05 00 CE 78 86 22 D6 00 00 66 [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 03 00 1D 01 00 90 00 92 [11:52:27]RAPDU: 90 00 [11:52:27]wFMCommunicate OK [11:52:27]wFMCommunicate request_size=4 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 0D 03 02 [11:52:27]Write to MH i2c: E2 08 00 1E 01 80 0D 03 02 00 00 00 00 9A [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 0B 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 0B 00 1E 01 00 9E D8 43 0C DF 08 0C E6 90 00 39 [11:52:27]RAPDU: 9E D8 43 0C DF 08 0C E6 90 00 [11:52:27]wFMCommunicate OK [11:52:27]SAM_PROTO_SignData done [11:52:27]FM_MakeSignedData done [11:52:27]CreateOFDProtocolMessage [11:52:27]wFMCommunicate request_size=4 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 11 00 00 [11:52:27]Write to MH i2c: E2 08 00 1F 01 80 11 00 00 00 00 00 00 9A [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 17 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 17 00 1F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E8 [11:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:52:27]wFMCommunicate OK [11:52:27]CreateOFDProtocolMessage done [11:52:27]OFDSenderStorePacket 115607 [11:52:27]StoreOFDPacket docnum=115607 [11:52:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 DE FC 07 01 FE E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 16 CB 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 5A 00 00 00 F4 03 04 00 7B 56 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 97 C3 01 00 35 04 06 00 0F CE 78 86 22 D6 9E D8 43 0C DF 08 0C E6 [11:52:27]CheckFolder [11:52:27]dirname=/storage/ofd_packets [11:52:27]CheckFolder done [11:52:27]ProducePacketName [11:52:27]name=ofd_packets/00115607 [11:52:27]NVStorageSaveData ofd_packets/00115607 [11:52:27]File name is /storage/ofd_packets/00115607 [11:52:27]Write 301 bytes [11:52:27]NVStorageSaveData done [11:52:27]OFDSenderStorePacket done [11:52:27]KKMCreateOFDPacket done [11:52:27]NVStorageSaveData kkm_last_timestamp [11:52:27]File name is /storage/kkm_last_timestamp [11:52:27]Write 4 bytes [11:52:27]NVStorageSaveData done [11:52:27]ExternCall_PrintAddStr [11:52:27]wPrintStart [11:52:27]Write to MH i2c: 01 00 00 20 01 21 [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: 01 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: 01 07 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: 01 07 00 20 01 00 00 00 00 00 FF 0F 36 [11:52:27]RasterBufferAndPrint [11:52:27]line Счет N : (1)24617596 [11:52:27]line ИНН: 02508201610067 [11:52:27]line Контрольно-Кассовый Чек [11:52:27]line ПРОДАЖА [11:52:27]line ТРК (МРК, ГНК) : 52 [11:52:27]line Товар: 2710124500 [11:52:27]line Аи-95-К-5 [11:52:27]line 51.990 * 0.00 [11:52:27]line = 0.00 [11:52:27]line НДС 12% НСП 1% [11:52:27]line > о реализуемом товаре [11:52:27]line ИТОГО: 0.00 [11:52:27]line НСП 1% : 0.00 [11:52:27]line НДС 12% : 0.00 [11:52:27]line Наличными: 0.00 [11:52:27]line Безнал.: 0.00 [11:52:27]line Место: АЗС № 90 "Партнер Нефть" [11:52:27]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:52:27]line СНО: Общий режим [11:52:27]line Чек 90 23.09.2024 11:52 [11:52:27]line Смена: 472 ФФД: 1.0 [11:52:27]line ЗНМ: 0300000120 [11:52:27]line РНМ: 0000000000091831 [11:52:27]line Версия ККМ: 001 [11:52:27]line Талоны: ТК ГПНА Online [11:52:27]line 30114021 [11:52:27]line ФМ: 0000000000871830 [11:52:27]line ФД: 115607 [11:52:27]line ФПД: 17379459736278 [11:52:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115227&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115607&fm=17379459736278&tin=02508201610067®Number=0000000000091831&sum=0 [11:52:27]written 0, free lines is 4095 [11:52:27]OFD Sender: Processing packet 115607 [packets to send 481, broken 480] [11:52:27]ProducePacketName [11:52:27]name=ofd_packets/00115607 [11:52:27]OFD Sender: To server: pG, [11:52:27]CommunicateWithHost lk.salyk.kg:30040 [11:52:27]ConnectInit lk.salyk.kg [11:52:28]Connected sock=10 [11:52: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 38 33 30 0F 01 00 00 DE FC 07 01 FE E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 16 CB 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 5A 00 00 00 F4 03 04 00 7B 56 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 97 C3 01 00 35 04 06 00 0F CE 78 86 22 D6 9E D8 43 0C DF 08 0C E6 [11:52:28]Write to MH i2c: 01 00 00 49 01 4A [11:52:28]Write i2c OK [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: 01 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: 01 07 00 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: 01 07 00 49 01 00 00 00 00 00 70 0C CD [11:52:28]RasterBufferAndPrint [11:52:28]line [11:52:28]line [11:52:28]line [11:52:28]line [11:52:28]line [11:52:28]written 0, free lines is 3189 [11:52:28]MH_Cut [11:52:28]Write to MH i2c: D1 01 00 50 01 01 23 [11:52:28]Write i2c OK [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: D1 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: D1 01 00 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: D1 01 00 50 01 00 22 [11:52:28]Write to MH i2c: 01 00 00 51 01 52 [11:52:28]Write i2c OK [11:52:28]MH_I2C_Read... [11:52:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 61 38 47 00 38 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 38 33 30 10 04 04 00 97 C3 01 00 F4 03 04 00 BD FB F0 66 B6 04 01 00 00 CF FD 4C BE BD 71 7B 18 [11:52:28]CommunicateWithHost err = 0 [11:52:28]CheckOFDResponse [11:52:28]1017 (14) - 77093643461234 [11:52:28]1041 (16) - 0000000000871830 [11:52:28]1040 (4) - 115607 [11:52:28]1012 (4) - 23.09.2024 05:25 [11:52:28]1206 (1) - 0 [11:52:28]OFD Sender: Remove packet 115607 [11:52:28]ProducePacketName [11:52:28]name=ofd_packets/00115607 [11:52:28]NVStorageDeleteData [11:52:28]OFD Sender: No OFD packet to send [11:52:29]*** Cut start [11:52:29]*** Partial cut [11:52:29]*** CUTSNS_PIN = 1 [11:52:29]*** CUTSNS_PIN = 0 [11:52:29]*** Brake cut motor [11:52:30]Read from MH i2c: 01 [11:52:30]MH_I2C_Read... [11:52:30]*** Stop cut motor [11:52:30]*** Cut end [11:52:30]Read from MH i2c: 01 07 00 [11:52:30]MH_I2C_Read... [11:52:30]Read from MH i2c: 01 07 00 51 01 00 00 00 00 00 FF 0F 67 [11:52:30]process_action close_receipt done [11:52:30]requested_data is exist [11:52:30]produce_requested_data [11:52:30]requested_item fm.sn is exist - process it [11:52:30]wFMCommunicate request_size=4 [11:52:30]MH_SAM_APDU [11:52:30]CAPDU: 80 11 00 00 [11:52:30]Write to MH i2c: E2 08 00 52 01 80 11 00 00 00 00 00 00 CD [11:52:30]Write i2c OK [11:52:30]MH_I2C_Read... [11:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:30]Read from MH i2c: E2 [11:52:30]MH_I2C_Read... [11:52:30]Read from MH i2c: E2 17 00 [11:52:30]MH_I2C_Read... [11:52:30]Read from MH i2c: E2 17 00 52 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1B [11:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:52:30]wFMCommunicate OK [11:52:30]requested_item fd.num is exist - process it [11:52:30]SAM_PROTO_GetFieldsCounters [11:52:30]wFMCommunicate request_size=4 [11:52:30]MH_SAM_APDU [11:52:30]CAPDU: 80 13 00 00 [11:52:30]Write to MH i2c: E2 08 00 53 01 80 13 00 00 00 00 00 00 D0 [11:52:30]Write i2c OK [11:52:30]MH_I2C_Read... [11:52:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:30]Read from MH i2c: E2 [11:52:30]MH_I2C_Read... [11:52:30]Read from MH i2c: E2 62 00 [11:52:30]MH_I2C_Read... [11:52:30]Read from MH i2c: E2 62 00 53 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 97 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [11:52: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 97 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:30]wFMCommunicate OK [11:52:30]SAM_PROTO_GetFieldsCounters done [11:52:30]requested_item shift.num is exist - process it [11:52:30]requested_item shift.opened is exist - process it [11:52:30]req_shift_opened [11:52:30]FM_GetShiftState [11:52:30]SAM_PROTO_GetShiftState [11:52:30]wFMCommunicate request_size=4 [11:52:30]MH_SAM_APDU [11:52:30]CAPDU: 80 13 01 00 [11:52:30]Write to MH i2c: E2 08 00 54 01 80 13 01 00 00 00 00 00 D2 [11:52:30]Write i2c OK [11:52:30]MH_I2C_Read... [11:52:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:30]Read from MH i2c: E2 [11:52:30]MH_I2C_Read... [11:52:30]Read from MH i2c: E2 0E 00 [11:52:30]MH_I2C_Read... [11:52:30]Read from MH i2c: E2 0E 00 54 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 13 [11:52:30]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:52:30]wFMCommunicate OK [11:52:30]SAM_PROTO_GetShiftState done [11:52:30]FM_GetShiftState done [11:52:30]req_shift_opened done [11:52:30]requested_item shift.open_date is exist - process it [11:52:30]req_shift_open_date [11:52:30]req_shift_open_date done [11:52:30]produce_requested_data done [11:52:30]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115607,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:52:30]process_action_free close_receipt [11:52:30]json_value_free [11:52:30]json_value_free done [11:52:30]process_json_proto returns [11:52:30]Send response to host [11:52:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115607,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:52:30]free response buf [11:52:30]execute_script done [11:52:30]execute_script returns [11:52:30]free content buf [11:52:30]Sock 9.Close socket [11:52:30]Sock 9.Thread stoped [11:52:33]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:47]accept exits with 8 [11:53:47]New connection [11:53:47]New thread 3067501924 created [11:53:47]Thread 3067358564 joined [11:53:47]Waiting for new connection... [11:53:47] Sock 8.Parse request [11:53:47]Sock 8.Check first char [11:53:47]Sock 8.First char is OK [11:53:47]request: POST /json_proto HTTP/1.0 [11:53:47]Method: POST [11:53:47]URL: /json_proto [11:53:47]Method is POST - this is cgi request [11:53:47]url: /json_proto [11:53:47]query_string will be loaded in cgi processing [11:53:47]execute_cgi json_proto POST (null) [11:53:47]execute_cgi path=json_proto method=POST [11:53:47]POST find Content-Length [11:53:47]Host: 172.17.41.136:8080 [11:53:47]Content-Length: 699 [11:53:47]Content-Type: application/json [11:53:47] [11:53:47]POST finish read [11:53:47]Found Content-Length = 699 [11:53:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344000", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:47]execute_script... [11:53:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344000", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:47]POST & json_proto [11:53:47]process_json_proto [11:53:47]json parsed OK: [11:53:47]protocol is kg_v1.0 [11:53:47]action value=close_receipt [11:53:47]process_action close_receipt [11:53:47]cmd_close_receipt [11:53:47]MH_GetDate [11:53:47]Write to MH i2c: F0 00 00 55 01 45 [11:53:47]Write i2c OK [11:53:47]MH_I2C_Read... [11:53:47]Read from MH i2c: F0 [11:53:47]MH_I2C_Read... [11:53:47]Read from MH i2c: F0 09 00 [11:53:47]MH_I2C_Read... [11:53:47]Read from MH i2c: F0 09 00 55 01 00 CC 56 F1 66 1B D0 5A 64 70 [11:53:47]GetLastDocTimeStamp 1727092347 [11:53:47]current date 1727092428 [11:53:47]FM_GetShiftState [11:53:47]SAM_PROTO_GetShiftState [11:53:47]wFMCommunicate request_size=4 [11:53:47]MH_SAM_APDU [11:53:47]CAPDU: 80 13 01 00 [11:53:47]Write to MH i2c: E2 08 00 56 01 80 13 01 00 00 00 00 00 D4 [11:53:47]Write i2c OK [11:53:47]MH_I2C_Read... [11:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:48]Read from MH i2c: E2 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: E2 0E 00 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: E2 0E 00 56 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 15 [11:53:48]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:53:48]wFMCommunicate OK [11:53:48]SAM_PROTO_GetShiftState done [11:53:48]FM_GetShiftState done [11:53:48]opened in 1727052070 [11:53:48]opened+sec_in_day 1727138470 [11:53:48]quantity*price = 9500 [11:53:48]sum+1 = 9501 [11:53:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 91 23.09.2024 11:53 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115608 ФПД: 100303136881045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115348&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115608&fm=100303136881045&tin=02508201610067®Number=0000000000091831&sum=9500 0 [11:53:49]StoreToDocumentArchive [11:53:49]shift 472 fd 115608 [11:53:49]save to /storage/0472/doc_00115608 [11:53:49]save last doc name /storage/0472/doc_00115608 to /storage/kkm_last_doc_name [11:53:49]save OK [11:53:49]Clear old archive folders... [11:53:49]ProcessDocumentItem done err = 0, tmpTLVsize=302 [11:53:49]tlvbuf is 01F59F20 [11:53:49]SAM_PROTO_ClearQueue [11:53:49]wFMCommunicate request_size=4 [11:53:49]MH_SAM_APDU [11:53:49]CAPDU: 80 09 00 00 [11:53:49]Write to MH i2c: E2 08 00 63 01 80 09 00 00 00 00 00 00 D6 [11:53:49]Write i2c OK [11:53:49]MH_I2C_Read... [11:53:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:49]Read from MH i2c: E2 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 03 00 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 03 00 63 01 00 90 00 D8 [11:53:49]RAPDU: 90 00 [11:53:49]wFMCommunicate OK [11:53:49]SAM_PROTO_ClearQueue done [11:53:49]KKMCreateOFDPacket [11:53:49]OFDProtocolAddRootSTLVToBuf [11:53:49]FM_MakeSignedData [11:53:49]FM_MakeSignedData [11:53:49]SAM_PROTO_SignData [11:53:49]wFMCommunicate request_size=4 [11:53:49]MH_SAM_APDU [11:53:49]CAPDU: 80 0D 01 02 [11:53:49]Write to MH i2c: E2 08 00 64 01 80 0D 01 02 00 00 00 00 DE [11:53:49]Write i2c OK [11:53:49]MH_I2C_Read... [11:53:49]OFD Sender: No OFD packet to send [11:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:49]Read from MH i2c: E2 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 03 00 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 03 00 64 01 00 90 00 D9 [11:53:49]RAPDU: 90 00 [11:53:49]wFMCommunicate OK [11:53:49]wFMCommunicate request_size=255 [11:53:49]MH_SAM_APDU [11:53:49]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 CC 56 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 [11:53:49]Write to MH i2c: E2 02 01 65 01 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 CC 56 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 00 00 DB [11:53:49]Write i2c OK [11:53:49]MH_I2C_Read... [11:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:49]Read from MH i2c: E2 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 03 00 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 03 00 65 01 00 90 00 DA [11:53:49]RAPDU: 90 00 [11:53:49]wFMCommunicate OK [11:53:49]wFMCommunicate request_size=61 [11:53:49]MH_SAM_APDU [11:53:49]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 98 C3 01 00 35 04 06 00 5B 39 A4 D7 F9 95 [11:53:49]Write to MH i2c: E2 40 00 66 01 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 98 C3 01 00 35 04 06 00 5B 39 A4 D7 F9 95 00 00 07 [11:53:49]Write i2c OK [11:53:49]MH_I2C_Read... [11:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:49]Read from MH i2c: E2 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 03 00 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 03 00 66 01 00 90 00 DB [11:53:49]RAPDU: 90 00 [11:53:49]wFMCommunicate OK [11:53:49]wFMCommunicate request_size=4 [11:53:49]MH_SAM_APDU [11:53:49]CAPDU: 80 0D 03 02 [11:53:49]Write to MH i2c: E2 08 00 67 01 80 0D 03 02 00 00 00 00 E3 [11:53:49]Write i2c OK [11:53:49]MH_I2C_Read... [11:53:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:49]Read from MH i2c: E2 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 0B 00 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 0B 00 67 01 00 6F 6F D5 2B A4 86 10 68 90 00 64 [11:53:49]RAPDU: 6F 6F D5 2B A4 86 10 68 90 00 [11:53:49]wFMCommunicate OK [11:53:49]SAM_PROTO_SignData done [11:53:49]FM_MakeSignedData done [11:53:49]CreateOFDProtocolMessage [11:53:49]wFMCommunicate request_size=4 [11:53:49]MH_SAM_APDU [11:53:49]CAPDU: 80 11 00 00 [11:53:49]Write to MH i2c: E2 08 00 68 01 80 11 00 00 00 00 00 00 E3 [11:53:49]Write i2c OK [11:53:49]MH_I2C_Read... [11:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:49]Read from MH i2c: E2 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 17 00 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: E2 17 00 68 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 31 [11:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:53:49]wFMCommunicate OK [11:53:49]CreateOFDProtocolMessage done [11:53:49]OFDSenderStorePacket 115608 [11:53:49]StoreOFDPacket docnum=115608 [11:53:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 42 01 00 00 A7 B0 3A 01 25 BF 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 CC 56 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 98 C3 01 00 35 04 06 00 5B 39 A4 D7 F9 95 6F 6F D5 2B A4 86 10 68 [11:53:49]CheckFolder [11:53:49]dirname=/storage/ofd_packets [11:53:49]CheckFolder done [11:53:49]ProducePacketName [11:53:49]name=ofd_packets/00115608 [11:53:49]NVStorageSaveData ofd_packets/00115608 [11:53:49]File name is /storage/ofd_packets/00115608 [11:53:49]Write 352 bytes [11:53:49]NVStorageSaveData done [11:53:49]OFDSenderStorePacket done [11:53:49]KKMCreateOFDPacket done [11:53:49]NVStorageSaveData kkm_last_timestamp [11:53:49]File name is /storage/kkm_last_timestamp [11:53:49]Write 4 bytes [11:53:49]NVStorageSaveData done [11:53:49]ExternCall_PrintAddStr [11:53:49]wPrintStart [11:53:49]Write to MH i2c: 01 00 00 69 01 6A [11:53:49]Write i2c OK [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: 01 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: 01 07 00 [11:53:49]MH_I2C_Read... [11:53:49]Read from MH i2c: 01 07 00 69 01 00 00 00 00 00 FF 0F 7F [11:53:49]RasterBufferAndPrint [11:53:49]line Счет N : (3)344000 [11:53:49]line ИНН: 02508201610067 [11:53:49]line Контрольно-Кассовый Чек [11:53:49]line ПРОДАЖА [11:53:49]line Товар: 4700003010087 [11:53:49]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [11:53:49]line 1.000 * 95.00 [11:53:49]line = 95.00 [11:53:49]line НДС 12% НСП 1% [11:53:49]line > о реализуемом товаре [11:53:49]line ИТОГО: 95.00 [11:53:49]line НСП 1% : 0.84 [11:53:49]line НДС 12% : 10.09 [11:53:49]line Наличными: 95.00 [11:53:49]line Безнал.: 0.00 [11:53:49]line Место: АЗС № 90 "Партнер Нефть" [11:53:49]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:53:49]line СНО: Общий режим [11:53:49]line Чек 91 23.09.2024 11:53 [11:53:49]line Смена: 472 ФФД: 1.0 [11:53:49]line ЗНМ: 0300000120 [11:53:49]line РНМ: 0000000000091831 [11:53:49]line Версия ККМ: 001 [11:53:49]line ФМ: 0000000000871830 [11:53:49]line ФД: 115608 [11:53:49]line ФПД: 100303136881045 [11:53:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115348&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115608&fm=100303136881045&tin=02508201610067®Number=0000000000091831&sum=9500 [11:53:50]line 0 [11:53:50]OFD Sender: Processing packet 115608 [packets to send 481, broken 480] [11:53:50]ProducePacketName [11:53:50]name=ofd_packets/00115608 [11:53:50]OFD Sender: To server: pG, [11:53:50]CommunicateWithHost lk.salyk.kg:30040 [11:53:50]ConnectInit lk.salyk.kg [11:53:50]written 0, free lines is 4095 [11:53:50]Connected sock=10 [11: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 38 33 30 42 01 00 00 A7 B0 3A 01 25 BF 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 CC 56 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 98 C3 01 00 35 04 06 00 5B 39 A4 D7 F9 95 6F 6F D5 2B A4 86 10 68 [11:53:50]Write to MH i2c: 01 00 00 91 01 92 [11:53:50]Write i2c OK [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: 01 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: 01 07 00 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 62 0C 07 [11:53:50]RasterBufferAndPrint [11:53:50]line [11:53:50]line [11:53:50]line [11:53:50]line [11:53:50]line [11:53:50]written 0, free lines is 3174 [11:53:50]MH_Cut [11:53:50]Write to MH i2c: D1 01 00 98 01 01 6B [11:53:50]Write i2c OK [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: D1 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: D1 01 00 [11:53:50]MH_I2C_Read... [11:53:50]Read from MH i2c: D1 01 00 98 01 00 6A [11:53:50]Write to MH i2c: 01 00 00 99 01 9A [11:53:50]Write i2c OK [11:53:50]MH_I2C_Read... [11:53:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 78 B8 47 00 B1 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 38 33 30 10 04 04 00 98 C3 01 00 F4 03 04 00 0F FC F0 66 B6 04 01 00 00 61 81 23 90 0B 5F E3 F8 [11:53:50]CommunicateWithHost err = 0 [11:53:50]CheckOFDResponse [11:53:50]1017 (14) - 77093643461234 [11:53:50]1041 (16) - 0000000000871830 [11:53:50]1040 (4) - 115608 [11:53:50]1012 (4) - 23.09.2024 05:26 [11:53:50]1206 (1) - 0 [11:53:50]OFD Sender: Remove packet 115608 [11:53:50]ProducePacketName [11:53:50]name=ofd_packets/00115608 [11:53:50]NVStorageDeleteData [11:53:51]OFD Sender: No OFD packet to send [11:53:51]*** Cut start [11:53:51]*** Partial cut [11:53:51]*** CUTSNS_PIN = 1 [11:53:51]*** CUTSNS_PIN = 0 [11:53:51]*** Brake cut motor [11:53:52]Read from MH i2c: 01 [11:53:52]MH_I2C_Read... [11:53:52]*** Stop cut motor [11:53:52]*** Cut end [11:53:52]Read from MH i2c: 01 07 00 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: 01 07 00 99 01 00 00 00 00 00 FF 0F AF [11:53:52]process_action close_receipt done [11:53:52]requested_data is exist [11:53:52]produce_requested_data [11:53:52]requested_item fm.sn is exist - process it [11:53:52]wFMCommunicate request_size=4 [11:53:52]MH_SAM_APDU [11:53:52]CAPDU: 80 11 00 00 [11:53:52]Write to MH i2c: E2 08 00 9A 01 80 11 00 00 00 00 00 00 15 [11:53:52]Write i2c OK [11:53:52]MH_I2C_Read... [11:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:52]Read from MH i2c: E2 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: E2 17 00 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: E2 17 00 9A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 63 [11:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:53:52]wFMCommunicate OK [11:53:52]requested_item fd.num is exist - process it [11:53:52]SAM_PROTO_GetFieldsCounters [11:53:52]wFMCommunicate request_size=4 [11:53:52]MH_SAM_APDU [11:53:52]CAPDU: 80 13 00 00 [11:53:52]Write to MH i2c: E2 08 00 9B 01 80 13 00 00 00 00 00 00 18 [11:53:52]Write i2c OK [11:53:52]MH_I2C_Read... [11:53:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:52]Read from MH i2c: E2 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: E2 62 00 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: E2 62 00 9B 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 98 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [11: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 98 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:52]wFMCommunicate OK [11:53:52]SAM_PROTO_GetFieldsCounters done [11:53:52]requested_item shift.num is exist - process it [11:53:52]requested_item shift.opened is exist - process it [11:53:52]req_shift_opened [11:53:52]FM_GetShiftState [11:53:52]SAM_PROTO_GetShiftState [11:53:52]wFMCommunicate request_size=4 [11:53:52]MH_SAM_APDU [11:53:52]CAPDU: 80 13 01 00 [11:53:52]Write to MH i2c: E2 08 00 9C 01 80 13 01 00 00 00 00 00 1A [11:53:52]Write i2c OK [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: E2 [11:53:52]MH_I2C_Read... [11:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:52]Read from MH i2c: E2 0E 00 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: E2 0E 00 9C 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5B [11:53:52]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:53:52]wFMCommunicate OK [11:53:52]SAM_PROTO_GetShiftState done [11:53:52]FM_GetShiftState done [11:53:52]req_shift_opened done [11:53:52]requested_item shift.open_date is exist - process it [11:53:52]req_shift_open_date [11:53:52]req_shift_open_date done [11:53:52]produce_requested_data done [11:53:52]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115608,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:53:52]process_action_free close_receipt [11:53:52]json_value_free [11:53:52]json_value_free done [11:53:52]process_json_proto returns [11:53:52]Send response to host [11:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115608,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:53:52]free response buf [11:53:52]execute_script done [11:53:52]execute_script returns [11:53:52]free content buf [11:53:52]Sock 8.Close socket [11:53:52]Sock 8.Thread stoped [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:06]accept exits with 9 [11:54:06]New connection [11:54:06]New thread 3067358564 created [11:54:06]Thread 3067501924 joined [11:54:06]Waiting for new connection... [11:54:06] Sock 9.Parse request [11:54:06]Sock 9.Check first char [11:54:06]Sock 9.First char is OK [11:54:06]request: POST /json_proto HTTP/1.0 [11:54:06]Method: POST [11:54:06]URL: /json_proto [11:54:06]Method is POST - this is cgi request [11:54:06]url: /json_proto [11:54:06]query_string will be loaded in cgi processing [11:54:06]execute_cgi json_proto POST (null) [11:54:06]execute_cgi path=json_proto method=POST [11:54:06]POST find Content-Length [11:54:06]Host: 172.17.41.136:8080 [11:54:06]Content-Length: 684 [11:54:06]Content-Type: application/json [11:54:06] [11:54:06]POST finish read [11:54:06]Found Content-Length = 684 [11:54:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:06]execute_script... [11:54: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)24617593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:06]POST & json_proto [11:54:06]process_json_proto [11:54:06]json parsed OK: [11:54:06]protocol is kg_v1.0 [11:54:06]action value=close_receipt [11:54:06]process_action close_receipt [11:54:06]cmd_close_receipt [11:54:06]MH_GetDate [11:54:06]Write to MH i2c: F0 00 00 9D 01 8D [11:54:06]Write i2c OK [11:54:06]MH_I2C_Read... [11:54:06]Read from MH i2c: F0 [11:54:06]MH_I2C_Read... [11:54:06]Read from MH i2c: F0 09 00 [11:54:06]MH_I2C_Read... [11:54:06]Read from MH i2c: F0 09 00 9D 01 00 DF 56 F1 66 1B D0 5A 64 CB [11:54:06]GetLastDocTimeStamp 1727092428 [11:54:06]current date 1727092447 [11:54:06]FM_GetShiftState [11:54:06]SAM_PROTO_GetShiftState [11:54:06]wFMCommunicate request_size=4 [11:54:06]MH_SAM_APDU [11:54:06]CAPDU: 80 13 01 00 [11:54:06]Write to MH i2c: E2 08 00 9E 01 80 13 01 00 00 00 00 00 1C [11:54:06]Write i2c OK [11:54:06]MH_I2C_Read... [11:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:06]Read from MH i2c: E2 [11:54:06]MH_I2C_Read... [11:54:06]Read from MH i2c: E2 0E 00 [11:54:06]MH_I2C_Read... [11:54:06]Read from MH i2c: E2 0E 00 9E 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5D [11:54:06]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:54:06]wFMCommunicate OK [11:54:06]SAM_PROTO_GetShiftState done [11:54:06]FM_GetShiftState done [11:54:06]opened in 1727052070 [11:54:06]opened+sec_in_day 1727138470 [11:54:06]quantity*price = 100005 [11:54:06]sum+1 = 100006 [11:54:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 92 23.09.2024 11:54 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115609 ФПД: 260015832953695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115407&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115609&fm=260015832953695&tin=02508201610067®Number=0000000000091831&sum=100000 [11:54:07]StoreToDocumentArchive [11:54:07]shift 472 fd 115609 [11:54:07]save to /storage/0472/doc_00115609 [11:54:07]save last doc name /storage/0472/doc_00115609 to /storage/kkm_last_doc_name [11:54:07]save OK [11:54:07]Clear old archive folders... [11:54:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:07]tlvbuf is 01F59890 [11:54:07]SAM_PROTO_ClearQueue [11:54:07]wFMCommunicate request_size=4 [11:54:07]MH_SAM_APDU [11:54:07]CAPDU: 80 09 00 00 [11:54:07]Write to MH i2c: E2 08 00 AB 01 80 09 00 00 00 00 00 00 1E [11:54:07]Write i2c OK [11:54:07]MH_I2C_Read... [11:54:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:07]Read from MH i2c: E2 [11:54:07]MH_I2C_Read... [11:54:07]Read from MH i2c: E2 03 00 [11:54:07]MH_I2C_Read... [11:54:07]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [11:54:07]RAPDU: 90 00 [11:54:07]wFMCommunicate OK [11:54:07]SAM_PROTO_ClearQueue done [11:54:07]KKMCreateOFDPacket [11:54:07]OFDProtocolAddRootSTLVToBuf [11:54:07]FM_MakeSignedData [11:54:07]FM_MakeSignedData [11:54:07]SAM_PROTO_SignData [11:54:07]wFMCommunicate request_size=4 [11:54:07]MH_SAM_APDU [11:54:07]CAPDU: 80 0D 01 02 [11:54:07]Write to MH i2c: E2 08 00 AC 01 80 0D 01 02 00 00 00 00 26 [11:54:07]Write i2c OK [11:54:07]MH_I2C_Read... [11:54:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:07]Read from MH i2c: E2 [11:54:07]MH_I2C_Read... [11:54:07]Read from MH i2c: E2 03 00 [11:54:07]MH_I2C_Read... [11:54:07]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [11:54:07]RAPDU: 90 00 [11:54:07]wFMCommunicate OK [11:54:07]wFMCommunicate request_size=255 [11:54:07]MH_SAM_APDU [11:54:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DF 56 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 99 C3 01 00 35 04 06 00 EC [11:54:07]Write to MH i2c: E2 02 01 AD 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DF 56 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 99 C3 01 00 35 04 06 00 EC 00 00 36 [11:54:07]Write i2c OK [11:54:07]MH_I2C_Read... [11:54:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:08]Read from MH i2c: E2 [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: E2 03 00 [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: E2 03 00 AD 01 00 90 00 22 [11:54:08]RAPDU: 90 00 [11:54:08]wFMCommunicate OK [11:54:08]wFMCommunicate request_size=10 [11:54:08]MH_SAM_APDU [11:54:08]CAPDU: 80 0D 02 02 05 7B A7 5B F3 5F [11:54:08]Write to MH i2c: E2 0D 00 AE 01 80 0D 02 02 05 00 7B A7 5B F3 5F 00 00 02 [11:54:08]Write i2c OK [11:54:08]MH_I2C_Read... [11:54:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:08]Read from MH i2c: E2 [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: E2 03 00 [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: E2 03 00 AE 01 00 90 00 23 [11:54:08]RAPDU: 90 00 [11:54:08]wFMCommunicate OK [11:54:08]wFMCommunicate request_size=4 [11:54:08]MH_SAM_APDU [11:54:08]CAPDU: 80 0D 03 02 [11:54:08]Write to MH i2c: E2 08 00 AF 01 80 0D 03 02 00 00 00 00 2B [11:54:08]Write i2c OK [11:54:08]MH_I2C_Read... [11:54:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:08]Read from MH i2c: E2 [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: E2 0B 00 [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: E2 0B 00 AF 01 00 3A BD 71 69 73 DF F8 7A 90 00 C1 [11:54:08]RAPDU: 3A BD 71 69 73 DF F8 7A 90 00 [11:54:08]wFMCommunicate OK [11:54:08]SAM_PROTO_SignData done [11:54:08]FM_MakeSignedData done [11:54:08]CreateOFDProtocolMessage [11:54:08]wFMCommunicate request_size=4 [11:54:08]MH_SAM_APDU [11:54:08]CAPDU: 80 11 00 00 [11:54:08]Write to MH i2c: E2 08 00 B0 01 80 11 00 00 00 00 00 00 2B [11:54:08]Write i2c OK [11:54:08]MH_I2C_Read... [11:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:08]Read from MH i2c: E2 [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: E2 17 00 [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: E2 17 00 B0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 79 [11:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:54:08]wFMCommunicate OK [11:54:08]CreateOFDProtocolMessage done [11:54:08]OFDSenderStorePacket 115609 [11:54:08]StoreOFDPacket docnum=115609 [11:54:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 8A 85 07 01 CF F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DF 56 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 99 C3 01 00 35 04 06 00 EC 7B A7 5B F3 5F 3A BD 71 69 73 DF F8 7A [11:54:08]CheckFolder [11:54:08]dirname=/storage/ofd_packets [11:54:08]CheckFolder done [11:54:08]ProducePacketName [11:54:08]name=ofd_packets/00115609 [11:54:08]NVStorageSaveData ofd_packets/00115609 [11:54:08]File name is /storage/ofd_packets/00115609 [11:54:08]Write 301 bytes [11:54:08]NVStorageSaveData done [11:54:08]OFDSenderStorePacket done [11:54:08]KKMCreateOFDPacket done [11:54:08]NVStorageSaveData kkm_last_timestamp [11:54:08]File name is /storage/kkm_last_timestamp [11:54:08]Write 4 bytes [11:54:08]NVStorageSaveData done [11:54:08]ExternCall_PrintAddStr [11:54:08]wPrintStart [11:54:08]Write to MH i2c: 01 00 00 B1 01 B2 [11:54:08]Write i2c OK [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: 01 [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: 01 07 00 [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: 01 07 00 B1 01 00 00 00 00 00 FF 0F C7 [11:54:08]RasterBufferAndPrint [11:54:08]line Счет N : (1)24617593 [11:54:08]line ИНН: 02508201610067 [11:54:08]line Контрольно-Кассовый Чек [11:54:08]line ПРОДАЖА [11:54:08]line ТРК (МРК, ГНК) : 43 [11:54:08]line Товар: 2710124130 [11:54:08]line Аи-92-К-5 [11:54:08]line 14.750 * 67.80 [11:54:08]line = 1000.05 [11:54:08]line НДС 12% НСП 1% [11:54:08]line > о реализуемом товаре [11:54:08]line ОКРУГЛЕНИЕ: -0.05 [11:54:08]line ИТОГО: 1000.00 [11:54:08]line Внесено: 1000.00 [11:54:08]line СДАЧА: 0.00 [11:54:08]line НСП 1% : 8.85 [11:54:08]line НДС 12% : 106.20 [11:54:08]line Наличными: 1000.00 [11:54:08]line Безнал.: 0.00 [11:54:08]line Место: АЗС № 90 "Партнер Нефть" [11:54:08]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:54:08]line СНО: Общий режим [11:54:08]line Чек 92 23.09.2024 11:54 [11:54:08]line Смена: 472 ФФД: 1.0 [11:54:08]line ЗНМ: 0300000120 [11:54:08]line РНМ: 0000000000091831 [11:54:08]line Версия ККМ: 001 [11:54:08]line ФМ: 0000000000871830 [11:54:08]line ФД: 115609 [11:54:08]line ФПД: 260015832953695 [11:54:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115407&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115609&fm=260015832953695&tin=02508201610067®Number=0000000000091831&sum=100000 [11:54:08]written 0, free lines is 4095 [11:54:08]OFD Sender: Processing packet 115609 [packets to send 481, broken 480] [11:54:08]ProducePacketName [11:54:08]name=ofd_packets/00115609 [11:54:08]OFD Sender: To server: pG, [11:54:08]CommunicateWithHost lk.salyk.kg:30040 [11:54:08]ConnectInit lk.salyk.kg [11:54:08]Connected sock=10 [11:54: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 38 33 30 0F 01 00 00 8A 85 07 01 CF F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DF 56 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 99 C3 01 00 35 04 06 00 EC 7B A7 5B F3 5F 3A BD 71 69 73 DF F8 7A [11:54:09]Write to MH i2c: 01 00 00 DB 01 DC [11:54:09]Write i2c OK [11:54:09]MH_I2C_Read... [11:54:09]Read from MH i2c: 01 [11:54:09]MH_I2C_Read... [11:54:09]Read from MH i2c: 01 07 00 [11:54:09]MH_I2C_Read... [11:54:09]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 6E 0C 5D [11:54:09]RasterBufferAndPrint [11:54:09]line [11:54:09]line [11:54:09]line [11:54:09]line [11:54:09]line [11:54:09]written 0, free lines is 3185 [11:54:09]MH_Cut [11:54:09]Write to MH i2c: D1 01 00 E2 01 01 B5 [11:54:09]Write i2c OK [11:54:09]MH_I2C_Read... [11:54:09]Read from MH i2c: D1 [11:54:09]MH_I2C_Read... [11:54:09]Read from MH i2c: D1 01 00 [11:54:09]MH_I2C_Read... [11:54:09]Read from MH i2c: D1 01 00 E2 01 00 B4 [11:54:09]Write to MH i2c: 01 00 00 E3 01 E4 [11:54:09]Write i2c OK [11:54:09]MH_I2C_Read... [11: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 38 33 30 4F 00 00 00 FD 3E 47 00 FA 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 38 33 30 10 04 04 00 99 C3 01 00 F4 03 04 00 22 FC F0 66 B6 04 01 00 00 18 F8 16 14 6A BA 2C 68 [11:54:09]CommunicateWithHost err = 0 [11:54:09]CheckOFDResponse [11:54:09]1017 (14) - 77093643461234 [11:54:09]1041 (16) - 0000000000871830 [11:54:09]1040 (4) - 115609 [11:54:09]1012 (4) - 23.09.2024 05:26 [11:54:09]1206 (1) - 0 [11:54:09]OFD Sender: Remove packet 115609 [11:54:09]ProducePacketName [11:54:09]name=ofd_packets/00115609 [11:54:09]NVStorageDeleteData [11:54:09]OFD Sender: No OFD packet to send [11:54:10]*** Cut start [11:54:10]*** Partial cut [11:54:10]*** CUTSNS_PIN = 1 [11:54:10]*** CUTSNS_PIN = 0 [11:54:10]*** Brake cut motor [11:54:11]Read from MH i2c: 01 [11:54:11]MH_I2C_Read... [11:54:11]*** Stop cut motor [11:54:11]*** Cut end [11:54:11]Read from MH i2c: 01 07 00 [11:54:11]MH_I2C_Read... [11:54:11]Read from MH i2c: 01 07 00 E3 01 00 00 00 00 00 FF 0F F9 [11:54:11]process_action close_receipt done [11:54:11]requested_data is exist [11:54:11]produce_requested_data [11:54:11]requested_item fm.sn is exist - process it [11:54:11]wFMCommunicate request_size=4 [11:54:11]MH_SAM_APDU [11:54:11]CAPDU: 80 11 00 00 [11:54:11]Write to MH i2c: E2 08 00 E4 01 80 11 00 00 00 00 00 00 5F [11:54:11]Write i2c OK [11:54:11]MH_I2C_Read... [11:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:11]Read from MH i2c: E2 [11:54:11]MH_I2C_Read... [11:54:11]Read from MH i2c: E2 17 00 [11:54:11]MH_I2C_Read... [11:54:11]Read from MH i2c: E2 17 00 E4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AD [11:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:54:11]wFMCommunicate OK [11:54:11]requested_item fd.num is exist - process it [11:54:11]SAM_PROTO_GetFieldsCounters [11:54:11]wFMCommunicate request_size=4 [11:54:11]MH_SAM_APDU [11:54:11]CAPDU: 80 13 00 00 [11:54:11]Write to MH i2c: E2 08 00 E5 01 80 13 00 00 00 00 00 00 62 [11:54:11]Write i2c OK [11:54:11]MH_I2C_Read... [11:54:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:11]Read from MH i2c: E2 [11:54:11]MH_I2C_Read... [11:54:11]Read from MH i2c: E2 62 00 [11:54:11]MH_I2C_Read... [11:54:11]Read from MH i2c: E2 62 00 E5 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 99 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [11: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 99 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:11]wFMCommunicate OK [11:54:11]SAM_PROTO_GetFieldsCounters done [11:54:11]requested_item shift.num is exist - process it [11:54:11]requested_item shift.opened is exist - process it [11:54:11]req_shift_opened [11:54:11]FM_GetShiftState [11:54:11]SAM_PROTO_GetShiftState [11:54:11]wFMCommunicate request_size=4 [11:54:11]MH_SAM_APDU [11:54:11]CAPDU: 80 13 01 00 [11:54:11]Write to MH i2c: E2 08 00 E6 01 80 13 01 00 00 00 00 00 64 [11:54:11]Write i2c OK [11:54:11]MH_I2C_Read... [11:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:11]Read from MH i2c: E2 [11:54:11]MH_I2C_Read... [11:54:11]Read from MH i2c: E2 0E 00 [11:54:11]MH_I2C_Read... [11:54:11]Read from MH i2c: E2 0E 00 E6 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A5 [11:54:11]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:54:11]wFMCommunicate OK [11:54:11]SAM_PROTO_GetShiftState done [11:54:11]FM_GetShiftState done [11:54:11]req_shift_opened done [11:54:11]requested_item shift.open_date is exist - process it [11:54:11]req_shift_open_date [11:54:11]req_shift_open_date done [11:54:11]produce_requested_data done [11:54:11]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115609,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:54:11]process_action_free close_receipt [11:54:11]json_value_free [11:54:11]json_value_free done [11:54:11]process_json_proto returns [11:54:11]Send response to host [11:54:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115609,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:54:11]free response buf [11:54:11]execute_script done [11:54:11]execute_script returns [11:54:11]free content buf [11:54:11]Sock 9.Close socket [11:54:11]Sock 9.Thread stoped [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [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:58]accept exits with 8 [11:54:58]New connection [11:54:58]New thread 3067501924 created [11:54:58]Thread 3067358564 joined [11:54:58]Waiting for new connection... [11:54:58] Sock 8.Parse request [11:54:58]Sock 8.Check first char [11:54:58]Sock 8.First char is OK [11:54:58]request: POST /json_proto HTTP/1.0 [11:54:58]Method: POST [11:54:58]URL: /json_proto [11:54:58]Method is POST - this is cgi request [11:54:58]url: /json_proto [11:54:58]query_string will be loaded in cgi processing [11:54:58]execute_cgi json_proto POST (null) [11:54:58]execute_cgi path=json_proto method=POST [11:54:58]POST find Content-Length [11:54:58]Host: 172.17.41.136:8080 [11:54:58]Content-Length: 633 [11:54:58]Content-Type: application/json [11:54:58] [11:54:58]POST finish read [11:54:58]Found Content-Length = 633 [11:54:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344001", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:58]execute_script... [11:54:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344001", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:58]POST & json_proto [11:54:58]process_json_proto [11:54:58]json parsed OK: [11:54:58]protocol is kg_v1.0 [11:54:58]action value=close_receipt [11:54:58]process_action close_receipt [11:54:58]cmd_close_receipt [11:54:58]MH_GetDate [11:54:58]Write to MH i2c: F0 00 00 E7 01 D7 [11:54:58]Write i2c OK [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: F0 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: F0 09 00 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: F0 09 00 E7 01 00 13 57 F1 66 1B D0 5A 64 4A [11:54:58]GetLastDocTimeStamp 1727092447 [11:54:58]current date 1727092499 [11:54:58]FM_GetShiftState [11:54:58]SAM_PROTO_GetShiftState [11:54:58]wFMCommunicate request_size=4 [11:54:58]MH_SAM_APDU [11:54:58]CAPDU: 80 13 01 00 [11:54:58]Write to MH i2c: E2 08 00 E8 01 80 13 01 00 00 00 00 00 66 [11:54:58]Write i2c OK [11:54:58]MH_I2C_Read... [11:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:58]Read from MH i2c: E2 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 0E 00 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 0E 00 E8 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A7 [11:54:58]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:54:58]wFMCommunicate OK [11:54:58]SAM_PROTO_GetShiftState done [11:54:58]FM_GetShiftState done [11:54:58]opened in 1727052070 [11:54:58]opened+sec_in_day 1727138470 [11:54:58]quantity*price = 13000 [11:54:58]sum+1 = 13001 [11:54:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 93 23.09.2024 11:54 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115610 ФПД: 27066359128531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115459&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115610&fm=27066359128531&tin=02508201610067®Number=0000000000091831&sum=13000 0 [11:54:59]StoreToDocumentArchive [11:54:59]shift 472 fd 115610 [11:54:59]save to /storage/0472/doc_00115610 [11:54:59]save last doc name /storage/0472/doc_00115610 to /storage/kkm_last_doc_name [11:54:59]save OK [11:54:59]Clear old archive folders... [11:54:59]ProcessDocumentItem done err = 0, tmpTLVsize=285 [11:54:59]tlvbuf is 01F70AF0 [11:54:59]SAM_PROTO_ClearQueue [11:54:59]wFMCommunicate request_size=4 [11:54:59]MH_SAM_APDU [11:54:59]CAPDU: 80 09 00 00 [11:54:59]Write to MH i2c: E2 08 00 F5 01 80 09 00 00 00 00 00 00 68 [11:54:59]Write i2c OK [11:54:59]MH_I2C_Read... [11:54:59]OFD Sender: No OFD packet to send [11:54:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:59]Read from MH i2c: E2 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: E2 03 00 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [11:54:59]RAPDU: 90 00 [11:54:59]wFMCommunicate OK [11:54:59]SAM_PROTO_ClearQueue done [11:54:59]KKMCreateOFDPacket [11:54:59]OFDProtocolAddRootSTLVToBuf [11:54:59]FM_MakeSignedData [11:54:59]FM_MakeSignedData [11:54:59]SAM_PROTO_SignData [11:54:59]wFMCommunicate request_size=4 [11:54:59]MH_SAM_APDU [11:54:59]CAPDU: 80 0D 01 02 [11:54:59]Write to MH i2c: E2 08 00 F6 01 80 0D 01 02 00 00 00 00 70 [11:54:59]Write i2c OK [11:54:59]MH_I2C_Read... [11:54:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:59]Read from MH i2c: E2 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: E2 03 00 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [11:54:59]RAPDU: 90 00 [11:54:59]wFMCommunicate OK [11:54:59]wFMCommunicate request_size=255 [11:54:59]MH_SAM_APDU [11:54:59]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 13 57 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 [11:54:59]Write to MH i2c: E2 02 01 F7 01 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 13 57 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 00 00 2C [11:54:59]Write i2c OK [11:54:59]MH_I2C_Read... [11:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:00]Read from MH i2c: E2 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: E2 03 00 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [11:55:00]RAPDU: 90 00 [11:55:00]wFMCommunicate OK [11:55:00]wFMCommunicate request_size=44 [11:55:00]MH_SAM_APDU [11:55:00]CAPDU: 80 0D 02 02 27 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9A C3 01 00 35 04 06 00 18 9D E0 B8 A1 D3 [11:55:00]Write to MH i2c: E2 2F 00 F8 01 80 0D 02 02 27 00 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9A C3 01 00 35 04 06 00 18 9D E0 B8 A1 D3 00 00 A8 [11:55:00]Write i2c OK [11:55:00]MH_I2C_Read... [11:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:00]Read from MH i2c: E2 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: E2 03 00 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: E2 03 00 F8 01 00 90 00 6D [11:55:00]RAPDU: 90 00 [11:55:00]wFMCommunicate OK [11:55:00]wFMCommunicate request_size=4 [11:55:00]MH_SAM_APDU [11:55:00]CAPDU: 80 0D 03 02 [11:55:00]Write to MH i2c: E2 08 00 F9 01 80 0D 03 02 00 00 00 00 75 [11:55:00]Write i2c OK [11:55:00]MH_I2C_Read... [11:55:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:00]Read from MH i2c: E2 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: E2 0B 00 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: E2 0B 00 F9 01 00 C7 B6 42 14 AD C6 D6 58 90 00 EA [11:55:00]RAPDU: C7 B6 42 14 AD C6 D6 58 90 00 [11:55:00]wFMCommunicate OK [11:55:00]SAM_PROTO_SignData done [11:55:00]FM_MakeSignedData done [11:55:00]CreateOFDProtocolMessage [11:55:00]wFMCommunicate request_size=4 [11:55:00]MH_SAM_APDU [11:55:00]CAPDU: 80 11 00 00 [11:55:00]Write to MH i2c: E2 08 00 FA 01 80 11 00 00 00 00 00 00 75 [11:55:00]Write i2c OK [11:55:00]MH_I2C_Read... [11:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:00]Read from MH i2c: E2 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: E2 17 00 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: E2 17 00 FA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C3 [11:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:55:00]wFMCommunicate OK [11:55:00]CreateOFDProtocolMessage done [11:55:00]OFDSenderStorePacket 115610 [11:55:00]StoreOFDPacket docnum=115610 [11:55:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 31 01 00 00 FE DB 29 01 37 87 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 13 57 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9A C3 01 00 35 04 06 00 18 9D E0 B8 A1 D3 C7 B6 42 14 AD C6 D6 58 [11:55:00]CheckFolder [11:55:00]dirname=/storage/ofd_packets [11:55:00]CheckFolder done [11:55:00]ProducePacketName [11:55:00]name=ofd_packets/00115610 [11:55:00]NVStorageSaveData ofd_packets/00115610 [11:55:00]File name is /storage/ofd_packets/00115610 [11:55:00]Write 335 bytes [11:55:00]NVStorageSaveData done [11:55:00]OFDSenderStorePacket done [11:55:00]KKMCreateOFDPacket done [11:55:00]NVStorageSaveData kkm_last_timestamp [11:55:00]File name is /storage/kkm_last_timestamp [11:55:00]Write 4 bytes [11:55:00]NVStorageSaveData done [11:55:00]ExternCall_PrintAddStr [11:55:00]wPrintStart [11:55:00]Write to MH i2c: 01 00 00 FB 01 FC [11:55:00]Write i2c OK [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: 01 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: 01 07 00 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: 01 07 00 FB 01 00 00 00 00 00 FF 0F 11 [11:55:00]RasterBufferAndPrint [11:55:00]line Счет N : (3)344001 [11:55:00]line ИНН: 02508201610067 [11:55:00]line Контрольно-Кассовый Чек [11:55:00]line ПРОДАЖА [11:55:00]line Товар: 48745291 [11:55:00]line Сигареты Parliament SOHO NYC COMPACT BLU [11:55:00]line 1.000 * 130.00 [11:55:00]line = 130.00 [11:55:00]line НДС 12% НСП 1% [11:55:00]line > о реализуемом товаре [11:55:00]line ИТОГО: 130.00 [11:55:00]line НСП 1% : 1.15 [11:55:00]line НДС 12% : 13.80 [11:55:00]line Наличными: 130.00 [11:55:00]line Безнал.: 0.00 [11:55:00]line Место: АЗС № 90 "Партнер Нефть" [11:55:00]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:55:00]line СНО: Общий режим [11:55:00]line Чек 93 23.09.2024 11:54 [11:55:00]line Смена: 472 ФФД: 1.0 [11:55:00]line ЗНМ: 0300000120 [11:55:00]line РНМ: 0000000000091831 [11:55:00]line Версия ККМ: 001 [11:55:00]line ФМ: 0000000000871830 [11:55:00]line ФД: 115610 [11:55:00]line ФПД: 27066359128531 [11:55:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115459&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115610&fm=27066359128531&tin=02508201610067®Number=0000000000091831&sum=13000 [11:55:00]line 0 [11:55:00]OFD Sender: Processing packet 115610 [packets to send 481, broken 480] [11:55:00]ProducePacketName [11:55:00]name=ofd_packets/00115610 [11:55:00]OFD Sender: To server: pG, [11:55:00]CommunicateWithHost lk.salyk.kg:30040 [11:55:00]ConnectInit lk.salyk.kg [11:55:00]written 0, free lines is 4095 [11:55:00]Connected sock=11 [11:55:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 31 01 00 00 FE DB 29 01 37 87 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 13 57 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9A C3 01 00 35 04 06 00 18 9D E0 B8 A1 D3 C7 B6 42 14 AD C6 D6 58 [11:55:01]Write to MH i2c: 01 00 00 23 02 25 [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: 01 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: 01 07 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 66 0C 9E [11:55:01]RasterBufferAndPrint [11:55:01]line [11:55:01]line [11:55:01]line [11:55:01]line [11:55:01]line [11:55:01]written 0, free lines is 3180 [11:55:01]MH_Cut [11:55:01]Write to MH i2c: D1 01 00 2A 02 01 FE [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: D1 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: D1 01 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: D1 01 00 2A 02 00 FD [11:55:01]Write to MH i2c: 01 00 00 2B 02 2D [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D7 0A 47 00 8A 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 38 33 30 10 04 04 00 9A C3 01 00 F4 03 04 00 56 FC F0 66 B6 04 01 00 00 CF 4C F1 1A 72 01 53 D3 [11:55:01]CommunicateWithHost err = 0 [11:55:01]CheckOFDResponse [11:55:01]1017 (14) - 77093643461234 [11:55:01]1041 (16) - 0000000000871830 [11:55:01]1040 (4) - 115610 [11:55:01]1012 (4) - 23.09.2024 05:27 [11:55:01]1206 (1) - 0 [11:55:01]OFD Sender: Remove packet 115610 [11:55:01]ProducePacketName [11:55:01]name=ofd_packets/00115610 [11:55:01]NVStorageDeleteData [11:55:01]OFD Sender: No OFD packet to send [11:55:02]*** Cut start [11:55:02]*** Partial cut [11:55:02]*** CUTSNS_PIN = 1 [11:55:02]*** CUTSNS_PIN = 0 [11:55:02]*** Brake cut motor [11:55:03]Read from MH i2c: 01 [11:55:03]MH_I2C_Read... [11:55:03]*** Stop cut motor [11:55:03]*** Cut end [11:55:03]Read from MH i2c: 01 07 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 07 00 2B 02 00 00 00 00 00 FF 0F 42 [11:55:03]process_action close_receipt done [11:55:03]requested_data is exist [11:55:03]produce_requested_data [11:55:03]requested_item fm.sn is exist - process it [11:55:03]wFMCommunicate request_size=4 [11:55:03]MH_SAM_APDU [11:55:03]CAPDU: 80 11 00 00 [11:55:03]Write to MH i2c: E2 08 00 2C 02 80 11 00 00 00 00 00 00 A8 [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:03]Read from MH i2c: E2 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 17 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 17 00 2C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F6 [11:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:55:03]wFMCommunicate OK [11:55:03]requested_item fd.num is exist - process it [11:55:03]SAM_PROTO_GetFieldsCounters [11:55:03]wFMCommunicate request_size=4 [11:55:03]MH_SAM_APDU [11:55:03]CAPDU: 80 13 00 00 [11:55:03]Write to MH i2c: E2 08 00 2D 02 80 13 00 00 00 00 00 00 AB [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:03]Read from MH i2c: E2 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 62 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 62 00 2D 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9A C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [11:55: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9A C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:03]wFMCommunicate OK [11:55:03]SAM_PROTO_GetFieldsCounters done [11:55:03]requested_item shift.num is exist - process it [11:55:03]requested_item shift.opened is exist - process it [11:55:03]req_shift_opened [11:55:03]FM_GetShiftState [11:55:03]SAM_PROTO_GetShiftState [11:55:03]wFMCommunicate request_size=4 [11:55:03]MH_SAM_APDU [11:55:03]CAPDU: 80 13 01 00 [11:55:03]Write to MH i2c: E2 08 00 2E 02 80 13 01 00 00 00 00 00 AD [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:03]Read from MH i2c: E2 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 0E 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 0E 00 2E 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 EE [11:55:03]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:55:03]wFMCommunicate OK [11:55:03]SAM_PROTO_GetShiftState done [11:55:03]FM_GetShiftState done [11:55:03]req_shift_opened done [11:55:03]requested_item shift.open_date is exist - process it [11:55:03]req_shift_open_date [11:55:03]req_shift_open_date done [11:55:03]produce_requested_data done [11:55:03]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115610,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:55:03]process_action_free close_receipt [11:55:03]json_value_free [11:55:03]json_value_free done [11:55:03]process_json_proto returns [11:55:03]Send response to host [11:55:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115610,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:55:03]free response buf [11:55:03]execute_script done [11:55:03]execute_script returns [11:55:03]free content buf [11:55:03]Sock 8.Close socket [11:55:03]Sock 8.Thread stoped [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:41]accept exits with 10 [11:56:41]New connection [11:56:41]New thread 3067358564 created [11:56:41]Thread 3067501924 joined [11:56:41]Waiting for new connection... [11:56:41] Sock 10.Parse request [11:56:41]Sock 10.Check first char [11:56:41]Sock 10.First char is OK [11:56:41]request: POST /json_proto HTTP/1.0 [11:56:41]Method: POST [11:56:41]URL: /json_proto [11:56:41]Method is POST - this is cgi request [11:56:41]url: /json_proto [11:56:41]query_string will be loaded in cgi processing [11:56:41]execute_cgi json_proto POST (null) [11:56:41]execute_cgi path=json_proto method=POST [11:56:41]POST find Content-Length [11:56:41]Host: 172.17.41.136:8080 [11:56:41]Content-Length: 621 [11:56:41]Content-Type: application/json [11:56:41] [11:56:41]POST finish read [11:56:41]Found Content-Length = 621 [11:56:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344002", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:41]execute_script... [11:56:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344002", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:41]POST & json_proto [11:56:41]process_json_proto [11:56:41]json parsed OK: [11:56:41]protocol is kg_v1.0 [11:56:41]action value=close_receipt [11:56:41]process_action close_receipt [11:56:41]cmd_close_receipt [11:56:41]MH_GetDate [11:56:41]Write to MH i2c: F0 00 00 2F 02 20 [11:56:41]Write i2c OK [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: F0 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: F0 09 00 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: F0 09 00 2F 02 00 7A 57 F1 66 1B D0 5A 64 FA [11:56:41]GetLastDocTimeStamp 1727092499 [11:56:41]current date 1727092602 [11:56:41]FM_GetShiftState [11:56:41]SAM_PROTO_GetShiftState [11:56:41]wFMCommunicate request_size=4 [11:56:41]MH_SAM_APDU [11:56:41]CAPDU: 80 13 01 00 [11:56:41]Write to MH i2c: E2 08 00 30 02 80 13 01 00 00 00 00 00 AF [11:56:41]Write i2c OK [11:56:41]MH_I2C_Read... [11:56:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:41]Read from MH i2c: E2 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: E2 0E 00 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: E2 0E 00 30 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F0 [11:56:41]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:56:41]wFMCommunicate OK [11:56:41]SAM_PROTO_GetShiftState done [11:56:41]FM_GetShiftState done [11:56:41]opened in 1727052070 [11:56:41]opened+sec_in_day 1727138470 [11:56:41]quantity*price = 14400 [11:56:41]sum+1 = 14401 [11:56:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 94 23.09.2024 11:56 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115611 ФПД: 212104475931237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115642&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115611&fm=212104475931237&tin=02508201610067®Number=0000000000091831&sum=14400 0 [11:56:43]StoreToDocumentArchive [11:56:43]shift 472 fd 115611 [11:56:43]save to /storage/0472/doc_00115611 [11:56:43]save last doc name /storage/0472/doc_00115611 to /storage/kkm_last_doc_name [11:56:43]save OK [11:56:43]Clear old archive folders... [11:56:43]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:56:43]tlvbuf is 01F59730 [11:56:43]SAM_PROTO_ClearQueue [11:56:43]wFMCommunicate request_size=4 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 09 00 00 [11:56:43]Write to MH i2c: E2 08 00 3D 02 80 09 00 00 00 00 00 00 B1 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [11:56:43]RAPDU: 90 00 [11:56:43]wFMCommunicate OK [11:56:43]SAM_PROTO_ClearQueue done [11:56:43]KKMCreateOFDPacket [11:56:43]OFDProtocolAddRootSTLVToBuf [11:56:43]FM_MakeSignedData [11:56:43]FM_MakeSignedData [11:56:43]SAM_PROTO_SignData [11:56:43]wFMCommunicate request_size=4 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 0D 01 02 [11:56:43]Write to MH i2c: E2 08 00 3E 02 80 0D 01 02 00 00 00 00 B9 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [11:56:43]RAPDU: 90 00 [11:56:43]wFMCommunicate OK [11:56:43]wFMCommunicate request_size=255 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 7A 57 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 [11:56:43]Write to MH i2c: E2 02 01 3F 02 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 7A 57 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 7F [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [11:56:43]RAPDU: 90 00 [11:56:43]wFMCommunicate OK [11:56:43]wFMCommunicate request_size=32 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 33 30 10 04 04 00 9B C3 01 00 35 04 06 00 C0 E8 6B F1 72 65 [11:56:43]Write to MH i2c: E2 23 00 40 02 80 0D 02 02 1B 00 30 30 30 38 37 31 38 33 30 10 04 04 00 9B C3 01 00 35 04 06 00 C0 E8 6B F1 72 65 00 00 4E [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [11:56:43]RAPDU: 90 00 [11:56:43]wFMCommunicate OK [11:56:43]wFMCommunicate request_size=4 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 0D 03 02 [11:56:43]Write to MH i2c: E2 08 00 41 02 80 0D 03 02 00 00 00 00 BE [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 0B 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 0B 00 41 02 00 71 7C D9 60 D2 68 70 34 90 00 C3 [11:56:43]RAPDU: 71 7C D9 60 D2 68 70 34 90 00 [11:56:43]wFMCommunicate OK [11:56:43]SAM_PROTO_SignData done [11:56:43]FM_MakeSignedData done [11:56:43]CreateOFDProtocolMessage [11:56:43]wFMCommunicate request_size=4 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 11 00 00 [11:56:43]Write to MH i2c: E2 08 00 42 02 80 11 00 00 00 00 00 00 BE [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 17 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 17 00 42 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0C [11:56:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:56:43]wFMCommunicate OK [11:56:43]CreateOFDProtocolMessage done [11:56:43]OFDSenderStorePacket 115611 [11:56:43]StoreOFDPacket docnum=115611 [11:56:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 C7 A9 1D 01 8B 12 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 7A 57 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9B C3 01 00 35 04 06 00 C0 E8 6B F1 72 65 71 7C D9 60 D2 68 70 34 [11:56:43]CheckFolder [11:56:43]dirname=/storage/ofd_packets [11:56:43]CheckFolder done [11:56:43]ProducePacketName [11:56:43]name=ofd_packets/00115611 [11:56:43]NVStorageSaveData ofd_packets/00115611 [11:56:43]File name is /storage/ofd_packets/00115611 [11:56:43]Write 323 bytes [11:56:43]NVStorageSaveData done [11:56:43]OFDSenderStorePacket done [11:56:43]KKMCreateOFDPacket done [11:56:43]NVStorageSaveData kkm_last_timestamp [11:56:43]File name is /storage/kkm_last_timestamp [11:56:43]Write 4 bytes [11:56:43]NVStorageSaveData done [11:56:43]ExternCall_PrintAddStr [11:56:43]wPrintStart [11:56:43]Write to MH i2c: 01 00 00 43 02 45 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: 01 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: 01 07 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: 01 07 00 43 02 00 00 00 00 00 FF 0F 5A [11:56:43]RasterBufferAndPrint [11:56:43]line Счет N : (3)344002 [11:56:43]line ИНН: 02508201610067 [11:56:43]line Контрольно-Кассовый Чек [11:56:43]line ПРОДАЖА [11:56:43]line Товар: 48743570 [11:56:43]line Сигареты Winston XStyle Blue [11:56:43]line 1.000 * 144.00 [11:56:43]line = 144.00 [11:56:43]line НДС 12% НСП 1% [11:56:43]line > о реализуемом товаре [11:56:43]line ИТОГО: 144.00 [11:56:43]line НСП 1% : 1.27 [11:56:43]line НДС 12% : 15.29 [11:56:43]line Наличными: 144.00 [11:56:43]line Безнал.: 0.00 [11:56:43]line Место: АЗС № 90 "Партнер Нефть" [11:56:43]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:56:43]line СНО: Общий режим [11:56:43]line Чек 94 23.09.2024 11:56 [11:56:43]line Смена: 472 ФФД: 1.0 [11:56:43]line ЗНМ: 0300000120 [11:56:43]line РНМ: 0000000000091831 [11:56:43]line Версия ККМ: 001 [11:56:43]line ФМ: 0000000000871830 [11:56:43]line ФД: 115611 [11:56:43]line ФПД: 212104475931237 [11:56:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115642&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115611&fm=212104475931237&tin=02508201610067®Number=0000000000091831&sum=14400 [11:56:43]line 0 [11:56:43]OFD Sender: Processing packet 115611 [packets to send 481, broken 480] [11:56:43]ProducePacketName [11:56:43]name=ofd_packets/00115611 [11:56:43]OFD Sender: To server: pG, [11:56:43]CommunicateWithHost lk.salyk.kg:30040 [11:56:43]ConnectInit lk.salyk.kg [11:56:43]written 0, free lines is 4095 [11:56:44]Connected sock=9 [11:56: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 38 33 30 25 01 00 00 C7 A9 1D 01 8B 12 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 7A 57 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9B C3 01 00 35 04 06 00 C0 E8 6B F1 72 65 71 7C D9 60 D2 68 70 34 [11:56:44]Write to MH i2c: 01 00 00 6A 02 6C [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: 01 [11:56:44]MH_I2C_Read... [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 6A 02 00 00 00 00 00 85 0C 04 [11:56:44]RasterBufferAndPrint [11:56:44]line [11:56:44]line [11:56:44]line [11:56:44]line [11:56:44]line [11:56:44]written 0, free lines is 3209 [11:56:44]MH_Cut [11:56:44]Write to MH i2c: D1 01 00 71 02 01 45 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: D1 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: D1 01 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: D1 01 00 71 02 00 44 [11:56:44]Write to MH i2c: 01 00 00 72 02 74 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 95 65 47 00 28 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 38 33 30 10 04 04 00 9B C3 01 00 F4 03 04 00 BD FC F0 66 B6 04 01 00 00 16 5D 94 BD B6 47 CB D8 [11:56:44]CommunicateWithHost err = 0 [11:56:44]CheckOFDResponse [11:56:44]1017 (14) - 77093643461234 [11:56:44]1041 (16) - 0000000000871830 [11:56:44]1040 (4) - 115611 [11:56:44]1012 (4) - 23.09.2024 05:29 [11:56:44]1206 (1) - 0 [11:56:44]OFD Sender: Remove packet 115611 [11:56:44]ProducePacketName [11:56:44]name=ofd_packets/00115611 [11:56:44]NVStorageDeleteData [11:56:45]OFD Sender: No OFD packet to send [11:56:45]*** Cut start [11:56:45]*** Partial cut [11:56:45]*** CUTSNS_PIN = 1 [11:56:45]*** CUTSNS_PIN = 0 [11:56:45]*** Brake cut motor [11:56:46]Read from MH i2c: 01 [11:56:46]MH_I2C_Read... [11:56:46]*** Stop cut motor [11:56:46]*** Cut end [11:56:46]Read from MH i2c: 01 07 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: 01 07 00 72 02 00 00 00 00 00 FF 0F 89 [11:56:46]process_action close_receipt done [11:56:46]requested_data is exist [11:56:46]produce_requested_data [11:56:46]requested_item fm.sn is exist - process it [11:56:46]wFMCommunicate request_size=4 [11:56:46]MH_SAM_APDU [11:56:46]CAPDU: 80 11 00 00 [11:56:46]Write to MH i2c: E2 08 00 73 02 80 11 00 00 00 00 00 00 EF [11:56:46]Write i2c OK [11:56:46]MH_I2C_Read... [11:56:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:46]Read from MH i2c: E2 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 17 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 17 00 73 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3D [11:56:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:56:46]wFMCommunicate OK [11:56:46]requested_item fd.num is exist - process it [11:56:46]SAM_PROTO_GetFieldsCounters [11:56:46]wFMCommunicate request_size=4 [11:56:46]MH_SAM_APDU [11:56:46]CAPDU: 80 13 00 00 [11:56:46]Write to MH i2c: E2 08 00 74 02 80 13 00 00 00 00 00 00 F2 [11:56:46]Write i2c OK [11:56:46]MH_I2C_Read... [11:56:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:46]Read from MH i2c: E2 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 62 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 62 00 74 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9B C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [11:56: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9B C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:46]wFMCommunicate OK [11:56:46]SAM_PROTO_GetFieldsCounters done [11:56:46]requested_item shift.num is exist - process it [11:56:46]requested_item shift.opened is exist - process it [11:56:46]req_shift_opened [11:56:46]FM_GetShiftState [11:56:46]SAM_PROTO_GetShiftState [11:56:46]wFMCommunicate request_size=4 [11:56:46]MH_SAM_APDU [11:56:46]CAPDU: 80 13 01 00 [11:56:46]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [11:56:46]Write i2c OK [11:56:46]MH_I2C_Read... [11:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:46]Read from MH i2c: E2 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 0E 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 35 [11:56:46]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [11:56:46]wFMCommunicate OK [11:56:46]SAM_PROTO_GetShiftState done [11:56:46]FM_GetShiftState done [11:56:46]req_shift_opened done [11:56:46]requested_item shift.open_date is exist - process it [11:56:46]req_shift_open_date [11:56:46]req_shift_open_date done [11:56:46]produce_requested_data done [11:56:46]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115611,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [11:56:46]process_action_free close_receipt [11:56:46]json_value_free [11:56:46]json_value_free done [11:56:46]process_json_proto returns [11:56:46]Send response to host [11:56:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115611,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [11:56:46]free response buf [11:56:46]execute_script done [11:56:46]execute_script returns [11:56:46]free content buf [11:56:46]Sock 10.Close socket [11:56:46]Sock 10.Thread stoped [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:26]accept exits with 8 [12:00:26]New connection [12:00:26]New thread 3067501924 created [12:00:26]Thread 3067358564 joined [12:00:26]Waiting for new connection... [12:00:26] Sock 8.Parse request [12:00:26]Sock 8.Check first char [12:00:26]Sock 8.First char is OK [12:00:26]request: POST /json_proto HTTP/1.0 [12:00:26]Method: POST [12:00:26]URL: /json_proto [12:00:26]Method is POST - this is cgi request [12:00:26]url: /json_proto [12:00:26]query_string will be loaded in cgi processing [12:00:26]execute_cgi json_proto POST (null) [12:00:26]execute_cgi path=json_proto method=POST [12:00:26]POST find Content-Length [12:00:26]Host: 172.17.41.136:8080 [12:00:26]Content-Length: 660 [12:00:26]Content-Type: application/json [12:00:26] [12:00:26]POST finish read [12:00:26]Found Content-Length = 660 [12:00:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:26]execute_script... [12: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)24617605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:26]POST & json_proto [12:00:26]process_json_proto [12:00:26]json parsed OK: [12:00:26]protocol is kg_v1.0 [12:00:26]action value=close_receipt [12:00:26]process_action close_receipt [12:00:26]cmd_close_receipt [12:00:26]MH_GetDate [12:00:26]Write to MH i2c: F0 00 00 76 02 67 [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: F0 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: F0 09 00 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: F0 09 00 76 02 00 5B 58 F1 66 1B D0 5A 64 23 [12:00:26]GetLastDocTimeStamp 1727092602 [12:00:26]current date 1727092827 [12:00:26]FM_GetShiftState [12:00:26]SAM_PROTO_GetShiftState [12:00:26]wFMCommunicate request_size=4 [12:00:26]MH_SAM_APDU [12:00:26]CAPDU: 80 13 01 00 [12:00:26]Write to MH i2c: E2 08 00 77 02 80 13 01 00 00 00 00 00 F6 [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:27]Read from MH i2c: E2 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 0E 00 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 0E 00 77 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 37 [12:00:27]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:00:27]wFMCommunicate OK [12:00:27]SAM_PROTO_GetShiftState done [12:00:27]FM_GetShiftState done [12:00:27]opened in 1727052070 [12:00:27]opened+sec_in_day 1727138470 [12:00:27]quantity*price = 50034 [12:00:27]sum+1 = 50036 [12:00:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 95 23.09.2024 12:00 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115612 ФПД: 263694255672861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T120028&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115612&fm=263694255672861&tin=02508201610067®Number=0000000000091831&sum=50000 [12:00:28]StoreToDocumentArchive [12:00:28]shift 472 fd 115612 [12:00:28]save to /storage/0472/doc_00115612 [12:00:28]save last doc name /storage/0472/doc_00115612 to /storage/kkm_last_doc_name [12:00:28]save OK [12:00:28]Clear old archive folders... [12:00:28]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:00:28]tlvbuf is 01F58850 [12:00:28]SAM_PROTO_ClearQueue [12:00:28]wFMCommunicate request_size=4 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 09 00 00 [12:00:28]Write to MH i2c: E2 08 00 84 02 80 09 00 00 00 00 00 00 F8 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 03 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [12:00:28]RAPDU: 90 00 [12:00:28]wFMCommunicate OK [12:00:28]SAM_PROTO_ClearQueue done [12:00:28]KKMCreateOFDPacket [12:00:28]OFDProtocolAddRootSTLVToBuf [12:00:28]FM_MakeSignedData [12:00:28]FM_MakeSignedData [12:00:28]SAM_PROTO_SignData [12:00:28]wFMCommunicate request_size=4 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 0D 01 02 [12:00:28]Write to MH i2c: E2 08 00 85 02 80 0D 01 02 00 00 00 00 00 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 03 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [12:00:28]RAPDU: 90 00 [12:00:28]wFMCommunicate OK [12:00:28]wFMCommunicate request_size=253 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 5C 58 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9C C3 01 00 35 04 06 00 EF D4 1A 70 4E 1D [12:00:28]Write to MH i2c: E2 00 01 86 02 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 5C 58 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9C C3 01 00 35 04 06 00 EF D4 1A 70 4E 1D 00 00 75 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 03 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [12:00:28]RAPDU: 90 00 [12:00:28]wFMCommunicate OK [12:00:28]wFMCommunicate request_size=4 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 0D 03 02 [12:00:28]Write to MH i2c: E2 08 00 87 02 80 0D 03 02 00 00 00 00 04 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 0B 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 0B 00 87 02 00 76 7D 10 8B DF 31 30 C2 90 00 95 [12:00:28]RAPDU: 76 7D 10 8B DF 31 30 C2 90 00 [12:00:28]wFMCommunicate OK [12:00:28]SAM_PROTO_SignData done [12:00:28]FM_MakeSignedData done [12:00:28]CreateOFDProtocolMessage [12:00:28]wFMCommunicate request_size=4 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 11 00 00 [12:00:28]Write to MH i2c: E2 08 00 88 02 80 11 00 00 00 00 00 00 04 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 17 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 17 00 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 52 [12:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:00:28]wFMCommunicate OK [12:00:28]CreateOFDProtocolMessage done [12:00:28]OFDSenderStorePacket 115612 [12:00:28]StoreOFDPacket docnum=115612 [12:00:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 87 19 00 01 8B 6E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 5C 58 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9C C3 01 00 35 04 06 00 EF D4 1A 70 4E 1D 76 7D 10 8B DF 31 30 C2 [12:00:28]CheckFolder [12:00:28]dirname=/storage/ofd_packets [12:00:28]CheckFolder done [12:00:28]ProducePacketName [12:00:28]name=ofd_packets/00115612 [12:00:28]NVStorageSaveData ofd_packets/00115612 [12:00:28]File name is /storage/ofd_packets/00115612 [12:00:28]Write 294 bytes [12:00:28]NVStorageSaveData done [12:00:28]OFDSenderStorePacket done [12:00:28]KKMCreateOFDPacket done [12:00:28]NVStorageSaveData kkm_last_timestamp [12:00:28]File name is /storage/kkm_last_timestamp [12:00:28]Write 4 bytes [12:00:28]NVStorageSaveData done [12:00:28]ExternCall_PrintAddStr [12:00:28]wPrintStart [12:00:28]Write to MH i2c: 01 00 00 89 02 8B [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: 01 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: 01 07 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 FF 0F A0 [12:00:28]RasterBufferAndPrint [12:00:28]line Счет N : (1)24617605 [12:00:28]line ИНН: 02508201610067 [12:00:28]line Контрольно-Кассовый Чек [12:00:28]line ПРОДАЖА [12:00:28]line ТРК (МРК, ГНК) : 44 [12:00:28]line Товар: 2710124130 [12:00:28]line SU-92 [12:00:28]line 7.220 * 69.30 [12:00:28]line = 500.35 [12:00:28]line НДС 12% НСП 1% [12:00:28]line > о реализуемом товаре [12:00:28]line ОКРУГЛЕНИЕ: -0.35 [12:00:28]line ИТОГО: 500.00 [12:00:28]line Внесено: 500.00 [12:00:28]line СДАЧА: 0.00 [12:00:28]line НСП 1% : 4.43 [12:00:28]line НДС 12% : 53.13 [12:00:28]line Наличными: 500.00 [12:00:28]line Безнал.: 0.00 [12:00:28]line Место: АЗС № 90 "Партнер Нефть" [12:00:28]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:00:28]line СНО: Общий режим [12:00:28]line Чек 95 23.09.2024 12:00 [12:00:28]line Смена: 472 ФФД: 1.0 [12:00:28]line ЗНМ: 0300000120 [12:00:28]line РНМ: 0000000000091831 [12:00:28]line Версия ККМ: 001 [12:00:28]line ФМ: 0000000000871830 [12:00:28]line ФД: 115612 [12:00:28]line ФПД: 263694255672861 [12:00:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T120028&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115612&fm=263694255672861&tin=02508201610067®Number=0000000000091831&sum=50000 [12:00:28]written 0, free lines is 4095 [12:00:28]OFD Sender: Processing packet 115612 [packets to send 481, broken 480] [12:00:28]ProducePacketName [12:00:28]name=ofd_packets/00115612 [12:00:28]OFD Sender: To server: pG, [12:00:28]CommunicateWithHost lk.salyk.kg:30040 [12:00:28]ConnectInit lk.salyk.kg [12:00:28]Connected sock=10 [12: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 38 33 30 08 01 00 00 87 19 00 01 8B 6E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 5C 58 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9C C3 01 00 35 04 06 00 EF D4 1A 70 4E 1D 76 7D 10 8B DF 31 30 C2 [12:00:29]Write to MH i2c: 01 00 00 B3 02 B5 [12:00:29]Write i2c OK [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: 01 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: 01 07 00 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 66 0C 2E [12:00:29]RasterBufferAndPrint [12:00:29]line [12:00:29]line [12:00:29]line [12:00:29]line [12:00:29]line [12:00:29]written 0, free lines is 3179 [12:00:29]MH_Cut [12:00:29]Write to MH i2c: D1 01 00 BA 02 01 8E [12:00:29]Write i2c OK [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: D1 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: D1 01 00 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: D1 01 00 BA 02 00 8D [12:00:29]Write to MH i2c: 01 00 00 BB 02 BD [12:00:29]Write i2c OK [12:00:29]MH_I2C_Read... [12:00:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 78 7D 47 00 3E 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 38 33 30 10 04 04 00 9C C3 01 00 F4 03 04 00 9E FD F0 66 B6 04 01 00 00 DA 3C 57 2D 6B B3 FA 7D [12:00:29]CommunicateWithHost err = 0 [12:00:29]CheckOFDResponse [12:00:29]1017 (14) - 77093643461234 [12:00:29]1041 (16) - 0000000000871830 [12:00:29]1040 (4) - 115612 [12:00:29]1012 (4) - 23.09.2024 05:33 [12:00:29]1206 (1) - 0 [12:00:29]OFD Sender: Remove packet 115612 [12:00:29]ProducePacketName [12:00:29]name=ofd_packets/00115612 [12:00:29]NVStorageDeleteData [12:00:29]OFD Sender: No OFD packet to send [12:00:30]*** Cut start [12:00:30]*** Partial cut [12:00:30]*** CUTSNS_PIN = 1 [12:00:30]*** CUTSNS_PIN = 0 [12:00:30]*** Brake cut motor [12:00:30]Read from MH i2c: 01 [12:00:30]MH_I2C_Read... [12:00:30]*** Stop cut motor [12:00:30]*** Cut end [12:00:30]Read from MH i2c: 01 07 00 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [12:00:30]process_action close_receipt done [12:00:30]requested_data is exist [12:00:30]produce_requested_data [12:00:30]requested_item fm.sn is exist - process it [12:00:30]wFMCommunicate request_size=4 [12:00:30]MH_SAM_APDU [12:00:30]CAPDU: 80 11 00 00 [12:00:30]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [12:00:30]Write i2c OK [12:00:30]MH_I2C_Read... [12:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:31]Read from MH i2c: E2 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 17 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 86 [12:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:00:31]wFMCommunicate OK [12:00:31]requested_item fd.num is exist - process it [12:00:31]SAM_PROTO_GetFieldsCounters [12:00:31]wFMCommunicate request_size=4 [12:00:31]MH_SAM_APDU [12:00:31]CAPDU: 80 13 00 00 [12:00:31]Write to MH i2c: E2 08 00 BD 02 80 13 00 00 00 00 00 00 3B [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:31]Read from MH i2c: E2 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 62 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 62 00 BD 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9C C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [12:00: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9C C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:31]wFMCommunicate OK [12:00:31]SAM_PROTO_GetFieldsCounters done [12:00:31]requested_item shift.num is exist - process it [12:00:31]requested_item shift.opened is exist - process it [12:00:31]req_shift_opened [12:00:31]FM_GetShiftState [12:00:31]SAM_PROTO_GetShiftState [12:00:31]wFMCommunicate request_size=4 [12:00:31]MH_SAM_APDU [12:00:31]CAPDU: 80 13 01 00 [12:00:31]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:31]Read from MH i2c: E2 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 0E 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7E [12:00:31]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:00:31]wFMCommunicate OK [12:00:31]SAM_PROTO_GetShiftState done [12:00:31]FM_GetShiftState done [12:00:31]req_shift_opened done [12:00:31]requested_item shift.open_date is exist - process it [12:00:31]req_shift_open_date [12:00:31]req_shift_open_date done [12:00:31]produce_requested_data done [12:00:31]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115612,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [12:00:31]process_action_free close_receipt [12:00:31]json_value_free [12:00:31]json_value_free done [12:00:31]process_json_proto returns [12:00:31]Send response to host [12:00:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115612,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [12:00:31]free response buf [12:00:31]execute_script done [12:00:31]execute_script returns [12:00:31]free content buf [12:00:31]Sock 8.Close socket [12:00:31]Sock 8.Thread stoped [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:02]accept exits with 9 [12:06:02]New connection [12:06:02]New thread 3067358564 created [12:06:02]Thread 3067501924 joined [12:06:02]Waiting for new connection... [12:06:02] Sock 9.Parse request [12:06:02]Sock 9.Check first char [12:06:02]Sock 9.First char is OK [12:06:02]request: POST /json_proto HTTP/1.0 [12:06:02]Method: POST [12:06:02]URL: /json_proto [12:06:02]Method is POST - this is cgi request [12:06:02]url: /json_proto [12:06:02]query_string will be loaded in cgi processing [12:06:02]execute_cgi json_proto POST (null) [12:06:02]execute_cgi path=json_proto method=POST [12:06:02]POST find Content-Length [12:06:02]Host: 172.17.41.136:8080 [12:06:02]Content-Length: 645 [12:06:02]Content-Type: application/json [12:06:02] [12:06:02]POST finish read [12:06:02]Found Content-Length = 645 [12:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344003", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:02]execute_script... [12:06:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344003", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:02]POST & json_proto [12:06:02]process_json_proto [12:06:02]json parsed OK: [12:06:02]protocol is kg_v1.0 [12:06:02]action value=close_receipt [12:06:02]process_action close_receipt [12:06:02]cmd_close_receipt [12:06:02]MH_GetDate [12:06:02]Write to MH i2c: F0 00 00 BF 02 B0 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: F0 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: F0 09 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: F0 09 00 BF 02 00 AB 59 F1 66 1B D0 5A 64 BD [12:06:02]GetLastDocTimeStamp 1727092828 [12:06:02]current date 1727093163 [12:06:02]FM_GetShiftState [12:06:02]SAM_PROTO_GetShiftState [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 13 01 00 [12:06:02]Write to MH i2c: E2 08 00 C0 02 80 13 01 00 00 00 00 00 3F [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0E 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0E 00 C0 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 80 [12:06:02]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:06:02]wFMCommunicate OK [12:06:02]SAM_PROTO_GetShiftState done [12:06:02]FM_GetShiftState done [12:06:02]opened in 1727052070 [12:06:02]opened+sec_in_day 1727138470 [12:06:02]quantity*price = 6000 [12:06:02]sum+1 = 6001 [12:06:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 96 23.09.2024 12:06 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115613 ФПД: 95931359437573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T120604&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115613&fm=95931359437573&tin=02508201610067®Number=0000000000091831&sum=6000 0 [12:06:04]StoreToDocumentArchive [12:06:04]shift 472 fd 115613 [12:06:04]save to /storage/0472/doc_00115613 [12:06:04]save last doc name /storage/0472/doc_00115613 to /storage/kkm_last_doc_name [12:06:04]save OK [12:06:04]Clear old archive folders... [12:06:04]ProcessDocumentItem done err = 0, tmpTLVsize=276 [12:06:04]tlvbuf is 01F71380 [12:06:04]SAM_PROTO_ClearQueue [12:06:04]wFMCommunicate request_size=4 [12:06:04]MH_SAM_APDU [12:06:04]CAPDU: 80 09 00 00 [12:06:04]Write to MH i2c: E2 08 00 CD 02 80 09 00 00 00 00 00 00 41 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:04]Read from MH i2c: E2 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [12:06:04]RAPDU: 90 00 [12:06:04]wFMCommunicate OK [12:06:04]SAM_PROTO_ClearQueue done [12:06:04]KKMCreateOFDPacket [12:06:04]OFDProtocolAddRootSTLVToBuf [12:06:04]FM_MakeSignedData [12:06:04]FM_MakeSignedData [12:06:04]SAM_PROTO_SignData [12:06:04]wFMCommunicate request_size=4 [12:06:04]MH_SAM_APDU [12:06:04]CAPDU: 80 0D 01 02 [12:06:04]Write to MH i2c: E2 08 00 CE 02 80 0D 01 02 00 00 00 00 49 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:04]Read from MH i2c: E2 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [12:06:04]RAPDU: 90 00 [12:06:04]wFMCommunicate OK [12:06:04]wFMCommunicate request_size=255 [12:06:04]MH_SAM_APDU [12:06:04]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 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 AC 59 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 [12:06:04]Write to MH i2c: E2 02 01 CF 02 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 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 AC 59 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 00 00 16 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:04]Read from MH i2c: E2 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [12:06:04]RAPDU: 90 00 [12:06:04]wFMCommunicate OK [12:06:04]wFMCommunicate request_size=35 [12:06:04]MH_SAM_APDU [12:06:04]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9D C3 01 00 35 04 06 00 57 3F C2 9A 23 05 [12:06:04]Write to MH i2c: E2 26 00 D0 02 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9D C3 01 00 35 04 06 00 57 3F C2 9A 23 05 00 00 B5 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:04]Read from MH i2c: E2 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [12:06:04]RAPDU: 90 00 [12:06:04]wFMCommunicate OK [12:06:04]wFMCommunicate request_size=4 [12:06:04]MH_SAM_APDU [12:06:04]CAPDU: 80 0D 03 02 [12:06:04]Write to MH i2c: E2 08 00 D1 02 80 0D 03 02 00 00 00 00 4E [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:04]Read from MH i2c: E2 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 0B 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 0B 00 D1 02 00 C0 A7 37 AA 97 26 93 CE 90 00 B5 [12:06:04]RAPDU: C0 A7 37 AA 97 26 93 CE 90 00 [12:06:04]wFMCommunicate OK [12:06:04]SAM_PROTO_SignData done [12:06:04]FM_MakeSignedData done [12:06:04]CreateOFDProtocolMessage [12:06:04]wFMCommunicate request_size=4 [12:06:04]MH_SAM_APDU [12:06:04]CAPDU: 80 11 00 00 [12:06:04]Write to MH i2c: E2 08 00 D2 02 80 11 00 00 00 00 00 00 4E [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:04]Read from MH i2c: E2 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 17 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 17 00 D2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9C [12:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:06:04]wFMCommunicate OK [12:06:04]CreateOFDProtocolMessage done [12:06:04]OFDSenderStorePacket 115613 [12:06:04]StoreOFDPacket docnum=115613 [12:06:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 DC 02 20 01 68 59 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 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 AC 59 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9D C3 01 00 35 04 06 00 57 3F C2 9A 23 05 C0 A7 37 AA 97 26 93 CE [12:06:04]CheckFolder [12:06:04]dirname=/storage/ofd_packets [12:06:04]CheckFolder done [12:06:04]ProducePacketName [12:06:04]name=ofd_packets/00115613 [12:06:04]NVStorageSaveData ofd_packets/00115613 [12:06:04]File name is /storage/ofd_packets/00115613 [12:06:04]Write 326 bytes [12:06:04]NVStorageSaveData done [12:06:04]OFDSenderStorePacket done [12:06:04]KKMCreateOFDPacket done [12:06:04]NVStorageSaveData kkm_last_timestamp [12:06:04]File name is /storage/kkm_last_timestamp [12:06:04]Write 4 bytes [12:06:04]NVStorageSaveData done [12:06:04]ExternCall_PrintAddStr [12:06:04]wPrintStart [12:06:04]Write to MH i2c: 01 00 00 D3 02 D5 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: 01 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: 01 07 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [12:06:04]RasterBufferAndPrint [12:06:04]line Счет N : (3)344003 [12:06:04]line ИНН: 02508201610067 [12:06:04]line Контрольно-Кассовый Чек [12:06:04]line ПРОДАЖА [12:06:04]line Товар: 4700000310043 [12:06:04]line Вода Жалалабат 27 1л [12:06:04]line 1.000 * 60.00 [12:06:04]line = 60.00 [12:06:04]line НДС 12% НСП 1% [12:06:04]line > о реализуемом товаре [12:06:04]line ИТОГО: 60.00 [12:06:04]line НСП 1% : 0.53 [12:06:04]line НДС 12% : 6.37 [12:06:04]line Наличными: 60.00 [12:06:04]line Безнал.: 0.00 [12:06:04]line Место: АЗС № 90 "Партнер Нефть" [12:06:04]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:06:04]line СНО: Общий режим [12:06:04]line Чек 96 23.09.2024 12:06 [12:06:04]line Смена: 472 ФФД: 1.0 [12:06:04]line ЗНМ: 0300000120 [12:06:04]line РНМ: 0000000000091831 [12:06:04]line Версия ККМ: 001 [12:06:04]line ФМ: 0000000000871830 [12:06:04]line ФД: 115613 [12:06:04]line ФПД: 95931359437573 [12:06:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T120604&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115613&fm=95931359437573&tin=02508201610067®Number=0000000000091831&sum=6000 [12:06:04]line 0 [12:06:04]written 0, free lines is 4095 [12:06:04]OFD Sender: Processing packet 115613 [packets to send 481, broken 480] [12:06:04]ProducePacketName [12:06:04]name=ofd_packets/00115613 [12:06:04]OFD Sender: To server: pG, [12:06:04]CommunicateWithHost lk.salyk.kg:30040 [12:06:04]ConnectInit lk.salyk.kg [12:06:05]Connected sock=10 [12:06: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 38 33 30 28 01 00 00 DC 02 20 01 68 59 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 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 AC 59 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9D C3 01 00 35 04 06 00 57 3F C2 9A 23 05 C0 A7 37 AA 97 26 93 CE [12:06:05]Write to MH i2c: 01 00 00 FA 02 FC [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: 01 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: 01 07 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: 01 07 00 FA 02 00 00 00 00 00 8B 0C 9A [12:06:05]RasterBufferAndPrint [12:06:05]line [12:06:05]line [12:06:05]line [12:06:05]line [12:06:05]line [12:06:05]written 0, free lines is 3215 [12:06:05]MH_Cut [12:06:05]Write to MH i2c: D1 01 00 01 03 01 D6 [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: D1 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: D1 01 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: D1 01 00 01 03 00 D5 [12:06:05]Write to MH i2c: 01 00 00 02 03 05 [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 45 08 47 00 72 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 38 33 30 10 04 04 00 9D C3 01 00 F4 03 04 00 EE FE F0 66 B6 04 01 00 00 26 83 00 CB 3E 43 61 86 [12:06:05]CommunicateWithHost err = 0 [12:06:05]CheckOFDResponse [12:06:05]1017 (14) - 77093643461234 [12:06:05]1041 (16) - 0000000000871830 [12:06:05]1040 (4) - 115613 [12:06:05]1012 (4) - 23.09.2024 05:38 [12:06:05]1206 (1) - 0 [12:06:05]OFD Sender: Remove packet 115613 [12:06:05]ProducePacketName [12:06:05]name=ofd_packets/00115613 [12:06:05]NVStorageDeleteData [12:06:05]OFD Sender: No OFD packet to send [12:06:06]*** Cut start [12:06:06]*** Partial cut [12:06:06]*** CUTSNS_PIN = 1 [12:06:06]*** CUTSNS_PIN = 0 [12:06:06]*** Brake cut motor [12:06:06]Read from MH i2c: 01 [12:06:06]MH_I2C_Read... [12:06:06]*** Stop cut motor [12:06:06]*** Cut end [12:06:06]Read from MH i2c: 01 07 00 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: 01 07 00 02 03 00 00 00 00 00 FF 0F 1A [12:06:06]process_action close_receipt done [12:06:06]requested_data is exist [12:06:06]produce_requested_data [12:06:06]requested_item fm.sn is exist - process it [12:06:06]wFMCommunicate request_size=4 [12:06:06]MH_SAM_APDU [12:06:06]CAPDU: 80 11 00 00 [12:06:06]Write to MH i2c: E2 08 00 03 03 80 11 00 00 00 00 00 00 80 [12:06:06]Write i2c OK [12:06:06]MH_I2C_Read... [12:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:07]Read from MH i2c: E2 [12:06:07]MH_I2C_Read... [12:06:07]Read from MH i2c: E2 17 00 [12:06:07]MH_I2C_Read... [12:06:07]Read from MH i2c: E2 17 00 03 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CE [12:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:06:07]wFMCommunicate OK [12:06:07]requested_item fd.num is exist - process it [12:06:07]SAM_PROTO_GetFieldsCounters [12:06:07]wFMCommunicate request_size=4 [12:06:07]MH_SAM_APDU [12:06:07]CAPDU: 80 13 00 00 [12:06:07]Write to MH i2c: E2 08 00 04 03 80 13 00 00 00 00 00 00 83 [12:06:07]Write i2c OK [12:06:07]MH_I2C_Read... [12:06:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:07]Read from MH i2c: E2 [12:06:07]MH_I2C_Read... [12:06:07]Read from MH i2c: E2 62 00 [12:06:07]MH_I2C_Read... [12:06:07]Read from MH i2c: E2 62 00 04 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9D C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [12:06: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9D C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:07]wFMCommunicate OK [12:06:07]SAM_PROTO_GetFieldsCounters done [12:06:07]requested_item shift.num is exist - process it [12:06:07]requested_item shift.opened is exist - process it [12:06:07]req_shift_opened [12:06:07]FM_GetShiftState [12:06:07]SAM_PROTO_GetShiftState [12:06:07]wFMCommunicate request_size=4 [12:06:07]MH_SAM_APDU [12:06:07]CAPDU: 80 13 01 00 [12:06:07]Write to MH i2c: E2 08 00 05 03 80 13 01 00 00 00 00 00 85 [12:06:07]Write i2c OK [12:06:07]MH_I2C_Read... [12:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:07]Read from MH i2c: E2 [12:06:07]MH_I2C_Read... [12:06:07]Read from MH i2c: E2 0E 00 [12:06:07]MH_I2C_Read... [12:06:07]Read from MH i2c: E2 0E 00 05 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C6 [12:06:07]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:06:07]wFMCommunicate OK [12:06:07]SAM_PROTO_GetShiftState done [12:06:07]FM_GetShiftState done [12:06:07]req_shift_opened done [12:06:07]requested_item shift.open_date is exist - process it [12:06:07]req_shift_open_date [12:06:07]req_shift_open_date done [12:06:07]produce_requested_data done [12:06:07]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115613,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [12:06:07]process_action_free close_receipt [12:06:07]json_value_free [12:06:07]json_value_free done [12:06:07]process_json_proto returns [12:06:07]Send response to host [12:06:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115613,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [12:06:07]free response buf [12:06:07]execute_script done [12:06:07]execute_script returns [12:06:07]free content buf [12:06:07]Sock 9.Close socket [12:06:07]Sock 9.Thread stoped [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]accept exits with 8 [12:06:35]New connection [12:06:35]New thread 3067501924 created [12:06:35]Thread 3067358564 joined [12:06:35]Waiting for new connection... [12:06:35] Sock 8.Parse request [12:06:35]Sock 8.Check first char [12:06:35]Sock 8.First char is OK [12:06:35]request: POST /json_proto HTTP/1.0 [12:06:35]Method: POST [12:06:35]URL: /json_proto [12:06:35]Method is POST - this is cgi request [12:06:35]url: /json_proto [12:06:35]query_string will be loaded in cgi processing [12:06:35]execute_cgi json_proto POST (null) [12:06:35]execute_cgi path=json_proto method=POST [12:06:35]POST find Content-Length [12:06:35]Host: 172.17.41.136:8080 [12:06:35]Content-Length: 854 [12:06:35]Content-Type: application/json [12:06:35] [12:06:35]POST finish read [12:06:35]Found Content-Length = 854 [12:06:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344004", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:35]execute_script... [12:06:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344004", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:35]POST & json_proto [12:06:35]process_json_proto [12:06:35]json parsed OK: [12:06:35]protocol is kg_v1.0 [12:06:35]action value=close_receipt [12:06:35]process_action close_receipt [12:06:35]cmd_close_receipt [12:06:35]MH_GetDate [12:06:35]Write to MH i2c: F0 00 00 06 03 F8 [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: F0 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: F0 09 00 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: F0 09 00 06 03 00 CC 59 F1 66 1B D0 5A 64 26 [12:06:35]GetLastDocTimeStamp 1727093164 [12:06:35]current date 1727093196 [12:06:35]FM_GetShiftState [12:06:35]SAM_PROTO_GetShiftState [12:06:35]wFMCommunicate request_size=4 [12:06:35]MH_SAM_APDU [12:06:35]CAPDU: 80 13 01 00 [12:06:35]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:35]Read from MH i2c: E2 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 0E 00 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C8 [12:06:35]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:06:35]wFMCommunicate OK [12:06:35]SAM_PROTO_GetShiftState done [12:06:35]FM_GetShiftState done [12:06:35]opened in 1727052070 [12:06:35]opened+sec_in_day 1727138470 [12:06:35]quantity*price = 7700 [12:06:35]sum+1 = 7701 [12:06:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 0.00 Безнал.: 77.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 97 23.09.2024 12:06 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115614 ФПД: 167493494352920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T120636&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115614&fm=167493494352920&tin=02508201610067®Number=0000000000091831&sum=7700 0 [12:06:37]StoreToDocumentArchive [12:06:37]shift 472 fd 115614 [12:06:37]save to /storage/0472/doc_00115614 [12:06:37]save last doc name /storage/0472/doc_00115614 to /storage/kkm_last_doc_name [12:06:37]save OK [12:06:37]Clear old archive folders... [12:06:37]ProcessDocumentItem done err = 0, tmpTLVsize=284 [12:06:37]tlvbuf is 01F73300 [12:06:37]SAM_PROTO_ClearQueue [12:06:37]wFMCommunicate request_size=4 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 09 00 00 [12:06:37]Write to MH i2c: E2 08 00 14 03 80 09 00 00 00 00 00 00 89 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 03 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [12:06:37]RAPDU: 90 00 [12:06:37]wFMCommunicate OK [12:06:37]SAM_PROTO_ClearQueue done [12:06:37]KKMCreateOFDPacket [12:06:37]OFDProtocolAddRootSTLVToBuf [12:06:37]FM_MakeSignedData [12:06:37]FM_MakeSignedData [12:06:37]SAM_PROTO_SignData [12:06:37]wFMCommunicate request_size=4 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 0D 01 02 [12:06:37]Write to MH i2c: E2 08 00 15 03 80 0D 01 02 00 00 00 00 91 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 03 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [12:06:37]RAPDU: 90 00 [12:06:37]wFMCommunicate OK [12:06:37]wFMCommunicate request_size=255 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CC 59 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [12:06:37]Write to MH i2c: E2 02 01 16 03 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CC 59 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 79 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 03 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [12:06:37]RAPDU: 90 00 [12:06:37]wFMCommunicate OK [12:06:37]wFMCommunicate request_size=43 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9E C3 01 00 35 04 06 00 98 55 9E 3B AC 18 [12:06:37]Write to MH i2c: E2 2E 00 17 03 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9E C3 01 00 35 04 06 00 98 55 9E 3B AC 18 00 00 63 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 03 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [12:06:37]RAPDU: 90 00 [12:06:37]wFMCommunicate OK [12:06:37]wFMCommunicate request_size=4 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 0D 03 02 [12:06:37]Write to MH i2c: E2 08 00 18 03 80 0D 03 02 00 00 00 00 96 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 0B 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 0B 00 18 03 00 52 E0 E2 43 DA BC A2 DE 90 00 04 [12:06:37]RAPDU: 52 E0 E2 43 DA BC A2 DE 90 00 [12:06:37]wFMCommunicate OK [12:06:37]SAM_PROTO_SignData done [12:06:37]FM_MakeSignedData done [12:06:37]CreateOFDProtocolMessage [12:06:37]wFMCommunicate request_size=4 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 11 00 00 [12:06:37]Write to MH i2c: E2 08 00 19 03 80 11 00 00 00 00 00 00 96 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 17 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 17 00 19 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E4 [12:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:06:37]wFMCommunicate OK [12:06:37]CreateOFDProtocolMessage done [12:06:37]OFDSenderStorePacket 115614 [12:06:37]StoreOFDPacket docnum=115614 [12:06:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 8F 6D 28 01 0A 41 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CC 59 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9E C3 01 00 35 04 06 00 98 55 9E 3B AC 18 52 E0 E2 43 DA BC A2 DE [12:06:37]CheckFolder [12:06:37]dirname=/storage/ofd_packets [12:06:37]CheckFolder done [12:06:37]ProducePacketName [12:06:37]name=ofd_packets/00115614 [12:06:37]NVStorageSaveData ofd_packets/00115614 [12:06:37]File name is /storage/ofd_packets/00115614 [12:06:37]Write 334 bytes [12:06:37]NVStorageSaveData done [12:06:37]OFDSenderStorePacket done [12:06:37]KKMCreateOFDPacket done [12:06:37]NVStorageSaveData kkm_last_timestamp [12:06:37]File name is /storage/kkm_last_timestamp [12:06:37]Write 4 bytes [12:06:37]NVStorageSaveData done [12:06:37]ExternCall_PrintAddStr [12:06:37]wPrintStart [12:06:37]Write to MH i2c: 01 00 00 1A 03 1D [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: 01 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: 01 07 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: 01 07 00 1A 03 00 00 00 00 00 FF 0F 32 [12:06:37]RasterBufferAndPrint [12:06:37]line Счет N : (3)344004 [12:06:37]line ИНН: 02508201610067 [12:06:37]line Контрольно-Кассовый Чек [12:06:37]line ПРОДАЖА [12:06:37]line Товар: 4870233466272 [12:06:37]line Мороженое Пломбир Миша [12:06:37]line 1.000 * 77.00 [12:06:37]line = 77.00 [12:06:37]line НДС 12% НСП 1% [12:06:37]line > о реализуемом товаре [12:06:37]line ИТОГО: 77.00 [12:06:37]line НСП 1% : 0.68 [12:06:37]line НДС 12% : 8.18 [12:06:37]line Наличными: 0.00 [12:06:37]line Безнал.: 77.00 [12:06:37]line Место: АЗС № 90 "Партнер Нефть" [12:06:37]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:06:37]line СНО: Общий режим [12:06:37]line Чек 97 23.09.2024 12:06 [12:06:37]line Смена: 472 ФФД: 1.0 [12:06:37]line ЗНМ: 0300000120 [12:06:37]line РНМ: 0000000000091831 [12:06:37]line Версия ККМ: 001 [12:06:37]line Платежная система: Бакай Банк [12:06:37]line ФМ: 0000000000871830 [12:06:37]line ФД: 115614 [12:06:37]line ФПД: 167493494352920 [12:06:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T120636&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115614&fm=167493494352920&tin=02508201610067®Number=0000000000091831&sum=7700 [12:06:37]line 0 [12:06:37]written 0, free lines is 4095 [12:06:37]OFD Sender: Processing packet 115614 [packets to send 481, broken 480] [12:06:37]ProducePacketName [12:06:37]name=ofd_packets/00115614 [12:06:37]OFD Sender: To server: pG, [12:06:37]CommunicateWithHost lk.salyk.kg:30040 [12:06:37]ConnectInit lk.salyk.kg [12:06:37]Connected sock=10 [12:06: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 38 33 30 30 01 00 00 8F 6D 28 01 0A 41 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CC 59 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9E C3 01 00 35 04 06 00 98 55 9E 3B AC 18 52 E0 E2 43 DA BC A2 DE [12:06:38]Write to MH i2c: 01 00 00 43 03 46 [12:06:38]Write i2c OK [12:06:38]MH_I2C_Read... [12:06:38]Read from MH i2c: 01 [12:06:38]MH_I2C_Read... [12:06:38]Read from MH i2c: 01 07 00 [12:06:38]MH_I2C_Read... [12:06:38]Read from MH i2c: 01 07 00 43 03 00 00 00 00 00 59 0C B2 [12:06:38]RasterBufferAndPrint [12:06:38]line [12:06:38]line [12:06:38]line [12:06:38]line [12:06:38]line [12:06:38]written 0, free lines is 3166 [12:06:38]MH_Cut [12:06:38]Write to MH i2c: D1 01 00 4A 03 01 1F [12:06:38]Write i2c OK [12:06:38]MH_I2C_Read... [12:06:38]Read from MH i2c: D1 [12:06:38]MH_I2C_Read... [12:06:38]Read from MH i2c: D1 01 00 [12:06:38]MH_I2C_Read... [12:06:38]Read from MH i2c: D1 01 00 4A 03 00 1E [12:06:38]Write to MH i2c: 01 00 00 4B 03 4E [12:06:38]Write i2c OK [12:06:38]MH_I2C_Read... [12:06:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1E 3A 47 00 C3 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 38 33 30 10 04 04 00 9E C3 01 00 F4 03 04 00 0F FF F0 66 B6 04 01 00 00 62 21 01 7E 5D 69 68 A8 [12:06:38]CommunicateWithHost err = 0 [12:06:38]CheckOFDResponse [12:06:38]1017 (14) - 77093643461234 [12:06:38]1041 (16) - 0000000000871830 [12:06:38]1040 (4) - 115614 [12:06:38]1012 (4) - 23.09.2024 05:39 [12:06:38]1206 (1) - 0 [12:06:38]OFD Sender: Remove packet 115614 [12:06:38]ProducePacketName [12:06:38]name=ofd_packets/00115614 [12:06:38]NVStorageDeleteData [12:06:38]OFD Sender: No OFD packet to send [12:06:39]*** Cut start [12:06:39]*** Partial cut [12:06:39]*** CUTSNS_PIN = 1 [12:06:39]*** CUTSNS_PIN = 0 [12:06:39]*** Brake cut motor [12:06:40]Read from MH i2c: 01 [12:06:40]MH_I2C_Read... [12:06:40]*** Stop cut motor [12:06:40]*** Cut end [12:06:40]Read from MH i2c: 01 07 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: 01 07 00 4B 03 00 00 00 00 00 FF 0F 63 [12:06:40]process_action close_receipt done [12:06:40]requested_data is exist [12:06:40]produce_requested_data [12:06:40]requested_item fm.sn is exist - process it [12:06:40]wFMCommunicate request_size=4 [12:06:40]MH_SAM_APDU [12:06:40]CAPDU: 80 11 00 00 [12:06:40]Write to MH i2c: E2 08 00 4C 03 80 11 00 00 00 00 00 00 C9 [12:06:40]Write i2c OK [12:06:40]MH_I2C_Read... [12:06:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:40]Read from MH i2c: E2 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 17 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 17 00 4C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 17 [12:06:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:06:40]wFMCommunicate OK [12:06:40]requested_item fd.num is exist - process it [12:06:40]SAM_PROTO_GetFieldsCounters [12:06:40]wFMCommunicate request_size=4 [12:06:40]MH_SAM_APDU [12:06:40]CAPDU: 80 13 00 00 [12:06:40]Write to MH i2c: E2 08 00 4D 03 80 13 00 00 00 00 00 00 CC [12:06:40]Write i2c OK [12:06:40]MH_I2C_Read... [12:06:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:40]Read from MH i2c: E2 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 62 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 62 00 4D 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9E C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [12:06: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9E C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:40]wFMCommunicate OK [12:06:40]SAM_PROTO_GetFieldsCounters done [12:06:40]requested_item shift.num is exist - process it [12:06:40]requested_item shift.opened is exist - process it [12:06:40]req_shift_opened [12:06:40]FM_GetShiftState [12:06:40]SAM_PROTO_GetShiftState [12:06:40]wFMCommunicate request_size=4 [12:06:40]MH_SAM_APDU [12:06:40]CAPDU: 80 13 01 00 [12:06:40]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [12:06:40]Write i2c OK [12:06:40]MH_I2C_Read... [12:06:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:40]Read from MH i2c: E2 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 0E 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 0F [12:06:40]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:06:40]wFMCommunicate OK [12:06:40]SAM_PROTO_GetShiftState done [12:06:40]FM_GetShiftState done [12:06:40]req_shift_opened done [12:06:40]requested_item shift.open_date is exist - process it [12:06:40]req_shift_open_date [12:06:40]req_shift_open_date done [12:06:40]produce_requested_data done [12:06:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115614,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [12:06:40]process_action_free close_receipt [12:06:40]json_value_free [12:06:40]json_value_free done [12:06:40]process_json_proto returns [12:06:40]Send response to host [12:06:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115614,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [12:06:40]free response buf [12:06:40]execute_script done [12:06:40]execute_script returns [12:06:40]free content buf [12:06:40]Sock 8.Close socket [12:06:40]Sock 8.Thread stoped [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:04]OFD Sender: No OFD packet to send [12:13:09]OFD Sender: No OFD packet to send [12:13:14]OFD Sender: No OFD packet to send [12:13:19]OFD Sender: No OFD packet to send [12:13:24]OFD Sender: No OFD packet to send [12:13:29]OFD Sender: No OFD packet to send [12:13:34]OFD Sender: No OFD packet to send [12:13:39]OFD Sender: No OFD packet to send [12:13:44]OFD Sender: No OFD packet to send [12:13:49]OFD Sender: No OFD packet to send [12:13:54]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:29]OFD Sender: No OFD packet to send [12:14:34]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:17]accept exits with 9 [12:16:17]New connection [12:16:17]New thread 3067358564 created [12:16:17]Thread 3067501924 joined [12:16:17]Waiting for new connection... [12:16:17] Sock 9.Parse request [12:16:17]Sock 9.Check first char [12:16:17]Sock 9.First char is OK [12:16:17]request: POST /json_proto HTTP/1.0 [12:16:17]Method: POST [12:16:17]URL: /json_proto [12:16:17]Method is POST - this is cgi request [12:16:17]url: /json_proto [12:16:17]query_string will be loaded in cgi processing [12:16:17]execute_cgi json_proto POST (null) [12:16:17]execute_cgi path=json_proto method=POST [12:16:17]POST find Content-Length [12:16:17]Host: 172.17.41.136:8080 [12:16:17]Content-Length: 1039 [12:16:17]Content-Type: application/json [12:16:17] [12:16:17]POST finish read [12:16:17]Found Content-Length = 1039 [12:16:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344005", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:17]execute_script... [12:16:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344005", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:17]POST & json_proto [12:16:17]process_json_proto [12:16:17]json parsed OK: [12:16:17]protocol is kg_v1.0 [12:16:17]action value=close_receipt [12:16:17]process_action close_receipt [12:16:17]cmd_close_receipt [12:16:17]MH_GetDate [12:16:17]Write to MH i2c: F0 00 00 4F 03 41 [12:16:17]Write i2c OK [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: F0 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: F0 09 00 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: F0 09 00 4F 03 00 13 5C F1 66 1B D0 5A 64 B9 [12:16:17]GetLastDocTimeStamp 1727093196 [12:16:17]current date 1727093779 [12:16:17]FM_GetShiftState [12:16:17]SAM_PROTO_GetShiftState [12:16:17]wFMCommunicate request_size=4 [12:16:17]MH_SAM_APDU [12:16:17]CAPDU: 80 13 01 00 [12:16:17]Write to MH i2c: E2 08 00 50 03 80 13 01 00 00 00 00 00 D0 [12:16:17]Write i2c OK [12:16:18]MH_I2C_Read... [12:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:18]Read from MH i2c: E2 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 0E 00 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 0E 00 50 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 11 [12:16:18]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:16:18]wFMCommunicate OK [12:16:18]SAM_PROTO_GetShiftState done [12:16:18]FM_GetShiftState done [12:16:18]opened in 1727052070 [12:16:18]opened+sec_in_day 1727138470 [12:16:18]quantity*price = 39000 [12:16:18]sum+1 = 39001 [12:16:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 3.000 * 40.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 510.00 НСП 1% : 4.51 НДС 12% : 54.16 Наличными: 0.00 Безнал.: 510.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 98 23.09.2024 12:16 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115615 ФПД: 164598797036428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T121619&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115615&fm=164598797036428&tin=02508201610067®Number=0000000000091831&sum=51000 0 [12:16:19]StoreToDocumentArchive [12:16:19]shift 472 fd 115615 [12:16:19]save to /storage/0472/doc_00115615 [12:16:19]save last doc name /storage/0472/doc_00115615 to /storage/kkm_last_doc_name [12:16:19]save OK [12:16:19]Clear old archive folders... [12:16:19]ProcessDocumentItem done err = 0, tmpTLVsize=377 [12:16:19]tlvbuf is 01F72EE0 [12:16:19]SAM_PROTO_ClearQueue [12:16:19]wFMCommunicate request_size=4 [12:16:19]MH_SAM_APDU [12:16:19]CAPDU: 80 09 00 00 [12:16:19]Write to MH i2c: E2 08 00 5D 03 80 09 00 00 00 00 00 00 D2 [12:16:19]Write i2c OK [12:16:19]MH_I2C_Read... [12:16:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:19]Read from MH i2c: E2 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 03 00 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [12:16:19]RAPDU: 90 00 [12:16:19]wFMCommunicate OK [12:16:19]SAM_PROTO_ClearQueue done [12:16:19]KKMCreateOFDPacket [12:16:19]OFDProtocolAddRootSTLVToBuf [12:16:19]FM_MakeSignedData [12:16:19]FM_MakeSignedData [12:16:19]SAM_PROTO_SignData [12:16:19]wFMCommunicate request_size=4 [12:16:19]MH_SAM_APDU [12:16:19]CAPDU: 80 0D 01 02 [12:16:19]Write to MH i2c: E2 08 00 5E 03 80 0D 01 02 00 00 00 00 DA [12:16:19]Write i2c OK [12:16:19]MH_I2C_Read... [12:16:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:19]Read from MH i2c: E2 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 03 00 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [12:16:19]RAPDU: 90 00 [12:16:19]wFMCommunicate OK [12:16:19]wFMCommunicate request_size=255 [12:16:19]MH_SAM_APDU [12:16:19]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE [12:16:19]Write to MH i2c: E2 02 01 5F 03 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 00 00 DB [12:16:19]Write i2c OK [12:16:19]MH_I2C_Read... [12:16:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:19]Read from MH i2c: E2 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 03 00 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [12:16:19]RAPDU: 90 00 [12:16:19]wFMCommunicate OK [12:16:19]wFMCommunicate request_size=136 [12:16:19]MH_SAM_APDU [12:16:19]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 C7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 13 5C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9F C3 01 00 35 04 06 00 95 B3 A4 D3 EB 8C [12:16:19]Write to MH i2c: E2 8B 00 60 03 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 C7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 13 5C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9F C3 01 00 35 04 06 00 95 B3 A4 D3 EB 8C 00 00 F0 [12:16:19]Write i2c OK [12:16:19]MH_I2C_Read... [12:16:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:19]Read from MH i2c: E2 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 03 00 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [12:16:19]RAPDU: 90 00 [12:16:19]wFMCommunicate OK [12:16:19]wFMCommunicate request_size=4 [12:16:19]MH_SAM_APDU [12:16:19]CAPDU: 80 0D 03 02 [12:16:19]Write to MH i2c: E2 08 00 61 03 80 0D 03 02 00 00 00 00 DF [12:16:19]Write i2c OK [12:16:19]MH_I2C_Read... [12:16:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:19]Read from MH i2c: E2 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 0B 00 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 0B 00 61 03 00 30 A9 24 15 84 12 75 92 90 00 8F [12:16:19]RAPDU: 30 A9 24 15 84 12 75 92 90 00 [12:16:19]wFMCommunicate OK [12:16:19]SAM_PROTO_SignData done [12:16:19]FM_MakeSignedData done [12:16:19]CreateOFDProtocolMessage [12:16:19]wFMCommunicate request_size=4 [12:16:19]MH_SAM_APDU [12:16:19]CAPDU: 80 11 00 00 [12:16:19]Write to MH i2c: E2 08 00 62 03 80 11 00 00 00 00 00 00 DF [12:16:19]Write i2c OK [12:16:19]MH_I2C_Read... [12:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:19]Read from MH i2c: E2 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 17 00 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 17 00 62 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2D [12:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:16:19]wFMCommunicate OK [12:16:19]CreateOFDProtocolMessage done [12:16:19]OFDSenderStorePacket 115615 [12:16:19]StoreOFDPacket docnum=115615 [12:16:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8D 01 00 00 DB 87 85 01 FE B1 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 C7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 13 5C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9F C3 01 00 35 04 06 00 95 B3 A4 D3 EB 8C 30 A9 24 15 84 12 75 92 [12:16:19]CheckFolder [12:16:19]dirname=/storage/ofd_packets [12:16:19]CheckFolder done [12:16:19]ProducePacketName [12:16:19]name=ofd_packets/00115615 [12:16:19]NVStorageSaveData ofd_packets/00115615 [12:16:19]File name is /storage/ofd_packets/00115615 [12:16:19]Write 427 bytes [12:16:19]NVStorageSaveData done [12:16:19]OFDSenderStorePacket done [12:16:19]KKMCreateOFDPacket done [12:16:19]NVStorageSaveData kkm_last_timestamp [12:16:19]File name is /storage/kkm_last_timestamp [12:16:19]Write 4 bytes [12:16:19]NVStorageSaveData done [12:16:19]ExternCall_PrintAddStr [12:16:19]wPrintStart [12:16:19]Write to MH i2c: 01 00 00 63 03 66 [12:16:19]Write i2c OK [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: 01 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: 01 07 00 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: 01 07 00 63 03 00 00 00 00 00 FF 0F 7B [12:16:20]RasterBufferAndPrint [12:16:20]line Счет N : (3)344005 [12:16:20]line ИНН: 02508201610067 [12:16:20]line Контрольно-Кассовый Чек [12:16:20]line ПРОДАЖА [12:16:20]line Товар: 2000036230011 [12:16:20]line Кофе Латте XL(GABB TRADE) [12:16:20]line 3.000 * 130.00 [12:16:20]line = 390.00 [12:16:20]line НДС 12% НСП 1% [12:16:20]line > о реализуемом товаре [12:16:20]line Товар: 4700000160211 [12:16:20]line Вода Легенда 0,5л [12:16:20]line 3.000 * 40.00 [12:16:20]line = 120.00 [12:16:20]line НДС 12% НСП 1% [12:16:20]line > о реализуемом товаре [12:16:20]line ИТОГО: 510.00 [12:16:20]line НСП 1% : 4.51 [12:16:20]line НДС 12% : 54.16 [12:16:20]line Наличными: 0.00 [12:16:20]line Безнал.: 510.00 [12:16:20]line Место: АЗС № 90 "Партнер Нефть" [12:16:20]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:16:20]line СНО: Общий режим [12:16:20]line Чек 98 23.09.2024 12:16 [12:16:20]line Смена: 472 ФФД: 1.0 [12:16:20]line ЗНМ: 0300000120 [12:16:20]line РНМ: 0000000000091831 [12:16:20]line Версия ККМ: 001 [12:16:20]line Платежная система: O! деньги [12:16:20]line ФМ: 0000000000871830 [12:16:20]line ФД: 115615 [12:16:20]line ФПД: 164598797036428 [12:16:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T121619&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115615&fm=164598797036428&tin=02508201610067®Number=0000000000091831&sum=51000 [12:16:20]line 0 [12:16:20]OFD Sender: Processing packet 115615 [packets to send 481, broken 480] [12:16:20]ProducePacketName [12:16:20]name=ofd_packets/00115615 [12:16:20]OFD Sender: To server: pG, [12:16:20]CommunicateWithHost lk.salyk.kg:30040 [12:16:20]ConnectInit lk.salyk.kg [12:16:20]written 0, free lines is 4095 [12:16:20]Write to MH i2c: 01 00 00 92 03 95 [12:16:20]Write i2c OK [12:16:20]MH_I2C_Read... [12:16:20]Read from MH i2c: 01 [12:16:20]MH_I2C_Read... [12:16:20]Read from MH i2c: 01 07 00 [12:16:20]MH_I2C_Read... [12:16:20]Read from MH i2c: 01 07 00 92 03 00 00 00 00 00 D8 0B 7F [12:16:20]RasterBufferAndPrint [12:16:20]line [12:16:20]line [12:16:20]line [12:16:20]line [12:16:20]line [12:16:20]written 0, free lines is 3034 [12:16:20]MH_Cut [12:16:20]Write to MH i2c: D1 01 00 99 03 01 6E [12:16:20]Write i2c OK [12:16:20]MH_I2C_Read... [12:16:20]Read from MH i2c: D1 [12:16:20]MH_I2C_Read... [12:16:20]Read from MH i2c: D1 01 00 [12:16:20]MH_I2C_Read... [12:16:20]Read from MH i2c: D1 01 00 99 03 00 6D [12:16:20]Write to MH i2c: 01 00 00 9A 03 9D [12:16:20]Write i2c OK [12:16:20]MH_I2C_Read... [12:16:22]*** Cut start [12:16:22]*** Partial cut [12:16:22]*** CUTSNS_PIN = 1 [12:16:22]*** CUTSNS_PIN = 0 [12:16:22]*** Brake cut motor [12:16:22]Read from MH i2c: 01 [12:16:22]MH_I2C_Read... [12:16:22]*** Stop cut motor [12:16:22]*** Cut end [12:16:22]Read from MH i2c: 01 07 00 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: 01 07 00 9A 03 00 00 00 00 00 FF 0F B2 [12:16:22]process_action close_receipt done [12:16:22]requested_data is exist [12:16:22]produce_requested_data [12:16:22]requested_item fm.sn is exist - process it [12:16:22]wFMCommunicate request_size=4 [12:16:22]MH_SAM_APDU [12:16:22]CAPDU: 80 11 00 00 [12:16:22]Write to MH i2c: E2 08 00 9B 03 80 11 00 00 00 00 00 00 18 [12:16:22]Write i2c OK [12:16:22]MH_I2C_Read... [12:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:22]Read from MH i2c: E2 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 17 00 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 17 00 9B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 66 [12:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:16:22]wFMCommunicate OK [12:16:22]requested_item fd.num is exist - process it [12:16:22]SAM_PROTO_GetFieldsCounters [12:16:22]wFMCommunicate request_size=4 [12:16:22]MH_SAM_APDU [12:16:22]CAPDU: 80 13 00 00 [12:16:22]Write to MH i2c: E2 08 00 9C 03 80 13 00 00 00 00 00 00 1B [12:16:22]Write i2c OK [12:16:22]MH_I2C_Read... [12:16:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:22]Read from MH i2c: E2 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 62 00 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 62 00 9C 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9F C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [12:16: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 9F C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:22]wFMCommunicate OK [12:16:22]SAM_PROTO_GetFieldsCounters done [12:16:22]requested_item shift.num is exist - process it [12:16:22]requested_item shift.opened is exist - process it [12:16:22]req_shift_opened [12:16:22]FM_GetShiftState [12:16:22]SAM_PROTO_GetShiftState [12:16:22]wFMCommunicate request_size=4 [12:16:22]MH_SAM_APDU [12:16:22]CAPDU: 80 13 01 00 [12:16:22]Write to MH i2c: E2 08 00 9D 03 80 13 01 00 00 00 00 00 1D [12:16:22]Write i2c OK [12:16:22]MH_I2C_Read... [12:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:22]Read from MH i2c: E2 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 0E 00 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 0E 00 9D 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5E [12:16:22]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:16:22]wFMCommunicate OK [12:16:22]SAM_PROTO_GetShiftState done [12:16:22]FM_GetShiftState done [12:16:22]req_shift_opened done [12:16:22]requested_item shift.open_date is exist - process it [12:16:22]req_shift_open_date [12:16:22]req_shift_open_date done [12:16:22]produce_requested_data done [12:16:22]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115615,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [12:16:22]process_action_free close_receipt [12:16:22]json_value_free [12:16:22]json_value_free done [12:16:22]process_json_proto returns [12:16:22]Send response to host [12:16:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115615,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [12:16:22]free response buf [12:16:22]execute_script done [12:16:22]execute_script returns [12:16:22]free content buf [12:16:22]Sock 9.Close socket [12:16:22]Sock 9.Thread stoped [12:18:30]ConnectInit Can't connect to host [12:18:30]CommunicateWithHost connect error [12:18:30]CommunicateWithHost err = -1 [12:18:30]OFD Sender: Server communicate error [12:18:35]OFD Sender: Processing packet 115615 [packets to send 481, broken 480] [12:18:35]ProducePacketName [12:18:35]name=ofd_packets/00115615 [12:18:35]OFD Sender: To server: pG, [12:18:35]CommunicateWithHost lk.salyk.kg:30040 [12:18:35]ConnectInit lk.salyk.kg [12:18:36]Connected sock=9 [12:18: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 38 33 30 8D 01 00 00 DB 87 85 01 FE B1 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 C7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 13 5C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 9F C3 01 00 35 04 06 00 95 B3 A4 D3 EB 8C 30 A9 24 15 84 12 75 92 [12:18:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F0 D7 47 00 D4 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 38 33 30 10 04 04 00 9F C3 01 00 F4 03 04 00 DD 01 F1 66 B6 04 01 00 00 6F 65 87 67 0E 75 8E FA [12:18:36]CommunicateWithHost err = 0 [12:18:36]CheckOFDResponse [12:18:36]1017 (14) - 77093643461234 [12:18:36]1041 (16) - 0000000000871830 [12:18:36]1040 (4) - 115615 [12:18:36]1012 (4) - 23.09.2024 05:51 [12:18:36]1206 (1) - 0 [12:18:36]OFD Sender: Remove packet 115615 [12:18:36]ProducePacketName [12:18:36]name=ofd_packets/00115615 [12:18:36]NVStorageDeleteData [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:02]accept exits with 8 [12:30:02]New connection [12:30:02]New thread 3067501924 created [12:30:02]Thread 3067358564 joined [12:30:02]Waiting for new connection... [12:30:02] Sock 8.Parse request [12:30:02]Sock 8.Check first char [12:30:02]Sock 8.First char is OK [12:30:02]request: POST /json_proto HTTP/1.0 [12:30:02]Method: POST [12:30:02]URL: /json_proto [12:30:02]Method is POST - this is cgi request [12:30:02]url: /json_proto [12:30:02]query_string will be loaded in cgi processing [12:30:02]execute_cgi json_proto POST (null) [12:30:02]execute_cgi path=json_proto method=POST [12:30:02]POST find Content-Length [12:30:02]Host: 172.17.41.136:8080 [12:30:02]Content-Length: 701 [12:30:02]Content-Type: application/json [12:30:02] [12:30:02]POST finish read [12:30:02]Found Content-Length = 701 [12:30:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344006", "tax_sys" : 0, "items" : [ { "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:02]execute_script... [12:30:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344006", "tax_sys" : 0, "items" : [ { "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:02]POST & json_proto [12:30:02]process_json_proto [12:30:02]json parsed OK: [12:30:02]protocol is kg_v1.0 [12:30:02]action value=close_receipt [12:30:02]process_action close_receipt [12:30:02]cmd_close_receipt [12:30:02]MH_GetDate [12:30:02]Write to MH i2c: F0 00 00 9E 03 90 [12:30:02]Write i2c OK [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: F0 [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: F0 09 00 [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: F0 09 00 9E 03 00 4B 5F F1 66 1B D0 5A 64 43 [12:30:02]GetLastDocTimeStamp 1727093779 [12:30:02]current date 1727094603 [12:30:02]FM_GetShiftState [12:30:02]SAM_PROTO_GetShiftState [12:30:02]wFMCommunicate request_size=4 [12:30:02]MH_SAM_APDU [12:30:02]CAPDU: 80 13 01 00 [12:30:02]Write to MH i2c: E2 08 00 9F 03 80 13 01 00 00 00 00 00 1F [12:30:02]Write i2c OK [12:30:02]MH_I2C_Read... [12:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:02]Read from MH i2c: E2 [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: E2 0E 00 [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: E2 0E 00 9F 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 60 [12:30:02]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:30:02]wFMCommunicate OK [12:30:02]SAM_PROTO_GetShiftState done [12:30:02]FM_GetShiftState done [12:30:02]opened in 1727052070 [12:30:02]opened+sec_in_day 1727138470 [12:30:02]quantity*price = 9000 [12:30:02]sum+1 = 9001 [12:30:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 99 23.09.2024 12:30 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115616 ФПД: 277369607795974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123003&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115616&fm=277369607795974&tin=02508201610067®Number=0000000000091831&sum=9000 0 [12:30:03]StoreToDocumentArchive [12:30:03]shift 472 fd 115616 [12:30:03]save to /storage/0472/doc_00115616 [12:30:03]save last doc name /storage/0472/doc_00115616 to /storage/kkm_last_doc_name [12:30:03]save OK [12:30:03]Clear old archive folders... [12:30:03]ProcessDocumentItem done err = 0, tmpTLVsize=300 [12:30:03]tlvbuf is 01F71E60 [12:30:03]SAM_PROTO_ClearQueue [12:30:03]wFMCommunicate request_size=4 [12:30:03]MH_SAM_APDU [12:30:03]CAPDU: 80 09 00 00 [12:30:03]Write to MH i2c: E2 08 00 AC 03 80 09 00 00 00 00 00 00 21 [12:30:03]Write i2c OK [12:30:03]MH_I2C_Read... [12:30:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:04]Read from MH i2c: E2 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 03 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [12:30:04]RAPDU: 90 00 [12:30:04]wFMCommunicate OK [12:30:04]SAM_PROTO_ClearQueue done [12:30:04]KKMCreateOFDPacket [12:30:04]OFDProtocolAddRootSTLVToBuf [12:30:04]FM_MakeSignedData [12:30:04]FM_MakeSignedData [12:30:04]SAM_PROTO_SignData [12:30:04]wFMCommunicate request_size=4 [12:30:04]MH_SAM_APDU [12:30:04]CAPDU: 80 0D 01 02 [12:30:04]Write to MH i2c: E2 08 00 AD 03 80 0D 01 02 00 00 00 00 29 [12:30:04]Write i2c OK [12:30:04]MH_I2C_Read... [12:30:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:04]Read from MH i2c: E2 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 03 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [12:30:04]RAPDU: 90 00 [12:30:04]wFMCommunicate OK [12:30:04]wFMCommunicate request_size=255 [12:30:04]MH_SAM_APDU [12:30:04]CAPDU: 80 0D 02 02 FA 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4B 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 [12:30:04]Write to MH i2c: E2 02 01 AE 03 80 0D 02 02 FA 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4B 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 00 00 50 [12:30:04]Write i2c OK [12:30:04]MH_I2C_Read... [12:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:04]Read from MH i2c: E2 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 03 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [12:30:04]RAPDU: 90 00 [12:30:04]wFMCommunicate OK [12:30:04]wFMCommunicate request_size=59 [12:30:04]MH_SAM_APDU [12:30:04]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A0 C3 01 00 35 04 06 00 FC 44 24 F1 B5 06 [12:30:04]Write to MH i2c: E2 3E 00 AF 03 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A0 C3 01 00 35 04 06 00 FC 44 24 F1 B5 06 00 00 B9 [12:30:04]Write i2c OK [12:30:04]MH_I2C_Read... [12:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:04]Read from MH i2c: E2 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 03 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [12:30:04]RAPDU: 90 00 [12:30:04]wFMCommunicate OK [12:30:04]wFMCommunicate request_size=4 [12:30:04]MH_SAM_APDU [12:30:04]CAPDU: 80 0D 03 02 [12:30:04]Write to MH i2c: E2 08 00 B0 03 80 0D 03 02 00 00 00 00 2E [12:30:04]Write i2c OK [12:30:04]MH_I2C_Read... [12:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:04]Read from MH i2c: E2 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 0B 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 0B 00 B0 03 00 54 04 E7 D9 1C BC 43 0B 90 00 6D [12:30:04]RAPDU: 54 04 E7 D9 1C BC 43 0B 90 00 [12:30:04]wFMCommunicate OK [12:30:04]SAM_PROTO_SignData done [12:30:04]FM_MakeSignedData done [12:30:04]CreateOFDProtocolMessage [12:30:04]wFMCommunicate request_size=4 [12:30:04]MH_SAM_APDU [12:30:04]CAPDU: 80 11 00 00 [12:30:04]Write to MH i2c: E2 08 00 B1 03 80 11 00 00 00 00 00 00 2E [12:30:04]Write i2c OK [12:30:04]MH_I2C_Read... [12:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:04]Read from MH i2c: E2 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 17 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 17 00 B1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7C [12:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:30:04]wFMCommunicate OK [12:30:04]CreateOFDProtocolMessage done [12:30:04]OFDSenderStorePacket 115616 [12:30:04]StoreOFDPacket docnum=115616 [12:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 40 01 00 00 D3 74 38 01 C9 96 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4B 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A0 C3 01 00 35 04 06 00 FC 44 24 F1 B5 06 54 04 E7 D9 1C BC 43 0B [12:30:04]CheckFolder [12:30:04]dirname=/storage/ofd_packets [12:30:04]CheckFolder done [12:30:04]ProducePacketName [12:30:04]name=ofd_packets/00115616 [12:30:04]NVStorageSaveData ofd_packets/00115616 [12:30:04]File name is /storage/ofd_packets/00115616 [12:30:04]Write 350 bytes [12:30:04]NVStorageSaveData done [12:30:04]OFDSenderStorePacket done [12:30:04]KKMCreateOFDPacket done [12:30:04]NVStorageSaveData kkm_last_timestamp [12:30:04]File name is /storage/kkm_last_timestamp [12:30:04]Write 4 bytes [12:30:04]NVStorageSaveData done [12:30:04]ExternCall_PrintAddStr [12:30:04]wPrintStart [12:30:04]Write to MH i2c: 01 00 00 B2 03 B5 [12:30:04]Write i2c OK [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: 01 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: 01 07 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: 01 07 00 B2 03 00 00 00 00 00 FF 0F CA [12:30:04]RasterBufferAndPrint [12:30:04]line Счет N : (3)344006 [12:30:04]line ИНН: 02508201610067 [12:30:04]line Контрольно-Кассовый Чек [12:30:04]line ПРОДАЖА [12:30:04]line Товар: 4870235681079 [12:30:04]line Grizzly волнистые Сладкий чили 55 гр [12:30:04]line 1.000 * 90.00 [12:30:04]line = 90.00 [12:30:04]line НДС 12% НСП 1% [12:30:04]line > о реализуемом товаре [12:30:04]line ИТОГО: 90.00 [12:30:04]line НСП 1% : 0.80 [12:30:04]line НДС 12% : 9.56 [12:30:04]line Наличными: 90.00 [12:30:04]line Безнал.: 0.00 [12:30:04]line Место: АЗС № 90 "Партнер Нефть" [12:30:04]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:30:04]line СНО: Общий режим [12:30:04]line Чек 99 23.09.2024 12:30 [12:30:04]line Смена: 472 ФФД: 1.0 [12:30:04]line ЗНМ: 0300000120 [12:30:04]line РНМ: 0000000000091831 [12:30:04]line Версия ККМ: 001 [12:30:04]line ФМ: 0000000000871830 [12:30:04]line ФД: 115616 [12:30:04]line ФПД: 277369607795974 [12:30:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123003&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115616&fm=277369607795974&tin=02508201610067®Number=0000000000091831&sum=9000 [12:30:04]line 0 [12:30:04]written 0, free lines is 4095 [12:30:04]OFD Sender: Processing packet 115616 [packets to send 481, broken 480] [12:30:04]ProducePacketName [12:30:04]name=ofd_packets/00115616 [12:30:04]OFD Sender: To server: pG, [12:30:04]CommunicateWithHost lk.salyk.kg:30040 [12:30:04]ConnectInit lk.salyk.kg [12:30:04]Connected sock=10 [12:30: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 38 33 30 40 01 00 00 D3 74 38 01 C9 96 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4B 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A0 C3 01 00 35 04 06 00 FC 44 24 F1 B5 06 54 04 E7 D9 1C BC 43 0B [12:30:04]Write to MH i2c: 01 00 00 DA 03 DD [12:30:04]Write i2c OK [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: 01 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: 01 07 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 5D 0C 4D [12:30:04]RasterBufferAndPrint [12:30:04]line [12:30:04]line [12:30:04]line [12:30:04]line [12:30:04]line [12:30:05]written 0, free lines is 3169 [12:30:05]MH_Cut [12:30:05]Write to MH i2c: D1 01 00 E1 03 01 B6 [12:30:05]Write i2c OK [12:30:05]MH_I2C_Read... [12:30:05]Read from MH i2c: D1 [12:30:05]MH_I2C_Read... [12:30:05]Read from MH i2c: D1 01 00 [12:30:05]MH_I2C_Read... [12:30:05]Read from MH i2c: D1 01 00 E1 03 00 B5 [12:30:05]Write to MH i2c: 01 00 00 E2 03 E5 [12:30:05]Write i2c OK [12:30:05]MH_I2C_Read... [12:30:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1F C2 47 00 0B 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A0 C3 01 00 F4 03 04 00 8E 04 F1 66 B6 04 01 00 00 BF 55 D6 E0 28 25 F8 20 [12:30:05]CommunicateWithHost err = 0 [12:30:05]CheckOFDResponse [12:30:05]1017 (14) - 77093643461234 [12:30:05]1041 (16) - 0000000000871830 [12:30:05]1040 (4) - 115616 [12:30:05]1012 (4) - 23.09.2024 06:02 [12:30:05]1206 (1) - 0 [12:30:05]OFD Sender: Remove packet 115616 [12:30:05]ProducePacketName [12:30:05]name=ofd_packets/00115616 [12:30:05]NVStorageDeleteData [12:30:05]OFD Sender: No OFD packet to send [12:30:06]*** Cut start [12:30:06]*** Partial cut [12:30:06]*** CUTSNS_PIN = 1 [12:30:06]*** CUTSNS_PIN = 0 [12:30:06]*** Brake cut motor [12:30:06]Read from MH i2c: 01 [12:30:06]MH_I2C_Read... [12:30:06]*** Stop cut motor [12:30:06]*** Cut end [12:30:06]Read from MH i2c: 01 07 00 [12:30:06]MH_I2C_Read... [12:30:06]Read from MH i2c: 01 07 00 E2 03 00 00 00 00 00 FF 0F FA [12:30:06]process_action close_receipt done [12:30:06]requested_data is exist [12:30:06]produce_requested_data [12:30:06]requested_item fm.sn is exist - process it [12:30:06]wFMCommunicate request_size=4 [12:30:06]MH_SAM_APDU [12:30:06]CAPDU: 80 11 00 00 [12:30:06]Write to MH i2c: E2 08 00 E3 03 80 11 00 00 00 00 00 00 60 [12:30:06]Write i2c OK [12:30:06]MH_I2C_Read... [12:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:06]Read from MH i2c: E2 [12:30:06]MH_I2C_Read... [12:30:06]Read from MH i2c: E2 17 00 [12:30:06]MH_I2C_Read... [12:30:06]Read from MH i2c: E2 17 00 E3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AE [12:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:30:06]wFMCommunicate OK [12:30:06]requested_item fd.num is exist - process it [12:30:06]SAM_PROTO_GetFieldsCounters [12:30:06]wFMCommunicate request_size=4 [12:30:06]MH_SAM_APDU [12:30:06]CAPDU: 80 13 00 00 [12:30:06]Write to MH i2c: E2 08 00 E4 03 80 13 00 00 00 00 00 00 63 [12:30:06]Write i2c OK [12:30:06]MH_I2C_Read... [12:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:07]Read from MH i2c: E2 [12:30:07]MH_I2C_Read... [12:30:07]Read from MH i2c: E2 62 00 [12:30:07]MH_I2C_Read... [12:30:07]Read from MH i2c: E2 62 00 E4 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A0 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [12:30: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A0 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:07]wFMCommunicate OK [12:30:07]SAM_PROTO_GetFieldsCounters done [12:30:07]requested_item shift.num is exist - process it [12:30:07]requested_item shift.opened is exist - process it [12:30:07]req_shift_opened [12:30:07]FM_GetShiftState [12:30:07]SAM_PROTO_GetShiftState [12:30:07]wFMCommunicate request_size=4 [12:30:07]MH_SAM_APDU [12:30:07]CAPDU: 80 13 01 00 [12:30:07]Write to MH i2c: E2 08 00 E5 03 80 13 01 00 00 00 00 00 65 [12:30:07]Write i2c OK [12:30:07]MH_I2C_Read... [12:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:07]Read from MH i2c: E2 [12:30:07]MH_I2C_Read... [12:30:07]Read from MH i2c: E2 0E 00 [12:30:07]MH_I2C_Read... [12:30:07]Read from MH i2c: E2 0E 00 E5 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A6 [12:30:07]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:30:07]wFMCommunicate OK [12:30:07]SAM_PROTO_GetShiftState done [12:30:07]FM_GetShiftState done [12:30:07]req_shift_opened done [12:30:07]requested_item shift.open_date is exist - process it [12:30:07]req_shift_open_date [12:30:07]req_shift_open_date done [12:30:07]produce_requested_data done [12:30:07]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115616,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [12:30:07]process_action_free close_receipt [12:30:07]json_value_free [12:30:07]json_value_free done [12:30:07]process_json_proto returns [12:30:07]Send response to host [12:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115616,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [12:30:07]free response buf [12:30:07]execute_script done [12:30:07]execute_script returns [12:30:07]free content buf [12:30:07]Sock 8.Close socket [12:30:07]Sock 8.Thread stoped [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:43]accept exits with 9 [12:32:43]New connection [12:32:43]New thread 3067358564 created [12:32:43]Thread 3067501924 joined [12:32:43]Waiting for new connection... [12:32:43] Sock 9.Parse request [12:32:43]Sock 9.Check first char [12:32:43]Sock 9.First char is OK [12:32:43]request: POST /json_proto HTTP/1.0 [12:32:43]Method: POST [12:32:43]URL: /json_proto [12:32:43]Method is POST - this is cgi request [12:32:43]url: /json_proto [12:32:43]query_string will be loaded in cgi processing [12:32:43]execute_cgi json_proto POST (null) [12:32:43]execute_cgi path=json_proto method=POST [12:32:43]POST find Content-Length [12:32:43]Host: 172.17.41.136:8080 [12:32:43]Content-Length: 687 [12:32:43]Content-Type: application/json [12:32:43] [12:32:43]POST finish read [12:32:43]Found Content-Length = 687 [12:32:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 45.460, "sum" : 1700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:43]execute_script... [12:32: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)24617636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 45.460, "sum" : 1700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:43]POST & json_proto [12:32:43]process_json_proto [12:32:43]json parsed OK: [12:32:43]protocol is kg_v1.0 [12:32:43]action value=close_receipt [12:32:43]process_action close_receipt [12:32:43]cmd_close_receipt [12:32:43]MH_GetDate [12:32:43]Write to MH i2c: F0 00 00 E6 03 D8 [12:32:43]Write i2c OK [12:32:43]MH_I2C_Read... [12:32:43]Read from MH i2c: F0 [12:32:43]MH_I2C_Read... [12:32:43]Read from MH i2c: F0 09 00 [12:32:43]MH_I2C_Read... [12:32:43]Read from MH i2c: F0 09 00 E6 03 00 ED 5F F1 66 1B D0 5A 64 2D [12:32:43]GetLastDocTimeStamp 1727094603 [12:32:43]current date 1727094765 [12:32:43]FM_GetShiftState [12:32:43]SAM_PROTO_GetShiftState [12:32:43]wFMCommunicate request_size=4 [12:32:43]MH_SAM_APDU [12:32:43]CAPDU: 80 13 01 00 [12:32:43]Write to MH i2c: E2 08 00 E7 03 80 13 01 00 00 00 00 00 67 [12:32:43]Write i2c OK [12:32:43]MH_I2C_Read... [12:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:43]Read from MH i2c: E2 [12:32:43]MH_I2C_Read... [12:32:43]Read from MH i2c: E2 0E 00 [12:32:43]MH_I2C_Read... [12:32:43]Read from MH i2c: E2 0E 00 E7 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A8 [12:32:43]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:32:43]wFMCommunicate OK [12:32:43]SAM_PROTO_GetShiftState done [12:32:43]FM_GetShiftState done [12:32:43]opened in 1727052070 [12:32:43]opened+sec_in_day 1727138470 [12:32:43]quantity*price = 170020 [12:32:43]sum+1 = 170021 [12:32:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.55 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 100 23.09.2024 12:32 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115617 ФПД: 218670861912313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123245&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115617&fm=218670861912313&tin=02508201610067®Number=0000000000091831&sum=170000 [12:32:45]StoreToDocumentArchive [12:32:45]shift 472 fd 115617 [12:32:45]save to /storage/0472/doc_00115617 [12:32:45]save last doc name /storage/0472/doc_00115617 to /storage/kkm_last_doc_name [12:32:45]save OK [12:32:45]Clear old archive folders... [12:32:45]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:32:45]tlvbuf is 01F5ADC0 [12:32:45]SAM_PROTO_ClearQueue [12:32:45]wFMCommunicate request_size=4 [12:32:45]MH_SAM_APDU [12:32:45]CAPDU: 80 09 00 00 [12:32:45]Write to MH i2c: E2 08 00 F4 03 80 09 00 00 00 00 00 00 69 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [12:32:45]RAPDU: 90 00 [12:32:45]wFMCommunicate OK [12:32:45]SAM_PROTO_ClearQueue done [12:32:45]KKMCreateOFDPacket [12:32:45]OFDProtocolAddRootSTLVToBuf [12:32:45]FM_MakeSignedData [12:32:45]FM_MakeSignedData [12:32:45]SAM_PROTO_SignData [12:32:45]wFMCommunicate request_size=4 [12:32:45]MH_SAM_APDU [12:32:45]CAPDU: 80 0D 01 02 [12:32:45]Write to MH i2c: E2 08 00 F5 03 80 0D 01 02 00 00 00 00 71 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [12:32:45]RAPDU: 90 00 [12:32:45]wFMCommunicate OK [12:32:45]wFMCommunicate request_size=255 [12:32:45]MH_SAM_APDU [12:32:45]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 B1 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 24 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 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 ED 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A1 C3 01 00 35 04 06 00 C6 E1 [12:32:45]Write to MH i2c: E2 02 01 F6 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 B1 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 24 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 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 ED 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A1 C3 01 00 35 04 06 00 C6 E1 00 00 BA [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [12:32:45]RAPDU: 90 00 [12:32:45]wFMCommunicate OK [12:32:45]wFMCommunicate request_size=9 [12:32:45]MH_SAM_APDU [12:32:45]CAPDU: 80 0D 02 02 04 47 0C 08 F9 [12:32:45]Write to MH i2c: E2 0C 00 F7 03 80 0D 02 02 04 00 47 0C 08 F9 00 00 D0 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [12:32:45]RAPDU: 90 00 [12:32:45]wFMCommunicate OK [12:32:45]wFMCommunicate request_size=4 [12:32:45]MH_SAM_APDU [12:32:45]CAPDU: 80 0D 03 02 [12:32:45]Write to MH i2c: E2 08 00 F8 03 80 0D 03 02 00 00 00 00 76 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 0B 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 0B 00 F8 03 00 BE 8E 59 38 6A F2 CA 40 90 00 BA [12:32:45]RAPDU: BE 8E 59 38 6A F2 CA 40 90 00 [12:32:45]wFMCommunicate OK [12:32:45]SAM_PROTO_SignData done [12:32:45]FM_MakeSignedData done [12:32:45]CreateOFDProtocolMessage [12:32:45]wFMCommunicate request_size=4 [12:32:45]MH_SAM_APDU [12:32:45]CAPDU: 80 11 00 00 [12:32:45]Write to MH i2c: E2 08 00 F9 03 80 11 00 00 00 00 00 00 76 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 17 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 17 00 F9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C4 [12:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:32:45]wFMCommunicate OK [12:32:45]CreateOFDProtocolMessage done [12:32:45]OFDSenderStorePacket 115617 [12:32:45]StoreOFDPacket docnum=115617 [12:32:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 AD E7 06 01 6A AF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 B1 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 24 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 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 ED 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A1 C3 01 00 35 04 06 00 C6 E1 47 0C 08 F9 BE 8E 59 38 6A F2 CA 40 [12:32:45]CheckFolder [12:32:45]dirname=/storage/ofd_packets [12:32:45]CheckFolder done [12:32:45]ProducePacketName [12:32:45]name=ofd_packets/00115617 [12:32:45]NVStorageSaveData ofd_packets/00115617 [12:32:45]File name is /storage/ofd_packets/00115617 [12:32:45]Write 300 bytes [12:32:45]NVStorageSaveData done [12:32:45]OFDSenderStorePacket done [12:32:45]KKMCreateOFDPacket done [12:32:45]NVStorageSaveData kkm_last_timestamp [12:32:45]File name is /storage/kkm_last_timestamp [12:32:45]Write 4 bytes [12:32:45]NVStorageSaveData done [12:32:45]ExternCall_PrintAddStr [12:32:45]wPrintStart [12:32:45]Write to MH i2c: 01 00 00 FA 03 FD [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: 01 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: 01 07 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: 01 07 00 FA 03 00 00 00 00 00 FF 0F 12 [12:32:45]RasterBufferAndPrint [12:32:45]line Счет N : (1)24617636 [12:32:45]line ИНН: 02508201610067 [12:32:45]line Контрольно-Кассовый Чек [12:32:45]line ПРОДАЖА [12:32:45]line ТРК (МРК, ГНК) : 71 [12:32:45]line Товар: 2711190000 [12:32:45]line ГАЗ-К-5 [12:32:45]line 45.460 * 37.40 [12:32:45]line = 1700.20 [12:32:45]line НДС 12% НСП 1% [12:32:45]line > о реализуемом товаре [12:32:45]line ОКРУГЛЕНИЕ: -0.20 [12:32:45]line ИТОГО: 1700.00 [12:32:45]line Внесено: 1700.00 [12:32:45]line СДАЧА: 0.00 [12:32:45]line НСП 1% : 15.05 [12:32:45]line НДС 12% : 180.55 [12:32:45]line Наличными: 1700.00 [12:32:45]line Безнал.: 0.00 [12:32:45]line Место: АЗС № 90 "Партнер Нефть" [12:32:45]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:32:45]line СНО: Общий режим [12:32:45]line Чек 100 23.09.2024 12:32 [12:32:45]line Смена: 472 ФФД: 1.0 [12:32:45]line ЗНМ: 0300000120 [12:32:45]line РНМ: 0000000000091831 [12:32:45]line Версия ККМ: 001 [12:32:45]line ФМ: 0000000000871830 [12:32:45]line ФД: 115617 [12:32:45]line ФПД: 218670861912313 [12:32:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123245&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115617&fm=218670861912313&tin=02508201610067®Number=0000000000091831&sum=170000 [12:32:45]OFD Sender: Processing packet 115617 [packets to send 481, broken 480] [12:32:45]ProducePacketName [12:32:45]name=ofd_packets/00115617 [12:32:45]OFD Sender: To server: pG, [12:32:45]CommunicateWithHost lk.salyk.kg:30040 [12:32:45]ConnectInit lk.salyk.kg [12:32:45]written 0, free lines is 4095 [12:32:46]Connected sock=10 [12:32: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 38 33 30 0E 01 00 00 AD E7 06 01 6A AF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 B1 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 24 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 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 ED 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A1 C3 01 00 35 04 06 00 C6 E1 47 0C 08 F9 BE 8E 59 38 6A F2 CA 40 [12:32:46]Write to MH i2c: 01 00 00 24 04 28 [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: 01 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: 01 07 00 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: 01 07 00 24 04 00 00 00 00 00 55 0C 90 [12:32:46]RasterBufferAndPrint [12:32:46]line [12:32:46]line [12:32:46]line [12:32:46]line [12:32:46]line [12:32:46]written 0, free lines is 3162 [12:32:46]MH_Cut [12:32:46]Write to MH i2c: D1 01 00 2B 04 01 01 [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: D1 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: D1 01 00 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: D1 01 00 2B 04 00 00 [12:32:46]Write to MH i2c: 01 00 00 2C 04 30 [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 68 04 47 00 57 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 38 33 30 10 04 04 00 A1 C3 01 00 F4 03 04 00 2F 05 F1 66 B6 04 01 00 00 15 88 95 3E 67 86 0A 11 [12:32:46]CommunicateWithHost err = 0 [12:32:46]CheckOFDResponse [12:32:46]1017 (14) - 77093643461234 [12:32:46]1041 (16) - 0000000000871830 [12:32:46]1040 (4) - 115617 [12:32:46]1012 (4) - 23.09.2024 06:05 [12:32:46]1206 (1) - 0 [12:32:46]OFD Sender: Remove packet 115617 [12:32:46]ProducePacketName [12:32:46]name=ofd_packets/00115617 [12:32:46]NVStorageDeleteData [12:32:47]OFD Sender: No OFD packet to send [12:32:47]*** Cut start [12:32:47]*** Partial cut [12:32:47]*** CUTSNS_PIN = 1 [12:32:47]*** CUTSNS_PIN = 0 [12:32:48]*** Brake cut motor [12:32:48]Read from MH i2c: 01 [12:32:48]MH_I2C_Read... [12:32:48]*** Stop cut motor [12:32:48]*** Cut end [12:32:48]Read from MH i2c: 01 07 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: 01 07 00 2C 04 00 00 00 00 00 FF 0F 45 [12:32:48]process_action close_receipt done [12:32:48]requested_data is exist [12:32:48]produce_requested_data [12:32:48]requested_item fm.sn is exist - process it [12:32:48]wFMCommunicate request_size=4 [12:32:48]MH_SAM_APDU [12:32:48]CAPDU: 80 11 00 00 [12:32:48]Write to MH i2c: E2 08 00 2D 04 80 11 00 00 00 00 00 00 AB [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:48]Read from MH i2c: E2 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 17 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 17 00 2D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F9 [12:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:32:48]wFMCommunicate OK [12:32:48]requested_item fd.num is exist - process it [12:32:48]SAM_PROTO_GetFieldsCounters [12:32:48]wFMCommunicate request_size=4 [12:32:48]MH_SAM_APDU [12:32:48]CAPDU: 80 13 00 00 [12:32:48]Write to MH i2c: E2 08 00 2E 04 80 13 00 00 00 00 00 00 AE [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:48]Read from MH i2c: E2 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 62 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 62 00 2E 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A1 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [12: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A1 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:48]wFMCommunicate OK [12:32:48]SAM_PROTO_GetFieldsCounters done [12:32:48]requested_item shift.num is exist - process it [12:32:48]requested_item shift.opened is exist - process it [12:32:48]req_shift_opened [12:32:48]FM_GetShiftState [12:32:48]SAM_PROTO_GetShiftState [12:32:48]wFMCommunicate request_size=4 [12:32:48]MH_SAM_APDU [12:32:48]CAPDU: 80 13 01 00 [12:32:48]Write to MH i2c: E2 08 00 2F 04 80 13 01 00 00 00 00 00 B0 [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:48]Read from MH i2c: E2 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 0E 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 0E 00 2F 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F1 [12:32:48]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:32:48]wFMCommunicate OK [12:32:48]SAM_PROTO_GetShiftState done [12:32:48]FM_GetShiftState done [12:32:48]req_shift_opened done [12:32:48]requested_item shift.open_date is exist - process it [12:32:48]req_shift_open_date [12:32:48]req_shift_open_date done [12:32:48]produce_requested_data done [12:32:48]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115617,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [12:32:48]process_action_free close_receipt [12:32:48]json_value_free [12:32:48]json_value_free done [12:32:48]process_json_proto returns [12:32:48]Send response to host [12:32:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115617,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [12:32:48]free response buf [12:32:48]execute_script done [12:32:48]execute_script returns [12:32:48]free content buf [12:32:48]Sock 9.Close socket [12:32:48]Sock 9.Thread stoped [12:32:48]accept exits with 8 [12:32:48]New connection [12:32:48]New thread 3067501924 created [12:32:48]Thread 3067358564 joined [12:32:48]Waiting for new connection... [12:32:48] Sock 8.Parse request [12:32:48]Sock 8.Check first char [12:32:48]Sock 8.First char is OK [12:32:48]request: POST /json_proto HTTP/1.0 [12:32:48]Method: POST [12:32:48]URL: /json_proto [12:32:48]Method is POST - this is cgi request [12:32:48]url: /json_proto [12:32:48]query_string will be loaded in cgi processing [12:32:48]execute_cgi json_proto POST (null) [12:32:48]execute_cgi path=json_proto method=POST [12:32:48]POST find Content-Length [12:32:48]Host: 172.17.41.136:8080 [12:32:48]Content-Length: 660 [12:32:48]Content-Type: application/json [12:32:48] [12:32:48]POST finish read [12:32:48]Found Content-Length = 660 [12:32:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:32:48]execute_script... [12: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)24617639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:32:48]POST & json_proto [12:32:48]process_json_proto [12:32:48]json parsed OK: [12:32:48]protocol is kg_v1.0 [12:32:48]action value=close_receipt [12:32:48]process_action close_receipt [12:32:48]cmd_close_receipt [12:32:48]MH_GetDate [12:32:48]Write to MH i2c: F0 00 00 30 04 23 [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: F0 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: F0 09 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: F0 09 00 30 04 00 F2 5F F1 66 1B D0 5A 64 7D [12:32:48]GetLastDocTimeStamp 1727094765 [12:32:48]current date 1727094770 [12:32:48]FM_GetShiftState [12:32:48]SAM_PROTO_GetShiftState [12:32:48]wFMCommunicate request_size=4 [12:32:48]MH_SAM_APDU [12:32:48]CAPDU: 80 13 01 00 [12:32:48]Write to MH i2c: E2 08 00 31 04 80 13 01 00 00 00 00 00 B2 [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:48]Read from MH i2c: E2 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 0E 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 0E 00 31 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F3 [12:32:48]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:32:48]wFMCommunicate OK [12:32:48]SAM_PROTO_GetShiftState done [12:32:48]FM_GetShiftState done [12:32:48]opened in 1727052070 [12:32:48]opened+sec_in_day 1727138470 [12:32:48]quantity*price = 50034 [12:32:48]sum+1 = 50036 [12:32:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 101 23.09.2024 12:32 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115618 ФПД: 130981496927966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123250&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115618&fm=130981496927966&tin=02508201610067®Number=0000000000091831&sum=50000 [12:32:50]StoreToDocumentArchive [12:32:50]shift 472 fd 115618 [12:32:50]save to /storage/0472/doc_00115618 [12:32:50]save last doc name /storage/0472/doc_00115618 to /storage/kkm_last_doc_name [12:32:50]save OK [12:32:50]Clear old archive folders... [12:32:50]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:32:50]tlvbuf is 01F992E0 [12:32:50]SAM_PROTO_ClearQueue [12:32:50]wFMCommunicate request_size=4 [12:32:50]MH_SAM_APDU [12:32:50]CAPDU: 80 09 00 00 [12:32:50]Write to MH i2c: E2 08 00 3E 04 80 09 00 00 00 00 00 00 B4 [12:32:50]Write i2c OK [12:32:50]MH_I2C_Read... [12:32:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:50]Read from MH i2c: E2 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 03 00 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 03 00 3E 04 00 90 00 B6 [12:32:50]RAPDU: 90 00 [12:32:50]wFMCommunicate OK [12:32:50]SAM_PROTO_ClearQueue done [12:32:50]KKMCreateOFDPacket [12:32:50]OFDProtocolAddRootSTLVToBuf [12:32:50]FM_MakeSignedData [12:32:50]FM_MakeSignedData [12:32:50]SAM_PROTO_SignData [12:32:50]wFMCommunicate request_size=4 [12:32:50]MH_SAM_APDU [12:32:50]CAPDU: 80 0D 01 02 [12:32:50]Write to MH i2c: E2 08 00 3F 04 80 0D 01 02 00 00 00 00 BC [12:32:50]Write i2c OK [12:32:50]MH_I2C_Read... [12:32:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:50]Read from MH i2c: E2 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 03 00 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [12:32:50]RAPDU: 90 00 [12:32:50]wFMCommunicate OK [12:32:50]wFMCommunicate request_size=253 [12:32:50]MH_SAM_APDU [12:32:50]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 F2 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A2 C3 01 00 35 04 06 00 77 20 81 98 B6 DE [12:32:50]Write to MH i2c: E2 00 01 40 04 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 F2 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A2 C3 01 00 35 04 06 00 77 20 81 98 B6 DE 00 00 66 [12:32:50]Write i2c OK [12:32:50]MH_I2C_Read... [12:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:50]Read from MH i2c: E2 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 03 00 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [12:32:50]RAPDU: 90 00 [12:32:50]wFMCommunicate OK [12:32:50]wFMCommunicate request_size=4 [12:32:50]MH_SAM_APDU [12:32:50]CAPDU: 80 0D 03 02 [12:32:50]Write to MH i2c: E2 08 00 41 04 80 0D 03 02 00 00 00 00 C0 [12:32:50]Write i2c OK [12:32:50]MH_I2C_Read... [12:32:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:50]Read from MH i2c: E2 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 0B 00 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 0B 00 41 04 00 29 79 E7 04 FA 1F 8A 00 90 00 F1 [12:32:50]RAPDU: 29 79 E7 04 FA 1F 8A 00 90 00 [12:32:50]wFMCommunicate OK [12:32:50]SAM_PROTO_SignData done [12:32:50]FM_MakeSignedData done [12:32:50]CreateOFDProtocolMessage [12:32:50]wFMCommunicate request_size=4 [12:32:50]MH_SAM_APDU [12:32:50]CAPDU: 80 11 00 00 [12:32:50]Write to MH i2c: E2 08 00 42 04 80 11 00 00 00 00 00 00 C0 [12:32:50]Write i2c OK [12:32:50]MH_I2C_Read... [12:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:50]Read from MH i2c: E2 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 17 00 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: E2 17 00 42 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0E [12:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:32:50]wFMCommunicate OK [12:32:50]CreateOFDProtocolMessage done [12:32:50]OFDSenderStorePacket 115618 [12:32:50]StoreOFDPacket docnum=115618 [12:32:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 15 81 00 01 5A 0A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 F2 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A2 C3 01 00 35 04 06 00 77 20 81 98 B6 DE 29 79 E7 04 FA 1F 8A 00 [12:32:50]CheckFolder [12:32:50]dirname=/storage/ofd_packets [12:32:50]CheckFolder done [12:32:50]ProducePacketName [12:32:50]name=ofd_packets/00115618 [12:32:50]NVStorageSaveData ofd_packets/00115618 [12:32:50]File name is /storage/ofd_packets/00115618 [12:32:50]Write 294 bytes [12:32:50]NVStorageSaveData done [12:32:50]OFDSenderStorePacket done [12:32:50]KKMCreateOFDPacket done [12:32:50]NVStorageSaveData kkm_last_timestamp [12:32:50]File name is /storage/kkm_last_timestamp [12:32:50]Write 4 bytes [12:32:50]NVStorageSaveData done [12:32:50]ExternCall_PrintAddStr [12:32:50]wPrintStart [12:32:50]Write to MH i2c: 01 00 00 43 04 47 [12:32:50]Write i2c OK [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: 01 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: 01 07 00 [12:32:50]MH_I2C_Read... [12:32:50]Read from MH i2c: 01 07 00 43 04 00 00 00 00 00 FF 0F 5C [12:32:50]RasterBufferAndPrint [12:32:50]line Счет N : (1)24617639 [12:32:50]line ИНН: 02508201610067 [12:32:50]line Контрольно-Кассовый Чек [12:32:50]line ПРОДАЖА [12:32:50]line ТРК (МРК, ГНК) : 34 [12:32:50]line Товар: 2710124130 [12:32:50]line SU-92 [12:32:50]line 7.220 * 69.30 [12:32:50]line = 500.35 [12:32:50]line НДС 12% НСП 1% [12:32:50]line > о реализуемом товаре [12:32:50]line ОКРУГЛЕНИЕ: -0.35 [12:32:50]line ИТОГО: 500.00 [12:32:50]line Внесено: 500.00 [12:32:50]line СДАЧА: 0.00 [12:32:50]line НСП 1% : 4.43 [12:32:50]line НДС 12% : 53.13 [12:32:50]line Наличными: 500.00 [12:32:50]line Безнал.: 0.00 [12:32:50]line Место: АЗС № 90 "Партнер Нефть" [12:32:50]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:32:50]line СНО: Общий режим [12:32:50]line Чек 101 23.09.2024 12:32 [12:32:50]line Смена: 472 ФФД: 1.0 [12:32:50]line ЗНМ: 0300000120 [12:32:50]line РНМ: 0000000000091831 [12:32:50]line Версия ККМ: 001 [12:32:50]line ФМ: 0000000000871830 [12:32:50]line ФД: 115618 [12:32:50]line ФПД: 130981496927966 [12:32:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123250&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115618&fm=130981496927966&tin=02508201610067®Number=0000000000091831&sum=50000 [12:32:50]written 0, free lines is 4095 [12:32:51]OFD Sender: Processing packet 115618 [packets to send 481, broken 480] [12:32:51]ProducePacketName [12:32:51]name=ofd_packets/00115618 [12:32:51]OFD Sender: To server: pG, [12:32:51]CommunicateWithHost lk.salyk.kg:30040 [12:32:51]ConnectInit lk.salyk.kg [12:32:51]Connected sock=10 [12:32:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 15 81 00 01 5A 0A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 F2 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A2 C3 01 00 35 04 06 00 77 20 81 98 B6 DE 29 79 E7 04 FA 1F 8A 00 [12:32:51]Write to MH i2c: 01 00 00 6D 04 71 [12:32:51]Write i2c OK [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: 01 [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: 01 07 00 [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: 01 07 00 6D 04 00 00 00 00 00 64 0C E8 [12:32:51]RasterBufferAndPrint [12:32:51]line [12:32:51]line [12:32:51]line [12:32:51]line [12:32:51]line [12:32:51]written 0, free lines is 3182 [12:32:51]MH_Cut [12:32:51]Write to MH i2c: D1 01 00 74 04 01 4A [12:32:51]Write i2c OK [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: D1 [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: D1 01 00 [12:32:51]MH_I2C_Read... [12:32:51]Read from MH i2c: D1 01 00 74 04 00 49 [12:32:51]Write to MH i2c: 01 00 00 75 04 79 [12:32:51]Write i2c OK [12:32:51]MH_I2C_Read... [12: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 38 33 30 4F 00 00 00 E9 F2 47 00 4C 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 38 33 30 10 04 04 00 A2 C3 01 00 F4 03 04 00 34 05 F1 66 B6 04 01 00 00 63 BD C1 2F BE 0F E9 C1 [12:32:51]CommunicateWithHost err = 0 [12:32:51]CheckOFDResponse [12:32:51]1017 (14) - 77093643461234 [12:32:51]1041 (16) - 0000000000871830 [12:32:51]1040 (4) - 115618 [12:32:51]1012 (4) - 23.09.2024 06:05 [12:32:51]1206 (1) - 0 [12:32:51]OFD Sender: Remove packet 115618 [12:32:51]ProducePacketName [12:32:51]name=ofd_packets/00115618 [12:32:51]NVStorageDeleteData [12:32:52]OFD Sender: No OFD packet to send [12:32:52]*** Cut start [12:32:52]*** Partial cut [12:32:52]*** CUTSNS_PIN = 1 [12:32:52]*** CUTSNS_PIN = 0 [12:32:52]*** Brake cut motor [12:32:53]Read from MH i2c: 01 [12:32:53]MH_I2C_Read... [12:32:53]*** Stop cut motor [12:32:53]*** Cut end [12:32:53]Read from MH i2c: 01 07 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: 01 07 00 75 04 00 00 00 00 00 FF 0F 8E [12:32:53]process_action close_receipt done [12:32:53]requested_data is exist [12:32:53]produce_requested_data [12:32:53]requested_item fm.sn is exist - process it [12:32:53]wFMCommunicate request_size=4 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 11 00 00 [12:32:53]Write to MH i2c: E2 08 00 76 04 80 11 00 00 00 00 00 00 F4 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 17 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 17 00 76 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 42 [12:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:32:53]wFMCommunicate OK [12:32:53]requested_item fd.num is exist - process it [12:32:53]SAM_PROTO_GetFieldsCounters [12:32:53]wFMCommunicate request_size=4 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 13 00 00 [12:32:53]Write to MH i2c: E2 08 00 77 04 80 13 00 00 00 00 00 00 F7 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 62 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 62 00 77 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A2 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [12:32:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A2 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:53]wFMCommunicate OK [12:32:53]SAM_PROTO_GetFieldsCounters done [12:32:53]requested_item shift.num is exist - process it [12:32:53]requested_item shift.opened is exist - process it [12:32:53]req_shift_opened [12:32:53]FM_GetShiftState [12:32:53]SAM_PROTO_GetShiftState [12:32:53]wFMCommunicate request_size=4 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 13 01 00 [12:32:53]Write to MH i2c: E2 08 00 78 04 80 13 01 00 00 00 00 00 F9 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 0E 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 0E 00 78 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 3A [12:32:53]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:32:53]wFMCommunicate OK [12:32:53]SAM_PROTO_GetShiftState done [12:32:53]FM_GetShiftState done [12:32:53]req_shift_opened done [12:32:53]requested_item shift.open_date is exist - process it [12:32:53]req_shift_open_date [12:32:53]req_shift_open_date done [12:32:53]produce_requested_data done [12:32:53]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115618,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [12:32:53]process_action_free close_receipt [12:32:53]json_value_free [12:32:53]json_value_free done [12:32:53]process_json_proto returns [12:32:53]Send response to host [12:32:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115618,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [12:32:53]free response buf [12:32:53]execute_script done [12:32:53]execute_script returns [12:32:53]free content buf [12:32:53]Sock 8.Close socket [12:32:53]Sock 8.Thread stoped [12:32:57]OFD Sender: No OFD packet to send [12:32:57]accept exits with 9 [12:32:57]New connection [12:32:57]New thread 3067358564 created [12:32:57]Thread 3067501924 joined [12:32:57]Waiting for new connection... [12:32:57] Sock 9.Parse request [12:32:57]Sock 9.Check first char [12:32:57]Sock 9.First char is OK [12:32:57]request: POST /json_proto HTTP/1.0 [12:32:57]Method: POST [12:32:57]URL: /json_proto [12:32:57]Method is POST - this is cgi request [12:32:57]url: /json_proto [12:32:57]query_string will be loaded in cgi processing [12:32:57]execute_cgi json_proto POST (null) [12:32:57]execute_cgi path=json_proto method=POST [12:32:57]POST find Content-Length [12:32:57]Host: 172.17.41.136:8080 [12:32:57]Content-Length: 625 [12:32:57]Content-Type: application/json [12:32:57] [12:32:57]POST finish read [12:32:57]Found Content-Length = 625 [12:32:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:57]execute_script... [12:32: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)24617638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:57]POST & json_proto [12:32:57]process_json_proto [12:32:57]json parsed OK: [12:32:57]protocol is kg_v1.0 [12:32:57]action value=close_receipt [12:32:57]process_action close_receipt [12:32:57]cmd_close_receipt [12:32:57]MH_GetDate [12:32:57]Write to MH i2c: F0 00 00 79 04 6C [12:32:57]Write i2c OK [12:32:57]MH_I2C_Read... [12:32:57]Read from MH i2c: F0 [12:32:57]MH_I2C_Read... [12:32:57]Read from MH i2c: F0 09 00 [12:32:57]MH_I2C_Read... [12:32:57]Read from MH i2c: F0 09 00 79 04 00 FB 5F F1 66 1B D0 5A 64 CF [12:32:57]GetLastDocTimeStamp 1727094770 [12:32:57]current date 1727094779 [12:32:57]FM_GetShiftState [12:32:57]SAM_PROTO_GetShiftState [12:32:57]wFMCommunicate request_size=4 [12:32:57]MH_SAM_APDU [12:32:57]CAPDU: 80 13 01 00 [12:32:57]Write to MH i2c: E2 08 00 7A 04 80 13 01 00 00 00 00 00 FB [12:32:57]Write i2c OK [12:32:57]MH_I2C_Read... [12:32:57]Read from MH i2c: E2 [12:32:58]MH_I2C_Read... [12:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:58]Read from MH i2c: E2 0E 00 [12:32:58]MH_I2C_Read... [12:32:58]Read from MH i2c: E2 0E 00 7A 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 3C [12:32:58]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:32:58]wFMCommunicate OK [12:32:58]SAM_PROTO_GetShiftState done [12:32:58]FM_GetShiftState done [12:32:58]opened in 1727052070 [12:32:58]opened+sec_in_day 1727138470 [12:32:58]quantity*price = 99999 [12:32:58]sum+1 = 100001 [12:32:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 102 23.09.2024 12:32 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115619 ФПД: 124341674897876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123259&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115619&fm=124341674897876&tin=02508201610067®Number=0000000000091831&sum=100000 [12:32:58]StoreToDocumentArchive [12:32:58]shift 472 fd 115619 [12:32:58]save to /storage/0472/doc_00115619 [12:32:58]save last doc name /storage/0472/doc_00115619 to /storage/kkm_last_doc_name [12:32:58]save OK [12:32:58]Clear old archive folders... [12:32:58]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:32:58]tlvbuf is 01F55650 [12:32:58]SAM_PROTO_ClearQueue [12:32:58]wFMCommunicate request_size=4 [12:32:58]MH_SAM_APDU [12:32:58]CAPDU: 80 09 00 00 [12:32:58]Write to MH i2c: E2 08 00 87 04 80 09 00 00 00 00 00 00 FD [12:32:58]Write i2c OK [12:32:58]MH_I2C_Read... [12:32:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:58]Read from MH i2c: E2 [12:32:58]MH_I2C_Read... [12:32:58]Read from MH i2c: E2 03 00 [12:32:58]MH_I2C_Read... [12:32:58]Read from MH i2c: E2 03 00 87 04 00 90 00 FF [12:32:58]RAPDU: 90 00 [12:32:58]wFMCommunicate OK [12:32:58]SAM_PROTO_ClearQueue done [12:32:58]KKMCreateOFDPacket [12:32:58]OFDProtocolAddRootSTLVToBuf [12:32:58]FM_MakeSignedData [12:32:58]FM_MakeSignedData [12:32:58]SAM_PROTO_SignData [12:32:58]wFMCommunicate request_size=4 [12:32:58]MH_SAM_APDU [12:32:58]CAPDU: 80 0D 01 02 [12:32:58]Write to MH i2c: E2 08 00 88 04 80 0D 01 02 00 00 00 00 05 [12:32:58]Write i2c OK [12:32:58]MH_I2C_Read... [12:32:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:58]Read from MH i2c: E2 [12:32:58]MH_I2C_Read... [12:32:58]Read from MH i2c: E2 03 00 [12:32:58]MH_I2C_Read... [12:32:58]Read from MH i2c: E2 03 00 88 04 00 90 00 00 [12:32:58]RAPDU: 90 00 [12:32:58]wFMCommunicate OK [12:32:58]wFMCommunicate request_size=253 [12:32:58]MH_SAM_APDU [12:32:58]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 FB 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A3 C3 01 00 35 04 06 00 71 16 8D 5C F1 D4 [12:32:59]Write to MH i2c: E2 00 01 89 04 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 FB 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A3 C3 01 00 35 04 06 00 71 16 8D 5C F1 D4 00 00 95 [12:32:59]Write i2c OK [12:32:59]MH_I2C_Read... [12:32:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:59]Read from MH i2c: E2 [12:32:59]MH_I2C_Read... [12:32:59]Read from MH i2c: E2 03 00 [12:32:59]MH_I2C_Read... [12:32:59]Read from MH i2c: E2 03 00 89 04 00 90 00 01 [12:32:59]RAPDU: 90 00 [12:32:59]wFMCommunicate OK [12:32:59]wFMCommunicate request_size=4 [12:32:59]MH_SAM_APDU [12:32:59]CAPDU: 80 0D 03 02 [12:32:59]Write to MH i2c: E2 08 00 8A 04 80 0D 03 02 00 00 00 00 09 [12:32:59]Write i2c OK [12:32:59]MH_I2C_Read... [12:32:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:59]Read from MH i2c: E2 [12:32:59]MH_I2C_Read... [12:32:59]Read from MH i2c: E2 0B 00 [12:32:59]MH_I2C_Read... [12:32:59]Read from MH i2c: E2 0B 00 8A 04 00 E1 80 30 CA 5E 9A 0C D7 90 00 40 [12:32:59]RAPDU: E1 80 30 CA 5E 9A 0C D7 90 00 [12:32:59]wFMCommunicate OK [12:32:59]SAM_PROTO_SignData done [12:32:59]FM_MakeSignedData done [12:32:59]CreateOFDProtocolMessage [12:32:59]wFMCommunicate request_size=4 [12:32:59]MH_SAM_APDU [12:32:59]CAPDU: 80 11 00 00 [12:32:59]Write to MH i2c: E2 08 00 8B 04 80 11 00 00 00 00 00 00 09 [12:32:59]Write i2c OK [12:32:59]MH_I2C_Read... [12:32:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:59]Read from MH i2c: E2 [12:32:59]MH_I2C_Read... [12:32:59]Read from MH i2c: E2 17 00 [12:32:59]MH_I2C_Read... [12:32:59]Read from MH i2c: E2 17 00 8B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 57 [12:32:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:32:59]wFMCommunicate OK [12:32:59]CreateOFDProtocolMessage done [12:32:59]OFDSenderStorePacket 115619 [12:32:59]StoreOFDPacket docnum=115619 [12:32:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 E1 2A 00 01 31 7C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 FB 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A3 C3 01 00 35 04 06 00 71 16 8D 5C F1 D4 E1 80 30 CA 5E 9A 0C D7 [12:32:59]CheckFolder [12:32:59]dirname=/storage/ofd_packets [12:32:59]CheckFolder done [12:32:59]ProducePacketName [12:32:59]name=ofd_packets/00115619 [12:32:59]NVStorageSaveData ofd_packets/00115619 [12:32:59]File name is /storage/ofd_packets/00115619 [12:32:59]Write 294 bytes [12:32:59]NVStorageSaveData done [12:32:59]OFDSenderStorePacket done [12:32:59]KKMCreateOFDPacket done [12:32:59]NVStorageSaveData kkm_last_timestamp [12:32:59]File name is /storage/kkm_last_timestamp [12:32:59]Write 4 bytes [12:32:59]NVStorageSaveData done [12:32:59]ExternCall_PrintAddStr [12:32:59]wPrintStart [12:32:59]Write to MH i2c: 01 00 00 8C 04 90 [12:32:59]Write i2c OK [12:32:59]MH_I2C_Read... [12:32:59]Read from MH i2c: 01 [12:32:59]MH_I2C_Read... [12:32:59]Read from MH i2c: 01 07 00 [12:32:59]MH_I2C_Read... [12:32:59]Read from MH i2c: 01 07 00 8C 04 00 00 00 00 00 FF 0F A5 [12:32:59]RasterBufferAndPrint [12:32:59]line Счет N : (1)24617638 [12:32:59]line ИНН: 02508201610067 [12:32:59]line Контрольно-Кассовый Чек [12:32:59]line ПРОДАЖА [12:32:59]line ТРК (МРК, ГНК) : 64 [12:32:59]line Товар: 2710124130 [12:32:59]line SU-92 [12:32:59]line 14.430 * 69.30 [12:32:59]line = 1000.00 [12:32:59]line НДС 12% НСП 1% [12:32:59]line > о реализуемом товаре [12:32:59]line ИТОГО: 1000.00 [12:32:59]line НСП 1% : 8.85 [12:32:59]line НДС 12% : 106.19 [12:32:59]line Наличными: 1000.00 [12:32:59]line Безнал.: 0.00 [12:32:59]line Место: АЗС № 90 "Партнер Нефть" [12:32:59]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:32:59]line СНО: Общий режим [12:32:59]line Чек 102 23.09.2024 12:32 [12:32:59]line Смена: 472 ФФД: 1.0 [12:32:59]line ЗНМ: 0300000120 [12:32:59]line РНМ: 0000000000091831 [12:32:59]line Версия ККМ: 001 [12:32:59]line ФМ: 0000000000871830 [12:32:59]line ФД: 115619 [12:32:59]line ФПД: 124341674897876 [12:32:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123259&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115619&fm=124341674897876&tin=02508201610067®Number=0000000000091831&sum=100000 [12:32:59]OFD Sender: Processing packet 115619 [packets to send 481, broken 480] [12:32:59]ProducePacketName [12:32:59]name=ofd_packets/00115619 [12:32:59]written 0, free lines is 4095 [12:32:59]OFD Sender: To server: pG, [12:32:59]CommunicateWithHost lk.salyk.kg:30040 [12:32:59]ConnectInit lk.salyk.kg [12:33:00]Connected sock=10 [12:33: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 38 33 30 08 01 00 00 E1 2A 00 01 31 7C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 FB 5F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A3 C3 01 00 35 04 06 00 71 16 8D 5C F1 D4 E1 80 30 CA 5E 9A 0C D7 [12:33:00]Write to MH i2c: 01 00 00 B3 04 B7 [12:33:00]Write i2c OK [12:33:00]MH_I2C_Read... [12:33:00]Read from MH i2c: 01 [12:33:00]MH_I2C_Read... [12:33:00]Read from MH i2c: 01 07 00 [12:33:00]MH_I2C_Read... [12:33:00]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 A1 0C 6B [12:33:00]RasterBufferAndPrint [12:33:00]line [12:33:00]line [12:33:00]line [12:33:00]line [12:33:00]line [12:33:00]written 0, free lines is 3247 [12:33:00]MH_Cut [12:33:00]Write to MH i2c: D1 01 00 BA 04 01 90 [12:33:00]Write i2c OK [12:33:00]MH_I2C_Read... [12:33:00]Read from MH i2c: D1 [12:33:00]MH_I2C_Read... [12:33:00]Read from MH i2c: D1 01 00 [12:33:00]MH_I2C_Read... [12:33:00]Read from MH i2c: D1 01 00 BA 04 00 8F [12:33:00]Write to MH i2c: 01 00 00 BB 04 BF [12:33:00]Write i2c OK [12:33:00]MH_I2C_Read... [12:33:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0D 9E 47 00 B7 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 38 33 30 10 04 04 00 A3 C3 01 00 F4 03 04 00 3D 05 F1 66 B6 04 01 00 00 55 C4 D2 C9 74 0E 9A FD [12:33:00]CommunicateWithHost err = 0 [12:33:00]CheckOFDResponse [12:33:00]1017 (14) - 77093643461234 [12:33:00]1041 (16) - 0000000000871830 [12:33:00]1040 (4) - 115619 [12:33:00]1012 (4) - 23.09.2024 06:05 [12:33:00]1206 (1) - 0 [12:33:00]OFD Sender: Remove packet 115619 [12:33:00]ProducePacketName [12:33:00]name=ofd_packets/00115619 [12:33:00]NVStorageDeleteData [12:33:01]OFD Sender: No OFD packet to send [12:33:01]*** Cut start [12:33:01]*** Partial cut [12:33:01]*** CUTSNS_PIN = 1 [12:33:01]*** CUTSNS_PIN = 0 [12:33:01]*** Brake cut motor [12:33:02]Read from MH i2c: 01 [12:33:02]MH_I2C_Read... [12:33:02]*** Stop cut motor [12:33:02]*** Cut end [12:33:02]Read from MH i2c: 01 07 00 [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 FF 0F D4 [12:33:02]process_action close_receipt done [12:33:02]requested_data is exist [12:33:02]produce_requested_data [12:33:02]requested_item fm.sn is exist - process it [12:33:02]wFMCommunicate request_size=4 [12:33:02]MH_SAM_APDU [12:33:02]CAPDU: 80 11 00 00 [12:33:02]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [12:33:02]Write i2c OK [12:33:02]MH_I2C_Read... [12:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:02]Read from MH i2c: E2 [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: E2 17 00 [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 88 [12:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:33:02]wFMCommunicate OK [12:33:02]requested_item fd.num is exist - process it [12:33:02]SAM_PROTO_GetFieldsCounters [12:33:02]wFMCommunicate request_size=4 [12:33:02]MH_SAM_APDU [12:33:02]CAPDU: 80 13 00 00 [12:33:02]Write to MH i2c: E2 08 00 BD 04 80 13 00 00 00 00 00 00 3D [12:33:02]Write i2c OK [12:33:02]MH_I2C_Read... [12:33:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:02]Read from MH i2c: E2 [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: E2 62 00 [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: E2 62 00 BD 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A3 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [12:33: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A3 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:02]wFMCommunicate OK [12:33:02]SAM_PROTO_GetFieldsCounters done [12:33:02]requested_item shift.num is exist - process it [12:33:02]requested_item shift.opened is exist - process it [12:33:02]req_shift_opened [12:33:02]FM_GetShiftState [12:33:02]SAM_PROTO_GetShiftState [12:33:02]wFMCommunicate request_size=4 [12:33:02]MH_SAM_APDU [12:33:02]CAPDU: 80 13 01 00 [12:33:02]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [12:33:02]Write i2c OK [12:33:02]MH_I2C_Read... [12:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:02]Read from MH i2c: E2 [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: E2 0E 00 [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 80 [12:33:02]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:33:02]wFMCommunicate OK [12:33:02]SAM_PROTO_GetShiftState done [12:33:02]FM_GetShiftState done [12:33:02]req_shift_opened done [12:33:02]requested_item shift.open_date is exist - process it [12:33:02]req_shift_open_date [12:33:02]req_shift_open_date done [12:33:02]produce_requested_data done [12:33:02]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115619,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [12:33:02]process_action_free close_receipt [12:33:02]json_value_free [12:33:02]json_value_free done [12:33:02]process_json_proto returns [12:33:02]Send response to host [12:33:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115619,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [12:33:02]free response buf [12:33:02]execute_script done [12:33:02]execute_script returns [12:33:02]free content buf [12:33:02]Sock 9.Close socket [12:33:02]Sock 9.Thread stoped [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:21]accept exits with 8 [12:33:21]New connection [12:33:21]New thread 3067501924 created [12:33:21]Thread 3067358564 joined [12:33:21]Waiting for new connection... [12:33:21] Sock 8.Parse request [12:33:21]Sock 8.Check first char [12:33:21]Sock 8.First char is OK [12:33:21]request: POST /json_proto HTTP/1.0 [12:33:21]Method: POST [12:33:21]URL: /json_proto [12:33:21]Method is POST - this is cgi request [12:33:21]url: /json_proto [12:33:21]query_string will be loaded in cgi processing [12:33:21]execute_cgi json_proto POST (null) [12:33:21]execute_cgi path=json_proto method=POST [12:33:21]POST find Content-Length [12:33:21]Host: 172.17.41.136:8080 [12:33:21]Content-Length: 676 [12:33:21]Content-Type: application/json [12:33:21] [12:33:21]POST finish read [12:33:21]Found Content-Length = 676 [12:33:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 55", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:21]execute_script... [12:33: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)24617641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 55", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:21]POST & json_proto [12:33:21]process_json_proto [12:33:21]json parsed OK: [12:33:21]protocol is kg_v1.0 [12:33:21]action value=close_receipt [12:33:21]process_action close_receipt [12:33:21]cmd_close_receipt [12:33:21]MH_GetDate [12:33:21]Write to MH i2c: F0 00 00 BF 04 B2 [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: F0 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: F0 09 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: F0 09 00 BF 04 00 13 60 F1 66 1B D0 5A 64 2E [12:33:21]GetLastDocTimeStamp 1727094779 [12:33:21]current date 1727094803 [12:33:21]FM_GetShiftState [12:33:21]SAM_PROTO_GetShiftState [12:33:21]wFMCommunicate request_size=4 [12:33:21]MH_SAM_APDU [12:33:21]CAPDU: 80 13 01 00 [12:33:21]Write to MH i2c: E2 08 00 C0 04 80 13 01 00 00 00 00 00 41 [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:21]Read from MH i2c: E2 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 0E 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 0E 00 C0 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 82 [12:33:21]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:33:21]wFMCommunicate OK [12:33:21]SAM_PROTO_GetShiftState done [12:33:21]FM_GetShiftState done [12:33:21]opened in 1727052070 [12:33:21]opened+sec_in_day 1727138470 [12:33:21]quantity*price = 70027 [12:33:21]sum+1 = 70029 [12:33:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 103 23.09.2024 12:33 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115620 ФПД: 276697748939689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123323&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115620&fm=276697748939689&tin=02508201610067®Number=0000000000091831&sum=70000 [12:33:23]StoreToDocumentArchive [12:33:23]shift 472 fd 115620 [12:33:23]save to /storage/0472/doc_00115620 [12:33:23]save last doc name /storage/0472/doc_00115620 to /storage/kkm_last_doc_name [12:33:23]save OK [12:33:23]Clear old archive folders... [12:33:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:33:23]tlvbuf is 01F64D90 [12:33:23]SAM_PROTO_ClearQueue [12:33:23]wFMCommunicate request_size=4 [12:33:23]MH_SAM_APDU [12:33:23]CAPDU: 80 09 00 00 [12:33:23]Write to MH i2c: E2 08 00 CD 04 80 09 00 00 00 00 00 00 43 [12:33:23]Write i2c OK [12:33:23]MH_I2C_Read... [12:33:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:23]Read from MH i2c: E2 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: E2 03 00 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [12:33:23]RAPDU: 90 00 [12:33:23]wFMCommunicate OK [12:33:23]SAM_PROTO_ClearQueue done [12:33:23]KKMCreateOFDPacket [12:33:23]OFDProtocolAddRootSTLVToBuf [12:33:23]FM_MakeSignedData [12:33:23]FM_MakeSignedData [12:33:23]SAM_PROTO_SignData [12:33:23]wFMCommunicate request_size=4 [12:33:23]MH_SAM_APDU [12:33:23]CAPDU: 80 0D 01 02 [12:33:23]Write to MH i2c: E2 08 00 CE 04 80 0D 01 02 00 00 00 00 4B [12:33:23]Write i2c OK [12:33:23]MH_I2C_Read... [12:33:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:23]Read from MH i2c: E2 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: E2 03 00 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [12:33:23]RAPDU: 90 00 [12:33:23]wFMCommunicate OK [12:33:23]wFMCommunicate request_size=255 [12:33:23]MH_SAM_APDU [12:33:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 67 00 00 00 F4 03 04 00 13 60 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A4 C3 01 00 35 04 06 00 FB A7 B7 09 [12:33:23]Write to MH i2c: E2 02 01 CF 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 67 00 00 00 F4 03 04 00 13 60 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A4 C3 01 00 35 04 06 00 FB A7 B7 09 00 00 98 [12:33:23]Write i2c OK [12:33:23]MH_I2C_Read... [12:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:23]Read from MH i2c: E2 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: E2 03 00 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [12:33:23]RAPDU: 90 00 [12:33:23]wFMCommunicate OK [12:33:23]wFMCommunicate request_size=7 [12:33:23]MH_SAM_APDU [12:33:23]CAPDU: 80 0D 02 02 02 23 A9 [12:33:23]Write to MH i2c: E2 0A 00 D0 04 80 0D 02 02 02 00 23 A9 00 00 1E [12:33:23]Write i2c OK [12:33:23]MH_I2C_Read... [12:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:23]Read from MH i2c: E2 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: E2 03 00 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [12:33:23]RAPDU: 90 00 [12:33:23]wFMCommunicate OK [12:33:23]wFMCommunicate request_size=4 [12:33:23]MH_SAM_APDU [12:33:23]CAPDU: 80 0D 03 02 [12:33:23]Write to MH i2c: E2 08 00 D1 04 80 0D 03 02 00 00 00 00 50 [12:33:23]Write i2c OK [12:33:23]MH_I2C_Read... [12:33:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:23]Read from MH i2c: E2 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: E2 0B 00 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: E2 0B 00 D1 04 00 29 44 36 66 A1 6A 42 7B 90 00 22 [12:33:23]RAPDU: 29 44 36 66 A1 6A 42 7B 90 00 [12:33:23]wFMCommunicate OK [12:33:23]SAM_PROTO_SignData done [12:33:23]FM_MakeSignedData done [12:33:23]CreateOFDProtocolMessage [12:33:23]wFMCommunicate request_size=4 [12:33:23]MH_SAM_APDU [12:33:23]CAPDU: 80 11 00 00 [12:33:23]Write to MH i2c: E2 08 00 D2 04 80 11 00 00 00 00 00 00 50 [12:33:23]Write i2c OK [12:33:23]MH_I2C_Read... [12:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:23]Read from MH i2c: E2 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: E2 17 00 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: E2 17 00 D2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9E [12:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:33:23]wFMCommunicate OK [12:33:23]CreateOFDProtocolMessage done [12:33:23]OFDSenderStorePacket 115620 [12:33:23]StoreOFDPacket docnum=115620 [12:33:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 68 73 04 01 6C 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 67 00 00 00 F4 03 04 00 13 60 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A4 C3 01 00 35 04 06 00 FB A7 B7 09 23 A9 29 44 36 66 A1 6A 42 7B [12:33:23]CheckFolder [12:33:23]dirname=/storage/ofd_packets [12:33:23]CheckFolder done [12:33:23]ProducePacketName [12:33:23]name=ofd_packets/00115620 [12:33:23]NVStorageSaveData ofd_packets/00115620 [12:33:23]File name is /storage/ofd_packets/00115620 [12:33:23]Write 298 bytes [12:33:23]NVStorageSaveData done [12:33:23]OFDSenderStorePacket done [12:33:23]KKMCreateOFDPacket done [12:33:23]NVStorageSaveData kkm_last_timestamp [12:33:23]File name is /storage/kkm_last_timestamp [12:33:23]Write 4 bytes [12:33:23]NVStorageSaveData done [12:33:23]ExternCall_PrintAddStr [12:33:23]wPrintStart [12:33:23]Write to MH i2c: 01 00 00 D3 04 D7 [12:33:23]Write i2c OK [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: 01 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: 01 07 00 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: 01 07 00 D3 04 00 00 00 00 00 FF 0F EC [12:33:23]RasterBufferAndPrint [12:33:23]line Счет N : (1)24617641 [12:33:23]line ИНН: 02508201610067 [12:33:23]line Контрольно-Кассовый Чек [12:33:23]line ПРОДАЖА [12:33:23]line ТРК (МРК, ГНК) : 55 [12:33:23]line Товар: 2710194210 [12:33:23]line ДТ-К-5 [12:33:23]line 9.190 * 76.20 [12:33:23]line = 700.28 [12:33:23]line НДС 12% НСП 1% [12:33:23]line > о реализуемом товаре [12:33:23]line ОКРУГЛЕНИЕ: -0.28 [12:33:23]line ИТОГО: 700.00 [12:33:23]line Внесено: 700.00 [12:33:23]line СДАЧА: 0.00 [12:33:23]line НСП 1% : 6.20 [12:33:23]line НДС 12% : 74.37 [12:33:23]line Наличными: 700.00 [12:33:23]line Безнал.: 0.00 [12:33:23]line Место: АЗС № 90 "Партнер Нефть" [12:33:23]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:33:23]line СНО: Общий режим [12:33:23]line Чек 103 23.09.2024 12:33 [12:33:23]line Смена: 472 ФФД: 1.0 [12:33:23]line ЗНМ: 0300000120 [12:33:23]line РНМ: 0000000000091831 [12:33:23]line Версия ККМ: 001 [12:33:23]line ФМ: 0000000000871830 [12:33:23]line ФД: 115620 [12:33:23]line ФПД: 276697748939689 [12:33:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123323&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115620&fm=276697748939689&tin=02508201610067®Number=0000000000091831&sum=70000 [12:33:23]written 0, free lines is 4095 [12:33:23]OFD Sender: Processing packet 115620 [packets to send 481, broken 480] [12:33:23]ProducePacketName [12:33:23]name=ofd_packets/00115620 [12:33:23]OFD Sender: To server: pG, [12:33:23]CommunicateWithHost lk.salyk.kg:30040 [12:33:23]ConnectInit lk.salyk.kg [12:33:24]Connected sock=10 [12:33: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 38 33 30 0C 01 00 00 68 73 04 01 6C 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 67 00 00 00 F4 03 04 00 13 60 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A4 C3 01 00 35 04 06 00 FB A7 B7 09 23 A9 29 44 36 66 A1 6A 42 7B [12:33:24]Write to MH i2c: 01 00 00 FD 04 01 [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: 01 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: 01 07 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: 01 07 00 FD 04 00 00 00 00 00 64 0C 78 [12:33:24]RasterBufferAndPrint [12:33:24]line [12:33:24]line [12:33:24]line [12:33:24]line [12:33:24]line [12:33:24]written 0, free lines is 3182 [12:33:24]MH_Cut [12:33:24]Write to MH i2c: D1 01 00 04 05 01 DB [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: D1 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: D1 01 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: D1 01 00 04 05 00 DA [12:33:24]Write to MH i2c: 01 00 00 05 05 0A [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 34 3E 47 00 BA 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 38 33 30 10 04 04 00 A4 C3 01 00 F4 03 04 00 55 05 F1 66 B6 04 01 00 00 6D 5F 47 97 DE E4 CD BE [12:33:24]CommunicateWithHost err = 0 [12:33:24]CheckOFDResponse [12:33:24]1017 (14) - 77093643461234 [12:33:24]1041 (16) - 0000000000871830 [12:33:24]1040 (4) - 115620 [12:33:24]1012 (4) - 23.09.2024 06:06 [12:33:24]1206 (1) - 0 [12:33:24]OFD Sender: Remove packet 115620 [12:33:24]ProducePacketName [12:33:24]name=ofd_packets/00115620 [12:33:24]NVStorageDeleteData [12:33:24]OFD Sender: No OFD packet to send [12:33:25]*** Cut start [12:33:25]*** Partial cut [12:33:25]*** CUTSNS_PIN = 1 [12:33:25]*** CUTSNS_PIN = 0 [12:33:25]*** Brake cut motor [12:33:25]Read from MH i2c: 01 [12:33:26]MH_I2C_Read... [12:33:26]*** Stop cut motor [12:33:26]*** Cut end [12:33:26]Read from MH i2c: 01 07 00 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: 01 07 00 05 05 00 00 00 00 00 FF 0F 1F [12:33:26]process_action close_receipt done [12:33:26]requested_data is exist [12:33:26]produce_requested_data [12:33:26]requested_item fm.sn is exist - process it [12:33:26]wFMCommunicate request_size=4 [12:33:26]MH_SAM_APDU [12:33:26]CAPDU: 80 11 00 00 [12:33:26]Write to MH i2c: E2 08 00 06 05 80 11 00 00 00 00 00 00 85 [12:33:26]Write i2c OK [12:33:26]MH_I2C_Read... [12:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:26]Read from MH i2c: E2 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 17 00 [12:33:26]MH_I2C_Read... [12:33:26]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 38 33 30 90 00 D3 [12:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:33:26]wFMCommunicate OK [12:33:26]requested_item fd.num is exist - process it [12:33:26]SAM_PROTO_GetFieldsCounters [12:33:26]wFMCommunicate request_size=4 [12:33:26]MH_SAM_APDU [12:33:26]CAPDU: 80 13 00 00 [12:33:26]Write to MH i2c: E2 08 00 07 05 80 13 00 00 00 00 00 00 88 [12:33:26]Write i2c OK [12:33:26]MH_I2C_Read... [12:33:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:26]Read from MH i2c: E2 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 62 00 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 62 00 07 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A4 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [12:33: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A4 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:26]wFMCommunicate OK [12:33:26]SAM_PROTO_GetFieldsCounters done [12:33:26]requested_item shift.num is exist - process it [12:33:26]requested_item shift.opened is exist - process it [12:33:26]req_shift_opened [12:33:26]FM_GetShiftState [12:33:26]SAM_PROTO_GetShiftState [12:33:26]wFMCommunicate request_size=4 [12:33:26]MH_SAM_APDU [12:33:26]CAPDU: 80 13 01 00 [12:33:26]Write to MH i2c: E2 08 00 08 05 80 13 01 00 00 00 00 00 8A [12:33:26]Write i2c OK [12:33:26]MH_I2C_Read... [12:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:26]Read from MH i2c: E2 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 0E 00 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 0E 00 08 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CB [12:33:26]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:33:26]wFMCommunicate OK [12:33:26]SAM_PROTO_GetShiftState done [12:33:26]FM_GetShiftState done [12:33:26]req_shift_opened done [12:33:26]requested_item shift.open_date is exist - process it [12:33:26]req_shift_open_date [12:33:26]req_shift_open_date done [12:33:26]produce_requested_data done [12:33:26]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115620,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [12:33:26]process_action_free close_receipt [12:33:26]json_value_free [12:33:26]json_value_free done [12:33:26]process_json_proto returns [12:33:26]Send response to host [12:33:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115620,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [12:33:26]free response buf [12:33:26]execute_script done [12:33:26]execute_script returns [12:33:26]free content buf [12:33:26]Sock 8.Close socket [12:33:26]Sock 8.Thread stoped [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:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:17]accept exits with 9 [12:37:17]New connection [12:37:17]New thread 3067358564 created [12:37:17]Thread 3067501924 joined [12:37:17]Waiting for new connection... [12:37:17] Sock 9.Parse request [12:37:17]Sock 9.Check first char [12:37:17]Sock 9.First char is OK [12:37:17]request: POST /json_proto HTTP/1.0 [12:37:17]Method: POST [12:37:17]URL: /json_proto [12:37:17]Method is POST - this is cgi request [12:37:17]url: /json_proto [12:37:17]query_string will be loaded in cgi processing [12:37:17]execute_cgi json_proto POST (null) [12:37:17]execute_cgi path=json_proto method=POST [12:37:17]POST find Content-Length [12:37:17]Host: 172.17.41.136:8080 [12:37:17]Content-Length: 679 [12:37:17]Content-Type: application/json [12:37:17] [12:37:17]POST finish read [12:37:17]Found Content-Length = 679 [12:37:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344007", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:17]execute_script... [12:37:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344007", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:17]POST & json_proto [12:37:17]process_json_proto [12:37:17]json parsed OK: [12:37:17]protocol is kg_v1.0 [12:37:17]action value=close_receipt [12:37:17]process_action close_receipt [12:37:17]cmd_close_receipt [12:37:17]MH_GetDate [12:37:17]Write to MH i2c: F0 00 00 09 05 FD [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: F0 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: F0 09 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: F0 09 00 09 05 00 FF 60 F1 66 1B D0 5A 64 65 [12:37:17]GetLastDocTimeStamp 1727094803 [12:37:17]current date 1727095039 [12:37:17]FM_GetShiftState [12:37:17]SAM_PROTO_GetShiftState [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 13 01 00 [12:37:17]Write to MH i2c: E2 08 00 0A 05 80 13 01 00 00 00 00 00 8C [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:17]Read from MH i2c: E2 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 0E 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 0E 00 0A 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CD [12:37:17]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:37:17]wFMCommunicate OK [12:37:17]SAM_PROTO_GetShiftState done [12:37:17]FM_GetShiftState done [12:37:17]opened in 1727052070 [12:37:17]opened+sec_in_day 1727138470 [12:37:17]quantity*price = 15400 [12:37:17]sum+1 = 15401 [12:37:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 104 23.09.2024 12:37 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115621 ФПД: 150500545486398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123719&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115621&fm=150500545486398&tin=02508201610067®Number=0000000000091831&sum=15400 0 [12:37:19]StoreToDocumentArchive [12:37:19]shift 472 fd 115621 [12:37:19]save to /storage/0472/doc_00115621 [12:37:19]save last doc name /storage/0472/doc_00115621 to /storage/kkm_last_doc_name [12:37:19]save OK [12:37:19]Clear old archive folders... [12:37:19]ProcessDocumentItem done err = 0, tmpTLVsize=284 [12:37:19]tlvbuf is 01F719B0 [12:37:19]SAM_PROTO_ClearQueue [12:37:19]wFMCommunicate request_size=4 [12:37:19]MH_SAM_APDU [12:37:19]CAPDU: 80 09 00 00 [12:37:19]Write to MH i2c: E2 08 00 17 05 80 09 00 00 00 00 00 00 8E [12:37:19]Write i2c OK [12:37:19]MH_I2C_Read... [12:37:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:19]Read from MH i2c: E2 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 03 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [12:37:19]RAPDU: 90 00 [12:37:19]wFMCommunicate OK [12:37:19]SAM_PROTO_ClearQueue done [12:37:19]KKMCreateOFDPacket [12:37:19]OFDProtocolAddRootSTLVToBuf [12:37:19]FM_MakeSignedData [12:37:19]FM_MakeSignedData [12:37:19]SAM_PROTO_SignData [12:37:19]wFMCommunicate request_size=4 [12:37:19]MH_SAM_APDU [12:37:19]CAPDU: 80 0D 01 02 [12:37:19]Write to MH i2c: E2 08 00 18 05 80 0D 01 02 00 00 00 00 96 [12:37:19]Write i2c OK [12:37:19]MH_I2C_Read... [12:37:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:19]Read from MH i2c: E2 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 03 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [12:37:19]RAPDU: 90 00 [12:37:19]wFMCommunicate OK [12:37:19]wFMCommunicate request_size=255 [12:37:19]MH_SAM_APDU [12:37:19]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 FF 60 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [12:37:19]Write to MH i2c: E2 02 01 19 05 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 FF 60 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 B9 [12:37:19]Write i2c OK [12:37:19]MH_I2C_Read... [12:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:19]Read from MH i2c: E2 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 03 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 03 00 19 05 00 90 00 92 [12:37:19]RAPDU: 90 00 [12:37:19]wFMCommunicate OK [12:37:19]wFMCommunicate request_size=43 [12:37:19]MH_SAM_APDU [12:37:19]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A5 C3 01 00 35 04 06 00 88 E1 23 8D 5E 3E [12:37:19]Write to MH i2c: E2 2E 00 1A 05 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A5 C3 01 00 35 04 06 00 88 E1 23 8D 5E 3E 00 00 9A [12:37:19]Write i2c OK [12:37:19]MH_I2C_Read... [12:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:19]Read from MH i2c: E2 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 03 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [12:37:19]RAPDU: 90 00 [12:37:19]wFMCommunicate OK [12:37:19]wFMCommunicate request_size=4 [12:37:19]MH_SAM_APDU [12:37:19]CAPDU: 80 0D 03 02 [12:37:19]Write to MH i2c: E2 08 00 1B 05 80 0D 03 02 00 00 00 00 9B [12:37:19]Write i2c OK [12:37:19]MH_I2C_Read... [12:37:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:19]Read from MH i2c: E2 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 0B 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 0B 00 1B 05 00 0F AF E2 78 F0 33 61 39 90 00 71 [12:37:19]RAPDU: 0F AF E2 78 F0 33 61 39 90 00 [12:37:19]wFMCommunicate OK [12:37:19]SAM_PROTO_SignData done [12:37:19]FM_MakeSignedData done [12:37:19]CreateOFDProtocolMessage [12:37:19]wFMCommunicate request_size=4 [12:37:19]MH_SAM_APDU [12:37:19]CAPDU: 80 11 00 00 [12:37:19]Write to MH i2c: E2 08 00 1C 05 80 11 00 00 00 00 00 00 9B [12:37:19]Write i2c OK [12:37:19]MH_I2C_Read... [12:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:19]Read from MH i2c: E2 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 17 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: E2 17 00 1C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E9 [12:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:37:19]wFMCommunicate OK [12:37:19]CreateOFDProtocolMessage done [12:37:19]OFDSenderStorePacket 115621 [12:37:19]StoreOFDPacket docnum=115621 [12:37:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 97 54 28 01 47 23 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 FF 60 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A5 C3 01 00 35 04 06 00 88 E1 23 8D 5E 3E 0F AF E2 78 F0 33 61 39 [12:37:19]CheckFolder [12:37:19]dirname=/storage/ofd_packets [12:37:19]CheckFolder done [12:37:19]ProducePacketName [12:37:19]name=ofd_packets/00115621 [12:37:19]NVStorageSaveData ofd_packets/00115621 [12:37:19]File name is /storage/ofd_packets/00115621 [12:37:19]Write 334 bytes [12:37:19]NVStorageSaveData done [12:37:19]OFDSenderStorePacket done [12:37:19]KKMCreateOFDPacket done [12:37:19]NVStorageSaveData kkm_last_timestamp [12:37:19]File name is /storage/kkm_last_timestamp [12:37:19]Write 4 bytes [12:37:19]NVStorageSaveData done [12:37:19]ExternCall_PrintAddStr [12:37:19]wPrintStart [12:37:19]Write to MH i2c: 01 00 00 1D 05 22 [12:37:19]Write i2c OK [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: 01 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: 01 07 00 [12:37:19]MH_I2C_Read... [12:37:19]Read from MH i2c: 01 07 00 1D 05 00 00 00 00 00 FF 0F 37 [12:37:19]RasterBufferAndPrint [12:37:19]line Счет N : (3)344007 [12:37:19]line ИНН: 02508201610067 [12:37:19]line Контрольно-Кассовый Чек [12:37:19]line ПРОДАЖА [12:37:19]line Товар: 4870233466272 [12:37:19]line Мороженое Пломбир Миша [12:37:19]line 2.000 * 77.00 [12:37:19]line = 154.00 [12:37:19]line НДС 12% НСП 1% [12:37:19]line > о реализуемом товаре [12:37:19]line ИТОГО: 154.00 [12:37:19]line НСП 1% : 1.36 [12:37:19]line НДС 12% : 16.35 [12:37:19]line Наличными: 154.00 [12:37:19]line Безнал.: 0.00 [12:37:19]line Место: АЗС № 90 "Партнер Нефть" [12:37:19]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:37:19]line СНО: Общий режим [12:37:19]line Чек 104 23.09.2024 12:37 [12:37:19]line Смена: 472 ФФД: 1.0 [12:37:19]line ЗНМ: 0300000120 [12:37:19]line РНМ: 0000000000091831 [12:37:19]line Версия ККМ: 001 [12:37:19]line ФМ: 0000000000871830 [12:37:19]line ФД: 115621 [12:37:19]line ФПД: 150500545486398 [12:37:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123719&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115621&fm=150500545486398&tin=02508201610067®Number=0000000000091831&sum=15400 [12:37:19]OFD Sender: Processing packet 115621 [packets to send 481, broken 480] [12:37:19]ProducePacketName [12:37:19]name=ofd_packets/00115621 [12:37:19]OFD Sender: To server: pG, [12:37:19]CommunicateWithHost lk.salyk.kg:30040 [12:37:19]ConnectInit lk.salyk.kg [12:37:19]line 0 [12:37:19]written 0, free lines is 4095 [12:37:20]Write to MH i2c: 01 00 00 44 05 49 [12:37:20]Write i2c OK [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: 01 [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: 01 07 00 [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: 01 07 00 44 05 00 00 00 00 00 78 0C D4 [12:37:20]RasterBufferAndPrint [12:37:20]line [12:37:20]line [12:37:20]line [12:37:20]line [12:37:20]line [12:37:20]written 0, free lines is 3195 [12:37:20]MH_Cut [12:37:20]Write to MH i2c: D1 01 00 4B 05 01 22 [12:37:20]Write i2c OK [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: D1 [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: D1 01 00 [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: D1 01 00 4B 05 00 21 [12:37:20]Write to MH i2c: 01 00 00 4C 05 51 [12:37:20]Write i2c OK [12:37:20]MH_I2C_Read... [12:37:21]*** Cut start [12:37:21]*** Partial cut [12:37:21]*** CUTSNS_PIN = 1 [12:37:21]*** CUTSNS_PIN = 0 [12:37:21]*** Brake cut motor [12:37:22]Read from MH i2c: 01 [12:37:22]MH_I2C_Read... [12:37:22]*** Stop cut motor [12:37:22]Read from MH i2c: 01 07 00 [12:37:22]MH_I2C_Read... [12:37:22]*** Cut end [12:37:22]Read from MH i2c: 01 07 00 4C 05 00 00 00 00 00 FF 0F 66 [12:37:22]process_action close_receipt done [12:37:22]requested_data is exist [12:37:22]produce_requested_data [12:37:22]requested_item fm.sn is exist - process it [12:37:22]wFMCommunicate request_size=4 [12:37:22]MH_SAM_APDU [12:37:22]CAPDU: 80 11 00 00 [12:37:22]Write to MH i2c: E2 08 00 4D 05 80 11 00 00 00 00 00 00 CC [12:37:22]Write i2c OK [12:37:22]MH_I2C_Read... [12:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:22]Read from MH i2c: E2 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 17 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 17 00 4D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1A [12:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:37:22]wFMCommunicate OK [12:37:22]requested_item fd.num is exist - process it [12:37:22]SAM_PROTO_GetFieldsCounters [12:37:22]wFMCommunicate request_size=4 [12:37:22]MH_SAM_APDU [12:37:22]CAPDU: 80 13 00 00 [12:37:22]Write to MH i2c: E2 08 00 4E 05 80 13 00 00 00 00 00 00 CF [12:37:22]Write i2c OK [12:37:22]MH_I2C_Read... [12:37:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:22]Read from MH i2c: E2 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 62 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 62 00 4E 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A5 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [12:37: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A5 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:22]wFMCommunicate OK [12:37:22]SAM_PROTO_GetFieldsCounters done [12:37:22]requested_item shift.num is exist - process it [12:37:22]requested_item shift.opened is exist - process it [12:37:22]req_shift_opened [12:37:22]FM_GetShiftState [12:37:22]SAM_PROTO_GetShiftState [12:37:22]wFMCommunicate request_size=4 [12:37:22]MH_SAM_APDU [12:37:22]CAPDU: 80 13 01 00 [12:37:22]Write to MH i2c: E2 08 00 4F 05 80 13 01 00 00 00 00 00 D1 [12:37:22]Write i2c OK [12:37:22]MH_I2C_Read... [12:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:22]Read from MH i2c: E2 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 0E 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 0E 00 4F 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 12 [12:37:22]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:37:22]wFMCommunicate OK [12:37:22]SAM_PROTO_GetShiftState done [12:37:22]FM_GetShiftState done [12:37:22]req_shift_opened done [12:37:22]requested_item shift.open_date is exist - process it [12:37:22]req_shift_open_date [12:37:22]req_shift_open_date done [12:37:22]produce_requested_data done [12:37:22]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115621,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [12:37:22]process_action_free close_receipt [12:37:22]json_value_free [12:37:22]json_value_free done [12:37:22]process_json_proto returns [12:37:22]Send response to host [12:37:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115621,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [12:37:22]free response buf [12:37:22]execute_script done [12:37:22]execute_script returns [12:37:22]free content buf [12:37:22]Sock 9.Close socket [12:37:22]Sock 9.Thread stoped [12:38:21]accept exits with 8 [12:38:21]New connection [12:38:21]New thread 3067501924 created [12:38:21]Thread 3067358564 joined [12:38:21]Waiting for new connection... [12:38:21] Sock 8.Parse request [12:38:21]Sock 8.Check first char [12:38:21]Sock 8.First char is OK [12:38:21]request: POST /json_proto HTTP/1.0 [12:38:21]Method: POST [12:38:21]URL: /json_proto [12:38:21]Method is POST - this is cgi request [12:38:21]url: /json_proto [12:38:21]query_string will be loaded in cgi processing [12:38:21]execute_cgi json_proto POST (null) [12:38:21]execute_cgi path=json_proto method=POST [12:38:21]POST find Content-Length [12:38:21]Host: 172.17.41.136:8080 [12:38:21]Content-Length: 681 [12:38:21]Content-Type: application/json [12:38:21] [12:38:21]POST finish read [12:38:21]Found Content-Length = 681 [12:38:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344008", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:21]execute_script... [12:38:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344008", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:21]POST & json_proto [12:38:21]process_json_proto [12:38:21]json parsed OK: [12:38:21]protocol is kg_v1.0 [12:38:21]action value=close_receipt [12:38:21]process_action close_receipt [12:38:21]cmd_close_receipt [12:38:21]MH_GetDate [12:38:21]Write to MH i2c: F0 00 00 50 05 44 [12:38:21]Write i2c OK [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: F0 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: F0 09 00 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: F0 09 00 50 05 00 3E 61 F1 66 1B D0 5A 64 EC [12:38:21]GetLastDocTimeStamp 1727095039 [12:38:21]current date 1727095102 [12:38:21]FM_GetShiftState [12:38:21]SAM_PROTO_GetShiftState [12:38:21]wFMCommunicate request_size=4 [12:38:21]MH_SAM_APDU [12:38:21]CAPDU: 80 13 01 00 [12:38:21]Write to MH i2c: E2 08 00 51 05 80 13 01 00 00 00 00 00 D3 [12:38:21]Write i2c OK [12:38:21]MH_I2C_Read... [12:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:21]Read from MH i2c: E2 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: E2 0E 00 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: E2 0E 00 51 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 14 [12:38:21]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:38:21]wFMCommunicate OK [12:38:21]SAM_PROTO_GetShiftState done [12:38:21]FM_GetShiftState done [12:38:21]opened in 1727052070 [12:38:21]opened+sec_in_day 1727138470 [12:38:21]quantity*price = 7000 [12:38:21]sum+1 = 7001 [12:38:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 105 23.09.2024 12:38 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115622 ФПД: 164774801906238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123822&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115622&fm=164774801906238&tin=02508201610067®Number=0000000000091831&sum=7000 0 [12:38:22]StoreToDocumentArchive [12:38:22]shift 472 fd 115622 [12:38:22]save to /storage/0472/doc_00115622 [12:38:22]save last doc name /storage/0472/doc_00115622 to /storage/kkm_last_doc_name [12:38:22]save OK [12:38:22]Clear old archive folders... [12:38:22]ProcessDocumentItem done err = 0, tmpTLVsize=292 [12:38:22]tlvbuf is 01F5DF90 [12:38:22]SAM_PROTO_ClearQueue [12:38:22]wFMCommunicate request_size=4 [12:38:22]MH_SAM_APDU [12:38:22]CAPDU: 80 09 00 00 [12:38:22]Write to MH i2c: E2 08 00 5E 05 80 09 00 00 00 00 00 00 D5 [12:38:22]Write i2c OK [12:38:22]MH_I2C_Read... [12:38:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:22]Read from MH i2c: E2 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: E2 03 00 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [12:38:22]RAPDU: 90 00 [12:38:22]wFMCommunicate OK [12:38:22]SAM_PROTO_ClearQueue done [12:38:22]KKMCreateOFDPacket [12:38:22]OFDProtocolAddRootSTLVToBuf [12:38:22]FM_MakeSignedData [12:38:22]FM_MakeSignedData [12:38:22]SAM_PROTO_SignData [12:38:22]wFMCommunicate request_size=4 [12:38:22]MH_SAM_APDU [12:38:22]CAPDU: 80 0D 01 02 [12:38:22]Write to MH i2c: E2 08 00 5F 05 80 0D 01 02 00 00 00 00 DD [12:38:22]Write i2c OK [12:38:22]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 03 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [12:38:23]RAPDU: 90 00 [12:38:23]wFMCommunicate OK [12:38:23]wFMCommunicate request_size=255 [12:38:23]MH_SAM_APDU [12:38:23]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 3E 61 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [12:38:23]Write to MH i2c: E2 02 01 60 05 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 3E 61 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 09 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 03 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [12:38:23]RAPDU: 90 00 [12:38:23]wFMCommunicate OK [12:38:23]wFMCommunicate request_size=51 [12:38:23]MH_SAM_APDU [12:38:23]CAPDU: 80 0D 02 02 2E 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A6 C3 01 00 35 04 06 00 95 DC 9F 89 1A 3E [12:38:23]Write to MH i2c: E2 36 00 61 05 80 0D 02 02 2E 00 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A6 C3 01 00 35 04 06 00 95 DC 9F 89 1A 3E 00 00 C4 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 03 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [12:38:23]RAPDU: 90 00 [12:38:23]wFMCommunicate OK [12:38:23]wFMCommunicate request_size=4 [12:38:23]MH_SAM_APDU [12:38:23]CAPDU: 80 0D 03 02 [12:38:23]Write to MH i2c: E2 08 00 62 05 80 0D 03 02 00 00 00 00 E2 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 0B 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 0B 00 62 05 00 33 AD 68 1A B4 FE 6B 88 90 00 EA [12:38:23]RAPDU: 33 AD 68 1A B4 FE 6B 88 90 00 [12:38:23]wFMCommunicate OK [12:38:23]SAM_PROTO_SignData done [12:38:23]FM_MakeSignedData done [12:38:23]CreateOFDProtocolMessage [12:38:23]wFMCommunicate request_size=4 [12:38:23]MH_SAM_APDU [12:38:23]CAPDU: 80 11 00 00 [12:38:23]Write to MH i2c: E2 08 00 63 05 80 11 00 00 00 00 00 00 E2 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 17 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 17 00 63 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 30 [12:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:38:23]wFMCommunicate OK [12:38:23]CreateOFDProtocolMessage done [12:38:23]OFDSenderStorePacket 115622 [12:38:23]StoreOFDPacket docnum=115622 [12:38:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 38 01 00 00 D9 21 30 01 40 E3 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 3E 61 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A6 C3 01 00 35 04 06 00 95 DC 9F 89 1A 3E 33 AD 68 1A B4 FE 6B 88 [12:38:23]CheckFolder [12:38:23]dirname=/storage/ofd_packets [12:38:23]CheckFolder done [12:38:23]ProducePacketName [12:38:23]name=ofd_packets/00115622 [12:38:23]NVStorageSaveData ofd_packets/00115622 [12:38:23]File name is /storage/ofd_packets/00115622 [12:38:23]Write 342 bytes [12:38:23]NVStorageSaveData done [12:38:23]OFDSenderStorePacket done [12:38:23]KKMCreateOFDPacket done [12:38:23]NVStorageSaveData kkm_last_timestamp [12:38:23]File name is /storage/kkm_last_timestamp [12:38:23]Write 4 bytes [12:38:23]NVStorageSaveData done [12:38:23]ExternCall_PrintAddStr [12:38:23]wPrintStart [12:38:23]Write to MH i2c: 01 00 00 64 05 69 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: 01 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: 01 07 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: 01 07 00 64 05 00 00 00 00 00 FF 0F 7E [12:38:23]RasterBufferAndPrint [12:38:23]line Счет N : (3)344008 [12:38:23]line ИНН: 02508201610067 [12:38:23]line Контрольно-Кассовый Чек [12:38:23]line ПРОДАЖА [12:38:23]line Товар: 4870202522008 [12:38:23]line Напиток Maxi Чай Грушевый 0,45л [12:38:23]line 1.000 * 70.00 [12:38:23]line = 70.00 [12:38:23]line НДС 12% НСП 1% [12:38:23]line > о реализуемом товаре [12:38:23]line ИТОГО: 70.00 [12:38:23]line НСП 1% : 0.62 [12:38:23]line НДС 12% : 7.43 [12:38:23]line Наличными: 70.00 [12:38:23]line Безнал.: 0.00 [12:38:23]line Место: АЗС № 90 "Партнер Нефть" [12:38:23]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:38:23]line СНО: Общий режим [12:38:23]line Чек 105 23.09.2024 12:38 [12:38:23]line Смена: 472 ФФД: 1.0 [12:38:23]line ЗНМ: 0300000120 [12:38:23]line РНМ: 0000000000091831 [12:38:23]line Версия ККМ: 001 [12:38:23]line ФМ: 0000000000871830 [12:38:23]line ФД: 115622 [12:38:23]line ФПД: 164774801906238 [12:38:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123822&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115622&fm=164774801906238&tin=02508201610067®Number=0000000000091831&sum=7000 [12:38:23]line 0 [12:38:23]written 0, free lines is 4095 [12:38:23]Write to MH i2c: 01 00 00 8C 05 91 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: 01 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: 01 07 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: 01 07 00 8C 05 00 00 00 00 00 5B 0C FF [12:38:23]RasterBufferAndPrint [12:38:23]line [12:38:23]line [12:38:23]line [12:38:23]line [12:38:23]line [12:38:23]written 0, free lines is 3166 [12:38:23]MH_Cut [12:38:23]Write to MH i2c: D1 01 00 93 05 01 6A [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: D1 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: D1 01 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: D1 01 00 93 05 00 69 [12:38:23]Write to MH i2c: 01 00 00 94 05 99 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:25]*** Cut start [12:38:25]*** Partial cut [12:38:25]*** CUTSNS_PIN = 1 [12:38:25]*** CUTSNS_PIN = 0 [12:38:25]*** Brake cut motor [12:38:25]Read from MH i2c: 01 [12:38:25]MH_I2C_Read... [12:38:25]*** Stop cut motor [12:38:25]*** Cut end [12:38:25]Read from MH i2c: 01 07 00 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: 01 07 00 94 05 00 00 00 00 00 FF 0F AE [12:38:25]process_action close_receipt done [12:38:25]requested_data is exist [12:38:25]produce_requested_data [12:38:25]requested_item fm.sn is exist - process it [12:38:25]wFMCommunicate request_size=4 [12:38:25]MH_SAM_APDU [12:38:25]CAPDU: 80 11 00 00 [12:38:25]Write to MH i2c: E2 08 00 95 05 80 11 00 00 00 00 00 00 14 [12:38:25]Write i2c OK [12:38:25]MH_I2C_Read... [12:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:25]Read from MH i2c: E2 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 17 00 [12:38:25]MH_I2C_Read... [12:38:25]Read from MH i2c: E2 17 00 95 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 62 [12:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:38:25]wFMCommunicate OK [12:38:25]requested_item fd.num is exist - process it [12:38:25]SAM_PROTO_GetFieldsCounters [12:38:25]wFMCommunicate request_size=4 [12:38:25]MH_SAM_APDU [12:38:25]CAPDU: 80 13 00 00 [12:38:25]Write to MH i2c: E2 08 00 96 05 80 13 00 00 00 00 00 00 17 [12:38:25]Write i2c OK [12:38:25]MH_I2C_Read... [12:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:26]Read from MH i2c: E2 [12:38:26]MH_I2C_Read... [12:38:26]Read from MH i2c: E2 62 00 [12:38:26]MH_I2C_Read... [12:38:26]Read from MH i2c: E2 62 00 96 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A6 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [12:38: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A6 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:26]wFMCommunicate OK [12:38:26]SAM_PROTO_GetFieldsCounters done [12:38:26]requested_item shift.num is exist - process it [12:38:26]requested_item shift.opened is exist - process it [12:38:26]req_shift_opened [12:38:26]FM_GetShiftState [12:38:26]SAM_PROTO_GetShiftState [12:38:26]wFMCommunicate request_size=4 [12:38:26]MH_SAM_APDU [12:38:26]CAPDU: 80 13 01 00 [12:38:26]Write to MH i2c: E2 08 00 97 05 80 13 01 00 00 00 00 00 19 [12:38:26]Write i2c OK [12:38:26]MH_I2C_Read... [12:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:26]Read from MH i2c: E2 [12:38:26]MH_I2C_Read... [12:38:26]Read from MH i2c: E2 0E 00 [12:38:26]MH_I2C_Read... [12:38:26]Read from MH i2c: E2 0E 00 97 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5A [12:38:26]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:38:26]wFMCommunicate OK [12:38:26]SAM_PROTO_GetShiftState done [12:38:26]FM_GetShiftState done [12:38:26]req_shift_opened done [12:38:26]requested_item shift.open_date is exist - process it [12:38:26]req_shift_open_date [12:38:26]req_shift_open_date done [12:38:26]produce_requested_data done [12:38:26]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115622,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [12:38:26]process_action_free close_receipt [12:38:26]json_value_free [12:38:26]json_value_free done [12:38:26]process_json_proto returns [12:38:26]Send response to host [12:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115622,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [12:38:26]free response buf [12:38:26]execute_script done [12:38:26]execute_script returns [12:38:26]free content buf [12:38:26]Sock 8.Close socket [12:38:26]Sock 8.Thread stoped [12:38:45]accept exits with 9 [12:38:45]New connection [12:38:45]New thread 3067358564 created [12:38:45]Thread 3067501924 joined [12:38:45]Waiting for new connection... [12:38:45] Sock 9.Parse request [12:38:45]Sock 9.Check first char [12:38:45]Sock 9.First char is OK [12:38:45]request: POST /json_proto HTTP/1.0 [12:38:45]Method: POST [12:38:45]URL: /json_proto [12:38:45]Method is POST - this is cgi request [12:38:45]url: /json_proto [12:38:45]query_string will be loaded in cgi processing [12:38:45]execute_cgi json_proto POST (null) [12:38:45]execute_cgi path=json_proto method=POST [12:38:45]POST find Content-Length [12:38:45]Host: 172.17.41.136:8080 [12:38:45]Content-Length: 669 [12:38:45]Content-Type: application/json [12:38:45] [12:38:45]POST finish read [12:38:45]Found Content-Length = 669 [12:38:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344009", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:45]execute_script... [12:38: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 : (3)344009", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:45]POST & json_proto [12:38:45]process_json_proto [12:38:45]json parsed OK: [12:38:45]protocol is kg_v1.0 [12:38:45]action value=close_receipt [12:38:45]process_action close_receipt [12:38:45]cmd_close_receipt [12:38:45]MH_GetDate [12:38:45]Write to MH i2c: F0 00 00 98 05 8C [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: F0 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: F0 09 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: F0 09 00 98 05 00 57 61 F1 66 1B D0 5A 64 4D [12:38:45]GetLastDocTimeStamp 1727095102 [12:38:45]current date 1727095127 [12:38:45]FM_GetShiftState [12:38:45]SAM_PROTO_GetShiftState [12:38:45]wFMCommunicate request_size=4 [12:38:45]MH_SAM_APDU [12:38:45]CAPDU: 80 13 01 00 [12:38:45]Write to MH i2c: E2 08 00 99 05 80 13 01 00 00 00 00 00 1B [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:45]Read from MH i2c: E2 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 0E 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 0E 00 99 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5C [12:38:45]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:38:45]wFMCommunicate OK [12:38:45]SAM_PROTO_GetShiftState done [12:38:45]FM_GetShiftState done [12:38:45]opened in 1727052070 [12:38:45]opened+sec_in_day 1727138470 [12:38:45]quantity*price = 6500 [12:38:45]sum+1 = 6501 [12:38:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 106 23.09.2024 12:38 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115623 ФПД: 232247435464177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123847&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115623&fm=232247435464177&tin=02508201610067®Number=0000000000091831&sum=6500 0 [12:38:47]StoreToDocumentArchive [12:38:47]shift 472 fd 115623 [12:38:47]save to /storage/0472/doc_00115623 [12:38:47]save last doc name /storage/0472/doc_00115623 to /storage/kkm_last_doc_name [12:38:47]save OK [12:38:47]Clear old archive folders... [12:38:47]ProcessDocumentItem done err = 0, tmpTLVsize=284 [12:38:47]tlvbuf is 01F5DBB0 [12:38:47]SAM_PROTO_ClearQueue [12:38:47]wFMCommunicate request_size=4 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 09 00 00 [12:38:47]Write to MH i2c: E2 08 00 A6 05 80 09 00 00 00 00 00 00 1D [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 03 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [12:38:47]RAPDU: 90 00 [12:38:47]wFMCommunicate OK [12:38:47]SAM_PROTO_ClearQueue done [12:38:47]KKMCreateOFDPacket [12:38:47]OFDProtocolAddRootSTLVToBuf [12:38:47]FM_MakeSignedData [12:38:47]FM_MakeSignedData [12:38:47]SAM_PROTO_SignData [12:38:47]wFMCommunicate request_size=4 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 0D 01 02 [12:38:47]Write to MH i2c: E2 08 00 A7 05 80 0D 01 02 00 00 00 00 25 [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 03 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [12:38:47]RAPDU: 90 00 [12:38:47]wFMCommunicate OK [12:38:47]wFMCommunicate request_size=255 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 57 61 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [12:38:47]Write to MH i2c: E2 02 01 A8 05 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 57 61 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 00 [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 03 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [12:38:47]RAPDU: 90 00 [12:38:47]wFMCommunicate OK [12:38:47]wFMCommunicate request_size=43 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A7 C3 01 00 35 04 06 00 D3 3A 51 E4 0D F1 [12:38:47]Write to MH i2c: E2 2E 00 A9 05 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A7 C3 01 00 35 04 06 00 D3 3A 51 E4 0D F1 00 00 B6 [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 03 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [12:38:47]RAPDU: 90 00 [12:38:47]wFMCommunicate OK [12:38:47]wFMCommunicate request_size=4 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 0D 03 02 [12:38:47]Write to MH i2c: E2 08 00 AA 05 80 0D 03 02 00 00 00 00 2A [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 0B 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 0B 00 AA 05 00 1D 37 3F 52 75 DC C8 99 90 00 C2 [12:38:47]RAPDU: 1D 37 3F 52 75 DC C8 99 90 00 [12:38:47]wFMCommunicate OK [12:38:47]SAM_PROTO_SignData done [12:38:47]FM_MakeSignedData done [12:38:47]CreateOFDProtocolMessage [12:38:47]wFMCommunicate request_size=4 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 11 00 00 [12:38:47]Write to MH i2c: E2 08 00 AB 05 80 11 00 00 00 00 00 00 2A [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 17 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 17 00 AB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 78 [12:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:38:47]wFMCommunicate OK [12:38:47]CreateOFDProtocolMessage done [12:38:47]OFDSenderStorePacket 115623 [12:38:47]StoreOFDPacket docnum=115623 [12:38:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 CA AA 28 01 23 6E 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 57 61 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A7 C3 01 00 35 04 06 00 D3 3A 51 E4 0D F1 1D 37 3F 52 75 DC C8 99 [12:38:47]CheckFolder [12:38:47]dirname=/storage/ofd_packets [12:38:47]CheckFolder done [12:38:47]ProducePacketName [12:38:47]name=ofd_packets/00115623 [12:38:47]NVStorageSaveData ofd_packets/00115623 [12:38:47]File name is /storage/ofd_packets/00115623 [12:38:47]Write 334 bytes [12:38:47]NVStorageSaveData done [12:38:47]OFDSenderStorePacket done [12:38:47]KKMCreateOFDPacket done [12:38:47]NVStorageSaveData kkm_last_timestamp [12:38:47]File name is /storage/kkm_last_timestamp [12:38:47]Write 4 bytes [12:38:47]NVStorageSaveData done [12:38:47]ExternCall_PrintAddStr [12:38:47]wPrintStart [12:38:47]Write to MH i2c: 01 00 00 AC 05 B1 [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: 01 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: 01 07 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: 01 07 00 AC 05 00 00 00 00 00 FF 0F C6 [12:38:47]RasterBufferAndPrint [12:38:47]line Счет N : (3)344009 [12:38:47]line ИНН: 02508201610067 [12:38:47]line Контрольно-Кассовый Чек [12:38:47]line ПРОДАЖА [12:38:47]line Товар: 4700040114137 [12:38:47]line Султан чай 1л. зел лимон [12:38:47]line 1.000 * 65.00 [12:38:47]line = 65.00 [12:38:47]line НДС 12% НСП 1% [12:38:47]line > о реализуемом товаре [12:38:47]line ИТОГО: 65.00 [12:38:47]line НСП 1% : 0.57 [12:38:47]line НДС 12% : 6.90 [12:38:47]line Наличными: 65.00 [12:38:47]line Безнал.: 0.00 [12:38:47]line Место: АЗС № 90 "Партнер Нефть" [12:38:47]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:38:47]line СНО: Общий режим [12:38:47]line Чек 106 23.09.2024 12:38 [12:38:47]line Смена: 472 ФФД: 1.0 [12:38:47]line ЗНМ: 0300000120 [12:38:47]line РНМ: 0000000000091831 [12:38:47]line Версия ККМ: 001 [12:38:47]line ФМ: 0000000000871830 [12:38:47]line ФД: 115623 [12:38:47]line ФПД: 232247435464177 [12:38:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123847&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115623&fm=232247435464177&tin=02508201610067®Number=0000000000091831&sum=6500 [12:38:47]line 0 [12:38:47]written 0, free lines is 4095 [12:38:48]Write to MH i2c: 01 00 00 D3 05 D8 [12:38:48]Write i2c OK [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: 01 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: 01 07 00 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: 01 07 00 D3 05 00 00 00 00 00 7F 0C 6A [12:38:48]RasterBufferAndPrint [12:38:48]line [12:38:48]line [12:38:48]line [12:38:48]line [12:38:48]line [12:38:48]written 0, free lines is 3203 [12:38:48]MH_Cut [12:38:48]Write to MH i2c: D1 01 00 DA 05 01 B1 [12:38:48]Write i2c OK [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: D1 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: D1 01 00 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: D1 01 00 DA 05 00 B0 [12:38:48]Write to MH i2c: 01 00 00 DB 05 E0 [12:38:48]Write i2c OK [12:38:48]MH_I2C_Read... [12:38:49]*** Cut start [12:38:49]*** Partial cut [12:38:49]*** CUTSNS_PIN = 1 [12:38:49]*** CUTSNS_PIN = 0 [12:38:49]*** Brake cut motor [12:38:50]Read from MH i2c: 01 [12:38:50]MH_I2C_Read... [12:38:50]*** Stop cut motor [12:38:50]*** Cut end [12:38:50]Read from MH i2c: 01 07 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 FF 0F F5 [12:38:50]process_action close_receipt done [12:38:50]requested_data is exist [12:38:50]produce_requested_data [12:38:50]requested_item fm.sn is exist - process it [12:38:50]wFMCommunicate request_size=4 [12:38:50]MH_SAM_APDU [12:38:50]CAPDU: 80 11 00 00 [12:38:50]Write to MH i2c: E2 08 00 DC 05 80 11 00 00 00 00 00 00 5B [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:50]Read from MH i2c: E2 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 17 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 17 00 DC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A9 [12:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:38:50]wFMCommunicate OK [12:38:50]requested_item fd.num is exist - process it [12:38:50]SAM_PROTO_GetFieldsCounters [12:38:50]wFMCommunicate request_size=4 [12:38:50]MH_SAM_APDU [12:38:50]CAPDU: 80 13 00 00 [12:38:50]Write to MH i2c: E2 08 00 DD 05 80 13 00 00 00 00 00 00 5E [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:50]Read from MH i2c: E2 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 62 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 62 00 DD 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A7 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [12:38: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A7 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:50]wFMCommunicate OK [12:38:50]SAM_PROTO_GetFieldsCounters done [12:38:50]requested_item shift.num is exist - process it [12:38:50]requested_item shift.opened is exist - process it [12:38:50]req_shift_opened [12:38:50]FM_GetShiftState [12:38:50]SAM_PROTO_GetShiftState [12:38:50]wFMCommunicate request_size=4 [12:38:50]MH_SAM_APDU [12:38:50]CAPDU: 80 13 01 00 [12:38:50]Write to MH i2c: E2 08 00 DE 05 80 13 01 00 00 00 00 00 60 [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:50]Read from MH i2c: E2 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 0E 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 0E 00 DE 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A1 [12:38:50]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:38:50]wFMCommunicate OK [12:38:50]SAM_PROTO_GetShiftState done [12:38:50]FM_GetShiftState done [12:38:50]req_shift_opened done [12:38:50]requested_item shift.open_date is exist - process it [12:38:50]req_shift_open_date [12:38:50]req_shift_open_date done [12:38:50]produce_requested_data done [12:38:50]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115623,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [12:38:50]process_action_free close_receipt [12:38:50]json_value_free [12:38:50]json_value_free done [12:38:50]process_json_proto returns [12:38:50]Send response to host [12:38:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115623,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [12:38:50]free response buf [12:38:50]execute_script done [12:38:50]execute_script returns [12:38:50]free content buf [12:38:50]Sock 9.Close socket [12:38:50]Sock 9.Thread stoped [12:38:50]accept exits with 8 [12:38:50]New connection [12:38:50]New thread 3067501924 created [12:38:50]Thread 3067358564 joined [12:38:50]Waiting for new connection... [12:38:50] Sock 8.Parse request [12:38:50]Sock 8.Check first char [12:38:50]Sock 8.First char is OK [12:38:50]request: POST /json_proto HTTP/1.0 [12:38:50]Method: POST [12:38:50]URL: /json_proto [12:38:50]Method is POST - this is cgi request [12:38:50]url: /json_proto [12:38:50]query_string will be loaded in cgi processing [12:38:50]execute_cgi json_proto POST (null) [12:38:50]execute_cgi path=json_proto method=POST [12:38:50]POST find Content-Length [12:38:50]Host: 172.17.41.136:8080 [12:38:50]Content-Length: 661 [12:38:50]Content-Type: application/json [12:38:50] [12:38:50]POST finish read [12:38:50]Found Content-Length = 661 [12:38:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 10.110, "sum" : 700.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:50]execute_script... [12: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)24617644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 10.110, "sum" : 700.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:50]POST & json_proto [12:38:50]process_json_proto [12:38:50]json parsed OK: [12:38:50]protocol is kg_v1.0 [12:38:50]action value=close_receipt [12:38:50]process_action close_receipt [12:38:50]cmd_close_receipt [12:38:50]MH_GetDate [12:38:50]Write to MH i2c: F0 00 00 DF 05 D3 [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: F0 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: F0 09 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: F0 09 00 DF 05 00 5C 61 F1 66 1B D0 5A 64 99 [12:38:50]GetLastDocTimeStamp 1727095127 [12:38:50]current date 1727095132 [12:38:50]FM_GetShiftState [12:38:50]SAM_PROTO_GetShiftState [12:38:50]wFMCommunicate request_size=4 [12:38:50]MH_SAM_APDU [12:38:50]CAPDU: 80 13 01 00 [12:38:50]Write to MH i2c: E2 08 00 E0 05 80 13 01 00 00 00 00 00 62 [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:50]Read from MH i2c: E2 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 0E 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 0E 00 E0 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A3 [12:38:50]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:38:50]wFMCommunicate OK [12:38:50]SAM_PROTO_GetShiftState done [12:38:50]FM_GetShiftState done [12:38:50]opened in 1727052070 [12:38:50]opened+sec_in_day 1727138470 [12:38:50]quantity*price = 70062 [12:38:50]sum+1 = 70063 [12:38:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 107 23.09.2024 12:38 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115624 ФПД: 74269324112405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123852&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115624&fm=74269324112405&tin=02508201610067®Number=0000000000091831&sum=70000 [12:38:52]StoreToDocumentArchive [12:38:52]shift 472 fd 115624 [12:38:52]save to /storage/0472/doc_00115624 [12:38:52]save last doc name /storage/0472/doc_00115624 to /storage/kkm_last_doc_name [12:38:52]save OK [12:38:52]Clear old archive folders... [12:38:52]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:38:52]tlvbuf is 01FC2870 [12:38:52]SAM_PROTO_ClearQueue [12:38:52]wFMCommunicate request_size=4 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 09 00 00 [12:38:52]Write to MH i2c: E2 08 00 ED 05 80 09 00 00 00 00 00 00 64 [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [12:38:52]RAPDU: 90 00 [12:38:52]wFMCommunicate OK [12:38:52]SAM_PROTO_ClearQueue done [12:38:52]KKMCreateOFDPacket [12:38:52]OFDProtocolAddRootSTLVToBuf [12:38:52]FM_MakeSignedData [12:38:52]FM_MakeSignedData [12:38:52]SAM_PROTO_SignData [12:38:52]wFMCommunicate request_size=4 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 0D 01 02 [12:38:52]Write to MH i2c: E2 08 00 EE 05 80 0D 01 02 00 00 00 00 6C [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [12:38:52]RAPDU: 90 00 [12:38:52]wFMCommunicate OK [12:38:52]wFMCommunicate request_size=253 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 AE 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 5C 61 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A8 C3 01 00 35 04 06 00 43 8C 2C AE 72 15 [12:38:52]Write to MH i2c: E2 00 01 EF 05 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 AE 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 5C 61 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A8 C3 01 00 35 04 06 00 43 8C 2C AE 72 15 00 00 41 [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [12:38:52]RAPDU: 90 00 [12:38:52]wFMCommunicate OK [12:38:52]wFMCommunicate request_size=4 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 0D 03 02 [12:38:52]Write to MH i2c: E2 08 00 F0 05 80 0D 03 02 00 00 00 00 70 [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 0B 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 0B 00 F0 05 00 3D 28 A9 2E A0 9C EB 78 90 00 4C [12:38:52]RAPDU: 3D 28 A9 2E A0 9C EB 78 90 00 [12:38:52]wFMCommunicate OK [12:38:52]SAM_PROTO_SignData done [12:38:52]FM_MakeSignedData done [12:38:52]CreateOFDProtocolMessage [12:38:52]wFMCommunicate request_size=4 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 11 00 00 [12:38:52]Write to MH i2c: E2 08 00 F1 05 80 11 00 00 00 00 00 00 70 [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 17 00 [12:38:52]MH_I2C_Read... [12:38:52]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 38 33 30 90 00 BE [12:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:38:52]wFMCommunicate OK [12:38:52]CreateOFDProtocolMessage done [12:38:52]OFDSenderStorePacket 115624 [12:38:52]StoreOFDPacket docnum=115624 [12:38:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 AB FC 00 01 62 7F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 AE 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 5C 61 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A8 C3 01 00 35 04 06 00 43 8C 2C AE 72 15 3D 28 A9 2E A0 9C EB 78 [12:38:52]CheckFolder [12:38:52]dirname=/storage/ofd_packets [12:38:52]CheckFolder done [12:38:52]ProducePacketName [12:38:52]name=ofd_packets/00115624 [12:38:52]NVStorageSaveData ofd_packets/00115624 [12:38:52]File name is /storage/ofd_packets/00115624 [12:38:52]Write 294 bytes [12:38:52]NVStorageSaveData done [12:38:52]OFDSenderStorePacket done [12:38:52]KKMCreateOFDPacket done [12:38:52]NVStorageSaveData kkm_last_timestamp [12:38:52]File name is /storage/kkm_last_timestamp [12:38:52]Write 4 bytes [12:38:52]NVStorageSaveData done [12:38:52]ExternCall_PrintAddStr [12:38:52]wPrintStart [12:38:52]Write to MH i2c: 01 00 00 F2 05 F7 [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: 01 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: 01 07 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: 01 07 00 F2 05 00 00 00 00 00 FF 0F 0C [12:38:52]RasterBufferAndPrint [12:38:52]line Счет N : (1)24617644 [12:38:52]line ИНН: 02508201610067 [12:38:52]line Контрольно-Кассовый Чек [12:38:52]line ПРОДАЖА [12:38:52]line ТРК (МРК, ГНК) : 54 [12:38:52]line Товар: 2710124130 [12:38:52]line SU-92 [12:38:52]line 10.110 * 69.30 [12:38:52]line = 700.62 [12:38:52]line НДС 12% НСП 1% [12:38:52]line > о реализуемом товаре [12:38:52]line ОКРУГЛЕНИЕ: -0.62 [12:38:52]line ИТОГО: 700.00 [12:38:52]line Внесено: 700.00 [12:38:52]line СДАЧА: 0.00 [12:38:52]line НСП 1% : 6.20 [12:38:52]line НДС 12% : 74.40 [12:38:52]line Наличными: 700.00 [12:38:52]line Безнал.: 0.00 [12:38:52]line Место: АЗС № 90 "Партнер Нефть" [12:38:52]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:38:53]line СНО: Общий режим [12:38:53]line Чек 107 23.09.2024 12:38 [12:38:53]line Смена: 472 ФФД: 1.0 [12:38:53]line ЗНМ: 0300000120 [12:38:53]line РНМ: 0000000000091831 [12:38:53]line Версия ККМ: 001 [12:38:53]line ФМ: 0000000000871830 [12:38:53]line ФД: 115624 [12:38:53]line ФПД: 74269324112405 [12:38:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T123852&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115624&fm=74269324112405&tin=02508201610067®Number=0000000000091831&sum=70000 [12:38:53]written 0, free lines is 4095 [12:38:53]Write to MH i2c: 01 00 00 1C 06 22 [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: 01 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: 01 07 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: 01 07 00 1C 06 00 00 00 00 00 65 0C 9A [12:38:53]RasterBufferAndPrint [12:38:53]line [12:38:53]line [12:38:53]line [12:38:53]line [12:38:53]line [12:38:53]written 0, free lines is 3178 [12:38:53]MH_Cut [12:38:53]Write to MH i2c: D1 01 00 23 06 01 FB [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: D1 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: D1 01 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: D1 01 00 23 06 00 FA [12:38:53]Write to MH i2c: 01 00 00 24 06 2A [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:55]*** Cut start [12:38:55]*** Partial cut [12:38:55]*** CUTSNS_PIN = 1 [12:38:55]*** CUTSNS_PIN = 0 [12:38:55]*** Brake cut motor [12:38:55]Read from MH i2c: 01 [12:38:55]MH_I2C_Read... [12:38:55]*** Stop cut motor [12:38:55]*** Cut end [12:38:55]Read from MH i2c: 01 07 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: 01 07 00 24 06 00 00 00 00 00 FF 0F 3F [12:38:55]process_action close_receipt done [12:38:55]requested_data is exist [12:38:55]produce_requested_data [12:38:55]requested_item fm.sn is exist - process it [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 11 00 00 [12:38:55]Write to MH i2c: E2 08 00 25 06 80 11 00 00 00 00 00 00 A5 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 17 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 17 00 25 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F3 [12:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:38:55]wFMCommunicate OK [12:38:55]requested_item fd.num is exist - process it [12:38:55]SAM_PROTO_GetFieldsCounters [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 13 00 00 [12:38:55]Write to MH i2c: E2 08 00 26 06 80 13 00 00 00 00 00 00 A8 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 62 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 62 00 26 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A8 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [12:38: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A8 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:55]wFMCommunicate OK [12:38:55]SAM_PROTO_GetFieldsCounters done [12:38:55]requested_item shift.num is exist - process it [12:38:55]requested_item shift.opened is exist - process it [12:38:55]req_shift_opened [12:38:55]FM_GetShiftState [12:38:55]SAM_PROTO_GetShiftState [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 13 01 00 [12:38:55]Write to MH i2c: E2 08 00 27 06 80 13 01 00 00 00 00 00 AA [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 0E 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 0E 00 27 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 EB [12:38:55]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:38:55]wFMCommunicate OK [12:38:55]SAM_PROTO_GetShiftState done [12:38:55]FM_GetShiftState done [12:38:55]req_shift_opened done [12:38:55]requested_item shift.open_date is exist - process it [12:38:55]req_shift_open_date [12:38:55]req_shift_open_date done [12:38:55]produce_requested_data done [12:38:55]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115624,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [12:38:55]process_action_free close_receipt [12:38:55]json_value_free [12:38:55]json_value_free done [12:38:55]process_json_proto returns [12:38:55]Send response to host [12:38:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115624,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [12:38:55]free response buf [12:38:55]execute_script done [12:38:55]execute_script returns [12:38:55]free content buf [12:38:55]Sock 8.Close socket [12:38:55]Sock 8.Thread stoped [12:39:30]ConnectInit Can't connect to host [12:39:30]CommunicateWithHost connect error [12:39:30]CommunicateWithHost err = -1 [12:39:30]OFD Sender: Server communicate error [12:39:30]OFD Sender: Processing packet 115621 [packets to send 484, broken 480] [12:39:30]ProducePacketName [12:39:30]name=ofd_packets/00115621 [12:39:30]OFD Sender: To server: pG, [12:39:30]CommunicateWithHost lk.salyk.kg:30040 [12:39:30]ConnectInit lk.salyk.kg [12:39:30]Connected sock=8 [12:39: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 38 33 30 30 01 00 00 97 54 28 01 47 23 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 FF 60 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A5 C3 01 00 35 04 06 00 88 E1 23 8D 5E 3E 0F AF E2 78 F0 33 61 39 [12:39:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 2D 74 47 00 70 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A5 C3 01 00 F4 03 04 00 C4 06 F1 66 B6 04 01 00 00 0C BD A1 A8 A7 8E AC B0 [12:39:31]CommunicateWithHost err = 0 [12:39:31]CheckOFDResponse [12:39:31]1017 (14) - 77093643461234 [12:39:31]1041 (16) - 0000000000871830 [12:39:31]1040 (4) - 115621 [12:39:31]1012 (4) - 23.09.2024 06:12 [12:39:31]1206 (1) - 0 [12:39:31]OFD Sender: Remove packet 115621 [12:39:31]ProducePacketName [12:39:31]name=ofd_packets/00115621 [12:39:31]NVStorageDeleteData [12:39:31]OFD Sender: Processing packet 115622 [packets to send 483, broken 480] [12:39:31]ProducePacketName [12:39:31]name=ofd_packets/00115622 [12:39:31]OFD Sender: To server: pG, [12:39:31]CommunicateWithHost lk.salyk.kg:30040 [12:39:31]ConnectInit lk.salyk.kg [12:39:31]Connected sock=10 [12:39: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 38 33 30 38 01 00 00 D9 21 30 01 40 E3 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 3E 61 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A6 C3 01 00 35 04 06 00 95 DC 9F 89 1A 3E 33 AD 68 1A B4 FE 6B 88 [12:39:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D8 9A 47 00 DE 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 38 33 30 10 04 04 00 A6 C3 01 00 F4 03 04 00 C5 06 F1 66 B6 04 01 00 00 37 06 B1 D1 47 AB D5 00 [12:39:32]CommunicateWithHost err = 0 [12:39:32]CheckOFDResponse [12:39:32]1017 (14) - 77093643461234 [12:39:32]1041 (16) - 0000000000871830 [12:39:32]1040 (4) - 115622 [12:39:32]1012 (4) - 23.09.2024 06:12 [12:39:32]1206 (1) - 0 [12:39:32]OFD Sender: Remove packet 115622 [12:39:32]ProducePacketName [12:39:32]name=ofd_packets/00115622 [12:39:32]NVStorageDeleteData [12:39:32]OFD Sender: Processing packet 115623 [packets to send 482, broken 480] [12:39:32]ProducePacketName [12:39:32]name=ofd_packets/00115623 [12:39:32]OFD Sender: To server: pG, [12:39:32]CommunicateWithHost lk.salyk.kg:30040 [12:39:32]ConnectInit lk.salyk.kg [12:39:33]Connected sock=8 [12:39: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 38 33 30 30 01 00 00 CA AA 28 01 23 6E 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 57 61 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A7 C3 01 00 35 04 06 00 D3 3A 51 E4 0D F1 1D 37 3F 52 75 DC C8 99 [12:39:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 80 94 47 00 BC 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 38 33 30 10 04 04 00 A7 C3 01 00 F4 03 04 00 C8 06 F1 66 B6 04 01 00 00 A9 BE 31 7D 71 E8 43 3D [12:39:36]CommunicateWithHost err = 0 [12:39:36]CheckOFDResponse [12:39:36]1017 (14) - 77093643461234 [12:39:36]1041 (16) - 0000000000871830 [12:39:36]1040 (4) - 115623 [12:39:36]1012 (4) - 23.09.2024 06:12 [12:39:36]1206 (1) - 0 [12:39:36]OFD Sender: Remove packet 115623 [12:39:36]ProducePacketName [12:39:36]name=ofd_packets/00115623 [12:39:36]NVStorageDeleteData [12:39:37]OFD Sender: Processing packet 115624 [packets to send 481, broken 480] [12:39:37]ProducePacketName [12:39:37]name=ofd_packets/00115624 [12:39:37]OFD Sender: To server: pG, [12:39:37]CommunicateWithHost lk.salyk.kg:30040 [12:39:37]ConnectInit lk.salyk.kg [12:39:37]Connected sock=10 [12:39: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 38 33 30 08 01 00 00 AB FC 00 01 62 7F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 AE 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 5C 61 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A8 C3 01 00 35 04 06 00 43 8C 2C AE 72 15 3D 28 A9 2E A0 9C EB 78 [12:39:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 3F A5 47 00 A4 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 38 33 30 10 04 04 00 A8 C3 01 00 F4 03 04 00 CB 06 F1 66 B6 04 01 00 00 6B B4 66 D9 30 52 72 DE [12:39:37]CommunicateWithHost err = 0 [12:39:37]CheckOFDResponse [12:39:37]1017 (14) - 77093643461234 [12:39:37]1041 (16) - 0000000000871830 [12:39:37]1040 (4) - 115624 [12:39:37]1012 (4) - 23.09.2024 06:12 [12:39:37]1206 (1) - 0 [12:39:37]OFD Sender: Remove packet 115624 [12:39:37]ProducePacketName [12:39:37]name=ofd_packets/00115624 [12:39:37]NVStorageDeleteData [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:55]accept exits with 9 [12:46:55]New connection [12:46:55]New thread 3067358564 created [12:46:55]Thread 3067501924 joined [12:46:55]Waiting for new connection... [12:46:55] Sock 9.Parse request [12:46:55]Sock 9.Check first char [12:46:55]Sock 9.First char is OK [12:46:55]request: POST /json_proto HTTP/1.0 [12:46:55]Method: POST [12:46:55]URL: /json_proto [12:46:55]Method is POST - this is cgi request [12:46:55]url: /json_proto [12:46:55]query_string will be loaded in cgi processing [12:46:55]execute_cgi json_proto POST (null) [12:46:55]execute_cgi path=json_proto method=POST [12:46:55]POST find Content-Length [12:46:55]Host: 172.17.41.136:8080 [12:46:55]Content-Length: 624 [12:46:55]Content-Type: application/json [12:46:55] [12:46:55]POST finish read [12:46:55]Found Content-Length = 624 [12:46:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344010", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:55]execute_script... [12:46:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344010", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:55]POST & json_proto [12:46:55]process_json_proto [12:46:55]json parsed OK: [12:46:55]protocol is kg_v1.0 [12:46:55]action value=close_receipt [12:46:55]process_action close_receipt [12:46:55]cmd_close_receipt [12:46:55]MH_GetDate [12:46:55]Write to MH i2c: F0 00 00 28 06 1D [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: F0 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: F0 09 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: F0 09 00 28 06 00 40 63 F1 66 1B D0 5A 64 C9 [12:46:55]GetLastDocTimeStamp 1727095132 [12:46:55]current date 1727095616 [12:46:55]FM_GetShiftState [12:46:55]SAM_PROTO_GetShiftState [12:46:55]wFMCommunicate request_size=4 [12:46:55]MH_SAM_APDU [12:46:55]CAPDU: 80 13 01 00 [12:46:55]Write to MH i2c: E2 08 00 29 06 80 13 01 00 00 00 00 00 AC [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:55]Read from MH i2c: E2 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 0E 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 0E 00 29 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 ED [12:46:55]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:46:55]wFMCommunicate OK [12:46:55]SAM_PROTO_GetShiftState done [12:46:55]FM_GetShiftState done [12:46:55]opened in 1727052070 [12:46:55]opened+sec_in_day 1727138470 [12:46:55]quantity*price = 15600 [12:46:55]sum+1 = 15601 [12:46:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 156.00 НСП 1% : 1.38 НДС 12% : 16.57 Наличными: 156.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 108 23.09.2024 12:46 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115625 ФПД: 46830836116967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T124657&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115625&fm=46830836116967&tin=02508201610067®Number=0000000000091831&sum=15600 0 [12:46:56]StoreToDocumentArchive [12:46:56]shift 472 fd 115625 [12:46:56]save to /storage/0472/doc_00115625 [12:46:56]save last doc name /storage/0472/doc_00115625 to /storage/kkm_last_doc_name [12:46:56]save OK [12:46:56]Clear old archive folders... [12:46:56]ProcessDocumentItem done err = 0, tmpTLVsize=276 [12:46:56]tlvbuf is 01F8D9D0 [12:46:56]SAM_PROTO_ClearQueue [12:46:56]wFMCommunicate request_size=4 [12:46:56]MH_SAM_APDU [12:46:56]CAPDU: 80 09 00 00 [12:46:56]Write to MH i2c: E2 08 00 36 06 80 09 00 00 00 00 00 00 AE [12:46:56]Write i2c OK [12:46:56]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [12:46:57]RAPDU: 90 00 [12:46:57]wFMCommunicate OK [12:46:57]SAM_PROTO_ClearQueue done [12:46:57]KKMCreateOFDPacket [12:46:57]OFDProtocolAddRootSTLVToBuf [12:46:57]FM_MakeSignedData [12:46:57]FM_MakeSignedData [12:46:57]SAM_PROTO_SignData [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 0D 01 02 [12:46:57]Write to MH i2c: E2 08 00 37 06 80 0D 01 02 00 00 00 00 B6 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [12:46:57]RAPDU: 90 00 [12:46:57]wFMCommunicate OK [12:46:57]wFMCommunicate request_size=255 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 41 63 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 [12:46:57]Write to MH i2c: E2 02 01 38 06 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 41 63 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 00 00 57 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [12:46:57]RAPDU: 90 00 [12:46:57]wFMCommunicate OK [12:46:57]wFMCommunicate request_size=35 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A9 C3 01 00 35 04 06 00 2A 97 A7 59 ED E7 [12:46:57]Write to MH i2c: E2 26 00 39 06 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A9 C3 01 00 35 04 06 00 2A 97 A7 59 ED E7 00 00 A9 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [12:46:57]RAPDU: 90 00 [12:46:57]wFMCommunicate OK [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 0D 03 02 [12:46:57]Write to MH i2c: E2 08 00 3A 06 80 0D 03 02 00 00 00 00 BB [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 0B 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 0B 00 3A 06 00 6B 8E 1A DE B2 B1 B0 4D 90 00 0D [12:46:57]RAPDU: 6B 8E 1A DE B2 B1 B0 4D 90 00 [12:46:57]wFMCommunicate OK [12:46:57]SAM_PROTO_SignData done [12:46:57]FM_MakeSignedData done [12:46:57]CreateOFDProtocolMessage [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 11 00 00 [12:46:57]Write to MH i2c: E2 08 00 3B 06 80 11 00 00 00 00 00 00 BB [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 17 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 17 00 3B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 09 [12:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:46:57]wFMCommunicate OK [12:46:57]CreateOFDProtocolMessage done [12:46:57]OFDSenderStorePacket 115625 [12:46:57]StoreOFDPacket docnum=115625 [12:46:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 4F 40 20 01 C0 C5 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 41 63 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A9 C3 01 00 35 04 06 00 2A 97 A7 59 ED E7 6B 8E 1A DE B2 B1 B0 4D [12:46:57]CheckFolder [12:46:57]dirname=/storage/ofd_packets [12:46:57]CheckFolder done [12:46:57]ProducePacketName [12:46:57]name=ofd_packets/00115625 [12:46:57]NVStorageSaveData ofd_packets/00115625 [12:46:57]File name is /storage/ofd_packets/00115625 [12:46:57]Write 326 bytes [12:46:57]NVStorageSaveData done [12:46:57]OFDSenderStorePacket done [12:46:57]KKMCreateOFDPacket done [12:46:57]NVStorageSaveData kkm_last_timestamp [12:46:57]File name is /storage/kkm_last_timestamp [12:46:57]Write 4 bytes [12:46:57]NVStorageSaveData done [12:46:57]ExternCall_PrintAddStr [12:46:57]wPrintStart [12:46:57]Write to MH i2c: 01 00 00 3C 06 42 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: 01 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: 01 07 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: 01 07 00 3C 06 00 00 00 00 00 FF 0F 57 [12:46:57]RasterBufferAndPrint [12:46:57]line Счет N : (3)344010 [12:46:57]line ИНН: 02508201610067 [12:46:57]line Контрольно-Кассовый Чек [12:46:57]line ПРОДАЖА [12:46:57]line Товар: 48742245 [12:46:57]line Сигареты Parliament Silver Blue [12:46:57]line 1.000 * 156.00 [12:46:57]line = 156.00 [12:46:57]line НДС 12% НСП 1% [12:46:57]line > о реализуемом товаре [12:46:57]line ИТОГО: 156.00 [12:46:57]line НСП 1% : 1.38 [12:46:57]line НДС 12% : 16.57 [12:46:57]line Наличными: 156.00 [12:46:57]line Безнал.: 0.00 [12:46:57]line Место: АЗС № 90 "Партнер Нефть" [12:46:57]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:46:57]line СНО: Общий режим [12:46:57]line Чек 108 23.09.2024 12:46 [12:46:57]line Смена: 472 ФФД: 1.0 [12:46:57]line ЗНМ: 0300000120 [12:46:57]line РНМ: 0000000000091831 [12:46:57]line Версия ККМ: 001 [12:46:57]line ФМ: 0000000000871830 [12:46:57]line ФД: 115625 [12:46:57]line ФПД: 46830836116967 [12:46:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T124657&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115625&fm=46830836116967&tin=02508201610067®Number=0000000000091831&sum=15600 [12:46:57]line 0 [12:46:57]OFD Sender: Processing packet 115625 [packets to send 481, broken 480] [12:46:57]ProducePacketName [12:46:57]name=ofd_packets/00115625 [12:46:57]OFD Sender: To server: pG, [12:46:57]CommunicateWithHost lk.salyk.kg:30040 [12:46:57]ConnectInit lk.salyk.kg [12:46:57]written 0, free lines is 4095 [12:46:58]Connected sock=10 [12:46:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 4F 40 20 01 C0 C5 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 41 63 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 A9 C3 01 00 35 04 06 00 2A 97 A7 59 ED E7 6B 8E 1A DE B2 B1 B0 4D [12:46:58]Write to MH i2c: 01 00 00 64 06 6A [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: 01 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: 01 07 00 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: 01 07 00 64 06 00 00 00 00 00 65 0C E2 [12:46:58]RasterBufferAndPrint [12:46:58]line [12:46:58]line [12:46:58]line [12:46:58]line [12:46:58]line [12:46:58]written 0, free lines is 3177 [12:46:58]MH_Cut [12:46:58]Write to MH i2c: D1 01 00 6B 06 01 43 [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: D1 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: D1 01 00 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: D1 01 00 6B 06 00 42 [12:46:58]Write to MH i2c: 01 00 00 6C 06 72 [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 44 7D 47 00 F1 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 38 33 30 10 04 04 00 A9 C3 01 00 F4 03 04 00 83 08 F1 66 B6 04 01 00 00 E5 40 10 71 9D 57 6B 4D [12:46:58]CommunicateWithHost err = 0 [12:46:58]CheckOFDResponse [12:46:58]1017 (14) - 77093643461234 [12:46:58]1041 (16) - 0000000000871830 [12:46:58]1040 (4) - 115625 [12:46:58]1012 (4) - 23.09.2024 06:19 [12:46:58]1206 (1) - 0 [12:46:58]OFD Sender: Remove packet 115625 [12:46:58]ProducePacketName [12:46:58]name=ofd_packets/00115625 [12:46:58]NVStorageDeleteData [12:46:58]OFD Sender: No OFD packet to send [12:46:59]*** Cut start [12:46:59]*** Partial cut [12:46:59]*** CUTSNS_PIN = 1 [12:46:59]*** CUTSNS_PIN = 0 [12:46:59]*** Brake cut motor [12:47:00]Read from MH i2c: 01 [12:47:00]MH_I2C_Read... [12:47:00]*** Stop cut motor [12:47:00]*** Cut end [12:47:00]Read from MH i2c: 01 07 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: 01 07 00 6C 06 00 00 00 00 00 FF 0F 87 [12:47:00]process_action close_receipt done [12:47:00]requested_data is exist [12:47:00]produce_requested_data [12:47:00]requested_item fm.sn is exist - process it [12:47:00]wFMCommunicate request_size=4 [12:47:00]MH_SAM_APDU [12:47:00]CAPDU: 80 11 00 00 [12:47:00]Write to MH i2c: E2 08 00 6D 06 80 11 00 00 00 00 00 00 ED [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:00]Read from MH i2c: E2 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 17 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 17 00 6D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3B [12:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:47:00]wFMCommunicate OK [12:47:00]requested_item fd.num is exist - process it [12:47:00]SAM_PROTO_GetFieldsCounters [12:47:00]wFMCommunicate request_size=4 [12:47:00]MH_SAM_APDU [12:47:00]CAPDU: 80 13 00 00 [12:47:00]Write to MH i2c: E2 08 00 6E 06 80 13 00 00 00 00 00 00 F0 [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:00]Read from MH i2c: E2 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 62 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 62 00 6E 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A9 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [12:47:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 A9 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:00]wFMCommunicate OK [12:47:00]SAM_PROTO_GetFieldsCounters done [12:47:00]requested_item shift.num is exist - process it [12:47:00]requested_item shift.opened is exist - process it [12:47:00]req_shift_opened [12:47:00]FM_GetShiftState [12:47:00]SAM_PROTO_GetShiftState [12:47:00]wFMCommunicate request_size=4 [12:47:00]MH_SAM_APDU [12:47:00]CAPDU: 80 13 01 00 [12:47:00]Write to MH i2c: E2 08 00 6F 06 80 13 01 00 00 00 00 00 F2 [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:00]Read from MH i2c: E2 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 0E 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 0E 00 6F 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 33 [12:47:00]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:47:00]wFMCommunicate OK [12:47:00]SAM_PROTO_GetShiftState done [12:47:00]FM_GetShiftState done [12:47:00]req_shift_opened done [12:47:00]requested_item shift.open_date is exist - process it [12:47:00]req_shift_open_date [12:47:00]req_shift_open_date done [12:47:00]produce_requested_data done [12:47:00]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115625,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [12:47:00]process_action_free close_receipt [12:47:00]json_value_free [12:47:00]json_value_free done [12:47:00]process_json_proto returns [12:47:00]Send response to host [12:47:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115625,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [12:47:00]free response buf [12:47:00]execute_script done [12:47:00]execute_script returns [12:47:00]free content buf [12:47:00]Sock 9.Close socket [12:47:00]Sock 9.Thread stoped [12:47:03]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48: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:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [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:09]accept exits with 8 [12:51:09]New connection [12:51:09]New thread 3067501924 created [12:51:09]Thread 3067358564 joined [12:51:09]Waiting for new connection... [12:51:09] Sock 8.Parse request [12:51:09]Sock 8.Check first char [12:51:09]Sock 8.First char is OK [12:51:09]request: POST /json_proto HTTP/1.0 [12:51:09]Method: POST [12:51:09]URL: /json_proto [12:51:09]Method is POST - this is cgi request [12:51:09]url: /json_proto [12:51:09]query_string will be loaded in cgi processing [12:51:09]execute_cgi json_proto POST (null) [12:51:09]execute_cgi path=json_proto method=POST [12:51:09]POST find Content-Length [12:51:09]Host: 172.17.41.136:8080 [12:51:09]Content-Length: 1514 [12:51:09]Content-Type: application/json [12:51:09] [12:51:09]POST finish read [12:51:09]Found Content-Length = 1514 [12:51:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344011", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000134912", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:09]execute_script... [12:51:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344011", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000134912", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:09]POST & json_proto [12:51:09]process_json_proto [12:51:09]json parsed OK: [12:51:09]protocol is kg_v1.0 [12:51:09]action value=close_receipt [12:51:09]process_action close_receipt [12:51:09]cmd_close_receipt [12:51:09]MH_GetDate [12:51:09]Write to MH i2c: F0 00 00 70 06 65 [12:51:09]Write i2c OK [12:51:09]MH_I2C_Read... [12:51:09]Read from MH i2c: F0 [12:51:09]MH_I2C_Read... [12:51:09]Read from MH i2c: F0 09 00 [12:51:09]MH_I2C_Read... [12:51:09]Read from MH i2c: F0 09 00 70 06 00 3E 64 F1 66 1B D0 5A 64 10 [12:51:09]GetLastDocTimeStamp 1727095617 [12:51:09]current date 1727095870 [12:51:09]FM_GetShiftState [12:51:09]SAM_PROTO_GetShiftState [12:51:09]wFMCommunicate request_size=4 [12:51:09]MH_SAM_APDU [12:51:09]CAPDU: 80 13 01 00 [12:51:09]Write to MH i2c: E2 08 00 71 06 80 13 01 00 00 00 00 00 F4 [12:51:09]OFD Sender: No OFD packet to send [12:51:09]Write i2c OK [12:51:09]MH_I2C_Read... [12:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:09]Read from MH i2c: E2 [12:51:09]MH_I2C_Read... [12:51:09]Read from MH i2c: E2 0E 00 [12:51:09]MH_I2C_Read... [12:51:09]Read from MH i2c: E2 0E 00 71 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 35 [12:51:09]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:51:09]wFMCommunicate OK [12:51:09]SAM_PROTO_GetShiftState done [12:51:09]FM_GetShiftState done [12:51:09]opened in 1727052070 [12:51:09]opened+sec_in_day 1727138470 [12:51:09]quantity*price = 7500 [12:51:09]sum+1 = 7501 [12:51:09]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000134912 Холодный чай Fuse манго,ромашка 0,33 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 264.00 НСП 1% : 2.33 НДС 12% : 28.03 Наличными: 264.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 109 23.09.2024 12:51 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115626 ФПД: 109579698748139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T125111&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115626&fm=109579698748139&tin=02508201610067®Number=0000000000091831&sum=26400 0 [12:51:10]StoreToDocumentArchive [12:51:10]shift 472 fd 115626 [12:51:10]save to /storage/0472/doc_00115626 [12:51:10]save last doc name /storage/0472/doc_00115626 to /storage/kkm_last_doc_name [12:51:10]save OK [12:51:10]Clear old archive folders... [12:51:10]ProcessDocumentItem done err = 0, tmpTLVsize=636 [12:51:10]tlvbuf is 01F5BE60 [12:51:10]SAM_PROTO_ClearQueue [12:51:10]wFMCommunicate request_size=4 [12:51:10]MH_SAM_APDU [12:51:10]CAPDU: 80 09 00 00 [12:51:10]Write to MH i2c: E2 08 00 7E 06 80 09 00 00 00 00 00 00 F6 [12:51:10]Write i2c OK [12:51:10]MH_I2C_Read... [12:51:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:11]Read from MH i2c: E2 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: E2 03 00 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: E2 03 00 7E 06 00 90 00 F8 [12:51:11]RAPDU: 90 00 [12:51:11]wFMCommunicate OK [12:51:11]SAM_PROTO_ClearQueue done [12:51:11]KKMCreateOFDPacket [12:51:11]OFDProtocolAddRootSTLVToBuf [12:51:11]FM_MakeSignedData [12:51:11]FM_MakeSignedData [12:51:11]SAM_PROTO_SignData [12:51:11]wFMCommunicate request_size=4 [12:51:11]MH_SAM_APDU [12:51:11]CAPDU: 80 0D 01 02 [12:51:11]Write to MH i2c: E2 08 00 7F 06 80 0D 01 02 00 00 00 00 FE [12:51:11]Write i2c OK [12:51:11]MH_I2C_Read... [12:51:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:11]Read from MH i2c: E2 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: E2 03 00 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: E2 03 00 7F 06 00 90 00 F9 [12:51:11]RAPDU: 90 00 [12:51:11]wFMCommunicate OK [12:51:11]wFMCommunicate request_size=255 [12:51:11]MH_SAM_APDU [12:51:11]CAPDU: 80 0D 02 02 FA 03 00 7C 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 [12:51:11]Write to MH i2c: E2 02 01 80 06 80 0D 02 02 FA 00 03 00 7C 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 00 00 6E [12:51:11]Write i2c OK [12:51:11]MH_I2C_Read... [12:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:11]Read from MH i2c: E2 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: E2 03 00 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: E2 03 00 80 06 00 90 00 FA [12:51:11]RAPDU: 90 00 [12:51:11]wFMCommunicate OK [12:51:11]wFMCommunicate request_size=255 [12:51:11]MH_SAM_APDU [12:51:11]CAPDU: 80 0D 02 02 FA 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [12:51:11]Write to MH i2c: E2 02 01 81 06 80 0D 02 02 FA 00 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 F8 [12:51:11]Write i2c OK [12:51:11]MH_I2C_Read... [12:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:11]Read from MH i2c: E2 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: E2 03 00 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: E2 03 00 81 06 00 90 00 FB [12:51:11]RAPDU: 90 00 [12:51:11]wFMCommunicate OK [12:51:11]wFMCommunicate request_size=145 [12:51:11]MH_SAM_APDU [12:51:11]CAPDU: 80 0D 02 02 8C 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 3F 64 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AA C3 01 00 35 04 06 00 63 A9 83 04 BA EB [12:51:11]Write to MH i2c: E2 94 00 82 06 80 0D 02 02 8C 00 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 3F 64 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AA C3 01 00 35 04 06 00 63 A9 83 04 BA EB 00 00 98 [12:51:11]Write i2c OK [12:51:11]MH_I2C_Read... [12:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:11]Read from MH i2c: E2 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: E2 03 00 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [12:51:11]RAPDU: 90 00 [12:51:11]wFMCommunicate OK [12:51:11]wFMCommunicate request_size=4 [12:51:11]MH_SAM_APDU [12:51:11]CAPDU: 80 0D 03 02 [12:51:11]Write to MH i2c: E2 08 00 83 06 80 0D 03 02 00 00 00 00 04 [12:51:11]Write i2c OK [12:51:11]MH_I2C_Read... [12:51:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:11]Read from MH i2c: E2 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: E2 0B 00 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: E2 0B 00 83 06 00 E7 49 6B E7 1F B6 EC 1D 90 00 65 [12:51:11]RAPDU: E7 49 6B E7 1F B6 EC 1D 90 00 [12:51:11]wFMCommunicate OK [12:51:11]SAM_PROTO_SignData done [12:51:11]FM_MakeSignedData done [12:51:11]CreateOFDProtocolMessage [12:51:11]wFMCommunicate request_size=4 [12:51:11]MH_SAM_APDU [12:51:11]CAPDU: 80 11 00 00 [12:51:11]Write to MH i2c: E2 08 00 84 06 80 11 00 00 00 00 00 00 04 [12:51:11]Write i2c OK [12:51:11]MH_I2C_Read... [12:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:11]Read from MH i2c: E2 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: E2 17 00 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: E2 17 00 84 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 52 [12:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:51:11]wFMCommunicate OK [12:51:11]CreateOFDProtocolMessage done [12:51:11]OFDSenderStorePacket 115626 [12:51:11]StoreOFDPacket docnum=115626 [12:51:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 02 00 00 41 EB 88 02 BB 03 5A 03 01 00 03 00 7C 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 3F 64 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AA C3 01 00 35 04 06 00 63 A9 83 04 BA EB E7 49 6B E7 1F B6 EC 1D [12:51:11]CheckFolder [12:51:11]dirname=/storage/ofd_packets [12:51:11]CheckFolder done [12:51:11]ProducePacketName [12:51:11]name=ofd_packets/00115626 [12:51:11]NVStorageSaveData ofd_packets/00115626 [12:51:11]File name is /storage/ofd_packets/00115626 [12:51:11]Write 686 bytes [12:51:11]NVStorageSaveData done [12:51:11]OFDSenderStorePacket done [12:51:11]KKMCreateOFDPacket done [12:51:11]NVStorageSaveData kkm_last_timestamp [12:51:11]File name is /storage/kkm_last_timestamp [12:51:11]Write 4 bytes [12:51:11]NVStorageSaveData done [12:51:11]ExternCall_PrintAddStr [12:51:11]wPrintStart [12:51:11]Write to MH i2c: 01 00 00 85 06 8B [12:51:11]Write i2c OK [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: 01 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: 01 07 00 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: 01 07 00 85 06 00 00 00 00 00 FF 0F A0 [12:51:11]RasterBufferAndPrint [12:51:11]line Счет N : (3)344011 [12:51:11]line ИНН: 02508201610067 [12:51:11]line Контрольно-Кассовый Чек [12:51:11]line ПРОДАЖА [12:51:11]line Товар: 5449000189394 [12:51:11]line Холодный чай Fuse ягода 0,5л [12:51:11]line 1.000 * 75.00 [12:51:11]line = 75.00 [12:51:11]line НДС 12% НСП 1% [12:51:11]line > о реализуемом товаре [12:51:11]line Товар: 5449000134912 [12:51:11]line Холодный чай Fuse манго,ромашка 0,33 ж/б [12:51:12]line 1.000 * 90.00 [12:51:12]line = 90.00 [12:51:12]line НДС 12% НСП 1% [12:51:12]line > о реализуемом товаре [12:51:12]line Товар: 4700000160211 [12:51:12]line Вода Легенда 0,5л [12:51:12]line 1.000 * 40.00 [12:51:12]line = 40.00 [12:51:12]line НДС 12% НСП 1% [12:51:12]line > о реализуемом товаре [12:51:12]line Товар: 4607065001445 [12:51:12]line Шок батончик Snickers 50,5г [12:51:12]line 1.000 * 59.00 [12:51:12]line = 59.00 [12:51:12]line НДС 12% НСП 1% [12:51:12]line > о реализуемом товаре [12:51:12]line ИТОГО: 264.00 [12:51:12]line НСП 1% : 2.33 [12:51:12]line НДС 12% : 28.03 [12:51:12]line Наличными: 264.00 [12:51:12]line Безнал.: 0.00 [12:51:12]line Место: АЗС № 90 "Партнер Нефть" [12:51:12]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:51:12]line СНО: Общий режим [12:51:12]line Чек 109 23.09.2024 12:51 [12:51:12]line Смена: 472 ФФД: 1.0 [12:51:12]line ЗНМ: 0300000120 [12:51:12]line РНМ: 0000000000091831 [12:51:12]line Версия ККМ: 001 [12:51:12]line ФМ: 0000000000871830 [12:51:12]line ФД: 115626 [12:51:12]line ФПД: 109579698748139 [12:51:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T125111&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115626&fm=109579698748139&tin=02508201610067®Number=0000000000091831&sum=26400 [12:51:12]OFD Sender: Processing packet 115626 [packets to send 481, broken 480] [12:51:12]ProducePacketName [12:51:12]name=ofd_packets/00115626 [12:51:12]OFD Sender: To server: pG, [12:51:12]CommunicateWithHost lk.salyk.kg:30040 [12:51:12]ConnectInit lk.salyk.kg [12:51:12]line 0 [12:51:12]written 0, free lines is 4095 [12:51:12]Connected sock=10 [12:51: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 38 33 30 90 02 00 00 41 EB 88 02 BB 03 5A 03 01 00 03 00 7C 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 3F 64 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AA C3 01 00 35 04 06 00 63 A9 83 04 BA EB E7 49 6B E7 1F B6 EC 1D [12:51:12]Write to MH i2c: 01 00 00 BF 06 C5 [12:51:12]Write i2c OK [12:51:12]MH_I2C_Read... [12:51:12]Read from MH i2c: 01 [12:51:12]MH_I2C_Read... [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 BF 06 00 00 00 00 00 E5 0A BB [12:51:12]RasterBufferAndPrint [12:51:12]line [12:51:12]line [12:51:12]line [12:51:12]line [12:51:12]line [12:51:12]written 0, free lines is 2793 [12:51:12]MH_Cut [12:51:12]Write to MH i2c: D1 01 00 C6 06 01 9E [12:51:12]Write i2c OK [12:51:12]MH_I2C_Read... [12:51:12]Read from MH i2c: D1 [12:51:12]MH_I2C_Read... [12:51:12]Read from MH i2c: D1 01 00 [12:51:12]MH_I2C_Read... [12:51:12]Read from MH i2c: D1 01 00 C6 06 00 9D [12:51:12]Write to MH i2c: 01 00 00 C7 06 CD [12:51:12]Write i2c OK [12:51:12]MH_I2C_Read... [12:51:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 7A FE 47 00 0E 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AA C3 01 00 F4 03 04 00 82 09 F1 66 B6 04 01 00 00 81 01 37 37 57 B7 27 0F [12:51:13]CommunicateWithHost err = 0 [12:51:13]CheckOFDResponse [12:51:13]1017 (14) - 77093643461234 [12:51:13]1041 (16) - 0000000000871830 [12:51:13]1040 (4) - 115626 [12:51:13]1012 (4) - 23.09.2024 06:24 [12:51:13]1206 (1) - 0 [12:51:13]OFD Sender: Remove packet 115626 [12:51:13]ProducePacketName [12:51:13]name=ofd_packets/00115626 [12:51:13]NVStorageDeleteData [12:51:13]OFD Sender: No OFD packet to send [12:51:14]*** Cut start [12:51:14]*** Partial cut [12:51:14]*** CUTSNS_PIN = 1 [12:51:14]*** CUTSNS_PIN = 0 [12:51:14]*** Brake cut motor [12:51:15]Read from MH i2c: 01 [12:51:15]MH_I2C_Read... [12:51:15]*** Stop cut motor [12:51:15]*** Cut end [12:51:15]Read from MH i2c: 01 07 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: 01 07 00 C7 06 00 00 00 00 00 FF 0F E2 [12:51:15]process_action close_receipt done [12:51:15]requested_data is exist [12:51:15]produce_requested_data [12:51:15]requested_item fm.sn is exist - process it [12:51:15]wFMCommunicate request_size=4 [12:51:15]MH_SAM_APDU [12:51:15]CAPDU: 80 11 00 00 [12:51:15]Write to MH i2c: E2 08 00 C8 06 80 11 00 00 00 00 00 00 48 [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:15]Read from MH i2c: E2 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 17 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 17 00 C8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 96 [12:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:51:15]wFMCommunicate OK [12:51:15]requested_item fd.num is exist - process it [12:51:15]SAM_PROTO_GetFieldsCounters [12:51:15]wFMCommunicate request_size=4 [12:51:15]MH_SAM_APDU [12:51:15]CAPDU: 80 13 00 00 [12:51:15]Write to MH i2c: E2 08 00 C9 06 80 13 00 00 00 00 00 00 4B [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:15]Read from MH i2c: E2 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 62 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 62 00 C9 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AA C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [12:51: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AA C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:15]wFMCommunicate OK [12:51:15]SAM_PROTO_GetFieldsCounters done [12:51:15]requested_item shift.num is exist - process it [12:51:15]requested_item shift.opened is exist - process it [12:51:15]req_shift_opened [12:51:15]FM_GetShiftState [12:51:15]SAM_PROTO_GetShiftState [12:51:15]wFMCommunicate request_size=4 [12:51:15]MH_SAM_APDU [12:51:15]CAPDU: 80 13 01 00 [12:51:15]Write to MH i2c: E2 08 00 CA 06 80 13 01 00 00 00 00 00 4D [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:15]Read from MH i2c: E2 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 0E 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 0E 00 CA 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 8E [12:51:15]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [12:51:15]wFMCommunicate OK [12:51:15]SAM_PROTO_GetShiftState done [12:51:15]FM_GetShiftState done [12:51:15]req_shift_opened done [12:51:15]requested_item shift.open_date is exist - process it [12:51:15]req_shift_open_date [12:51:15]req_shift_open_date done [12:51:15]produce_requested_data done [12:51:15]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115626,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [12:51:15]process_action_free close_receipt [12:51:15]json_value_free [12:51:15]json_value_free done [12:51:15]process_json_proto returns [12:51:15]Send response to host [12:51:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115626,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [12:51:15]free response buf [12:51:15]execute_script done [12:51:15]execute_script returns [12:51:15]free content buf [12:51:15]Sock 8.Close socket [12:51:15]Sock 8.Thread stoped [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:16]accept exits with 9 [13:01:16]New connection [13:01:16]New thread 3067358564 created [13:01:16]Thread 3067501924 joined [13:01:16]Waiting for new connection... [13:01:16] Sock 9.Parse request [13:01:16]Sock 9.Check first char [13:01:16]Sock 9.First char is OK [13:01:16]request: POST /json_proto HTTP/1.0 [13:01:16]Method: POST [13:01:16]URL: /json_proto [13:01:16]Method is POST - this is cgi request [13:01:16]url: /json_proto [13:01:16]query_string will be loaded in cgi processing [13:01:16]execute_cgi json_proto POST (null) [13:01:16]execute_cgi path=json_proto method=POST [13:01:16]POST find Content-Length [13:01:16]Host: 172.17.41.136:8080 [13:01:16]Content-Length: 802 [13:01:16]Content-Type: application/json [13:01:16] [13:01:16]POST finish read [13:01:16]Found Content-Length = 802 [13:01:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:16]execute_script... [13:01: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)24617662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:16]POST & json_proto [13:01:16]process_json_proto [13:01:16]json parsed OK: [13:01:16]protocol is kg_v1.0 [13:01:16]action value=close_receipt [13:01:16]process_action close_receipt [13:01:16]cmd_close_receipt [13:01:16]MH_GetDate [13:01:16]Write to MH i2c: F0 00 00 CB 06 C0 [13:01:16]Write i2c OK [13:01:16]MH_I2C_Read... [13:01:16]Read from MH i2c: F0 [13:01:16]MH_I2C_Read... [13:01:16]Read from MH i2c: F0 09 00 [13:01:16]MH_I2C_Read... [13:01:16]Read from MH i2c: F0 09 00 CB 06 00 9D 66 F1 66 1B D0 5A 64 CC [13:01:16]GetLastDocTimeStamp 1727095871 [13:01:16]current date 1727096477 [13:01:16]FM_GetShiftState [13:01:16]SAM_PROTO_GetShiftState [13:01:16]wFMCommunicate request_size=4 [13:01:16]MH_SAM_APDU [13:01:16]CAPDU: 80 13 01 00 [13:01:16]Write to MH i2c: E2 08 00 CC 06 80 13 01 00 00 00 00 00 4F [13:01:16]Write i2c OK [13:01:16]MH_I2C_Read... [13:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:16]Read from MH i2c: E2 [13:01:16]MH_I2C_Read... [13:01:16]Read from MH i2c: E2 0E 00 [13:01:16]MH_I2C_Read... [13:01:16]Read from MH i2c: E2 0E 00 CC 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 90 [13:01:16]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:01:16]wFMCommunicate OK [13:01:16]SAM_PROTO_GetShiftState done [13:01:16]FM_GetShiftState done [13:01:16]opened in 1727052070 [13:01:16]opened+sec_in_day 1727138470 [13:01:16]quantity*price = 200025 [13:01:16]sum+1 = 200026 [13:01:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 110 23.09.2024 13:01 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115627 ФПД: 190275561438350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T130117&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115627&fm=190275561438350&tin=02508201610067®Number=0000000000091831&sum=200025 [13:01:17]StoreToDocumentArchive [13:01:17]shift 472 fd 115627 [13:01:17]save to /storage/0472/doc_00115627 [13:01:17]save last doc name /storage/0472/doc_00115627 to /storage/kkm_last_doc_name [13:01:17]save OK [13:01:17]Clear old archive folders... [13:01:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:01:17]tlvbuf is 01F566A0 [13:01:17]SAM_PROTO_ClearQueue [13:01:17]wFMCommunicate request_size=4 [13:01:17]MH_SAM_APDU [13:01:17]CAPDU: 80 09 00 00 [13:01:17]Write to MH i2c: E2 08 00 D9 06 80 09 00 00 00 00 00 00 51 [13:01:17]Write i2c OK [13:01:17]MH_I2C_Read... [13:01:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:17]Read from MH i2c: E2 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: E2 03 00 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: E2 03 00 D9 06 00 90 00 53 [13:01:17]RAPDU: 90 00 [13:01:17]wFMCommunicate OK [13:01:17]SAM_PROTO_ClearQueue done [13:01:17]KKMCreateOFDPacket [13:01:17]OFDProtocolAddRootSTLVToBuf [13:01:17]FM_MakeSignedData [13:01:17]FM_MakeSignedData [13:01:17]SAM_PROTO_SignData [13:01:17]wFMCommunicate request_size=4 [13:01:17]MH_SAM_APDU [13:01:17]CAPDU: 80 0D 01 02 [13:01:17]Write to MH i2c: E2 08 00 DA 06 80 0D 01 02 00 00 00 00 59 [13:01:17]Write i2c OK [13:01:17]MH_I2C_Read... [13:01:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:17]Read from MH i2c: E2 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: E2 03 00 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: E2 03 00 DA 06 00 90 00 54 [13:01:17]RAPDU: 90 00 [13:01:17]wFMCommunicate OK [13:01:17]wFMCommunicate request_size=255 [13:01:17]MH_SAM_APDU [13:01:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6E 00 00 00 F4 03 04 00 9D 66 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AB C3 01 00 35 04 06 00 AD 0D FB 3F [13:01:17]Write to MH i2c: E2 02 01 DB 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6E 00 00 00 F4 03 04 00 9D 66 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AB C3 01 00 35 04 06 00 AD 0D FB 3F 00 00 FA [13:01:17]Write i2c OK [13:01:17]MH_I2C_Read... [13:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:17]Read from MH i2c: E2 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: E2 03 00 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: E2 03 00 DB 06 00 90 00 55 [13:01:17]RAPDU: 90 00 [13:01:17]wFMCommunicate OK [13:01:17]wFMCommunicate request_size=7 [13:01:17]MH_SAM_APDU [13:01:17]CAPDU: 80 0D 02 02 02 BC 8E [13:01:17]Write to MH i2c: E2 0A 00 DC 06 80 0D 02 02 02 00 BC 8E 00 00 AA [13:01:17]Write i2c OK [13:01:17]MH_I2C_Read... [13:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:17]Read from MH i2c: E2 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: E2 03 00 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: E2 03 00 DC 06 00 90 00 56 [13:01:17]RAPDU: 90 00 [13:01:17]wFMCommunicate OK [13:01:17]wFMCommunicate request_size=4 [13:01:17]MH_SAM_APDU [13:01:17]CAPDU: 80 0D 03 02 [13:01:17]Write to MH i2c: E2 08 00 DD 06 80 0D 03 02 00 00 00 00 5E [13:01:17]Write i2c OK [13:01:17]MH_I2C_Read... [13:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:17]Read from MH i2c: E2 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: E2 0B 00 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: E2 0B 00 DD 06 00 BE 13 F6 B1 36 AC DA CB 90 00 5E [13:01:17]RAPDU: BE 13 F6 B1 36 AC DA CB 90 00 [13:01:17]wFMCommunicate OK [13:01:17]SAM_PROTO_SignData done [13:01:17]FM_MakeSignedData done [13:01:17]CreateOFDProtocolMessage [13:01:17]wFMCommunicate request_size=4 [13:01:17]MH_SAM_APDU [13:01:17]CAPDU: 80 11 00 00 [13:01:17]Write to MH i2c: E2 08 00 DE 06 80 11 00 00 00 00 00 00 5E [13:01:17]Write i2c OK [13:01:17]MH_I2C_Read... [13:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:18]Read from MH i2c: E2 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: E2 17 00 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: E2 17 00 DE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AC [13:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:01:18]wFMCommunicate OK [13:01:18]CreateOFDProtocolMessage done [13:01:18]OFDSenderStorePacket 115627 [13:01:18]StoreOFDPacket docnum=115627 [13:01:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 21 06 04 01 36 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6E 00 00 00 F4 03 04 00 9D 66 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AB C3 01 00 35 04 06 00 AD 0D FB 3F BC 8E BE 13 F6 B1 36 AC DA CB [13:01:18]CheckFolder [13:01:18]dirname=/storage/ofd_packets [13:01:18]CheckFolder done [13:01:18]ProducePacketName [13:01:18]name=ofd_packets/00115627 [13:01:18]NVStorageSaveData ofd_packets/00115627 [13:01:18]File name is /storage/ofd_packets/00115627 [13:01:18]Write 298 bytes [13:01:18]NVStorageSaveData done [13:01:18]OFDSenderStorePacket done [13:01:18]KKMCreateOFDPacket done [13:01:18]NVStorageSaveData kkm_last_timestamp [13:01:18]File name is /storage/kkm_last_timestamp [13:01:18]Write 4 bytes [13:01:18]NVStorageSaveData done [13:01:18]ExternCall_PrintAddStr [13:01:18]wPrintStart [13:01:18]Write to MH i2c: 01 00 00 DF 06 E5 [13:01:18]Write i2c OK [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: 01 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: 01 07 00 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: 01 07 00 DF 06 00 00 00 00 00 FF 0F FA [13:01:18]RasterBufferAndPrint [13:01:18]line Счет N : (1)24617662 [13:01:18]line ИНН: 02508201610067 [13:01:18]line Контрольно-Кассовый Чек [13:01:18]line ПРОДАЖА [13:01:18]line ТРК (МРК, ГНК) : 22 [13:01:18]line Товар: 2710194210 [13:01:18]line ДТ-К-5 [13:01:18]line 26.250 * 76.20 [13:01:18]line = 2000.25 [13:01:18]line НДС 12% НСП 1% [13:01:18]line > о реализуемом товаре [13:01:18]line ИТОГО: 2000.25 [13:01:18]line НСП 1% : 17.70 [13:01:18]line НДС 12% : 212.42 [13:01:18]line Наличными: 0.00 [13:01:18]line Безнал.: 2000.25 [13:01:18]line Место: АЗС № 90 "Партнер Нефть" [13:01:18]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:01:18]line СНО: Общий режим [13:01:18]line Чек 110 23.09.2024 13:01 [13:01:18]line Смена: 472 ФФД: 1.0 [13:01:18]line ЗНМ: 0300000120 [13:01:18]line РНМ: 0000000000091831 [13:01:18]line Версия ККМ: 001 [13:01:18]line Платежная система: O! деньги [13:01:18]line ФМ: 0000000000871830 [13:01:18]line ФД: 115627 [13:01:18]line ФПД: 190275561438350 [13:01:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T130117&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115627&fm=190275561438350&tin=02508201610067®Number=0000000000091831&sum=200025 [13:01:18]written 0, free lines is 4095 [13:01:18]OFD Sender: Processing packet 115627 [packets to send 481, broken 480] [13:01:18]ProducePacketName [13:01:18]name=ofd_packets/00115627 [13:01:18]OFD Sender: To server: pG, [13:01:18]CommunicateWithHost lk.salyk.kg:30040 [13:01:18]ConnectInit lk.salyk.kg [13:01:18]Connected sock=10 [13:01: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 38 33 30 0C 01 00 00 21 06 04 01 36 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6E 00 00 00 F4 03 04 00 9D 66 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AB C3 01 00 35 04 06 00 AD 0D FB 3F BC 8E BE 13 F6 B1 36 AC DA CB [13:01:18]Write to MH i2c: 01 00 00 08 07 0F [13:01:18]Write i2c OK [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: 01 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: 01 07 00 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: 01 07 00 08 07 00 00 00 00 00 6D 0C 8F [13:01:18]RasterBufferAndPrint [13:01:18]line [13:01:18]line [13:01:18]line [13:01:18]line [13:01:18]line [13:01:18]written 0, free lines is 3185 [13:01:18]MH_Cut [13:01:18]Write to MH i2c: D1 01 00 0F 07 01 E8 [13:01:18]Write i2c OK [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: D1 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: D1 01 00 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: D1 01 00 0F 07 00 E7 [13:01:18]Write to MH i2c: 01 00 00 10 07 17 [13:01:18]Write i2c OK [13:01:18]MH_I2C_Read... [13:01:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0C F3 47 00 02 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AB C3 01 00 F4 03 04 00 E0 0B F1 66 B6 04 01 00 00 1D 71 08 EF BC 56 8A A3 [13:01:18]CommunicateWithHost err = 0 [13:01:18]CheckOFDResponse [13:01:18]1017 (14) - 77093643461234 [13:01:18]1041 (16) - 0000000000871830 [13:01:18]1040 (4) - 115627 [13:01:18]1012 (4) - 23.09.2024 06:34 [13:01:18]1206 (1) - 0 [13:01:18]OFD Sender: Remove packet 115627 [13:01:18]ProducePacketName [13:01:18]name=ofd_packets/00115627 [13:01:18]NVStorageDeleteData [13:01:19]OFD Sender: No OFD packet to send [13:01:19]*** Cut start [13:01:19]*** Partial cut [13:01:19]*** CUTSNS_PIN = 1 [13:01:19]*** CUTSNS_PIN = 0 [13:01:20]*** Brake cut motor [13:01:20]Read from MH i2c: 01 [13:01:20]MH_I2C_Read... [13:01:20]*** Stop cut motor [13:01:20]*** Cut end [13:01:20]Read from MH i2c: 01 07 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: 01 07 00 10 07 00 00 00 00 00 FF 0F 2C [13:01:20]process_action close_receipt done [13:01:20]requested_data is exist [13:01:20]produce_requested_data [13:01:20]requested_item fm.sn is exist - process it [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 11 00 00 [13:01:20]Write to MH i2c: E2 08 00 11 07 80 11 00 00 00 00 00 00 92 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 17 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 17 00 11 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E0 [13:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:01:20]wFMCommunicate OK [13:01:20]requested_item fd.num is exist - process it [13:01:20]SAM_PROTO_GetFieldsCounters [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 13 00 00 [13:01:20]Write to MH i2c: E2 08 00 12 07 80 13 00 00 00 00 00 00 95 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 62 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 62 00 12 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AB C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [13:01: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AB C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:20]wFMCommunicate OK [13:01:20]SAM_PROTO_GetFieldsCounters done [13:01:20]requested_item shift.num is exist - process it [13:01:20]requested_item shift.opened is exist - process it [13:01:20]req_shift_opened [13:01:20]FM_GetShiftState [13:01:20]SAM_PROTO_GetShiftState [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 13 01 00 [13:01:20]Write to MH i2c: E2 08 00 13 07 80 13 01 00 00 00 00 00 97 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 0E 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 0E 00 13 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D8 [13:01:20]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:01:20]wFMCommunicate OK [13:01:20]SAM_PROTO_GetShiftState done [13:01:20]FM_GetShiftState done [13:01:20]req_shift_opened done [13:01:20]requested_item shift.open_date is exist - process it [13:01:20]req_shift_open_date [13:01:20]req_shift_open_date done [13:01:20]produce_requested_data done [13:01:20]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115627,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:01:20]process_action_free close_receipt [13:01:20]json_value_free [13:01:20]json_value_free done [13:01:20]process_json_proto returns [13:01:20]Send response to host [13:01:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115627,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:01:20]free response buf [13:01:20]execute_script done [13:01:20]execute_script returns [13:01:20]free content buf [13:01:20]Sock 9.Close socket [13:01:20]Sock 9.Thread stoped [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:15]accept exits with 8 [13:05:15]New connection [13:05:15]New thread 3067501924 created [13:05:15]Thread 3067358564 joined [13:05:15]Waiting for new connection... [13:05:15] Sock 8.Parse request [13:05:15]Sock 8.Check first char [13:05:15]Sock 8.First char is OK [13:05:15]request: POST /json_proto HTTP/1.0 [13:05:15]Method: POST [13:05:15]URL: /json_proto [13:05:15]Method is POST - this is cgi request [13:05:15]url: /json_proto [13:05:15]query_string will be loaded in cgi processing [13:05:15]execute_cgi json_proto POST (null) [13:05:15]execute_cgi path=json_proto method=POST [13:05:15]POST find Content-Length [13:05:15]Host: 172.17.41.136:8080 [13:05:15]Content-Length: 683 [13:05:15]Content-Type: application/json [13:05:15] [13:05:15]POST finish read [13:05:15]Found Content-Length = 683 [13:05:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 13.370, "sum" : 500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:15]execute_script... [13:05:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 13.370, "sum" : 500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:15]POST & json_proto [13:05:15]process_json_proto [13:05:15]json parsed OK: [13:05:15]protocol is kg_v1.0 [13:05:15]action value=close_receipt [13:05:15]process_action close_receipt [13:05:15]cmd_close_receipt [13:05:15]MH_GetDate [13:05:15]Write to MH i2c: F0 00 00 14 07 0A [13:05:15]Write i2c OK [13:05:15]MH_I2C_Read... [13:05:15]Read from MH i2c: F0 [13:05:15]MH_I2C_Read... [13:05:15]Read from MH i2c: F0 09 00 [13:05:15]MH_I2C_Read... [13:05:15]Read from MH i2c: F0 09 00 14 07 00 8C 67 F1 66 1B D0 5A 64 06 [13:05:15]GetLastDocTimeStamp 1727096477 [13:05:15]current date 1727096716 [13:05:15]FM_GetShiftState [13:05:15]SAM_PROTO_GetShiftState [13:05:15]wFMCommunicate request_size=4 [13:05:15]MH_SAM_APDU [13:05:15]CAPDU: 80 13 01 00 [13:05:15]Write to MH i2c: E2 08 00 15 07 80 13 01 00 00 00 00 00 99 [13:05:15]Write i2c OK [13:05:15]MH_I2C_Read... [13:05:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:15]Read from MH i2c: E2 [13:05:15]MH_I2C_Read... [13:05:15]Read from MH i2c: E2 0E 00 [13:05:15]MH_I2C_Read... [13:05:15]Read from MH i2c: E2 0E 00 15 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 DA [13:05:15]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:05:15]wFMCommunicate OK [13:05:15]SAM_PROTO_GetShiftState done [13:05:15]FM_GetShiftState done [13:05:15]opened in 1727052070 [13:05:15]opened+sec_in_day 1727138470 [13:05:15]quantity*price = 50003 [13:05:15]sum+1 = 50005 [13:05:15]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870209745486 Арахис BIG BOB Сыр 50 гр 4.000 * 60.00 = 240.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870209743574 Арахис BIG BOB Вяленая конина 50 гр 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 484.00 НСП 1% : 4.27 НДС 12% : 51.39 Наличными: 484.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 112 23.09.2024 13:08 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115629 ФПД: 39681651670035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T130800&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115629&fm=39681651670035&tin=02508201610067®Number=0000000000091831&sum=48400 0 [13:08:00]StoreToDocumentArchive [13:08:00]shift 472 fd 115629 [13:08:00]save to /storage/0472/doc_00115629 [13:08:00]save last doc name /storage/0472/doc_00115629 to /storage/kkm_last_doc_name [13:08:00]save OK [13:08:00]Clear old archive folders... [13:08:00]ProcessDocumentItem done err = 0, tmpTLVsize=630 [13:08:00]tlvbuf is 017F7B70 [13:08:00]SAM_PROTO_ClearQueue [13:08:00]wFMCommunicate request_size=4 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 09 00 00 [13:08:00]Write to MH i2c: E2 08 00 38 00 80 09 00 00 00 00 00 00 AA [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:00]Read from MH i2c: E2 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 03 00 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 03 00 38 00 00 90 00 AC [13:08:00]RAPDU: 90 00 [13:08:00]wFMCommunicate OK [13:08:00]SAM_PROTO_ClearQueue done [13:08:00]KKMCreateOFDPacket [13:08:00]OFDProtocolAddRootSTLVToBuf [13:08:00]FM_MakeSignedData [13:08:00]FM_MakeSignedData [13:08:00]SAM_PROTO_SignData [13:08:00]wFMCommunicate request_size=4 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 0D 01 02 [13:08:00]Write to MH i2c: E2 08 00 39 00 80 0D 01 02 00 00 00 00 B2 [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 39 00 00 90 00 AD [13:08:01]RAPDU: 90 00 [13:08:01]wFMCommunicate OK [13:08:01]wFMCommunicate request_size=255 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 0D 02 02 FA 03 00 76 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 38 30 39 06 04 2D 00 D0 93 D1 80 D0 B5 D0 BD D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A7 D0 B5 D1 81 D0 BD D0 BE D0 BA 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 [13:08:01]Write to MH i2c: E2 02 01 3A 00 80 0D 02 02 FA 00 03 00 76 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 38 30 39 06 04 2D 00 D0 93 D1 80 D0 B5 D0 BD D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A7 D0 B5 D1 81 D0 BD D0 BE D0 BA 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 00 00 8E [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 3A 00 00 90 00 AE [13:08:01]RAPDU: 90 00 [13:08:01]wFMCommunicate OK [13:08:01]wFMCommunicate request_size=255 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 0D 02 02 FA 33 35 37 34 06 04 38 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 92 D1 8F D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 BA D0 BE D0 BD D0 B8 D0 BD D0 B0 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 [13:08:01]Write to MH i2c: E2 02 01 3B 00 80 0D 02 02 FA 00 33 35 37 34 06 04 38 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 92 D1 8F D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 BA D0 BE D0 BD D0 B8 D0 BD D0 B0 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 00 00 DE [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 3B 00 00 90 00 AF [13:08:01]RAPDU: 90 00 [13:08:01]wFMCommunicate OK [13:08:01]wFMCommunicate request_size=139 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 14 00 00 00 00 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 30 68 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AD C3 01 00 35 04 06 00 24 17 1A C0 7C 13 [13:08:01]Write to MH i2c: E2 8E 00 3C 00 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 14 00 00 00 00 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 30 68 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AD C3 01 00 35 04 06 00 24 17 1A C0 7C 13 00 00 28 [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:02]Read from MH i2c: E2 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 03 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 03 00 3C 00 00 90 00 B0 [13:08:02]RAPDU: 90 00 [13:08:02]wFMCommunicate OK [13:08:02]wFMCommunicate request_size=4 [13:08:02]MH_SAM_APDU [13:08:02]CAPDU: 80 0D 03 02 [13:08:02]Write to MH i2c: E2 08 00 3D 00 80 0D 03 02 00 00 00 00 B8 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:02]Read from MH i2c: E2 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 0B 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 0B 00 3D 00 00 F4 12 A1 98 17 62 7D 64 90 00 52 [13:08:02]RAPDU: F4 12 A1 98 17 62 7D 64 90 00 [13:08:02]wFMCommunicate OK [13:08:02]SAM_PROTO_SignData done [13:08:02]FM_MakeSignedData done [13:08:02]CreateOFDProtocolMessage [13:08:02]wFMCommunicate request_size=4 [13:08:02]MH_SAM_APDU [13:08:02]CAPDU: 80 11 00 00 [13:08:02]Write to MH i2c: E2 08 00 3E 00 80 11 00 00 00 00 00 00 B8 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:02]Read from MH i2c: E2 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 17 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 17 00 3E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 06 [13:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:08:02]wFMCommunicate OK [13:08:02]CreateOFDProtocolMessage done [13:08:02]OFDSenderStorePacket 115629 [13:08:02]StoreOFDPacket docnum=115629 [13:08:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8A 02 00 00 25 B4 82 02 E9 02 5A 03 01 00 03 00 76 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 38 30 39 06 04 2D 00 D0 93 D1 80 D0 B5 D0 BD D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A7 D0 B5 D1 81 D0 BD D0 BE D0 BA 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 35 37 34 06 04 38 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 92 D1 8F D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 BA D0 BE D0 BD D0 B8 D0 BD D0 B0 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 14 00 00 00 00 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 30 68 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AD C3 01 00 35 04 06 00 24 17 1A C0 7C 13 F4 12 A1 98 17 62 7D 64 [13:08:02]CheckFolder [13:08:02]dirname=/storage/ofd_packets [13:08:02]CheckFolder done [13:08:02]ProducePacketName [13:08:02]name=ofd_packets/00115629 [13:08:02]NVStorageSaveData ofd_packets/00115629 [13:08:02]File name is /storage/ofd_packets/00115629 [13:08:02]Write 680 bytes [13:08:02]NVStorageSaveData done [13:08:02]OFDSenderStorePacket done [13:08:02]KKMCreateOFDPacket done [13:08:02]NVStorageSaveData kkm_last_timestamp [13:08:02]File name is /storage/kkm_last_timestamp [13:08:02]Write 4 bytes [13:08:02]NVStorageSaveData done [13:08:02]ExternCall_PrintAddStr [13:08:02]wPrintStart [13:08:02]Write to MH i2c: 01 00 00 3F 00 3F [13:08:02]OFD Sender: Processing packet 115629 [packets to send 482, broken 481] [13:08:02]ProducePacketName [13:08:02]name=ofd_packets/00115629 [13:08:02]OFD Sender: To server: pG, [13:08:02]CommunicateWithHost lk.salyk.kg:30040 [13:08:02]ConnectInit lk.salyk.kg [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 07 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 07 00 3F 00 00 00 00 00 00 FF 0F 54 [13:08:02]RasterBufferAndPrint [13:08:02]line Счет N : (3)344012 [13:08:02]line ИНН: 02508201610067 [13:08:02]line Контрольно-Кассовый Чек [13:08:02]line ПРОДАЖА [13:08:02]line Товар: 4870209744809 [13:08:02]line Гренки Флинт Чеснок 100 гр [13:08:02]line 2.000 * 60.00 [13:08:02]line = 120.00 [13:08:02]line НДС 12% НСП 1% [13:08:02]line > о реализуемом товаре [13:08:02]line Товар: 4870209745486 [13:08:02]line Арахис BIG BOB Сыр 50 гр [13:08:02]line 4.000 * 60.00 [13:08:02]line = 240.00 [13:08:02]line НДС 12% НСП 1% [13:08:02]line > о реализуемом товаре [13:08:02]line Товар: 4870209743574 [13:08:02]line Арахис BIG BOB Вяленая конина 50 гр [13:08:02]line 2.000 * 60.00 [13:08:02]line = 120.00 [13:08:02]line НДС 12% НСП 1% [13:08:02]line > о реализуемом товаре [13:08:02]line Товар: 2000031750019 [13:08:02]line Пакет Партнер Нефть [13:08:02]line 1.000 * 4.00 [13:08:02]line = 4.00 [13:08:02]line НДС 12% НСП 1% [13:08:02]line > о реализуемом товаре [13:08:02]line ИТОГО: 484.00 [13:08:02]line НСП 1% : 4.27 [13:08:02]line НДС 12% : 51.39 [13:08:02]line Наличными: 484.00 [13:08:02]line Безнал.: 0.00 [13:08:02]line Место: АЗС № 90 "Партнер Нефть" [13:08:02]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:08:02]line СНО: Общий режим [13:08:02]line Чек 112 23.09.2024 13:08 [13:08:02]line Смена: 472 ФФД: 1.0 [13:08:02]line ЗНМ: 0300000120 [13:08:02]line РНМ: 0000000000091831 [13:08:02]line Версия ККМ: 001 [13:08:02]line ФМ: 0000000000871830 [13:08:02]line ФД: 115629 [13:08:02]line ФПД: 39681651670035 [13:08:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T130800&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115629&fm=39681651670035&tin=02508201610067®Number=0000000000091831&sum=48400 [13:08:02]line 0 [13:08:02]written 0, free lines is 4095 [13:08:02]Connected sock=11 [13:08:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8A 02 00 00 25 B4 82 02 E9 02 5A 03 01 00 03 00 76 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 38 30 39 06 04 2D 00 D0 93 D1 80 D0 B5 D0 BD D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A7 D0 B5 D1 81 D0 BD D0 BE D0 BA 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 35 37 34 06 04 38 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 92 D1 8F D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 BA D0 BE D0 BD D0 B8 D0 BD D0 B0 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 14 00 00 00 00 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 30 68 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AD C3 01 00 35 04 06 00 24 17 1A C0 7C 13 F4 12 A1 98 17 62 7D 64 [13:08:02]Write to MH i2c: 01 00 00 79 00 79 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 07 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FD 0A 87 [13:08:02]RasterBufferAndPrint [13:08:02]line [13:08:02]line [13:08:02]line [13:08:02]line [13:08:02]line [13:08:02]written 0, free lines is 2824 [13:08:02]MH_Cut [13:08:02]Write to MH i2c: D1 01 00 80 00 01 52 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: D1 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: D1 01 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: D1 01 00 80 00 00 51 [13:08:02]Write to MH i2c: 01 00 00 81 00 81 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 10 FB 47 00 30 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 38 33 30 10 04 04 00 AD C3 01 00 F4 03 04 00 73 0D F1 66 B6 04 01 00 00 69 BD CD 9B FE F6 BC 21 [13:08:03]CommunicateWithHost err = 0 [13:08:03]CheckOFDResponse [13:08:03]1017 (14) - 77093643461234 [13:08:03]1041 (16) - 0000000000871830 [13:08:03]1040 (4) - 115629 [13:08:03]1012 (4) - 23.09.2024 06:40 [13:08:03]1206 (1) - 0 [13:08:03]OFD Sender: Remove packet 115629 [13:08:03]ProducePacketName [13:08:03]name=ofd_packets/00115629 [13:08:03]NVStorageDeleteData [13:08:03]OFD Sender: No OFD packet to send [13:08:04]*** Cut start [13:08:04]*** Partial cut [13:08:04]*** CUTSNS_PIN = 1 [13:08:04]*** CUTSNS_PIN = 0 [13:08:04]*** Brake cut motor [13:08:05]Read from MH i2c: 01 [13:08:05]MH_I2C_Read... [13:08:05]*** Stop cut motor [13:08:05]*** Cut end [13:08:05]Read from MH i2c: 01 07 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: 01 07 00 81 00 00 00 00 00 00 FF 0F 96 [13:08:05]process_action close_receipt done [13:08:05]requested_data is exist [13:08:05]produce_requested_data [13:08:05]requested_item fm.sn is exist - process it [13:08:05]wFMCommunicate request_size=4 [13:08:05]MH_SAM_APDU [13:08:05]CAPDU: 80 11 00 00 [13:08:05]Write to MH i2c: E2 08 00 82 00 80 11 00 00 00 00 00 00 FC [13:08:05]Write i2c OK [13:08:05]MH_I2C_Read... [13:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:05]Read from MH i2c: E2 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 17 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 17 00 82 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4A [13:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:08:05]wFMCommunicate OK [13:08:05]requested_item fd.num is exist - process it [13:08:05]SAM_PROTO_GetFieldsCounters [13:08:05]wFMCommunicate request_size=4 [13:08:05]MH_SAM_APDU [13:08:05]CAPDU: 80 13 00 00 [13:08:05]Write to MH i2c: E2 08 00 83 00 80 13 00 00 00 00 00 00 FF [13:08:05]Write i2c OK [13:08:05]MH_I2C_Read... [13:08:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:05]Read from MH i2c: E2 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 62 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 62 00 83 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AD C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [13: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AD C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:05]wFMCommunicate OK [13:08:05]SAM_PROTO_GetFieldsCounters done [13:08:05]requested_item shift.num is exist - process it [13:08:05]requested_item shift.opened is exist - process it [13:08:05]req_shift_opened [13:08:05]FM_GetShiftState [13:08:05]SAM_PROTO_GetShiftState [13:08:05]wFMCommunicate request_size=4 [13:08:05]MH_SAM_APDU [13:08:05]CAPDU: 80 13 01 00 [13:08:05]Write to MH i2c: E2 08 00 84 00 80 13 01 00 00 00 00 00 01 [13:08:05]Write i2c OK [13:08:05]MH_I2C_Read... [13:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:05]Read from MH i2c: E2 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 0E 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 0E 00 84 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 42 [13:08:05]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:08:05]wFMCommunicate OK [13:08:05]SAM_PROTO_GetShiftState done [13:08:05]FM_GetShiftState done [13:08:05]req_shift_opened done [13:08:05]requested_item shift.open_date is exist - process it [13:08:05]req_shift_open_date [13:08:05]req_shift_open_date done [13:08:05]produce_requested_data done [13:08:05]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115629,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:08:05]process_action_free close_receipt [13:08:05]json_value_free [13:08:05]json_value_free done [13:08:05]process_json_proto returns [13:08:05]Send response to host [13:08:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115629,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:08:05]free response buf [13:08:05]execute_script done [13:08:05]execute_script returns [13:08:05]free content buf [13:08:05]Sock 7.Close socket [13:08:05]Sock 7.Thread stoped [13:08:05]accept exits with 9 [13:08:05]New connection [13:08:05]New thread 3067022692 created [13:08:05]Thread 3066879332 joined [13:08:05]Waiting for new connection... [13:08:05] Sock 9.Parse request [13:08:05]Sock 9.Check first char [13:08:05]Sock 9.First char is OK [13:08:05]request: POST /json_proto HTTP/1.0 [13:08:05]Method: POST [13:08:05]URL: /json_proto [13:08:05]Method is POST - this is cgi request [13:08:05]url: /json_proto [13:08:05]query_string will be loaded in cgi processing [13:08:05]execute_cgi json_proto POST (null) [13:08:05]execute_cgi path=json_proto method=POST [13:08:05]POST find Content-Length [13:08:05]Host: 172.17.41.136:8080 [13:08:05]Content-Length: 625 [13:08:05]Content-Type: application/json [13:08:05] [13:08:05]POST finish read [13:08:05]Found Content-Length = 625 [13:08:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:05]execute_script... [13:08: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)24617667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:05]POST & json_proto [13:08:05]process_json_proto [13:08:05]json parsed OK: [13:08:05]protocol is kg_v1.0 [13:08:05]action value=close_receipt [13:08:05]process_action close_receipt [13:08:05]cmd_close_receipt [13:08:05]MH_GetDate [13:08:05]Write to MH i2c: F0 00 00 85 00 74 [13:08:05]Write i2c OK [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: F0 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: F0 09 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: F0 09 00 85 00 00 36 68 F1 66 1B D0 5A 64 1B [13:08:05]GetLastDocTimeStamp 1727096880 [13:08:05]current date 1727096886 [13:08:05]FM_GetShiftState [13:08:05]SAM_PROTO_GetShiftState [13:08:05]wFMCommunicate request_size=4 [13:08:05]MH_SAM_APDU [13:08:05]CAPDU: 80 13 01 00 [13:08:05]Write to MH i2c: E2 08 00 86 00 80 13 01 00 00 00 00 00 03 [13:08:05]Write i2c OK [13:08:05]MH_I2C_Read... [13:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:05]Read from MH i2c: E2 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 0E 00 [13:08:05]MH_I2C_Read... [13:08:06]Read from MH i2c: E2 0E 00 86 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 44 [13:08:06]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:08:06]wFMCommunicate OK [13:08:06]SAM_PROTO_GetShiftState done [13:08:06]FM_GetShiftState done [13:08:06]opened in 1727052070 [13:08:06]opened+sec_in_day 1727138470 [13:08:06]quantity*price = 99999 [13:08:06]sum+1 = 100001 [13:08:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 113 23.09.2024 13:08 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115630 ФПД: 160987638669633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T130806&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115630&fm=160987638669633&tin=02508201610067®Number=0000000000091831&sum=100000 [13:08:07]StoreToDocumentArchive [13:08:07]shift 472 fd 115630 [13:08:07]save to /storage/0472/doc_00115630 [13:08:07]save last doc name /storage/0472/doc_00115630 to /storage/kkm_last_doc_name [13:08:07]save OK [13:08:07]Clear old archive folders... [13:08:07]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:08:07]tlvbuf is 017BD5C0 [13:08:07]SAM_PROTO_ClearQueue [13:08:07]wFMCommunicate request_size=4 [13:08:07]MH_SAM_APDU [13:08:07]CAPDU: 80 09 00 00 [13:08:07]Write to MH i2c: E2 08 00 93 00 80 09 00 00 00 00 00 00 05 [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:07]Read from MH i2c: E2 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 03 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 03 00 93 00 00 90 00 07 [13:08:07]RAPDU: 90 00 [13:08:07]wFMCommunicate OK [13:08:07]SAM_PROTO_ClearQueue done [13:08:07]KKMCreateOFDPacket [13:08:07]OFDProtocolAddRootSTLVToBuf [13:08:07]FM_MakeSignedData [13:08:07]FM_MakeSignedData [13:08:07]SAM_PROTO_SignData [13:08:07]wFMCommunicate request_size=4 [13:08:07]MH_SAM_APDU [13:08:07]CAPDU: 80 0D 01 02 [13:08:07]Write to MH i2c: E2 08 00 94 00 80 0D 01 02 00 00 00 00 0D [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:07]Read from MH i2c: E2 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 03 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 03 00 94 00 00 90 00 08 [13:08:07]RAPDU: 90 00 [13:08:07]wFMCommunicate OK [13:08:07]wFMCommunicate request_size=253 [13:08:07]MH_SAM_APDU [13:08:07]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 36 68 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AE C3 01 00 35 04 06 00 92 6A DB 04 21 41 [13:08:07]Write to MH i2c: E2 00 01 95 00 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 36 68 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AE C3 01 00 35 04 06 00 92 6A DB 04 21 41 00 00 FF [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:08]Read from MH i2c: E2 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: E2 03 00 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: E2 03 00 95 00 00 90 00 09 [13:08:08]RAPDU: 90 00 [13:08:08]wFMCommunicate OK [13:08:08]wFMCommunicate request_size=4 [13:08:08]MH_SAM_APDU [13:08:08]CAPDU: 80 0D 03 02 [13:08:08]Write to MH i2c: E2 08 00 96 00 80 0D 03 02 00 00 00 00 11 [13:08:08]Write i2c OK [13:08:08]MH_I2C_Read... [13:08:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:08]Read from MH i2c: E2 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: E2 0B 00 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: E2 0B 00 96 00 00 B3 BE 11 E0 AC 2F 49 DC 90 00 74 [13:08:08]RAPDU: B3 BE 11 E0 AC 2F 49 DC 90 00 [13:08:08]wFMCommunicate OK [13:08:08]SAM_PROTO_SignData done [13:08:08]FM_MakeSignedData done [13:08:08]CreateOFDProtocolMessage [13:08:08]wFMCommunicate request_size=4 [13:08:08]MH_SAM_APDU [13:08:08]CAPDU: 80 11 00 00 [13:08:08]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [13:08:08]Write i2c OK [13:08:08]MH_I2C_Read... [13:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:08]Read from MH i2c: E2 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: E2 17 00 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5F [13:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:08:08]wFMCommunicate OK [13:08:08]CreateOFDProtocolMessage done [13:08:08]OFDSenderStorePacket 115630 [13:08:08]StoreOFDPacket docnum=115630 [13:08:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 D0 AC 00 01 9D 8A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 36 68 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AE C3 01 00 35 04 06 00 92 6A DB 04 21 41 B3 BE 11 E0 AC 2F 49 DC [13:08:08]CheckFolder [13:08:08]dirname=/storage/ofd_packets [13:08:08]CheckFolder done [13:08:08]ProducePacketName [13:08:08]name=ofd_packets/00115630 [13:08:08]NVStorageSaveData ofd_packets/00115630 [13:08:08]File name is /storage/ofd_packets/00115630 [13:08:08]Write 294 bytes [13:08:08]NVStorageSaveData done [13:08:08]OFDSenderStorePacket done [13:08:08]KKMCreateOFDPacket done [13:08:08]NVStorageSaveData kkm_last_timestamp [13:08:08]File name is /storage/kkm_last_timestamp [13:08:08]Write 4 bytes [13:08:08]NVStorageSaveData done [13:08:08]ExternCall_PrintAddStr [13:08:08]wPrintStart [13:08:08]Write to MH i2c: 01 00 00 98 00 98 [13:08:08]Write i2c OK [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: 01 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: 01 07 00 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [13:08:08]RasterBufferAndPrint [13:08:08]line Счет N : (1)24617667 [13:08:08]line ИНН: 02508201610067 [13:08:08]line Контрольно-Кассовый Чек [13:08:08]line ПРОДАЖА [13:08:08]line ТРК (МРК, ГНК) : 64 [13:08:08]line Товар: 2710124130 [13:08:08]line SU-92 [13:08:08]line 14.430 * 69.30 [13:08:08]line = 1000.00 [13:08:08]line НДС 12% НСП 1% [13:08:08]line > о реализуемом товаре [13:08:08]line ИТОГО: 1000.00 [13:08:08]line НСП 1% : 8.85 [13:08:08]line НДС 12% : 106.19 [13:08:08]line Наличными: 1000.00 [13:08:08]line Безнал.: 0.00 [13:08:08]line Место: АЗС № 90 "Партнер Нефть" [13:08:08]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:08:08]line СНО: Общий режим [13:08:08]line Чек 113 23.09.2024 13:08 [13:08:08]line Смена: 472 ФФД: 1.0 [13:08:08]line ЗНМ: 0300000120 [13:08:08]line РНМ: 0000000000091831 [13:08:08]line Версия ККМ: 001 [13:08:08]line ФМ: 0000000000871830 [13:08:08]line ФД: 115630 [13:08:08]line ФПД: 160987638669633 [13:08:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T130806&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115630&fm=160987638669633&tin=02508201610067®Number=0000000000091831&sum=100000 [13:08:08]written 0, free lines is 4095 [13:08:08]OFD Sender: Processing packet 115630 [packets to send 482, broken 481] [13:08:08]ProducePacketName [13:08:08]name=ofd_packets/00115630 [13:08:08]OFD Sender: To server: pG, [13:08:08]CommunicateWithHost lk.salyk.kg:30040 [13:08:08]ConnectInit lk.salyk.kg [13:08:08]Connected sock=11 [13:08: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 38 33 30 08 01 00 00 D0 AC 00 01 9D 8A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 36 68 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 Write to MH i2c: 01 01 0D 00 04 00 10 BF 00 00 30 BF 30 [13:08:08]30 30 30 Write i2c OK [13:08:08]30 MH_I2C_Read... [13:08:08]30 Read from MH i2c: 30 01 30 [13:08:08]30 MH_I2C_Read... [13:08:08]30 Read from MH i2c: 39 01 31 07 38 00 33 [13:08:08]MH_I2C_Read... [13:08:08]31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AE C3 01 00 35 04 06 Read from MH i2c: 00 01 92 07 6A 00 DB BF 04 00 21 00 41 00 B3 00 BE 00 11 00 E0 02 AC 0D 2F D5 49 [13:08:08]DC RasterBufferAndPrint [13:08:08] [13:08:08]line [13:08:08]line [13:08:08]line [13:08:08]line [13:08:08]line [13:08:08]written 0, free lines is 3359 [13:08:08]MH_Cut [13:08:08]Write to MH i2c: D1 01 00 C6 00 01 98 [13:08:08]Write i2c OK [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: D1 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: D1 01 00 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: D1 01 00 C6 00 00 97 [13:08:08]Write to MH i2c: 01 00 00 C7 00 C7 [13:08:08]Write i2c OK [13:08:08]MH_I2C_Read... [13:08:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 4A 51 47 00 B2 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AE C3 01 00 F4 03 04 00 79 0D F1 66 B6 04 01 00 00 CC FB D3 0E D6 3B E5 89 [13:08:09]CommunicateWithHost err = 0 [13:08:09]CheckOFDResponse [13:08:09]1017 (14) - 77093643461234 [13:08:09]1041 (16) - 0000000000871830 [13:08:09]1040 (4) - 115630 [13:08:09]1012 (4) - 23.09.2024 06:40 [13:08:09]1206 (1) - 0 [13:08:09]OFD Sender: Remove packet 115630 [13:08:09]ProducePacketName [13:08:09]name=ofd_packets/00115630 [13:08:09]NVStorageDeleteData [13:08:09]OFD Sender: No OFD packet to send [13:08:09]*** Cut start [13:08:09]*** Partial cut [13:08:09]*** CUTSNS_PIN = 1 [13:08:09]*** CUTSNS_PIN = 0 [13:08:10]*** Brake cut motor [13:08:10]Read from MH i2c: 01 *** Stop cut motor [13:08:10] [13:08:10]*** Cut end [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: 01 07 00 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [13:08:10]process_action close_receipt done [13:08:10]requested_data is exist [13:08:10]produce_requested_data [13:08:10]requested_item fm.sn is exist - process it [13:08:10]wFMCommunicate request_size=4 [13:08:10]MH_SAM_APDU [13:08:10]CAPDU: 80 11 00 00 [13:08:10]Write to MH i2c: E2 08 00 C8 00 80 11 00 00 00 00 00 00 42 [13:08:10]Write i2c OK [13:08:10]MH_I2C_Read... [13:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:10]Read from MH i2c: E2 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: E2 17 00 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: E2 17 00 C8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 90 [13:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:08:10]wFMCommunicate OK [13:08:10]requested_item fd.num is exist - process it [13:08:10]SAM_PROTO_GetFieldsCounters [13:08:10]wFMCommunicate request_size=4 [13:08:10]MH_SAM_APDU [13:08:10]CAPDU: 80 13 00 00 [13:08:10]Write to MH i2c: E2 08 00 C9 00 80 13 00 00 00 00 00 00 45 [13:08:10]Write i2c OK [13:08:10]MH_I2C_Read... [13:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:10]Read from MH i2c: E2 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: E2 62 00 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: E2 62 00 C9 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AE C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [13:08: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AE C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:10]wFMCommunicate OK [13:08:10]SAM_PROTO_GetFieldsCounters done [13:08:10]requested_item shift.num is exist - process it [13:08:10]requested_item shift.opened is exist - process it [13:08:10]req_shift_opened [13:08:10]FM_GetShiftState [13:08:10]SAM_PROTO_GetShiftState [13:08:10]wFMCommunicate request_size=4 [13:08:10]MH_SAM_APDU [13:08:10]CAPDU: 80 13 01 00 [13:08:10]Write to MH i2c: E2 08 00 CA 00 80 13 01 00 00 00 00 00 47 [13:08:10]Write i2c OK [13:08:10]MH_I2C_Read... [13:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:10]Read from MH i2c: E2 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: E2 0E 00 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: E2 0E 00 CA 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 88 [13:08:10]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:08:10]wFMCommunicate OK [13:08:10]SAM_PROTO_GetShiftState done [13:08:10]FM_GetShiftState done [13:08:10]req_shift_opened done [13:08:10]requested_item shift.open_date is exist - process it [13:08:10]req_shift_open_date [13:08:10]req_shift_open_date done [13:08:10]produce_requested_data done [13:08:10]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115630,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:08:10]process_action_free close_receipt [13:08:10]json_value_free [13:08:10]json_value_free done [13:08:10]process_json_proto returns [13:08:10]Send response to host [13:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115630,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:08:10]free response buf [13:08:10]execute_script done [13:08:10]execute_script returns [13:08:10]free content buf [13:08:10]Sock 9.Close socket [13:08:10]Sock 9.Thread stoped [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]accept exits with 7 [13:09:29]New connection [13:09:29]New thread 3066879332 created [13:09:29]Thread 3067022692 joined [13:09:29]Waiting for new connection... [13:09:29] Sock 7.Parse request [13:09:29]Sock 7.Check first char [13:09:29]Sock 7.First char is OK [13:09:29]request: POST /json_proto HTTP/1.0 [13:09:29]Method: POST [13:09:29]URL: /json_proto [13:09:29]Method is POST - this is cgi request [13:09:29]url: /json_proto [13:09:29]query_string will be loaded in cgi processing [13:09:29]execute_cgi json_proto POST (null) [13:09:29]execute_cgi path=json_proto method=POST [13:09:29]POST find Content-Length [13:09:29]Host: 172.17.41.136:8080 [13:09:29]Content-Length: 786 [13:09:29]Content-Type: application/json [13:09:29] [13:09:29]POST finish read [13:09:29]Found Content-Length = 786 [13:09:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:29]execute_script... [13: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)24617670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:29]POST & json_proto [13:09:29]process_json_proto [13:09:29]json parsed OK: [13:09:29]protocol is kg_v1.0 [13:09:29]action value=close_receipt [13:09:29]process_action close_receipt [13:09:29]cmd_close_receipt [13:09:29]MH_GetDate [13:09:29]Write to MH i2c: F0 00 00 CB 00 BA [13:09:29]Write i2c OK [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: F0 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: F0 09 00 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: F0 09 00 CB 00 00 89 68 F1 66 1B D0 5A 64 B4 [13:09:29]GetLastDocTimeStamp 1727096886 [13:09:29]current date 1727096969 [13:09:29]FM_GetShiftState [13:09:29]SAM_PROTO_GetShiftState [13:09:29]wFMCommunicate request_size=4 [13:09:29]MH_SAM_APDU [13:09:29]CAPDU: 80 13 01 00 [13:09:29]Write to MH i2c: E2 08 00 CC 00 80 13 01 00 00 00 00 00 49 [13:09:29]Write i2c OK [13:09:29]MH_I2C_Read... [13:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:29]Read from MH i2c: E2 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 0E 00 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 0E 00 CC 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 8A [13:09:29]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:09:29]wFMCommunicate OK [13:09:29]SAM_PROTO_GetShiftState done [13:09:29]FM_GetShiftState done [13:09:29]opened in 1727052070 [13:09:29]opened+sec_in_day 1727138470 [13:09:29]quantity*price = 99999 [13:09:29]sum+1 = 100001 [13:09:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 114 23.09.2024 13:09 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115631 ФПД: 101366946845180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T130929&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115631&fm=101366946845180&tin=02508201610067®Number=0000000000091831&sum=100000 [13:09:30]StoreToDocumentArchive [13:09:30]shift 472 fd 115631 [13:09:30]save to /storage/0472/doc_00115631 [13:09:30]save last doc name /storage/0472/doc_00115631 to /storage/kkm_last_doc_name [13:09:30]save OK [13:09:30]Clear old archive folders... [13:09:30]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:09:30]tlvbuf is 017FD670 [13:09:30]SAM_PROTO_ClearQueue [13:09:30]wFMCommunicate request_size=4 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 09 00 00 [13:09:30]Write to MH i2c: E2 08 00 D9 00 80 09 00 00 00 00 00 00 4B [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 03 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 03 00 D9 00 00 90 00 4D [13:09:30]RAPDU: 90 00 [13:09:30]wFMCommunicate OK [13:09:30]SAM_PROTO_ClearQueue done [13:09:30]KKMCreateOFDPacket [13:09:30]OFDProtocolAddRootSTLVToBuf [13:09:30]FM_MakeSignedData [13:09:30]FM_MakeSignedData [13:09:30]SAM_PROTO_SignData [13:09:30]wFMCommunicate request_size=4 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 0D 01 02 [13:09:30]Write to MH i2c: E2 08 00 DA 00 80 0D 01 02 00 00 00 00 53 [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 03 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 03 00 DA 00 00 90 00 4E [13:09:30]RAPDU: 90 00 [13:09:30]wFMCommunicate OK [13:09:30]wFMCommunicate request_size=253 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 89 68 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AF C3 01 00 35 04 06 00 5C 31 54 DB D1 FC [13:09:30]Write to MH i2c: E2 00 01 DB 00 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 89 68 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AF C3 01 00 35 04 06 00 5C 31 54 DB D1 FC 00 00 E6 [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 03 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 03 00 DB 00 00 90 00 4F [13:09:30]RAPDU: 90 00 [13:09:30]wFMCommunicate OK [13:09:30]wFMCommunicate request_size=4 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 0D 03 02 [13:09:30]Write to MH i2c: E2 08 00 DC 00 80 0D 03 02 00 00 00 00 57 [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 0B 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 0B 00 DC 00 00 15 18 B4 4B B3 DD 48 03 90 00 5F [13:09:30]RAPDU: 15 18 B4 4B B3 DD 48 03 90 00 [13:09:30]wFMCommunicate OK [13:09:30]SAM_PROTO_SignData done [13:09:30]FM_MakeSignedData done [13:09:30]CreateOFDProtocolMessage [13:09:30]wFMCommunicate request_size=4 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 11 00 00 [13:09:30]Write to MH i2c: E2 08 00 DD 00 80 11 00 00 00 00 00 00 57 [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 17 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 17 00 DD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A5 [13:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:09:30]wFMCommunicate OK [13:09:30]CreateOFDProtocolMessage done [13:09:30]OFDSenderStorePacket 115631 [13:09:30]StoreOFDPacket docnum=115631 [13:09:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 3A 25 00 01 31 55 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 89 68 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AF C3 01 00 35 04 06 00 5C 31 54 DB D1 FC 15 18 B4 4B B3 DD 48 03 [13:09:30]CheckFolder [13:09:30]dirname=/storage/ofd_packets [13:09:30]CheckFolder done [13:09:30]ProducePacketName [13:09:30]name=ofd_packets/00115631 [13:09:30]NVStorageSaveData ofd_packets/00115631 [13:09:30]File name is /storage/ofd_packets/00115631 [13:09:30]Write 294 bytes [13:09:30]NVStorageSaveData done [13:09:30]OFDSenderStorePacket done [13:09:30]KKMCreateOFDPacket done [13:09:30]NVStorageSaveData kkm_last_timestamp [13:09:30]File name is /storage/kkm_last_timestamp [13:09:30]Write 4 bytes [13:09:30]NVStorageSaveData done [13:09:30]ExternCall_PrintAddStr [13:09:30]wPrintStart [13:09:30]Write to MH i2c: 01 00 00 DE 00 DE [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: 01 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: 01 07 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: 01 07 00 DE 00 00 00 00 00 00 FF 0F F3 [13:09:30]RasterBufferAndPrint [13:09:30]line Счет N : (1)24617670 [13:09:30]line ИНН: 02508201610067 [13:09:30]line Контрольно-Кассовый Чек [13:09:30]line ПРОДАЖА [13:09:30]line ТРК (МРК, ГНК) : 64 [13:09:30]line Товар: 2710124130 [13:09:30]line SU-92 [13:09:30]line 14.430 * 69.30 [13:09:30]line = 1000.00 [13:09:30]line НДС 12% НСП 1% [13:09:30]line > о реализуемом товаре [13:09:30]line ИТОГО: 1000.00 [13:09:30]line НСП 1% : 8.85 [13:09:30]line НДС 12% : 106.19 [13:09:30]line Наличными: 0.00 [13:09:30]line Безнал.: 1000.00 [13:09:30]line Место: АЗС № 90 "Партнер Нефть" [13:09:30]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:09:30]line СНО: Общий режим [13:09:30]line Чек 114 23.09.2024 13:09 [13:09:30]line Смена: 472 ФФД: 1.0 [13:09:30]line ЗНМ: 0300000120 [13:09:30]line РНМ: 0000000000091831 [13:09:30]line Версия ККМ: 001 [13:09:30]line Платежная система: O! деньги [13:09:30]line ФМ: 0000000000871830 [13:09:30]line ФД: 115631 [13:09:30]line ФПД: 101366946845180 [13:09:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T130929&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115631&fm=101366946845180&tin=02508201610067®Number=0000000000091831&sum=100000 [13:09:30]OFD Sender: Processing packet 115631 [packets to send 482, broken 481] [13:09:30]ProducePacketName [13:09:30]name=ofd_packets/00115631 [13:09:30]OFD Sender: To server: pG, [13:09:30]CommunicateWithHost lk.salyk.kg:30040 [13:09:30]ConnectInit lk.salyk.kg [13:09:30]written 0, free lines is 4095 [13:09:31]Connected sock=10 [13:09: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 38 33 30 08 01 00 00 3A 25 00 01 31 55 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 89 68 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 AF C3 01 00 35 04 06 00 5C 31 54 DB D1 FC 15 18 B4 4B B3 DD 48 03 [13:09:31]Write to MH i2c: 01 00 00 07 01 08 [13:09:31]Write i2c OK [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: 01 [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: 01 07 00 [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: 01 07 00 07 01 00 00 00 00 00 7F 0C 9A [13:09:31]RasterBufferAndPrint [13:09:31]line [13:09:31]line [13:09:31]line [13:09:31]line [13:09:31]line [13:09:31]written 0, free lines is 3203 [13:09:31]MH_Cut [13:09:31]Write to MH i2c: D1 01 00 0E 01 01 E1 [13:09:31]Write i2c OK [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: D1 [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: D1 01 00 [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: D1 01 00 0E 01 00 E0 [13:09:31]Write to MH i2c: 01 00 00 0F 01 10 [13:09:31]Write i2c OK [13:09:31]MH_I2C_Read... [13:09:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 7F F4 47 00 57 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 38 33 30 10 04 04 00 AF C3 01 00 F4 03 04 00 CB 0D F1 66 B6 04 01 00 00 64 3E AA E8 B6 04 CC 54 [13:09:31]CommunicateWithHost err = 0 [13:09:31]CheckOFDResponse [13:09:31]1017 (14) - 77093643461234 [13:09:31]1041 (16) - 0000000000871830 [13:09:31]1040 (4) - 115631 [13:09:31]1012 (4) - 23.09.2024 06:42 [13:09:31]1206 (1) - 0 [13:09:31]OFD Sender: Remove packet 115631 [13:09:31]ProducePacketName [13:09:31]name=ofd_packets/00115631 [13:09:31]NVStorageDeleteData [13:09:32]OFD Sender: No OFD packet to send [13:09:32]*** Cut start [13:09:32]*** Partial cut [13:09:32]*** CUTSNS_PIN = 1 [13:09:32]*** CUTSNS_PIN = 0 [13:09:32]*** Brake cut motor [13:09:33]Read from MH i2c: 01 [13:09:33]MH_I2C_Read... [13:09:33]*** Stop cut motor [13:09:33]*** Cut end [13:09:33]Read from MH i2c: 01 07 00 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [13:09:33]process_action close_receipt done [13:09:33]requested_data is exist [13:09:33]produce_requested_data [13:09:33]requested_item fm.sn is exist - process it [13:09:33]wFMCommunicate request_size=4 [13:09:33]MH_SAM_APDU [13:09:33]CAPDU: 80 11 00 00 [13:09:33]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [13:09:33]Write i2c OK [13:09:33]MH_I2C_Read... [13:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:33]Read from MH i2c: E2 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: E2 17 00 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D9 [13:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:09:33]wFMCommunicate OK [13:09:33]requested_item fd.num is exist - process it [13:09:33]SAM_PROTO_GetFieldsCounters [13:09:33]wFMCommunicate request_size=4 [13:09:33]MH_SAM_APDU [13:09:33]CAPDU: 80 13 00 00 [13:09:33]Write to MH i2c: E2 08 00 11 01 80 13 00 00 00 00 00 00 8E [13:09:33]Write i2c OK [13:09:33]MH_I2C_Read... [13:09:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:33]Read from MH i2c: E2 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: E2 62 00 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: E2 62 00 11 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AF C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [13: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 AF C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:33]wFMCommunicate OK [13:09:33]SAM_PROTO_GetFieldsCounters done [13:09:33]requested_item shift.num is exist - process it [13:09:33]requested_item shift.opened is exist - process it [13:09:33]req_shift_opened [13:09:33]FM_GetShiftState [13:09:33]SAM_PROTO_GetShiftState [13:09:33]wFMCommunicate request_size=4 [13:09:33]MH_SAM_APDU [13:09:33]CAPDU: 80 13 01 00 [13:09:33]Write to MH i2c: E2 08 00 12 01 80 13 01 00 00 00 00 00 90 [13:09:33]Write i2c OK [13:09:33]MH_I2C_Read... [13:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:33]Read from MH i2c: E2 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: E2 0E 00 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: E2 0E 00 12 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D1 [13:09:33]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:09:33]wFMCommunicate OK [13:09:33]SAM_PROTO_GetShiftState done [13:09:33]FM_GetShiftState done [13:09:33]req_shift_opened done [13:09:33]requested_item shift.open_date is exist - process it [13:09:33]req_shift_open_date [13:09:33]req_shift_open_date done [13:09:33]produce_requested_data done [13:09:33]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115631,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:09:33]process_action_free close_receipt [13:09:33]json_value_free [13:09:33]json_value_free done [13:09:33]process_json_proto returns [13:09:33]Send response to host [13:09:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115631,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:09:33]free response buf [13:09:33]execute_script done [13:09:33]execute_script returns [13:09:33]free content buf [13:09:33]Sock 7.Close socket [13:09:33]Sock 7.Thread stoped [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:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:15]accept exits with 9 [13:14:15]New connection [13:14:15]New thread 3067022692 created [13:14:15]Thread 3066879332 joined [13:14:15]Waiting for new connection... [13:14:15] Sock 9.Parse request [13:14:15]Sock 9.Check first char [13:14:15]Sock 9.First char is OK [13:14:15]request: POST /json_proto HTTP/1.0 [13:14:15]Method: POST [13:14:15]URL: /json_proto [13:14:15]Method is POST - this is cgi request [13:14:15]url: /json_proto [13:14:15]query_string will be loaded in cgi processing [13:14:15]execute_cgi json_proto POST (null) [13:14:15]execute_cgi path=json_proto method=POST [13:14:15]POST find Content-Length [13:14:15]Host: 172.17.41.136:8080 [13:14:15]Content-Length: 660 [13:14:15]Content-Type: application/json [13:14:15] [13:14:15]POST finish read [13:14:15]Found Content-Length = 660 [13:14:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 8.660, "sum" : 600.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:15]execute_script... [13:14: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)24617672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 8.660, "sum" : 600.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:15]POST & json_proto [13:14:15]process_json_proto [13:14:15]json parsed OK: [13:14:15]protocol is kg_v1.0 [13:14:15]action value=close_receipt [13:14:15]process_action close_receipt [13:14:15]cmd_close_receipt [13:14:15]MH_GetDate [13:14:15]Write to MH i2c: F0 00 00 13 01 03 [13:14:15]Write i2c OK [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: F0 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: F0 09 00 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: F0 09 00 13 01 00 A7 69 F1 66 1B D0 5A 64 1C [13:14:15]GetLastDocTimeStamp 1727096969 [13:14:15]current date 1727097255 [13:14:15]FM_GetShiftState [13:14:15]SAM_PROTO_GetShiftState [13:14:15]wFMCommunicate request_size=4 [13:14:15]MH_SAM_APDU [13:14:15]CAPDU: 80 13 01 00 [13:14:15]Write to MH i2c: E2 08 00 14 01 80 13 01 00 00 00 00 00 92 [13:14:15]Write i2c OK [13:14:15]MH_I2C_Read... [13:14:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:15]Read from MH i2c: E2 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 0E 00 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 0E 00 14 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D3 [13:14:15]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:14:15]wFMCommunicate OK [13:14:15]SAM_PROTO_GetShiftState done [13:14:15]FM_GetShiftState done [13:14:15]opened in 1727052070 [13:14:15]opened+sec_in_day 1727138470 [13:14:15]quantity*price = 60013 [13:14:15]sum+1 = 60015 [13:14:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 115 23.09.2024 13:14 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115632 ФПД: 30211844604610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T131415&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115632&fm=30211844604610&tin=02508201610067®Number=0000000000091831&sum=60000 [13:14:16]StoreToDocumentArchive [13:14:16]shift 472 fd 115632 [13:14:16]save to /storage/0472/doc_00115632 [13:14:16]save last doc name /storage/0472/doc_00115632 to /storage/kkm_last_doc_name [13:14:16]save OK [13:14:16]Clear old archive folders... [13:14:16]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:14:16]tlvbuf is B6EB9E40 [13:14:16]SAM_PROTO_ClearQueue [13:14:16]wFMCommunicate request_size=4 [13:14:16]MH_SAM_APDU [13:14:16]CAPDU: 80 09 00 00 [13:14:16]Write to MH i2c: E2 08 00 21 01 80 09 00 00 00 00 00 00 94 [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:16]Read from MH i2c: E2 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 21 01 00 90 00 96 [13:14:16]RAPDU: 90 00 [13:14:16]wFMCommunicate OK [13:14:16]SAM_PROTO_ClearQueue done [13:14:16]KKMCreateOFDPacket [13:14:16]OFDProtocolAddRootSTLVToBuf [13:14:16]FM_MakeSignedData [13:14:16]FM_MakeSignedData [13:14:16]SAM_PROTO_SignData [13:14:16]wFMCommunicate request_size=4 [13:14:16]MH_SAM_APDU [13:14:16]CAPDU: 80 0D 01 02 [13:14:16]Write to MH i2c: E2 08 00 22 01 80 0D 01 02 00 00 00 00 9C [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:16]Read from MH i2c: E2 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 22 01 00 90 00 97 [13:14:16]RAPDU: 90 00 [13:14:16]wFMCommunicate OK [13:14:16]wFMCommunicate request_size=253 [13:14:16]MH_SAM_APDU [13:14:16]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 21 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 6E 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 73 00 00 00 F4 03 04 00 A7 69 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B0 C3 01 00 35 04 06 00 1B 7A 3E 44 02 C2 [13:14:16]Write to MH i2c: E2 00 01 23 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 21 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 6E 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 73 00 00 00 F4 03 04 00 A7 69 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B0 C3 01 00 35 04 06 00 1B 7A 3E 44 02 C2 00 00 6E [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:17]Read from MH i2c: E2 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: E2 03 00 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: E2 03 00 23 01 00 90 00 98 [13:14:17]RAPDU: 90 00 [13:14:17]wFMCommunicate OK [13:14:17]wFMCommunicate request_size=4 [13:14:17]MH_SAM_APDU [13:14:17]CAPDU: 80 0D 03 02 [13:14:17]Write to MH i2c: E2 08 00 24 01 80 0D 03 02 00 00 00 00 A0 [13:14:17]Write i2c OK [13:14:17]MH_I2C_Read... [13:14:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:17]Read from MH i2c: E2 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: E2 0B 00 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: E2 0B 00 24 01 00 94 D4 18 60 F6 FD 89 98 90 00 95 [13:14:17]RAPDU: 94 D4 18 60 F6 FD 89 98 90 00 [13:14:17]wFMCommunicate OK [13:14:17]SAM_PROTO_SignData done [13:14:17]FM_MakeSignedData done [13:14:17]CreateOFDProtocolMessage [13:14:17]wFMCommunicate request_size=4 [13:14:17]MH_SAM_APDU [13:14:17]CAPDU: 80 11 00 00 [13:14:17]Write to MH i2c: E2 08 00 25 01 80 11 00 00 00 00 00 00 A0 [13:14:17]Write i2c OK [13:14:17]MH_I2C_Read... [13:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:17]Read from MH i2c: E2 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: E2 17 00 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: E2 17 00 25 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EE [13:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:14:17]wFMCommunicate OK [13:14:17]CreateOFDProtocolMessage done [13:14:17]OFDSenderStorePacket 115632 [13:14:17]StoreOFDPacket docnum=115632 [13:14:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 77 7C 00 01 3B 1D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 21 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 6E 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 73 00 00 00 F4 03 04 00 A7 69 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B0 C3 01 00 35 04 06 00 1B 7A 3E 44 02 C2 94 D4 18 60 F6 FD 89 98 [13:14:17]CheckFolder [13:14:17]dirname=/storage/ofd_packets [13:14:17]CheckFolder done [13:14:17]ProducePacketName [13:14:17]name=ofd_packets/00115632 [13:14:17]NVStorageSaveData ofd_packets/00115632 [13:14:17]File name is /storage/ofd_packets/00115632 [13:14:17]Write 294 bytes [13:14:17]NVStorageSaveData done [13:14:17]OFDSenderStorePacket done [13:14:17]KKMCreateOFDPacket done [13:14:17]NVStorageSaveData kkm_last_timestamp [13:14:17]File name is /storage/kkm_last_timestamp [13:14:17]Write 4 bytes [13:14:17]NVStorageSaveData done [13:14:17]ExternCall_PrintAddStr [13:14:17]wPrintStart [13:14:17]Write to MH i2c: 01 00 00 26 01 27 [13:14:17]Write i2c OK [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: 01 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: 01 07 00 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 FF 0F 3C [13:14:17]RasterBufferAndPrint [13:14:17]line Счет N : (1)24617672 [13:14:17]line ИНН: 02508201610067 [13:14:17]line Контрольно-Кассовый Чек [13:14:17]line ПРОДАЖА [13:14:17]line ТРК (МРК, ГНК) : 54 [13:14:17]line Товар: 2710124130 [13:14:17]line SU-92 [13:14:17]line 8.660 * 69.30 [13:14:17]line = 600.14 [13:14:17]line НДС 12% НСП 1% [13:14:17]line > о реализуемом товаре [13:14:17]line ОКРУГЛЕНИЕ: -0.14 [13:14:17]line ИТОГО: 600.00 [13:14:17]line Внесено: 600.00 [13:14:17]line СДАЧА: 0.00 [13:14:17]line НСП 1% : 5.31 [13:14:17]line НДС 12% : 63.73 [13:14:17]line Наличными: 600.00 [13:14:17]line Безнал.: 0.00 [13:14:17]line Место: АЗС № 90 "Партнер Нефть" [13:14:17]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:14:17]line СНО: Общий режим [13:14:17]line Чек 115 23.09.2024 13:14 [13:14:17]line Смена: 472 ФФД: 1.0 [13:14:17]line ЗНМ: 0300000120 [13:14:17]line РНМ: 0000000000091831 [13:14:17]line Версия ККМ: 001 [13:14:17]line ФМ: 0000000000871830 [13:14:17]line ФД: 115632 [13:14:17]line ФПД: 30211844604610 [13:14:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T131415&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115632&fm=30211844604610&tin=02508201610067®Number=0000000000091831&sum=60000 [13:14:17]OFD Sender: Processing packet 115632 [packets to send 482, broken 481] [13:14:17]ProducePacketName [13:14:17]name=ofd_packets/00115632 [13:14:17]OFD Sender: To server: pG, [13:14:17]CommunicateWithHost lk.salyk.kg:30040 [13:14:17]ConnectInit lk.salyk.kg [13:14:17]written 0, free lines is 4095 [13:14:17]Connected sock=10 [13:14: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 38 33 30 08 01 00 00 77 7C 00 01 3B 1D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 21 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 6E 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 73 00 00 00 F4 03 04 00 A7 69 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B0 C3 01 00 35 04 06 00 1B 7A 3E 44 02 C2 94 D4 18 60 F6 FD 89 98 [13:14:18]Write to MH i2c: 01 00 00 50 01 51 [13:14:18]Write i2c OK [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: 01 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: 01 07 00 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: 01 07 00 50 01 00 00 00 00 00 63 0C C7 [13:14:18]RasterBufferAndPrint [13:14:18]line [13:14:18]line [13:14:18]line [13:14:18]line [13:14:18]line [13:14:18]written 0, free lines is 3175 [13:14:18]MH_Cut [13:14:18]Write to MH i2c: D1 01 00 57 01 01 2A [13:14:18]Write i2c OK [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: D1 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: D1 01 00 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: D1 01 00 57 01 00 29 [13:14:18]Write to MH i2c: 01 00 00 58 01 59 [13:14:18]Write i2c OK [13:14:18]MH_I2C_Read... [13:14:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 EB 93 47 00 65 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B0 C3 01 00 F4 03 04 00 EA 0E F1 66 B6 04 01 00 00 E7 0C 31 CD 1D 38 13 E0 [13:14:18]CommunicateWithHost err = 0 [13:14:18]CheckOFDResponse [13:14:18]1017 (14) - 77093643461234 [13:14:18]1041 (16) - 0000000000871830 [13:14:18]1040 (4) - 115632 [13:14:18]1012 (4) - 23.09.2024 06:47 [13:14:18]1206 (1) - 0 [13:14:18]OFD Sender: Remove packet 115632 [13:14:18]ProducePacketName [13:14:18]name=ofd_packets/00115632 [13:14:18]NVStorageDeleteData [13:14:18]OFD Sender: No OFD packet to send [13:14:19]*** Cut start [13:14:19]*** Partial cut [13:14:19]*** CUTSNS_PIN = 1 [13:14:19]*** CUTSNS_PIN = 0 [13:14:19]*** Brake cut motor [13:14:20]Read from MH i2c: 01 [13:14:20]MH_I2C_Read... [13:14:20]*** Stop cut motor [13:14:20]*** Cut end [13:14:20]Read from MH i2c: 01 07 00 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [13:14:20]process_action close_receipt done [13:14:20]requested_data is exist [13:14:20]produce_requested_data [13:14:20]requested_item fm.sn is exist - process it [13:14:20]wFMCommunicate request_size=4 [13:14:20]MH_SAM_APDU [13:14:20]CAPDU: 80 11 00 00 [13:14:20]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [13:14:20]Write i2c OK [13:14:20]MH_I2C_Read... [13:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:20]Read from MH i2c: E2 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 17 00 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 22 [13:14:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:14:20]wFMCommunicate OK [13:14:20]requested_item fd.num is exist - process it [13:14:20]SAM_PROTO_GetFieldsCounters [13:14:20]wFMCommunicate request_size=4 [13:14:20]MH_SAM_APDU [13:14:20]CAPDU: 80 13 00 00 [13:14:20]Write to MH i2c: E2 08 00 5A 01 80 13 00 00 00 00 00 00 D7 [13:14:20]Write i2c OK [13:14:20]MH_I2C_Read... [13:14:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:20]Read from MH i2c: E2 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 62 00 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 62 00 5A 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B0 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [13:14: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B0 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:20]wFMCommunicate OK [13:14:20]SAM_PROTO_GetFieldsCounters done [13:14:20]requested_item shift.num is exist - process it [13:14:20]requested_item shift.opened is exist - process it [13:14:20]req_shift_opened [13:14:20]FM_GetShiftState [13:14:20]SAM_PROTO_GetShiftState [13:14:20]wFMCommunicate request_size=4 [13:14:20]MH_SAM_APDU [13:14:20]CAPDU: 80 13 01 00 [13:14:20]Write to MH i2c: E2 08 00 5B 01 80 13 01 00 00 00 00 00 D9 [13:14:20]Write i2c OK [13:14:20]MH_I2C_Read... [13:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:20]Read from MH i2c: E2 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 0E 00 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 0E 00 5B 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1A [13:14:20]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:14:20]wFMCommunicate OK [13:14:20]SAM_PROTO_GetShiftState done [13:14:20]FM_GetShiftState done [13:14:20]req_shift_opened done [13:14:20]requested_item shift.open_date is exist - process it [13:14:20]req_shift_open_date [13:14:20]req_shift_open_date done [13:14:20]produce_requested_data done [13:14:20]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115632,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:14:20]process_action_free close_receipt [13:14:20]json_value_free [13:14:20]json_value_free done [13:14:20]process_json_proto returns [13:14:20]Send response to host [13:14:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115632,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:14:20]free response buf [13:14:20]execute_script done [13:14:20]execute_script returns [13:14:20]free content buf [13:14:20]Sock 9.Close socket [13:14:20]Sock 9.Thread stoped [13:14:23]OFD Sender: No OFD packet to send [13:14:28]accept exits with 7 [13:14:28]New connection [13:14:28]New thread 3066879332 created [13:14:28]Thread 3067022692 joined [13:14:28]Waiting for new connection... [13:14:28] Sock 7.Parse request [13:14:28]Sock 7.Check first char [13:14:28]Sock 7.First char is OK [13:14:28]request: POST /json_proto HTTP/1.0 [13:14:28]Method: POST [13:14:28]URL: /json_proto [13:14:28]Method is POST - this is cgi request [13:14:28]url: /json_proto [13:14:28]query_string will be loaded in cgi processing [13:14:28]execute_cgi json_proto POST (null) [13:14:28]execute_cgi path=json_proto method=POST [13:14:28]POST find Content-Length [13:14:28]Host: 172.17.41.136:8080 [13:14:28]Content-Length: 660 [13:14:28]Content-Type: application/json [13:14:28] [13:14:28]POST finish read [13:14:28]Found Content-Length = 660 [13:14:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:28]execute_script... [13:14: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)24617673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:28]POST & json_proto [13:14:28]process_json_proto [13:14:28]json parsed OK: [13:14:28]protocol is kg_v1.0 [13:14:28]action value=close_receipt [13:14:28]process_action close_receipt [13:14:28]cmd_close_receipt [13:14:28]MH_GetDate [13:14:28]Write to MH i2c: F0 00 00 5C 01 4C [13:14:28]Write i2c OK [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: F0 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: F0 09 00 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: F0 09 00 5C 01 00 B4 69 F1 66 1B D0 5A 64 72 [13:14:28]GetLastDocTimeStamp 1727097255 [13:14:28]current date 1727097268 [13:14:28]FM_GetShiftState [13:14:28]SAM_PROTO_GetShiftState [13:14:28]wFMCommunicate request_size=4 [13:14:28]MH_SAM_APDU [13:14:28]CAPDU: 80 13 01 00 [13:14:28]Write to MH i2c: E2 08 00 5D 01 80 13 01 00 00 00 00 00 DB [13:14:28]Write i2c OK [13:14:28]MH_I2C_Read... [13:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:28]Read from MH i2c: E2 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: E2 0E 00 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: E2 0E 00 5D 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1C [13:14:28]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:14:28]wFMCommunicate OK [13:14:28]SAM_PROTO_GetShiftState done [13:14:28]FM_GetShiftState done [13:14:28]opened in 1727052070 [13:14:28]opened+sec_in_day 1727138470 [13:14:28]quantity*price = 50034 [13:14:28]sum+1 = 50036 [13:14:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 116 23.09.2024 13:14 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115633 ФПД: 71091240538337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T131428&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115633&fm=71091240538337&tin=02508201610067®Number=0000000000091831&sum=50000 [13:14:29]StoreToDocumentArchive [13:14:29]shift 472 fd 115633 [13:14:29]save to /storage/0472/doc_00115633 [13:14:29]save last doc name /storage/0472/doc_00115633 to /storage/kkm_last_doc_name [13:14:29]save OK [13:14:29]Clear old archive folders... [13:14:29]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:14:29]tlvbuf is 017B2400 [13:14:29]SAM_PROTO_ClearQueue [13:14:29]wFMCommunicate request_size=4 [13:14:29]MH_SAM_APDU [13:14:29]CAPDU: 80 09 00 00 [13:14:29]Write to MH i2c: E2 08 00 6A 01 80 09 00 00 00 00 00 00 DD [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:29]Read from MH i2c: E2 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 03 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 03 00 6A 01 00 90 00 DF [13:14:29]RAPDU: 90 00 [13:14:29]wFMCommunicate OK [13:14:29]SAM_PROTO_ClearQueue done [13:14:29]KKMCreateOFDPacket [13:14:29]OFDProtocolAddRootSTLVToBuf [13:14:29]FM_MakeSignedData [13:14:29]FM_MakeSignedData [13:14:29]SAM_PROTO_SignData [13:14:29]wFMCommunicate request_size=4 [13:14:29]MH_SAM_APDU [13:14:29]CAPDU: 80 0D 01 02 [13:14:29]Write to MH i2c: E2 08 00 6B 01 80 0D 01 02 00 00 00 00 E5 [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:29]Read from MH i2c: E2 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 03 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 03 00 6B 01 00 90 00 E0 [13:14:29]RAPDU: 90 00 [13:14:29]wFMCommunicate OK [13:14:29]wFMCommunicate request_size=253 [13:14:29]MH_SAM_APDU [13:14:29]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B4 69 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B1 C3 01 00 35 04 06 00 40 A8 38 23 90 E1 [13:14:29]Write to MH i2c: E2 00 01 6C 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B4 69 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B1 C3 01 00 35 04 06 00 40 A8 38 23 90 E1 00 00 E9 [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:29]Read from MH i2c: E2 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 03 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 03 00 6C 01 00 90 00 E1 [13:14:29]RAPDU: 90 00 [13:14:29]wFMCommunicate OK [13:14:29]wFMCommunicate request_size=4 [13:14:29]MH_SAM_APDU [13:14:29]CAPDU: 80 0D 03 02 [13:14:29]Write to MH i2c: E2 08 00 6D 01 80 0D 03 02 00 00 00 00 E9 [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:29]Read from MH i2c: E2 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 0B 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 0B 00 6D 01 00 49 3A 9D F2 0F 7E 48 E9 90 00 BA [13:14:29]RAPDU: 49 3A 9D F2 0F 7E 48 E9 90 00 [13:14:29]wFMCommunicate OK [13:14:29]SAM_PROTO_SignData done [13:14:29]FM_MakeSignedData done [13:14:29]CreateOFDProtocolMessage [13:14:29]wFMCommunicate request_size=4 [13:14:29]MH_SAM_APDU [13:14:29]CAPDU: 80 11 00 00 [13:14:29]Write to MH i2c: E2 08 00 6E 01 80 11 00 00 00 00 00 00 E9 [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:29]Read from MH i2c: E2 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 17 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 17 00 6E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 37 [13:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:14:29]wFMCommunicate OK [13:14:29]CreateOFDProtocolMessage done [13:14:29]OFDSenderStorePacket 115633 [13:14:29]StoreOFDPacket docnum=115633 [13:14:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 01 A0 00 01 75 B5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B4 69 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B1 C3 01 00 35 04 06 00 40 A8 38 23 90 E1 49 3A 9D F2 0F 7E 48 E9 [13:14:29]CheckFolder [13:14:29]dirname=/storage/ofd_packets [13:14:29]CheckFolder done [13:14:29]ProducePacketName [13:14:29]name=ofd_packets/00115633 [13:14:29]NVStorageSaveData ofd_packets/00115633 [13:14:29]File name is /storage/ofd_packets/00115633 [13:14:29]Write 294 bytes [13:14:29]NVStorageSaveData done [13:14:29]OFDSenderStorePacket done [13:14:29]KKMCreateOFDPacket done [13:14:29]NVStorageSaveData kkm_last_timestamp [13:14:29]File name is /storage/kkm_last_timestamp [13:14:29]Write 4 bytes [13:14:29]NVStorageSaveData done [13:14:29]ExternCall_PrintAddStr [13:14:29]wPrintStart [13:14:29]Write to MH i2c: 01 00 00 6F 01 70 [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: 01 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: 01 07 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: 01 07 00 6F 01 00 00 00 00 00 FF 0F 85 [13:14:29]RasterBufferAndPrint [13:14:29]line Счет N : (1)24617673 [13:14:29]line ИНН: 02508201610067 [13:14:29]line Контрольно-Кассовый Чек [13:14:29]line ПРОДАЖА [13:14:29]line ТРК (МРК, ГНК) : 34 [13:14:29]line Товар: 2710124130 [13:14:29]line SU-92 [13:14:29]line 7.220 * 69.30 [13:14:29]line = 500.35 [13:14:29]line НДС 12% НСП 1% [13:14:29]line > о реализуемом товаре [13:14:29]line ОКРУГЛЕНИЕ: -0.35 [13:14:29]line ИТОГО: 500.00 [13:14:29]line Внесено: 500.00 [13:14:29]line СДАЧА: 0.00 [13:14:29]line НСП 1% : 4.43 [13:14:29]line НДС 12% : 53.13 [13:14:29]line Наличными: 500.00 [13:14:29]line Безнал.: 0.00 [13:14:29]line Место: АЗС № 90 "Партнер Нефть" [13:14:29]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:14:29]line СНО: Общий режим [13:14:29]line Чек 116 23.09.2024 13:14 [13:14:29]line Смена: 472 ФФД: 1.0 [13:14:29]line ЗНМ: 0300000120 [13:14:29]line РНМ: 0000000000091831 [13:14:29]line Версия ККМ: 001 [13:14:29]line ФМ: 0000000000871830 [13:14:29]line ФД: 115633 [13:14:29]line ФПД: 71091240538337 [13:14:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T131428&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115633&fm=71091240538337&tin=02508201610067®Number=0000000000091831&sum=50000 [13:14:30]OFD Sender: Processing packet 115633 [packets to send 482, broken 481] [13:14:30]ProducePacketName [13:14:30]name=ofd_packets/00115633 [13:14:30]OFD Sender: To server: pG, [13:14:30]CommunicateWithHost lk.salyk.kg:30040 [13:14:30]ConnectInit lk.salyk.kg [13:14:30]written 0, free lines is 4095 [13:14:30]Connected sock=9 [13:14: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 38 33 30 08 01 00 00 01 A0 00 01 75 B5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B4 69 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B1 C3 01 00 35 04 06 00 40 A8 38 23 90 E1 49 3A 9D F2 0F 7E 48 E9 [13:14:30]Write to MH i2c: 01 00 00 99 01 9A [13:14:30]Write i2c OK [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: 01 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: 01 07 00 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: 01 07 00 99 01 00 00 00 00 00 6F 0C 1C [13:14:30]RasterBufferAndPrint [13:14:30]line [13:14:30]line [13:14:30]line [13:14:30]line [13:14:30]line [13:14:30]written 0, free lines is 3188 [13:14:30]MH_Cut [13:14:30]Write to MH i2c: D1 01 00 A0 01 01 73 [13:14:30]Write i2c OK [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: D1 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: D1 01 00 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: D1 01 00 A0 01 00 72 [13:14:30]Write to MH i2c: 01 00 00 A1 01 A2 [13:14:30]Write i2c OK [13:14:30]MH_I2C_Read... [13:14:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 73 9D 47 00 3A 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 38 33 30 10 04 04 00 B1 C3 01 00 F4 03 04 00 F6 0E F1 66 B6 04 01 00 00 E2 8F F4 C9 D6 C9 2F 69 [13:14:30]CommunicateWithHost err = 0 [13:14:30]CheckOFDResponse [13:14:30]1017 (14) - 77093643461234 [13:14:30]1041 (16) - 0000000000871830 [13:14:30]1040 (4) - 115633 [13:14:30]1012 (4) - 23.09.2024 06:47 [13:14:30]1206 (1) - 0 [13:14:30]OFD Sender: Remove packet 115633 [13:14:30]ProducePacketName [13:14:30]name=ofd_packets/00115633 [13:14:30]NVStorageDeleteData [13:14:31]OFD Sender: No OFD packet to send [13:14:31]*** Cut start [13:14:31]*** Partial cut [13:14:31]*** CUTSNS_PIN = 1 [13:14:31]*** CUTSNS_PIN = 0 [13:14:32]*** Brake cut motor [13:14:32]Read from MH i2c: 01 [13:14:32]MH_I2C_Read... [13:14:32]*** Stop cut motor [13:14:32]*** Cut end [13:14:32]Read from MH i2c: 01 07 00 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: 01 07 00 A1 01 00 00 00 00 00 FF 0F B7 [13:14:32]process_action close_receipt done [13:14:32]requested_data is exist [13:14:32]produce_requested_data [13:14:32]requested_item fm.sn is exist - process it [13:14:32]wFMCommunicate request_size=4 [13:14:32]MH_SAM_APDU [13:14:32]CAPDU: 80 11 00 00 [13:14:32]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [13:14:32]Write i2c OK [13:14:32]MH_I2C_Read... [13:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:32]Read from MH i2c: E2 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 17 00 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6B [13:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:14:32]wFMCommunicate OK [13:14:32]requested_item fd.num is exist - process it [13:14:32]SAM_PROTO_GetFieldsCounters [13:14:32]wFMCommunicate request_size=4 [13:14:32]MH_SAM_APDU [13:14:32]CAPDU: 80 13 00 00 [13:14:32]Write to MH i2c: E2 08 00 A3 01 80 13 00 00 00 00 00 00 20 [13:14:32]Write i2c OK [13:14:32]MH_I2C_Read... [13:14:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:32]Read from MH i2c: E2 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 62 00 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 62 00 A3 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B1 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [13:14: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B1 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:32]wFMCommunicate OK [13:14:32]SAM_PROTO_GetFieldsCounters done [13:14:32]requested_item shift.num is exist - process it [13:14:32]requested_item shift.opened is exist - process it [13:14:32]req_shift_opened [13:14:32]FM_GetShiftState [13:14:32]SAM_PROTO_GetShiftState [13:14:32]wFMCommunicate request_size=4 [13:14:32]MH_SAM_APDU [13:14:32]CAPDU: 80 13 01 00 [13:14:32]Write to MH i2c: E2 08 00 A4 01 80 13 01 00 00 00 00 00 22 [13:14:32]Write i2c OK [13:14:32]MH_I2C_Read... [13:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:32]Read from MH i2c: E2 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 0E 00 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 0E 00 A4 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 63 [13:14:32]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:14:32]wFMCommunicate OK [13:14:32]SAM_PROTO_GetShiftState done [13:14:32]FM_GetShiftState done [13:14:32]req_shift_opened done [13:14:32]requested_item shift.open_date is exist - process it [13:14:32]req_shift_open_date [13:14:32]req_shift_open_date done [13:14:32]produce_requested_data done [13:14:32]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115633,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:14:32]process_action_free close_receipt [13:14:32]json_value_free [13:14:32]json_value_free done [13:14:32]process_json_proto returns [13:14:32]Send response to host [13:14:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115633,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:14:32]free response buf [13:14:32]execute_script done [13:14:32]execute_script returns [13:14:32]free content buf [13:14:32]Sock 7.Close socket [13:14:32]Sock 7.Thread stoped [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:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:12]accept exits with 10 [13:16:12]New connection [13:16:12]New thread 3067022692 created [13:16:12]Thread 3066879332 joined [13:16:12]Waiting for new connection... [13:16:12] Sock 10.Parse request [13:16:12]Sock 10.Check first char [13:16:12]Sock 10.First char is OK [13:16:12]request: POST /json_proto HTTP/1.0 [13:16:12]Method: POST [13:16:12]URL: /json_proto [13:16:12]Method is POST - this is cgi request [13:16:12]url: /json_proto [13:16:12]query_string will be loaded in cgi processing [13:16:12]execute_cgi json_proto POST (null) [13:16:12]execute_cgi path=json_proto method=POST [13:16:12]POST find Content-Length [13:16:12]Host: 172.17.41.136:8080 [13:16:12]Content-Length: 665 [13:16:12]Content-Type: application/json [13:16:12] [13:16:12]POST finish read [13:16:12]Found Content-Length = 665 [13:16:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 17.320, "sum" : 1200.28, "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" ] } } [13:16:12]execute_script... [13:16: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)24617674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 17.320, "sum" : 1200.28, "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" ] } } [13:16:12]POST & json_proto [13:16:12]process_json_proto [13:16:12]json parsed OK: [13:16:12]protocol is kg_v1.0 [13:16:12]action value=close_receipt [13:16:12]process_action close_receipt [13:16:12]cmd_close_receipt [13:16:12]MH_GetDate [13:16:12]Write to MH i2c: F0 00 00 A5 01 95 [13:16:12]Write i2c OK [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: F0 [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: F0 09 00 [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: F0 09 00 A5 01 00 1D 6A F1 66 1B D0 5A 64 25 [13:16:12]GetLastDocTimeStamp 1727097268 [13:16:12]current date 1727097373 [13:16:12]FM_GetShiftState [13:16:12]SAM_PROTO_GetShiftState [13:16:12]wFMCommunicate request_size=4 [13:16:12]MH_SAM_APDU [13:16:12]CAPDU: 80 13 01 00 [13:16:12]Write to MH i2c: E2 08 00 A6 01 80 13 01 00 00 00 00 00 24 [13:16:12]Write i2c OK [13:16:12]MH_I2C_Read... [13:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:12]Read from MH i2c: E2 [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: E2 0E 00 [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: E2 0E 00 A6 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 65 [13:16:12]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:16:12]wFMCommunicate OK [13:16:12]SAM_PROTO_GetShiftState done [13:16:12]FM_GetShiftState done [13:16:12]opened in 1727052070 [13:16:12]opened+sec_in_day 1727138470 [13:16:12]quantity*price = 120027 [13:16:12]sum+1 = 120029 [13:16:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.46 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 117 23.09.2024 13:16 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115634 ФПД: 248211324881359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T131613&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115634&fm=248211324881359&tin=02508201610067®Number=0000000000091831&sum=120000 [13:16:14]StoreToDocumentArchive [13:16:14]shift 472 fd 115634 [13:16:14]save to /storage/0472/doc_00115634 [13:16:14]save last doc name /storage/0472/doc_00115634 to /storage/kkm_last_doc_name [13:16:14]save OK [13:16:14]Clear old archive folders... [13:16:14]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:16:14]tlvbuf is B6EB9C90 [13:16:14]SAM_PROTO_ClearQueue [13:16:14]wFMCommunicate request_size=4 [13:16:14]MH_SAM_APDU [13:16:14]CAPDU: 80 09 00 00 [13:16:14]Write to MH i2c: E2 08 00 B3 01 80 09 00 00 00 00 00 00 26 [13:16:14]Write i2c OK [13:16:14]MH_I2C_Read... [13:16:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:14]Read from MH i2c: E2 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: E2 03 00 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: E2 03 00 B3 01 00 90 00 28 [13:16:14]RAPDU: 90 00 [13:16:14]wFMCommunicate OK [13:16:14]SAM_PROTO_ClearQueue done [13:16:14]KKMCreateOFDPacket [13:16:14]OFDProtocolAddRootSTLVToBuf [13:16:14]FM_MakeSignedData [13:16:14]FM_MakeSignedData [13:16:14]SAM_PROTO_SignData [13:16:14]wFMCommunicate request_size=4 [13:16:14]MH_SAM_APDU [13:16:14]CAPDU: 80 0D 01 02 [13:16:14]Write to MH i2c: E2 08 00 B4 01 80 0D 01 02 00 00 00 00 2E [13:16:14]Write i2c OK [13:16:14]MH_I2C_Read... [13:16:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:14]Read from MH i2c: E2 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: E2 03 00 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: E2 03 00 B4 01 00 90 00 29 [13:16:14]RAPDU: 90 00 [13:16:14]wFMCommunicate OK [13:16:14]wFMCommunicate request_size=253 [13:16:14]MH_SAM_APDU [13:16:14]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 A8 43 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 DC 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 CA 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 75 00 00 00 F4 03 04 00 1D 6A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B2 C3 01 00 35 04 06 00 E1 BF 33 D9 49 CF [13:16:14]Write to MH i2c: E2 00 01 B5 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 A8 43 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 DC 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 CA 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 75 00 00 00 F4 03 04 00 1D 6A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B2 C3 01 00 35 04 06 00 E1 BF 33 D9 49 CF 00 00 5C [13:16:14]Write i2c OK [13:16:14]MH_I2C_Read... [13:16:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:14]Read from MH i2c: E2 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: E2 03 00 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: E2 03 00 B5 01 00 90 00 2A [13:16:14]RAPDU: 90 00 [13:16:14]wFMCommunicate OK [13:16:14]wFMCommunicate request_size=4 [13:16:14]MH_SAM_APDU [13:16:14]CAPDU: 80 0D 03 02 [13:16:14]Write to MH i2c: E2 08 00 B6 01 80 0D 03 02 00 00 00 00 32 [13:16:14]Write i2c OK [13:16:14]MH_I2C_Read... [13:16:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:14]Read from MH i2c: E2 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: E2 0B 00 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: E2 0B 00 B6 01 00 66 44 07 0C 58 E7 9A B0 90 00 79 [13:16:14]RAPDU: 66 44 07 0C 58 E7 9A B0 90 00 [13:16:14]wFMCommunicate OK [13:16:14]SAM_PROTO_SignData done [13:16:14]FM_MakeSignedData done [13:16:14]CreateOFDProtocolMessage [13:16:14]wFMCommunicate request_size=4 [13:16:14]MH_SAM_APDU [13:16:14]CAPDU: 80 11 00 00 [13:16:14]Write to MH i2c: E2 08 00 B7 01 80 11 00 00 00 00 00 00 32 [13:16:14]Write i2c OK [13:16:14]MH_I2C_Read... [13:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:14]Read from MH i2c: E2 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: E2 17 00 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: E2 17 00 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 80 [13:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:16:14]wFMCommunicate OK [13:16:14]CreateOFDProtocolMessage done [13:16:14]OFDSenderStorePacket 115634 [13:16:14]StoreOFDPacket docnum=115634 [13:16:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 E1 23 00 01 76 D2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 A8 43 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 DC 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 CA 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 75 00 00 00 F4 03 04 00 1D 6A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B2 C3 01 00 35 04 06 00 E1 BF 33 D9 49 CF 66 44 07 0C 58 E7 9A B0 [13:16:14]CheckFolder [13:16:14]dirname=/storage/ofd_packets [13:16:14]CheckFolder done [13:16:14]ProducePacketName [13:16:14]name=ofd_packets/00115634 [13:16:14]NVStorageSaveData ofd_packets/00115634 [13:16:14]File name is /storage/ofd_packets/00115634 [13:16:14]Write 294 bytes [13:16:14]NVStorageSaveData done [13:16:14]OFDSenderStorePacket done [13:16:14]KKMCreateOFDPacket done [13:16:14]NVStorageSaveData kkm_last_timestamp [13:16:14]File name is /storage/kkm_last_timestamp [13:16:14]Write 4 bytes [13:16:14]NVStorageSaveData done [13:16:14]ExternCall_PrintAddStr [13:16:14]wPrintStart [13:16:14]Write to MH i2c: 01 00 00 B8 01 B9 [13:16:14]Write i2c OK [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: 01 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: 01 07 00 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: 01 07 00 B8 01 00 00 00 00 00 FF 0F CE [13:16:14]RasterBufferAndPrint [13:16:14]line Счет N : (1)24617674 [13:16:14]line ИНН: 02508201610067 [13:16:14]line Контрольно-Кассовый Чек [13:16:14]line ПРОДАЖА [13:16:14]line ТРК (МРК, ГНК) : 44 [13:16:14]line Товар: 2710124130 [13:16:14]line SU-92 [13:16:14]line 17.320 * 69.30 [13:16:14]line = 1200.28 [13:16:14]line НДС 12% НСП 1% [13:16:14]line > о реализуемом товаре [13:16:14]line ОКРУГЛЕНИЕ: -0.28 [13:16:14]line ИТОГО: 1200.00 [13:16:14]line Внесено: 1200.00 [13:16:14]line СДАЧА: 0.00 [13:16:14]line НСП 1% : 10.62 [13:16:14]line НДС 12% : 127.46 [13:16:14]line Наличными: 1200.00 [13:16:14]line Безнал.: 0.00 [13:16:14]line Место: АЗС № 90 "Партнер Нефть" [13:16:14]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:16:14]line СНО: Общий режим [13:16:14]line Чек 117 23.09.2024 13:16 [13:16:14]line Смена: 472 ФФД: 1.0 [13:16:14]line ЗНМ: 0300000120 [13:16:14]line РНМ: 0000000000091831 [13:16:14]line Версия ККМ: 001 [13:16:14]line ФМ: 0000000000871830 [13:16:14]line ФД: 115634 [13:16:14]line ФПД: 248211324881359 [13:16:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T131613&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115634&fm=248211324881359&tin=02508201610067®Number=0000000000091831&sum=120000 [13:16:14]OFD Sender: Processing packet 115634 [packets to send 482, broken 481] [13:16:14]ProducePacketName [13:16:14]name=ofd_packets/00115634 [13:16:14]OFD Sender: To server: pG, [13:16:14]CommunicateWithHost lk.salyk.kg:30040 [13:16:14]ConnectInit lk.salyk.kg [13:16:14]written 0, free lines is 4095 [13:16:15]Connected sock=9 [13:16: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 38 33 30 08 01 00 00 E1 23 00 01 76 D2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 A8 43 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 DC 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 CA 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 75 00 00 00 F4 03 04 00 1D 6A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B2 C3 01 00 35 04 06 00 E1 BF 33 D9 49 CF 66 44 07 0C 58 E7 9A B0 [13:16:15]Write to MH i2c: 01 00 00 E2 01 E3 [13:16:15]Write i2c OK [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: 01 [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: 01 07 00 [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: 01 07 00 E2 01 00 00 00 00 00 73 0C 69 [13:16:15]RasterBufferAndPrint [13:16:15]line [13:16:15]line [13:16:15]line [13:16:15]line [13:16:15]line [13:16:15]written 0, free lines is 3190 [13:16:15]MH_Cut [13:16:15]Write to MH i2c: D1 01 00 E9 01 01 BC [13:16:15]Write i2c OK [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: D1 [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: D1 01 00 [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: D1 01 00 E9 01 00 BB [13:16:15]Write to MH i2c: 01 00 00 EA 01 EB [13:16:15]Write i2c OK [13:16:15]MH_I2C_Read... [13:16:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0A B2 47 00 EC 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 38 33 30 10 04 04 00 B2 C3 01 00 F4 03 04 00 5F 0F F1 66 B6 04 01 00 00 A8 7F F8 26 2C 79 42 9D [13:16:15]CommunicateWithHost err = 0 [13:16:15]CheckOFDResponse [13:16:15]1017 (14) - 77093643461234 [13:16:15]1041 (16) - 0000000000871830 [13:16:15]1040 (4) - 115634 [13:16:15]1012 (4) - 23.09.2024 06:49 [13:16:15]1206 (1) - 0 [13:16:15]OFD Sender: Remove packet 115634 [13:16:15]ProducePacketName [13:16:15]name=ofd_packets/00115634 [13:16:15]NVStorageDeleteData [13:16:15]OFD Sender: No OFD packet to send [13:16:16]*** Cut start [13:16:16]*** Partial cut [13:16:16]*** CUTSNS_PIN = 1 [13:16:16]*** CUTSNS_PIN = 0 [13:16:16]*** Brake cut motor [13:16:17]Read from MH i2c: 01 [13:16:17]MH_I2C_Read... [13:16:17]*** Stop cut motor [13:16:17]*** Cut end [13:16:17]Read from MH i2c: 01 07 00 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: 01 07 00 EA 01 00 00 00 00 00 FF 0F 00 [13:16:17]process_action close_receipt done [13:16:17]requested_data is exist [13:16:17]produce_requested_data [13:16:17]requested_item fm.sn is exist - process it [13:16:17]wFMCommunicate request_size=4 [13:16:17]MH_SAM_APDU [13:16:17]CAPDU: 80 11 00 00 [13:16:17]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [13:16:17]Write i2c OK [13:16:17]MH_I2C_Read... [13:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:17]Read from MH i2c: E2 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 17 00 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B4 [13:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:16:17]wFMCommunicate OK [13:16:17]requested_item fd.num is exist - process it [13:16:17]SAM_PROTO_GetFieldsCounters [13:16:17]wFMCommunicate request_size=4 [13:16:17]MH_SAM_APDU [13:16:17]CAPDU: 80 13 00 00 [13:16:17]Write to MH i2c: E2 08 00 EC 01 80 13 00 00 00 00 00 00 69 [13:16:17]Write i2c OK [13:16:17]MH_I2C_Read... [13:16:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:17]Read from MH i2c: E2 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 62 00 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 62 00 EC 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B2 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [13:16:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B2 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:17]wFMCommunicate OK [13:16:17]SAM_PROTO_GetFieldsCounters done [13:16:17]requested_item shift.num is exist - process it [13:16:17]requested_item shift.opened is exist - process it [13:16:17]req_shift_opened [13:16:17]FM_GetShiftState [13:16:17]SAM_PROTO_GetShiftState [13:16:17]wFMCommunicate request_size=4 [13:16:17]MH_SAM_APDU [13:16:17]CAPDU: 80 13 01 00 [13:16:17]Write to MH i2c: E2 08 00 ED 01 80 13 01 00 00 00 00 00 6B [13:16:17]Write i2c OK [13:16:17]MH_I2C_Read... [13:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:17]Read from MH i2c: E2 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 0E 00 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: E2 0E 00 ED 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 AC [13:16:17]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:16:17]wFMCommunicate OK [13:16:17]SAM_PROTO_GetShiftState done [13:16:17]FM_GetShiftState done [13:16:17]req_shift_opened done [13:16:17]requested_item shift.open_date is exist - process it [13:16:17]req_shift_open_date [13:16:17]req_shift_open_date done [13:16:17]produce_requested_data done [13:16:17]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115634,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:16:17]process_action_free close_receipt [13:16:17]json_value_free [13:16:17]json_value_free done [13:16:17]process_json_proto returns [13:16:17]Send response to host [13:16:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115634,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:16:17]free response buf [13:16:17]execute_script done [13:16:17]execute_script returns [13:16:17]free content buf [13:16:17]Sock 10.Close socket [13:16:17]Sock 10.Thread stoped [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]accept exits with 7 [13:16:35]New connection [13:16:35]New thread 3066879332 created [13:16:35]Thread 3067022692 joined [13:16:35]Waiting for new connection... [13:16:35] Sock 7.Parse request [13:16:35]Sock 7.Check first char [13:16:35]Sock 7.First char is OK [13:16:35]request: POST /json_proto HTTP/1.0 [13:16:35]Method: POST [13:16:35]URL: /json_proto [13:16:35]Method is POST - this is cgi request [13:16:35]url: /json_proto [13:16:35]query_string will be loaded in cgi processing [13:16:35]execute_cgi json_proto POST (null) [13:16:35]execute_cgi path=json_proto method=POST [13:16:35]POST find Content-Length [13:16:35]Host: 172.17.41.136:8080 [13:16:35]Content-Length: 660 [13:16:35]Content-Type: application/json [13:16:35] [13:16:35]POST finish read [13:16:35]Found Content-Length = 660 [13:16:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 5.780, "sum" : 400.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:35]execute_script... [13:16: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)24617675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 5.780, "sum" : 400.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:35]POST & json_proto [13:16:35]process_json_proto [13:16:35]json parsed OK: [13:16:35]protocol is kg_v1.0 [13:16:35]action value=close_receipt [13:16:35]process_action close_receipt [13:16:35]cmd_close_receipt [13:16:35]MH_GetDate [13:16:35]Write to MH i2c: F0 00 00 EE 01 DE [13:16:35]Write i2c OK [13:16:35]MH_I2C_Read... [13:16:35]Read from MH i2c: F0 [13:16:35]MH_I2C_Read... [13:16:35]Read from MH i2c: F0 09 00 [13:16:35]MH_I2C_Read... [13:16:35]Read from MH i2c: F0 09 00 EE 01 00 33 6A F1 66 1B D0 5A 64 84 [13:16:35]GetLastDocTimeStamp 1727097373 [13:16:35]current date 1727097395 [13:16:35]FM_GetShiftState [13:16:35]SAM_PROTO_GetShiftState [13:16:35]wFMCommunicate request_size=4 [13:16:35]MH_SAM_APDU [13:16:35]CAPDU: 80 13 01 00 [13:16:35]Write to MH i2c: E2 08 00 EF 01 80 13 01 00 00 00 00 00 6D [13:16:35]Write i2c OK [13:16:35]MH_I2C_Read... [13:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:35]Read from MH i2c: E2 [13:16:35]MH_I2C_Read... [13:16:35]Read from MH i2c: E2 0E 00 [13:16:35]MH_I2C_Read... [13:16:35]Read from MH i2c: E2 0E 00 EF 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 AE [13:16:35]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:16:35]wFMCommunicate OK [13:16:35]SAM_PROTO_GetShiftState done [13:16:35]FM_GetShiftState done [13:16:35]opened in 1727052070 [13:16:35]opened+sec_in_day 1727138470 [13:16:35]quantity*price = 40055 [13:16:35]sum+1 = 40056 [13:16:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 118 23.09.2024 13:16 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115635 ФПД: 17999217495510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T131635&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115635&fm=17999217495510&tin=02508201610067®Number=0000000000091831&sum=40000 [13:16:36]StoreToDocumentArchive [13:16:36]shift 472 fd 115635 [13:16:36]save to /storage/0472/doc_00115635 [13:16:36]save last doc name /storage/0472/doc_00115635 to /storage/kkm_last_doc_name [13:16:36]save OK [13:16:36]Clear old archive folders... [13:16:36]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:16:36]tlvbuf is 017A4730 [13:16:36]SAM_PROTO_ClearQueue [13:16:36]wFMCommunicate request_size=4 [13:16:36]MH_SAM_APDU [13:16:36]CAPDU: 80 09 00 00 [13:16:36]Write to MH i2c: E2 08 00 FC 01 80 09 00 00 00 00 00 00 6F [13:16:36]Write i2c OK [13:16:36]MH_I2C_Read... [13:16:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:36]Read from MH i2c: E2 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: E2 03 00 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: E2 03 00 FC 01 00 90 00 71 [13:16:36]RAPDU: 90 00 [13:16:36]wFMCommunicate OK [13:16:36]SAM_PROTO_ClearQueue done [13:16:36]KKMCreateOFDPacket [13:16:36]OFDProtocolAddRootSTLVToBuf [13:16:36]FM_MakeSignedData [13:16:36]FM_MakeSignedData [13:16:36]SAM_PROTO_SignData [13:16:36]wFMCommunicate request_size=4 [13:16:36]MH_SAM_APDU [13:16:36]CAPDU: 80 0D 01 02 [13:16:36]Write to MH i2c: E2 08 00 FD 01 80 0D 01 02 00 00 00 00 77 [13:16:36]Write i2c OK [13:16:36]MH_I2C_Read... [13:16:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:36]Read from MH i2c: E2 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: E2 03 00 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: E2 03 00 FD 01 00 90 00 72 [13:16:36]RAPDU: 90 00 [13:16:36]wFMCommunicate OK [13:16:36]wFMCommunicate request_size=253 [13:16:36]MH_SAM_APDU [13:16:36]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 77 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 9E 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 76 00 00 00 F4 03 04 00 33 6A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B3 C3 01 00 35 04 06 00 10 5E C4 F7 0D D6 [13:16:36]Write to MH i2c: E2 00 01 FE 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 77 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 9E 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 76 00 00 00 F4 03 04 00 33 6A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B3 C3 01 00 35 04 06 00 10 5E C4 F7 0D D6 00 00 A0 [13:16:36]Write i2c OK [13:16:36]MH_I2C_Read... [13:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:36]Read from MH i2c: E2 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: E2 03 00 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: E2 03 00 FE 01 00 90 00 73 [13:16:36]RAPDU: 90 00 [13:16:36]wFMCommunicate OK [13:16:36]wFMCommunicate request_size=4 [13:16:36]MH_SAM_APDU [13:16:36]CAPDU: 80 0D 03 02 [13:16:36]Write to MH i2c: E2 08 00 FF 01 80 0D 03 02 00 00 00 00 7B [13:16:36]Write i2c OK [13:16:36]MH_I2C_Read... [13:16:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:36]Read from MH i2c: E2 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: E2 0B 00 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: E2 0B 00 FF 01 00 4B F2 8E 00 90 B2 49 7C 90 00 4E [13:16:36]RAPDU: 4B F2 8E 00 90 B2 49 7C 90 00 [13:16:36]wFMCommunicate OK [13:16:36]SAM_PROTO_SignData done [13:16:36]FM_MakeSignedData done [13:16:36]CreateOFDProtocolMessage [13:16:36]wFMCommunicate request_size=4 [13:16:36]MH_SAM_APDU [13:16:36]CAPDU: 80 11 00 00 [13:16:36]Write to MH i2c: E2 08 00 00 02 80 11 00 00 00 00 00 00 7C [13:16:36]Write i2c OK [13:16:36]MH_I2C_Read... [13:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:36]Read from MH i2c: E2 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: E2 17 00 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: E2 17 00 00 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CA [13:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:16:36]wFMCommunicate OK [13:16:36]CreateOFDProtocolMessage done [13:16:36]OFDSenderStorePacket 115635 [13:16:36]StoreOFDPacket docnum=115635 [13:16:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 6B 66 00 01 0D E9 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 77 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 9E 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 76 00 00 00 F4 03 04 00 33 6A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B3 C3 01 00 35 04 06 00 10 5E C4 F7 0D D6 4B F2 8E 00 90 B2 49 7C [13:16:36]CheckFolder [13:16:36]dirname=/storage/ofd_packets [13:16:36]CheckFolder done [13:16:36]ProducePacketName [13:16:36]name=ofd_packets/00115635 [13:16:36]NVStorageSaveData ofd_packets/00115635 [13:16:36]File name is /storage/ofd_packets/00115635 [13:16:36]Write 294 bytes [13:16:36]NVStorageSaveData done [13:16:36]OFDSenderStorePacket done [13:16:36]KKMCreateOFDPacket done [13:16:36]NVStorageSaveData kkm_last_timestamp [13:16:36]File name is /storage/kkm_last_timestamp [13:16:36]Write 4 bytes [13:16:36]NVStorageSaveData done [13:16:36]ExternCall_PrintAddStr [13:16:36]wPrintStart [13:16:36]Write to MH i2c: 01 00 00 01 02 03 [13:16:36]Write i2c OK [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: 01 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: 01 07 00 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: 01 07 00 01 02 00 00 00 00 00 FF 0F 18 [13:16:36]RasterBufferAndPrint [13:16:36]line Счет N : (1)24617675 [13:16:36]line ИНН: 02508201610067 [13:16:36]line Контрольно-Кассовый Чек [13:16:36]line ПРОДАЖА [13:16:36]line ТРК (МРК, ГНК) : 54 [13:16:36]line Товар: 2710124130 [13:16:36]line SU-92 [13:16:36]line 5.780 * 69.30 [13:16:36]line = 400.55 [13:16:36]line НДС 12% НСП 1% [13:16:36]line > о реализуемом товаре [13:16:36]line ОКРУГЛЕНИЕ: -0.55 [13:16:36]line ИТОГО: 400.00 [13:16:36]line Внесено: 400.00 [13:16:36]line СДАЧА: 0.00 [13:16:36]line НСП 1% : 3.54 [13:16:36]line НДС 12% : 42.54 [13:16:36]line Наличными: 400.00 [13:16:36]line Безнал.: 0.00 [13:16:36]line Место: АЗС № 90 "Партнер Нефть" [13:16:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:16:36]line СНО: Общий режим [13:16:36]line Чек 118 23.09.2024 13:16 [13:16:36]line Смена: 472 ФФД: 1.0 [13:16:36]line ЗНМ: 0300000120 [13:16:36]line РНМ: 0000000000091831 [13:16:36]line Версия ККМ: 001 [13:16:36]line ФМ: 0000000000871830 [13:16:36]line ФД: 115635 [13:16:36]line ФПД: 17999217495510 [13:16:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T131635&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115635&fm=17999217495510&tin=02508201610067®Number=0000000000091831&sum=40000 [13:16:37]OFD Sender: Processing packet 115635 [packets to send 482, broken 481] [13:16:37]ProducePacketName [13:16:37]name=ofd_packets/00115635 [13:16:37]OFD Sender: To server: pG, [13:16:37]CommunicateWithHost lk.salyk.kg:30040 [13:16:37]ConnectInit lk.salyk.kg [13:16:37]written 0, free lines is 4095 [13:16:37]Connected sock=10 [13:16: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 38 33 30 08 01 00 00 6B 66 00 01 0D E9 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 77 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 9E 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 76 00 00 00 F4 03 04 00 33 6A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B3 C3 01 00 35 04 06 00 10 5E C4 F7 0D D6 4B F2 8E 00 90 B2 49 7C [13:16:37]Write to MH i2c: 01 00 00 2B 02 2D [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: 01 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: 01 07 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: 01 07 00 2B 02 00 00 00 00 00 60 0C A0 [13:16:37]RasterBufferAndPrint [13:16:37]line [13:16:37]line [13:16:37]line [13:16:37]line [13:16:37]line [13:16:37]written 0, free lines is 3172 [13:16:37]MH_Cut [13:16:37]Write to MH i2c: D1 01 00 32 02 01 06 [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: D1 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: D1 01 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: D1 01 00 32 02 00 05 [13:16:37]Write to MH i2c: 01 00 00 33 02 35 [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 84 9C 47 00 44 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B3 C3 01 00 F4 03 04 00 76 0F F1 66 B6 04 01 00 00 11 0D FE 5C 81 95 5A 3E [13:16:37]CommunicateWithHost err = 0 [13:16:37]CheckOFDResponse [13:16:37]1017 (14) - 77093643461234 [13:16:37]1041 (16) - 0000000000871830 [13:16:37]1040 (4) - 115635 [13:16:37]1012 (4) - 23.09.2024 06:49 [13:16:37]1206 (1) - 0 [13:16:37]OFD Sender: Remove packet 115635 [13:16:37]ProducePacketName [13:16:37]name=ofd_packets/00115635 [13:16:37]NVStorageDeleteData [13:16:38]OFD Sender: No OFD packet to send [13:16:38]*** Cut start [13:16:38]*** Partial cut [13:16:38]*** CUTSNS_PIN = 1 [13:16:38]*** CUTSNS_PIN = 0 [13:16:39]*** Brake cut motor [13:16:39]Read from MH i2c: 01 [13:16:39]MH_I2C_Read... [13:16:39]*** Stop cut motor [13:16:39]*** Cut end [13:16:39]Read from MH i2c: 01 07 00 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: 01 07 00 33 02 00 00 00 00 00 FF 0F 4A [13:16:39]process_action close_receipt done [13:16:39]requested_data is exist [13:16:39]produce_requested_data [13:16:39]requested_item fm.sn is exist - process it [13:16:39]wFMCommunicate request_size=4 [13:16:39]MH_SAM_APDU [13:16:39]CAPDU: 80 11 00 00 [13:16:39]Write to MH i2c: E2 08 00 34 02 80 11 00 00 00 00 00 00 B0 [13:16:39]Write i2c OK [13:16:39]MH_I2C_Read... [13:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:39]Read from MH i2c: E2 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: E2 17 00 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: E2 17 00 34 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FE [13:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:16:39]wFMCommunicate OK [13:16:39]requested_item fd.num is exist - process it [13:16:39]SAM_PROTO_GetFieldsCounters [13:16:39]wFMCommunicate request_size=4 [13:16:39]MH_SAM_APDU [13:16:39]CAPDU: 80 13 00 00 [13:16:39]Write to MH i2c: E2 08 00 35 02 80 13 00 00 00 00 00 00 B3 [13:16:39]Write i2c OK [13:16:39]MH_I2C_Read... [13:16:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:39]Read from MH i2c: E2 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: E2 62 00 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: E2 62 00 35 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B3 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [13:16: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B3 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:39]wFMCommunicate OK [13:16:39]SAM_PROTO_GetFieldsCounters done [13:16:39]requested_item shift.num is exist - process it [13:16:39]requested_item shift.opened is exist - process it [13:16:39]req_shift_opened [13:16:39]FM_GetShiftState [13:16:39]SAM_PROTO_GetShiftState [13:16:39]wFMCommunicate request_size=4 [13:16:39]MH_SAM_APDU [13:16:39]CAPDU: 80 13 01 00 [13:16:39]Write to MH i2c: E2 08 00 36 02 80 13 01 00 00 00 00 00 B5 [13:16:39]Write i2c OK [13:16:39]MH_I2C_Read... [13:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:39]Read from MH i2c: E2 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: E2 0E 00 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: E2 0E 00 36 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F6 [13:16:39]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:16:39]wFMCommunicate OK [13:16:39]SAM_PROTO_GetShiftState done [13:16:39]FM_GetShiftState done [13:16:39]req_shift_opened done [13:16:39]requested_item shift.open_date is exist - process it [13:16:39]req_shift_open_date [13:16:39]req_shift_open_date done [13:16:39]produce_requested_data done [13:16:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115635,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:16:39]process_action_free close_receipt [13:16:39]json_value_free [13:16:39]json_value_free done [13:16:39]process_json_proto returns [13:16:39]Send response to host [13:16:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115635,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:16:39]free response buf [13:16:39]execute_script done [13:16:39]execute_script returns [13:16:39]free content buf [13:16:39]Sock 7.Close socket [13:16:39]Sock 7.Thread stoped [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:36]accept exits with 9 [13:19:36]New connection [13:19:36]New thread 3067022692 created [13:19:36]Thread 3066879332 joined [13:19:36]Waiting for new connection... [13:19:36] Sock 9.Parse request [13:19:36]Sock 9.Check first char [13:19:36]Sock 9.First char is OK [13:19:36]request: POST /json_proto HTTP/1.0 [13:19:36]Method: POST [13:19:36]URL: /json_proto [13:19:36]Method is POST - this is cgi request [13:19:36]url: /json_proto [13:19:36]query_string will be loaded in cgi processing [13:19:36]execute_cgi json_proto POST (null) [13:19:36]execute_cgi path=json_proto method=POST [13:19:36]POST find Content-Length [13:19:36]Host: 172.17.41.136:8080 [13:19:36]Content-Length: 955 [13:19:36]Content-Type: application/json [13:19:36] [13:19:36]POST finish read [13:19:36]Found Content-Length = 955 [13:19:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 68.30, "quantity" : 43.930, "sum" : 3000.42, "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\u000AS-92\u000A\u043D\u043E\u043C\u0435\u0440 90\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 43.93 \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:19:36]execute_script... [13:19: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)24617676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 68.30, "quantity" : 43.930, "sum" : 3000.42, "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\u000AS-92\u000A\u043D\u043E\u043C\u0435\u0440 90\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 43.93 \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:19:36]POST & json_proto [13:19:36]process_json_proto [13:19:36]json parsed OK: [13:19:36]protocol is kg_v1.0 [13:19:36]action value=close_receipt [13:19:36]process_action close_receipt [13:19:36]cmd_close_receipt [13:19:36]MH_GetDate [13:19:36]Write to MH i2c: F0 00 00 37 02 28 [13:19:36]Write i2c OK [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: F0 [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: F0 09 00 [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: F0 09 00 37 02 00 E8 6A F1 66 1B D0 5A 64 83 [13:19:36]GetLastDocTimeStamp 1727097395 [13:19:36]current date 1727097576 [13:19:36]FM_GetShiftState [13:19:36]SAM_PROTO_GetShiftState [13:19:36]wFMCommunicate request_size=4 [13:19:36]MH_SAM_APDU [13:19:36]CAPDU: 80 13 01 00 [13:19:36]Write to MH i2c: E2 08 00 38 02 80 13 01 00 00 00 00 00 B7 [13:19:36]Write i2c OK [13:19:36]MH_I2C_Read... [13:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:36]Read from MH i2c: E2 [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: E2 0E 00 [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: E2 0E 00 38 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F8 [13:19:36]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:19:36]wFMCommunicate OK [13:19:36]SAM_PROTO_GetShiftState done [13:19:36]FM_GetShiftState done [13:19:36]opened in 1727052070 [13:19:36]opened+sec_in_day 1727138470 [13:19:36]quantity*price = 300041 [13:19:36]sum+1 = 300043 [13:19:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 119 23.09.2024 13:19 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Дисконтная программа S-92 номер 90 сэкономлено 43.93 сом ФМ: 0000000000871830 ФД: 115636 ФПД: 193129211338538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T131936&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115636&fm=193129211338538&tin=02508201610067®Number=0000000000091831&sum=300000 [13:19:37]StoreToDocumentArchive [13:19:37]shift 472 fd 115636 [13:19:37]save to /storage/0472/doc_00115636 [13:19:37]save last doc name /storage/0472/doc_00115636 to /storage/kkm_last_doc_name [13:19:37]save OK [13:19:37]Clear old archive folders... [13:19:37]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:19:37]tlvbuf is 017A67F0 [13:19:37]SAM_PROTO_ClearQueue [13:19:37]wFMCommunicate request_size=4 [13:19:37]MH_SAM_APDU [13:19:37]CAPDU: 80 09 00 00 [13:19:37]Write to MH i2c: E2 08 00 45 02 80 09 00 00 00 00 00 00 B9 [13:19:37]Write i2c OK [13:19:37]MH_I2C_Read... [13:19:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:37]Read from MH i2c: E2 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 03 00 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 03 00 45 02 00 90 00 BB [13:19:37]RAPDU: 90 00 [13:19:37]wFMCommunicate OK [13:19:37]SAM_PROTO_ClearQueue done [13:19:37]KKMCreateOFDPacket [13:19:37]OFDProtocolAddRootSTLVToBuf [13:19:37]FM_MakeSignedData [13:19:37]FM_MakeSignedData [13:19:37]SAM_PROTO_SignData [13:19:37]wFMCommunicate request_size=4 [13:19:37]MH_SAM_APDU [13:19:37]CAPDU: 80 0D 01 02 [13:19:37]Write to MH i2c: E2 08 00 46 02 80 0D 01 02 00 00 00 00 C1 [13:19:37]Write i2c OK [13:19:37]MH_I2C_Read... [13:19:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:37]Read from MH i2c: E2 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 03 00 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 03 00 46 02 00 90 00 BC [13:19:37]RAPDU: 90 00 [13:19:37]wFMCommunicate OK [13:19:37]wFMCommunicate request_size=253 [13:19:37]MH_SAM_APDU [13:19:37]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 9A AB 00 00 00 00 00 37 04 06 00 AE 1A 00 00 00 00 13 04 06 00 0A 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 77 00 00 00 F4 03 04 00 E8 6A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B4 C3 01 00 35 04 06 00 AF A6 66 09 9F 2A [13:19:37]Write to MH i2c: E2 00 01 47 02 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 9A AB 00 00 00 00 00 37 04 06 00 AE 1A 00 00 00 00 13 04 06 00 0A 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 77 00 00 00 F4 03 04 00 E8 6A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B4 C3 01 00 35 04 06 00 AF A6 66 09 9F 2A 00 00 68 [13:19:37]Write i2c OK [13:19:37]MH_I2C_Read... [13:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:37]Read from MH i2c: E2 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 03 00 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 03 00 47 02 00 90 00 BD [13:19:37]RAPDU: 90 00 [13:19:37]wFMCommunicate OK [13:19:37]wFMCommunicate request_size=4 [13:19:37]MH_SAM_APDU [13:19:37]CAPDU: 80 0D 03 02 [13:19:37]Write to MH i2c: E2 08 00 48 02 80 0D 03 02 00 00 00 00 C5 [13:19:37]Write i2c OK [13:19:37]MH_I2C_Read... [13:19:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:37]Read from MH i2c: E2 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 0B 00 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 0B 00 48 02 00 6F 46 FA E8 9B C1 5B 2E 90 00 42 [13:19:37]RAPDU: 6F 46 FA E8 9B C1 5B 2E 90 00 [13:19:37]wFMCommunicate OK [13:19:37]SAM_PROTO_SignData done [13:19:37]FM_MakeSignedData done [13:19:37]CreateOFDProtocolMessage [13:19:37]wFMCommunicate request_size=4 [13:19:37]MH_SAM_APDU [13:19:37]CAPDU: 80 11 00 00 [13:19:37]Write to MH i2c: E2 08 00 49 02 80 11 00 00 00 00 00 00 C5 [13:19:37]Write i2c OK [13:19:37]MH_I2C_Read... [13:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:37]Read from MH i2c: E2 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 17 00 [13:19:37]MH_I2C_Read... [13:19:37]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 38 33 30 90 00 13 [13:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:19:37]wFMCommunicate OK [13:19:37]CreateOFDProtocolMessage done [13:19:37]OFDSenderStorePacket 115636 [13:19:37]StoreOFDPacket docnum=115636 [13:19:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 C0 6B 00 01 95 78 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 9A AB 00 00 00 00 00 37 04 06 00 AE 1A 00 00 00 00 13 04 06 00 0A 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 77 00 00 00 F4 03 04 00 E8 6A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B4 C3 01 00 35 04 06 00 AF A6 66 09 9F 2A 6F 46 FA E8 9B C1 5B 2E [13:19:37]CheckFolder [13:19:37]dirname=/storage/ofd_packets [13:19:37]CheckFolder done [13:19:37]ProducePacketName [13:19:37]name=ofd_packets/00115636 [13:19:37]NVStorageSaveData ofd_packets/00115636 [13:19:37]File name is /storage/ofd_packets/00115636 [13:19:37]Write 294 bytes [13:19:37]NVStorageSaveData done [13:19:37]OFDSenderStorePacket done [13:19:37]KKMCreateOFDPacket done [13:19:37]NVStorageSaveData kkm_last_timestamp [13:19:37]File name is /storage/kkm_last_timestamp [13:19:37]Write 4 bytes [13:19:37]NVStorageSaveData done [13:19:37]ExternCall_PrintAddStr [13:19:37]wPrintStart [13:19:37]Write to MH i2c: 01 00 00 4A 02 4C [13:19:37]Write i2c OK [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: 01 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: 01 07 00 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: 01 07 00 4A 02 00 00 00 00 00 FF 0F 61 [13:19:37]RasterBufferAndPrint [13:19:37]line Счет N : (1)24617676 [13:19:37]line ИНН: 02508201610067 [13:19:37]line Контрольно-Кассовый Чек [13:19:37]line ПРОДАЖА [13:19:37]line ТРК (МРК, ГНК) : 64 [13:19:37]line Товар: 2710124130 [13:19:37]line SU-92 [13:19:37]line 43.930 * 68.30 [13:19:37]line = 3000.42 [13:19:37]line НДС 12% НСП 1% [13:19:37]line > о реализуемом товаре [13:19:37]line ОКРУГЛЕНИЕ: -0.42 [13:19:37]line ИТОГО: 3000.00 [13:19:37]line Внесено: 3000.00 [13:19:37]line СДАЧА: 0.00 [13:19:37]line НСП 1% : 26.55 [13:19:37]line НДС 12% : 318.63 [13:19:37]line Наличными: 3000.00 [13:19:37]line Безнал.: 0.00 [13:19:37]line Место: АЗС № 90 "Партнер Нефть" [13:19:37]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:19:37]line СНО: Общий режим [13:19:37]line Чек 119 23.09.2024 13:19 [13:19:37]line Смена: 472 ФФД: 1.0 [13:19:37]line ЗНМ: 0300000120 [13:19:37]line РНМ: 0000000000091831 [13:19:37]line Версия ККМ: 001 [13:19:37]line [13:19:37]line Дисконтная программа [13:19:37]line S-92 [13:19:37]line номер 90 [13:19:37]line сэкономлено 43.93 сом [13:19:37]line ФМ: 0000000000871830 [13:19:37]line ФД: 115636 [13:19:37]line ФПД: 193129211338538 [13:19:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T131936&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115636&fm=193129211338538&tin=02508201610067®Number=0000000000091831&sum=300000 [13:19:38]OFD Sender: Processing packet 115636 [packets to send 482, broken 481] [13:19:38]ProducePacketName [13:19:38]name=ofd_packets/00115636 [13:19:38]OFD Sender: To server: pG, [13:19:38]CommunicateWithHost lk.salyk.kg:30040 [13:19:38]ConnectInit lk.salyk.kg [13:19:38]written 0, free lines is 4095 [13:19:38]Connected sock=10 [13:19: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 38 33 30 08 01 00 00 C0 6B 00 01 95 78 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 9A AB 00 00 00 00 00 37 04 06 00 AE 1A 00 00 00 00 13 04 06 00 0A 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 77 00 00 00 F4 03 04 00 E8 6A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B4 C3 01 00 35 04 06 00 AF A6 66 09 9F 2A 6F 46 FA E8 9B C1 5B 2E [13:19:38]Write to MH i2c: 01 00 00 79 02 7B [13:19:38]Write i2c OK [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: 01 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: 01 07 00 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: 01 07 00 79 02 00 00 00 00 00 FC 0B 89 [13:19:38]RasterBufferAndPrint [13:19:38]line [13:19:38]line [13:19:38]line [13:19:38]line [13:19:38]line [13:19:38]written 0, free lines is 3070 [13:19:38]MH_Cut [13:19:38]Write to MH i2c: D1 01 00 80 02 01 54 [13:19:38]Write i2c OK [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: D1 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: D1 01 00 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: D1 01 00 80 02 00 53 [13:19:38]Write to MH i2c: 01 00 00 81 02 83 [13:19:38]Write i2c OK [13:19:38]MH_I2C_Read... [13:19:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C9 00 47 00 FB 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 38 33 30 10 04 04 00 B4 C3 01 00 F4 03 04 00 2B 10 F1 66 B6 04 01 00 00 81 92 88 BD E6 76 E1 9E [13:19:38]CommunicateWithHost err = 0 [13:19:38]CheckOFDResponse [13:19:38]1017 (14) - 77093643461234 [13:19:38]1041 (16) - 0000000000871830 [13:19:38]1040 (4) - 115636 [13:19:38]1012 (4) - 23.09.2024 06:52 [13:19:38]1206 (1) - 0 [13:19:38]OFD Sender: Remove packet 115636 [13:19:38]ProducePacketName [13:19:38]name=ofd_packets/00115636 [13:19:38]NVStorageDeleteData [13:19:39]OFD Sender: No OFD packet to send [13:19:40]*** Cut start [13:19:40]*** Partial cut [13:19:40]*** CUTSNS_PIN = 1 [13:19:40]*** CUTSNS_PIN = 0 [13:19:40]*** Brake cut motor [13:19:40]Read from MH i2c: 01 [13:19:40]MH_I2C_Read... [13:19:40]*** Stop cut motor [13:19:40]*** Cut end [13:19:40]Read from MH i2c: 01 07 00 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: 01 07 00 81 02 00 00 00 00 00 FF 0F 98 [13:19:40]process_action close_receipt done [13:19:40]requested_data is exist [13:19:40]produce_requested_data [13:19:40]requested_item fm.sn is exist - process it [13:19:40]wFMCommunicate request_size=4 [13:19:40]MH_SAM_APDU [13:19:40]CAPDU: 80 11 00 00 [13:19:40]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [13:19:40]Write i2c OK [13:19:40]MH_I2C_Read... [13:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:40]Read from MH i2c: E2 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: E2 17 00 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4C [13:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:19:40]wFMCommunicate OK [13:19:40]requested_item fd.num is exist - process it [13:19:40]SAM_PROTO_GetFieldsCounters [13:19:40]wFMCommunicate request_size=4 [13:19:40]MH_SAM_APDU [13:19:40]CAPDU: 80 13 00 00 [13:19:40]Write to MH i2c: E2 08 00 83 02 80 13 00 00 00 00 00 00 01 [13:19:40]Write i2c OK [13:19:40]MH_I2C_Read... [13:19:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:40]Read from MH i2c: E2 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: E2 62 00 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: E2 62 00 83 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B4 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [13:19:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B4 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:40]wFMCommunicate OK [13:19:40]SAM_PROTO_GetFieldsCounters done [13:19:40]requested_item shift.num is exist - process it [13:19:40]requested_item shift.opened is exist - process it [13:19:40]req_shift_opened [13:19:40]FM_GetShiftState [13:19:40]SAM_PROTO_GetShiftState [13:19:40]wFMCommunicate request_size=4 [13:19:40]MH_SAM_APDU [13:19:40]CAPDU: 80 13 01 00 [13:19:40]Write to MH i2c: E2 08 00 84 02 80 13 01 00 00 00 00 00 03 [13:19:40]Write i2c OK [13:19:40]MH_I2C_Read... [13:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:40]Read from MH i2c: E2 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: E2 0E 00 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: E2 0E 00 84 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 44 [13:19:40]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:19:40]wFMCommunicate OK [13:19:40]SAM_PROTO_GetShiftState done [13:19:40]FM_GetShiftState done [13:19:40]req_shift_opened done [13:19:40]requested_item shift.open_date is exist - process it [13:19:40]req_shift_open_date [13:19:40]req_shift_open_date done [13:19:40]produce_requested_data done [13:19:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115636,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:19:40]process_action_free close_receipt [13:19:40]json_value_free [13:19:40]json_value_free done [13:19:40]process_json_proto returns [13:19:40]Send response to host [13:19:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115636,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:19:40]free response buf [13:19:40]execute_script done [13:19:40]execute_script returns [13:19:40]free content buf [13:19:40]Sock 9.Close socket [13:19:40]Sock 9.Thread stoped [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:48]recv_with_timeout no data received [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:03]accept exits with 7 [13:21:03]New connection [13:21:03]New thread 3066879332 created [13:21:03]Thread 3067022692 joined [13:21:03]Waiting for new connection... [13:21:03] Sock 7.Parse request [13:21:03]Sock 7.Check first char [13:21:03]Sock 7.First char is OK [13:21:03]request: POST /json_proto HTTP/1.0 [13:21:03]Method: POST [13:21:03]URL: /json_proto [13:21:03]Method is POST - this is cgi request [13:21:03]url: /json_proto [13:21:03]query_string will be loaded in cgi processing [13:21:03]execute_cgi json_proto POST (null) [13:21:03]execute_cgi path=json_proto method=POST [13:21:03]POST find Content-Length [13:21:03]Host: 172.17.41.136:8080 [13:21:03]Content-Length: 805 [13:21:03]Content-Type: application/json [13:21:03] [13:21:03]POST finish read [13:21:03]Found Content-Length = 805 [13:21:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:03]execute_script... [13:21: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)24617677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:03]POST & json_proto [13:21:03]process_json_proto [13:21:03]json parsed OK: [13:21:03]protocol is kg_v1.0 [13:21:03]action value=close_receipt [13:21:03]process_action close_receipt [13:21:03]cmd_close_receipt [13:21:03]MH_GetDate [13:21:03]Write to MH i2c: F0 00 00 85 02 76 [13:21:03]Write i2c OK [13:21:03]MH_I2C_Read... [13:21:03]Read from MH i2c: F0 [13:21:03]MH_I2C_Read... [13:21:03]Read from MH i2c: F0 09 00 [13:21:03]MH_I2C_Read... [13:21:03]Read from MH i2c: F0 09 00 85 02 00 40 6B F1 66 1B D0 5A 64 2A [13:21:03]GetLastDocTimeStamp 1727097576 [13:21:03]current date 1727097664 [13:21:03]FM_GetShiftState [13:21:03]SAM_PROTO_GetShiftState [13:21:03]wFMCommunicate request_size=4 [13:21:03]MH_SAM_APDU [13:21:03]CAPDU: 80 13 01 00 [13:21:03]Write to MH i2c: E2 08 00 86 02 80 13 01 00 00 00 00 00 05 [13:21:03]Write i2c OK [13:21:03]MH_I2C_Read... [13:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:03]Read from MH i2c: E2 [13:21:03]MH_I2C_Read... [13:21:03]Read from MH i2c: E2 0E 00 [13:21:03]MH_I2C_Read... [13:21:03]Read from MH i2c: E2 0E 00 86 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 46 [13:21:03]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:21:03]wFMCommunicate OK [13:21:03]SAM_PROTO_GetShiftState done [13:21:03]FM_GetShiftState done [13:21:03]opened in 1727052070 [13:21:03]opened+sec_in_day 1727138470 [13:21:03]quantity*price = 400012 [13:21:03]sum+1 = 400013 [13:21:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.12 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 0.00 Безнал.: 4000.12 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 120 23.09.2024 13:21 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115637 ФПД: 115315878561153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132104&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115637&fm=115315878561153&tin=02508201610067®Number=0000000000091831&sum=400012 [13:21:05]StoreToDocumentArchive [13:21:05]shift 472 fd 115637 [13:21:05]save to /storage/0472/doc_00115637 [13:21:05]save last doc name /storage/0472/doc_00115637 to /storage/kkm_last_doc_name [13:21:05]save OK [13:21:05]Clear old archive folders... [13:21:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:05]tlvbuf is 017C37D0 [13:21:05]SAM_PROTO_ClearQueue [13:21:05]wFMCommunicate request_size=4 [13:21:05]MH_SAM_APDU [13:21:05]CAPDU: 80 09 00 00 [13:21:05]Write to MH i2c: E2 08 00 93 02 80 09 00 00 00 00 00 00 07 [13:21:05]Write i2c OK [13:21:05]MH_I2C_Read... [13:21:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:05]Read from MH i2c: E2 [13:21:05]MH_I2C_Read... [13:21:05]Read from MH i2c: E2 03 00 [13:21:05]MH_I2C_Read... [13:21:05]Read from MH i2c: E2 03 00 93 02 00 90 00 09 [13:21:05]RAPDU: 90 00 [13:21:05]wFMCommunicate OK [13:21:05]SAM_PROTO_ClearQueue done [13:21:05]KKMCreateOFDPacket [13:21:05]OFDProtocolAddRootSTLVToBuf [13:21:05]FM_MakeSignedData [13:21:05]FM_MakeSignedData [13:21:05]SAM_PROTO_SignData [13:21:05]wFMCommunicate request_size=4 [13:21:05]MH_SAM_APDU [13:21:05]CAPDU: 80 0D 01 02 [13:21:05]Write to MH i2c: E2 08 00 94 02 80 0D 01 02 00 00 00 00 0F [13:21:05]Write i2c OK [13:21:05]MH_I2C_Read... [13:21:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:05]Read from MH i2c: E2 [13:21:05]MH_I2C_Read... [13:21:05]Read from MH i2c: E2 03 00 [13:21:05]MH_I2C_Read... [13:21:05]Read from MH i2c: E2 03 00 94 02 00 90 00 0A [13:21:05]RAPDU: 90 00 [13:21:05]wFMCommunicate OK [13:21:05]wFMCommunicate request_size=255 [13:21:05]MH_SAM_APDU [13:21: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 40 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B5 C3 01 00 35 04 06 00 68 [13:21:05]Write to MH i2c: E2 02 01 95 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 40 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B5 C3 01 00 35 04 06 00 68 00 00 42 [13:21:05]Write i2c OK [13:21:05]MH_I2C_Read... [13:21:05]Read from MH i2c: E2 [13:21:05]MH_I2C_Read... [13:21:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:05]Read from MH i2c: E2 03 00 [13:21:05]MH_I2C_Read... [13:21:05]Read from MH i2c: E2 03 00 95 02 00 90 00 0B [13:21:05]RAPDU: 90 00 [13:21:05]wFMCommunicate OK [13:21:05]wFMCommunicate request_size=10 [13:21:05]MH_SAM_APDU [13:21:05]CAPDU: 80 0D 02 02 05 E1 11 FA 85 81 [13:21:05]Write to MH i2c: E2 0D 00 96 02 80 0D 02 02 05 00 E1 11 FA 85 81 00 00 0E [13:21:05]Write i2c OK [13:21:05]MH_I2C_Read... [13:21:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:05]Read from MH i2c: E2 [13:21:05]MH_I2C_Read... [13:21:05]Read from MH i2c: E2 03 00 [13:21:05]MH_I2C_Read... [13:21:05]Read from MH i2c: E2 03 00 96 02 00 90 00 0C [13:21:05]RAPDU: 90 00 [13:21:05]wFMCommunicate OK [13:21:05]wFMCommunicate request_size=4 [13:21:05]MH_SAM_APDU [13:21:05]CAPDU: 80 0D 03 02 [13:21:05]Write to MH i2c: E2 08 00 97 02 80 0D 03 02 00 00 00 00 14 [13:21:05]Write i2c OK [13:21:05]MH_I2C_Read... [13:21:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:05]Read from MH i2c: E2 [13:21:05]MH_I2C_Read... [13:21:05]Read from MH i2c: E2 0B 00 [13:21:05]MH_I2C_Read... [13:21:05]Read from MH i2c: E2 0B 00 97 02 00 2F 95 64 8A 8F 66 A0 E0 90 00 3C [13:21:05]RAPDU: 2F 95 64 8A 8F 66 A0 E0 90 00 [13:21:05]wFMCommunicate OK [13:21:05]SAM_PROTO_SignData done [13:21:05]FM_MakeSignedData done [13:21:05]CreateOFDProtocolMessage [13:21:05]wFMCommunicate request_size=4 [13:21:05]MH_SAM_APDU [13:21:05]CAPDU: 80 11 00 00 [13:21:05]Write to MH i2c: E2 08 00 98 02 80 11 00 00 00 00 00 00 14 [13:21:05]Write i2c OK [13:21:05]MH_I2C_Read... [13:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:05]Read from MH i2c: E2 [13:21:05]MH_I2C_Read... [13:21:05]Read from MH i2c: E2 17 00 [13:21:05]MH_I2C_Read... [13:21:05]Read from MH i2c: E2 17 00 98 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 62 [13:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:21:05]wFMCommunicate OK [13:21:05]CreateOFDProtocolMessage done [13:21:05]OFDSenderStorePacket 115637 [13:21:05]StoreOFDPacket docnum=115637 [13:21:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 AD C1 07 01 B8 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 35 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 40 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B5 C3 01 00 35 04 06 00 68 E1 11 FA 85 81 2F 95 64 8A 8F 66 A0 E0 [13:21:05]CheckFolder [13:21:05]dirname=/storage/ofd_packets [13:21:05]CheckFolder done [13:21:05]ProducePacketName [13:21:05]name=ofd_packets/00115637 [13:21:05]NVStorageSaveData ofd_packets/00115637 [13:21:05]File name is /storage/ofd_packets/00115637 [13:21:05]Write 301 bytes [13:21:05]NVStorageSaveData done [13:21:05]OFDSenderStorePacket done [13:21:05]KKMCreateOFDPacket done [13:21:05]NVStorageSaveData kkm_last_timestamp [13:21:05]File name is /storage/kkm_last_timestamp [13:21:05]Write 4 bytes [13:21:05]NVStorageSaveData done [13:21:05]ExternCall_PrintAddStr [13:21:05]wPrintStart [13:21:05]Write to MH i2c: 01 00 00 99 02 9B [13:21:05]Write i2c OK [13:21:05]MH_I2C_Read... [13:21:05]Read from MH i2c: 01 [13:21:05]MH_I2C_Read... [13:21:05]Read from MH i2c: 01 07 00 [13:21:05]MH_I2C_Read... [13:21:05]Read from MH i2c: 01 07 00 99 02 00 00 00 00 00 FF 0F B0 [13:21:05]RasterBufferAndPrint [13:21:05]line Счет N : (1)24617677 [13:21:05]line ИНН: 02508201610067 [13:21:05]line Контрольно-Кассовый Чек [13:21:05]line ПРОДАЖА [13:21:05]line ТРК (МРК, ГНК) : 52 [13:21:05]line Товар: 2710124500 [13:21:05]line Аи-95-К-5 [13:21:05]line 53.910 * 74.20 [13:21:05]line = 4000.12 [13:21:05]line НДС 12% НСП 1% [13:21:05]line > о реализуемом товаре [13:21:05]line ИТОГО: 4000.12 [13:21:05]line НСП 1% : 35.40 [13:21:05]line НДС 12% : 424.79 [13:21:05]line Наличными: 0.00 [13:21:05]line Безнал.: 4000.12 [13:21:05]line Место: АЗС № 90 "Партнер Нефть" [13:21:05]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:21:05]line СНО: Общий режим [13:21:05]line Чек 120 23.09.2024 13:21 [13:21:05]line Смена: 472 ФФД: 1.0 [13:21:05]line ЗНМ: 0300000120 [13:21:05]line РНМ: 0000000000091831 [13:21:05]line Версия ККМ: 001 [13:21:05]line Платежная система: O! деньги [13:21:05]line ФМ: 0000000000871830 [13:21:05]line ФД: 115637 [13:21:05]line ФПД: 115315878561153 [13:21:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132104&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115637&fm=115315878561153&tin=02508201610067®Number=0000000000091831&sum=400012 [13:21:05]OFD Sender: Processing packet 115637 [packets to send 482, broken 481] [13:21:05]ProducePacketName [13:21:05]name=ofd_packets/00115637 [13:21:05]OFD Sender: To server: pG, [13:21:05]CommunicateWithHost lk.salyk.kg:30040 [13:21:05]ConnectInit lk.salyk.kg [13:21:05]written 0, free lines is 4095 [13:21:05]Connected sock=10 [13:21: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 38 33 30 0F 01 00 00 AD C1 07 01 B8 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 35 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 40 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B5 C3 01 00 35 04 06 00 68 E1 11 FA 85 81 2F 95 64 8A 8F 66 A0 E0 [13:21:06]Write to MH i2c: 01 00 00 C2 02 C4 [13:21:06]Write i2c OK [13:21:06]MH_I2C_Read... [13:21:06]Read from MH i2c: 01 [13:21:06]MH_I2C_Read... [13:21:06]Read from MH i2c: 01 07 00 [13:21:06]MH_I2C_Read... [13:21:06]Read from MH i2c: 01 07 00 C2 02 00 00 00 00 00 7C 0C 53 [13:21:06]RasterBufferAndPrint [13:21:06]line [13:21:06]line [13:21:06]line [13:21:06]line [13:21:06]line [13:21:06]written 0, free lines is 3201 [13:21:06]MH_Cut [13:21:06]Write to MH i2c: D1 01 00 C9 02 01 9D [13:21:06]Write i2c OK [13:21:06]MH_I2C_Read... [13:21:06]Read from MH i2c: D1 [13:21:06]MH_I2C_Read... [13:21:06]Read from MH i2c: D1 01 00 [13:21:06]MH_I2C_Read... [13:21:06]Read from MH i2c: D1 01 00 C9 02 00 9C [13:21:06]Write to MH i2c: 01 00 00 CA 02 CC [13:21:06]Write i2c OK [13:21:06]MH_I2C_Read... [13:21:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 64 EC 47 00 49 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 38 33 30 10 04 04 00 B5 C3 01 00 F4 03 04 00 82 10 F1 66 B6 04 01 00 00 9C 5D 94 67 BC F1 78 43 [13:21:06]CommunicateWithHost err = 0 [13:21:06]CheckOFDResponse [13:21:06]1017 (14) - 77093643461234 [13:21:06]1041 (16) - 0000000000871830 [13:21:06]1040 (4) - 115637 [13:21:06]1012 (4) - 23.09.2024 06:53 [13:21:06]1206 (1) - 0 [13:21:06]OFD Sender: Remove packet 115637 [13:21:06]ProducePacketName [13:21:06]name=ofd_packets/00115637 [13:21:06]NVStorageDeleteData [13:21:06]OFD Sender: No OFD packet to send [13:21:07]*** Cut start [13:21:07]*** Partial cut [13:21:07]*** CUTSNS_PIN = 1 [13:21:07]*** CUTSNS_PIN = 0 [13:21:07]*** Brake cut motor [13:21:07]Read from MH i2c: 01 [13:21:07]MH_I2C_Read... [13:21:07]*** Stop cut motor [13:21:07]*** Cut end [13:21:07]Read from MH i2c: 01 07 00 [13:21:07]MH_I2C_Read... [13:21:07]Read from MH i2c: 01 07 00 CA 02 00 00 00 00 00 FF 0F E1 [13:21:07]process_action close_receipt done [13:21:07]requested_data is exist [13:21:07]produce_requested_data [13:21:07]requested_item fm.sn is exist - process it [13:21:07]wFMCommunicate request_size=4 [13:21:07]MH_SAM_APDU [13:21:07]CAPDU: 80 11 00 00 [13:21:07]Write to MH i2c: E2 08 00 CB 02 80 11 00 00 00 00 00 00 47 [13:21:08]Write i2c OK [13:21:08]MH_I2C_Read... [13:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:08]Read from MH i2c: E2 [13:21:08]MH_I2C_Read... [13:21:08]Read from MH i2c: E2 17 00 [13:21:08]MH_I2C_Read... [13:21:08]Read from MH i2c: E2 17 00 CB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 95 [13:21:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:21:08]wFMCommunicate OK [13:21:08]requested_item fd.num is exist - process it [13:21:08]SAM_PROTO_GetFieldsCounters [13:21:08]wFMCommunicate request_size=4 [13:21:08]MH_SAM_APDU [13:21:08]CAPDU: 80 13 00 00 [13:21:08]Write to MH i2c: E2 08 00 CC 02 80 13 00 00 00 00 00 00 4A [13:21:08]Write i2c OK [13:21:08]MH_I2C_Read... [13:21:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:08]Read from MH i2c: E2 [13:21:08]MH_I2C_Read... [13:21:08]Read from MH i2c: E2 62 00 [13:21:08]MH_I2C_Read... [13:21:08]Read from MH i2c: E2 62 00 CC 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B5 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [13:21: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B5 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:08]wFMCommunicate OK [13:21:08]SAM_PROTO_GetFieldsCounters done [13:21:08]requested_item shift.num is exist - process it [13:21:08]requested_item shift.opened is exist - process it [13:21:08]req_shift_opened [13:21:08]FM_GetShiftState [13:21:08]SAM_PROTO_GetShiftState [13:21:08]wFMCommunicate request_size=4 [13:21:08]MH_SAM_APDU [13:21:08]CAPDU: 80 13 01 00 [13:21:08]Write to MH i2c: E2 08 00 CD 02 80 13 01 00 00 00 00 00 4C [13:21:08]Write i2c OK [13:21:08]MH_I2C_Read... [13:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:08]Read from MH i2c: E2 [13:21:08]MH_I2C_Read... [13:21:08]Read from MH i2c: E2 0E 00 [13:21:08]MH_I2C_Read... [13:21:08]Read from MH i2c: E2 0E 00 CD 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 8D [13:21:08]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:21:08]wFMCommunicate OK [13:21:08]SAM_PROTO_GetShiftState done [13:21:08]FM_GetShiftState done [13:21:08]req_shift_opened done [13:21:08]requested_item shift.open_date is exist - process it [13:21:08]req_shift_open_date [13:21:08]req_shift_open_date done [13:21:08]produce_requested_data done [13:21:08]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115637,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:21:08]process_action_free close_receipt [13:21:08]json_value_free [13:21:08]json_value_free done [13:21:08]process_json_proto returns [13:21:08]Send response to host [13:21:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115637,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:21:08]free response buf [13:21:08]execute_script done [13:21:08]execute_script returns [13:21:08]free content buf [13:21:08]Sock 7.Close socket [13:21:08]Sock 7.Thread stoped [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:50]accept exits with 9 [13:21:50]New connection [13:21:50]New thread 3067022692 created [13:21:50]Thread 3066879332 joined [13:21:50]Waiting for new connection... [13:21:50] Sock 9.Parse request [13:21:50]Sock 9.Check first char [13:21:50]Sock 9.First char is OK [13:21:50]request: POST /json_proto HTTP/1.0 [13:21:50]Method: POST [13:21:50]URL: /json_proto [13:21:50]Method is POST - this is cgi request [13:21:50]url: /json_proto [13:21:50]query_string will be loaded in cgi processing [13:21:50]execute_cgi json_proto POST (null) [13:21:50]execute_cgi path=json_proto method=POST [13:21:50]POST find Content-Length [13:21:50]Host: 172.17.41.136:8080 [13:21:50]Content-Length: 681 [13:21:50]Content-Type: application/json [13:21:50] [13:21:50]POST finish read [13:21:50]Found Content-Length = 681 [13:21:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 45", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:50]execute_script... [13:21: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)24617678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 45", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:50]POST & json_proto [13:21:50]process_json_proto [13:21:50]json parsed OK: [13:21:50]protocol is kg_v1.0 [13:21:50]action value=close_receipt [13:21:50]process_action close_receipt [13:21:50]cmd_close_receipt [13:21:50]MH_GetDate [13:21:50]Write to MH i2c: F0 00 00 CE 02 BF [13:21:50]Write i2c OK [13:21:50]MH_I2C_Read... [13:21:50]Read from MH i2c: F0 [13:21:50]MH_I2C_Read... [13:21:50]Read from MH i2c: F0 09 00 [13:21:50]MH_I2C_Read... [13:21:50]Read from MH i2c: F0 09 00 CE 02 00 6E 6B F1 66 1B D0 5A 64 A1 [13:21:50]GetLastDocTimeStamp 1727097664 [13:21:50]current date 1727097710 [13:21:50]FM_GetShiftState [13:21:50]SAM_PROTO_GetShiftState [13:21:50]wFMCommunicate request_size=4 [13:21:50]MH_SAM_APDU [13:21:50]CAPDU: 80 13 01 00 [13:21:50]Write to MH i2c: E2 08 00 CF 02 80 13 01 00 00 00 00 00 4E [13:21:50]Write i2c OK [13:21:50]MH_I2C_Read... [13:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:50]Read from MH i2c: E2 [13:21:50]MH_I2C_Read... [13:21:50]Read from MH i2c: E2 0E 00 [13:21:50]MH_I2C_Read... [13:21:50]Read from MH i2c: E2 0E 00 CF 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 8F [13:21:50]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:21:50]wFMCommunicate OK [13:21:50]SAM_PROTO_GetShiftState done [13:21:50]FM_GetShiftState done [13:21:50]opened in 1727052070 [13:21:50]opened+sec_in_day 1727138470 [13:21:50]quantity*price = 100050 [13:21:50]sum+1 = 100052 [13:21: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 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 121 23.09.2024 13:21 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115638 ФПД: 228292577912818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132150&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115638&fm=228292577912818&tin=02508201610067®Number=0000000000091831&sum=100000 [13:21:51]StoreToDocumentArchive [13:21:51]shift 472 fd 115638 [13:21:51]save to /storage/0472/doc_00115638 [13:21:51]save last doc name /storage/0472/doc_00115638 to /storage/kkm_last_doc_name [13:21:51]save OK [13:21:51]Clear old archive folders... [13:21:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:21:51]tlvbuf is 017BC410 [13:21:51]SAM_PROTO_ClearQueue [13:21:51]wFMCommunicate request_size=4 [13:21:51]MH_SAM_APDU [13:21:51]CAPDU: 80 09 00 00 [13:21:51]Write to MH i2c: E2 08 00 DC 02 80 09 00 00 00 00 00 00 50 [13:21:51]Write i2c OK [13:21:51]MH_I2C_Read... [13:21:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:51]OFD Sender: No OFD packet to send [13:21:51]Read from MH i2c: E2 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 03 00 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 03 00 DC 02 00 90 00 52 [13:21:51]RAPDU: 90 00 [13:21:51]wFMCommunicate OK [13:21:51]SAM_PROTO_ClearQueue done [13:21:51]KKMCreateOFDPacket [13:21:51]OFDProtocolAddRootSTLVToBuf [13:21:51]FM_MakeSignedData [13:21:51]FM_MakeSignedData [13:21:51]SAM_PROTO_SignData [13:21:51]wFMCommunicate request_size=4 [13:21:51]MH_SAM_APDU [13:21:51]CAPDU: 80 0D 01 02 [13:21:51]Write to MH i2c: E2 08 00 DD 02 80 0D 01 02 00 00 00 00 58 [13:21:51]Write i2c OK [13:21:51]MH_I2C_Read... [13:21:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:51]Read from MH i2c: E2 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 03 00 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 03 00 DD 02 00 90 00 53 [13:21:51]RAPDU: 90 00 [13:21:51]wFMCommunicate OK [13:21:51]wFMCommunicate request_size=255 [13:21:51]MH_SAM_APDU [13:21:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 79 00 00 00 F4 03 04 00 6E 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B6 C3 01 00 35 04 06 00 CF A1 82 02 [13:21:51]Write to MH i2c: E2 02 01 DE 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 79 00 00 00 F4 03 04 00 6E 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B6 C3 01 00 35 04 06 00 CF A1 82 02 00 00 C5 [13:21:51]Write i2c OK [13:21:51]MH_I2C_Read... [13:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:52]Read from MH i2c: E2 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 03 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 03 00 DE 02 00 90 00 54 [13:21:52]RAPDU: 90 00 [13:21:52]wFMCommunicate OK [13:21:52]wFMCommunicate request_size=7 [13:21:52]MH_SAM_APDU [13:21:52]CAPDU: 80 0D 02 02 02 E7 F2 [13:21:52]Write to MH i2c: E2 0A 00 DF 02 80 0D 02 02 02 00 E7 F2 00 00 38 [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:52]Read from MH i2c: E2 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 03 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 03 00 DF 02 00 90 00 55 [13:21:52]RAPDU: 90 00 [13:21:52]wFMCommunicate OK [13:21:52]wFMCommunicate request_size=4 [13:21:52]MH_SAM_APDU [13:21:52]CAPDU: 80 0D 03 02 [13:21:52]Write to MH i2c: E2 08 00 E0 02 80 0D 03 02 00 00 00 00 5D [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:52]Read from MH i2c: E2 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 0B 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 0B 00 E0 02 00 92 AC D3 53 F2 8F 41 AC 90 00 30 [13:21:52]RAPDU: 92 AC D3 53 F2 8F 41 AC 90 00 [13:21:52]wFMCommunicate OK [13:21:52]SAM_PROTO_SignData done [13:21:52]FM_MakeSignedData done [13:21:52]CreateOFDProtocolMessage [13:21:52]wFMCommunicate request_size=4 [13:21:52]MH_SAM_APDU [13:21:52]CAPDU: 80 11 00 00 [13:21:52]Write to MH i2c: E2 08 00 E1 02 80 11 00 00 00 00 00 00 5D [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:52]Read from MH i2c: E2 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 17 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 17 00 E1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AB [13:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:21:52]wFMCommunicate OK [13:21:52]CreateOFDProtocolMessage done [13:21:52]OFDSenderStorePacket 115638 [13:21:52]StoreOFDPacket docnum=115638 [13:21:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 9E C2 04 01 16 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 6E 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B6 C3 01 00 35 04 06 00 CF A1 82 02 E7 F2 92 AC D3 53 F2 8F 41 AC [13:21:52]CheckFolder [13:21:52]dirname=/storage/ofd_packets [13:21:52]CheckFolder done [13:21:52]ProducePacketName [13:21:52]name=ofd_packets/00115638 [13:21:52]NVStorageSaveData ofd_packets/00115638 [13:21:52]File name is /storage/ofd_packets/00115638 [13:21:52]Write 298 bytes [13:21:52]NVStorageSaveData done [13:21:52]OFDSenderStorePacket done [13:21:52]KKMCreateOFDPacket done [13:21:52]NVStorageSaveData kkm_last_timestamp [13:21:52]File name is /storage/kkm_last_timestamp [13:21:52]Write 4 bytes [13:21:52]NVStorageSaveData done [13:21:52]ExternCall_PrintAddStr [13:21:52]wPrintStart [13:21:52]Write to MH i2c: 01 00 00 E2 02 E4 [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: 01 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: 01 07 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: 01 07 00 E2 02 00 00 00 00 00 FF 0F F9 [13:21:52]RasterBufferAndPrint [13:21:52]line Счет N : (1)24617678 [13:21:52]line ИНН: 02508201610067 [13:21:52]line Контрольно-Кассовый Чек [13:21:52]line ПРОДАЖА [13:21:52]line ТРК (МРК, ГНК) : 45 [13:21:52]line Товар: 2710194210 [13:21:52]line ДТ-К-5 [13:21:52]line 13.130 * 76.20 [13:21:52]line = 1000.51 [13:21:52]line НДС 12% НСП 1% [13:21:52]line > о реализуемом товаре [13:21:52]line ОКРУГЛЕНИЕ: -0.51 [13:21:52]line ИТОГО: 1000.00 [13:21:52]line Внесено: 1000.00 [13:21:52]line СДАЧА: 0.00 [13:21:52]line НСП 1% : 8.85 [13:21:52]line НДС 12% : 106.25 [13:21:52]line Наличными: 1000.00 [13:21:52]line Безнал.: 0.00 [13:21:52]line Место: АЗС № 90 "Партнер Нефть" [13:21:52]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:21:52]line СНО: Общий режим [13:21:52]line Чек 121 23.09.2024 13:21 [13:21:52]line Смена: 472 ФФД: 1.0 [13:21:52]line ЗНМ: 0300000120 [13:21:52]line РНМ: 0000000000091831 [13:21:52]line Версия ККМ: 001 [13:21:52]line ФМ: 0000000000871830 [13:21:52]line ФД: 115638 [13:21:52]line ФПД: 228292577912818 [13:21:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132150&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115638&fm=228292577912818&tin=02508201610067®Number=0000000000091831&sum=100000 [13:21:52]written 0, free lines is 4095 [13:21:52]OFD Sender: Processing packet 115638 [packets to send 482, broken 481] [13:21:52]ProducePacketName [13:21:52]name=ofd_packets/00115638 [13:21:52]OFD Sender: To server: pG, [13:21:52]CommunicateWithHost lk.salyk.kg:30040 [13:21:52]ConnectInit lk.salyk.kg [13:21:52]Connected sock=10 [13:21: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 38 33 30 0C 01 00 00 9E C2 04 01 16 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 6E 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B6 C3 01 00 35 04 06 00 CF A1 82 02 E7 F2 92 AC D3 53 F2 8F 41 AC [13:21:52]Write to MH i2c: 01 00 00 0C 03 0F [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: 01 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: 01 07 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: 01 07 00 0C 03 00 00 00 00 00 61 0C 83 [13:21:52]RasterBufferAndPrint [13:21:52]line [13:21:52]line [13:21:52]line [13:21:52]line [13:21:52]line [13:21:52]written 0, free lines is 3174 [13:21:52]MH_Cut [13:21:52]Write to MH i2c: D1 01 00 13 03 01 E8 [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: D1 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: D1 01 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: D1 01 00 13 03 00 E7 [13:21:52]Write to MH i2c: 01 00 00 14 03 17 [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E4 5F 47 00 9E C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B6 C3 01 00 F4 03 04 00 B1 10 F1 66 B6 04 01 00 00 1C AA DC 86 BB 11 64 F6 [13:21:52]CommunicateWithHost err = 0 [13:21:52]CheckOFDResponse [13:21:52]1017 (14) - 77093643461234 [13:21:52]1041 (16) - 0000000000871830 [13:21:52]1040 (4) - 115638 [13:21:52]1012 (4) - 23.09.2024 06:54 [13:21:52]1206 (1) - 0 [13:21:52]OFD Sender: Remove packet 115638 [13:21:52]ProducePacketName [13:21:52]name=ofd_packets/00115638 [13:21:52]NVStorageDeleteData [13:21:53]OFD Sender: No OFD packet to send [13:21:54]*** Cut start [13:21:54]*** Partial cut [13:21:54]*** CUTSNS_PIN = 1 [13:21:54]*** CUTSNS_PIN = 0 [13:21:54]*** Brake cut motor [13:21:54]Read from MH i2c: 01 [13:21:54]MH_I2C_Read... [13:21:54]*** Stop cut motor [13:21:54]*** Cut end [13:21:54]Read from MH i2c: 01 07 00 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: 01 07 00 14 03 00 00 00 00 00 FF 0F 2C [13:21:54]process_action close_receipt done [13:21:54]requested_data is exist [13:21:54]produce_requested_data [13:21:54]requested_item fm.sn is exist - process it [13:21:54]wFMCommunicate request_size=4 [13:21:54]MH_SAM_APDU [13:21:54]CAPDU: 80 11 00 00 [13:21:54]Write to MH i2c: E2 08 00 15 03 80 11 00 00 00 00 00 00 92 [13:21:54]Write i2c OK [13:21:54]MH_I2C_Read... [13:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:54]Read from MH i2c: E2 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 17 00 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 17 00 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E0 [13:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:21:54]wFMCommunicate OK [13:21:54]requested_item fd.num is exist - process it [13:21:54]SAM_PROTO_GetFieldsCounters [13:21:54]wFMCommunicate request_size=4 [13:21:54]MH_SAM_APDU [13:21:54]CAPDU: 80 13 00 00 [13:21:54]Write to MH i2c: E2 08 00 16 03 80 13 00 00 00 00 00 00 95 [13:21:54]Write i2c OK [13:21:54]MH_I2C_Read... [13:21:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:54]Read from MH i2c: E2 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 62 00 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 62 00 16 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B6 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [13:21: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B6 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:54]wFMCommunicate OK [13:21:54]SAM_PROTO_GetFieldsCounters done [13:21:54]requested_item shift.num is exist - process it [13:21:54]requested_item shift.opened is exist - process it [13:21:54]req_shift_opened [13:21:54]FM_GetShiftState [13:21:54]SAM_PROTO_GetShiftState [13:21:54]wFMCommunicate request_size=4 [13:21:54]MH_SAM_APDU [13:21:54]CAPDU: 80 13 01 00 [13:21:54]Write to MH i2c: E2 08 00 17 03 80 13 01 00 00 00 00 00 97 [13:21:54]Write i2c OK [13:21:54]MH_I2C_Read... [13:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:54]Read from MH i2c: E2 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 0E 00 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 0E 00 17 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D8 [13:21:54]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:21:54]wFMCommunicate OK [13:21:54]SAM_PROTO_GetShiftState done [13:21:54]FM_GetShiftState done [13:21:54]req_shift_opened done [13:21:54]requested_item shift.open_date is exist - process it [13:21:54]req_shift_open_date [13:21:54]req_shift_open_date done [13:21:54]produce_requested_data done [13:21:54]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115638,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:21:54]process_action_free close_receipt [13:21:54]json_value_free [13:21:54]json_value_free done [13:21:54]process_json_proto returns [13:21:54]Send response to host [13:21:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115638,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:21:54]free response buf [13:21:54]execute_script done [13:21:54]execute_script returns [13:21:54]free content buf [13:21:54]Sock 9.Close socket [13:21:54]Sock 9.Thread stoped [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:32]accept exits with 7 [13:22:32]New connection [13:22:32]New thread 3066879332 created [13:22:32]Thread 3067022692 joined [13:22:32]Waiting for new connection... [13:22:32] Sock 7.Parse request [13:22:32]Sock 7.Check first char [13:22:32]Sock 7.First char is OK [13:22:32]request: POST /json_proto HTTP/1.0 [13:22:32]Method: POST [13:22:32]URL: /json_proto [13:22:32]Method is POST - this is cgi request [13:22:32]url: /json_proto [13:22:32]query_string will be loaded in cgi processing [13:22:32]execute_cgi json_proto POST (null) [13:22:32]execute_cgi path=json_proto method=POST [13:22:32]POST find Content-Length [13:22:32]Host: 172.17.41.136:8080 [13:22:32]Content-Length: 575 [13:22:32]Content-Type: application/json [13:22:32] [13:22:32]POST finish read [13:22:32]Found Content-Length = 575 [13:22:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344013", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:32]execute_script... [13:22:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344013", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:32]POST & json_proto [13:22:32]process_json_proto [13:22:32]json parsed OK: [13:22:32]protocol is kg_v1.0 [13:22:32]action value=close_receipt [13:22:32]process_action close_receipt [13:22:32]cmd_close_receipt [13:22:32]MH_GetDate [13:22:32]Write to MH i2c: F0 00 00 18 03 0A [13:22:32]Write i2c OK [13:22:32]MH_I2C_Read... [13:22:32]Read from MH i2c: F0 [13:22:32]MH_I2C_Read... [13:22:32]Read from MH i2c: F0 09 00 [13:22:32]MH_I2C_Read... [13:22:32]Read from MH i2c: F0 09 00 18 03 00 98 6B F1 66 1B D0 5A 64 16 [13:22:32]GetLastDocTimeStamp 1727097710 [13:22:32]current date 1727097752 [13:22:32]FM_GetShiftState [13:22:32]SAM_PROTO_GetShiftState [13:22:32]wFMCommunicate request_size=4 [13:22:32]MH_SAM_APDU [13:22:32]CAPDU: 80 13 01 00 [13:22:32]Write to MH i2c: E2 08 00 19 03 80 13 01 00 00 00 00 00 99 [13:22:32]Write i2c OK [13:22:32]MH_I2C_Read... [13:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:32]Read from MH i2c: E2 [13:22:32]MH_I2C_Read... [13:22:32]Read from MH i2c: E2 0E 00 [13:22:32]MH_I2C_Read... [13:22:32]Read from MH i2c: E2 0E 00 19 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 DA [13:22:32]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:22:32]wFMCommunicate OK [13:22:32]SAM_PROTO_GetShiftState done [13:22:32]FM_GetShiftState done [13:22:32]opened in 1727052070 [13:22:32]opened+sec_in_day 1727138470 [13:22:32]quantity*price = 13400 [13:22:32]sum+1 = 13401 [13:22:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 122 23.09.2024 13:22 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115639 ФПД: 199998617843258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132232&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115639&fm=199998617843258&tin=02508201610067®Number=0000000000091831&sum=13400 0 [13:22:33]StoreToDocumentArchive [13:22:33]shift 472 fd 115639 [13:22:33]save to /storage/0472/doc_00115639 [13:22:33]save last doc name /storage/0472/doc_00115639 to /storage/kkm_last_doc_name [13:22:33]save OK [13:22:33]Clear old archive folders... [13:22:33]ProcessDocumentItem done err = 0, tmpTLVsize=259 [13:22:33]tlvbuf is 017C22D0 [13:22:33]SAM_PROTO_ClearQueue [13:22:33]wFMCommunicate request_size=4 [13:22:33]MH_SAM_APDU [13:22:33]CAPDU: 80 09 00 00 [13:22:33]Write to MH i2c: E2 08 00 26 03 80 09 00 00 00 00 00 00 9B [13:22:33]Write i2c OK [13:22:33]MH_I2C_Read... [13:22:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:33]Read from MH i2c: E2 [13:22:33]MH_I2C_Read... [13:22:33]Read from MH i2c: E2 03 00 [13:22:33]MH_I2C_Read... [13:22:33]Read from MH i2c: E2 03 00 26 03 00 90 00 9D [13:22:33]RAPDU: 90 00 [13:22:33]wFMCommunicate OK [13:22:33]SAM_PROTO_ClearQueue done [13:22:33]KKMCreateOFDPacket [13:22:33]OFDProtocolAddRootSTLVToBuf [13:22:33]FM_MakeSignedData [13:22:33]FM_MakeSignedData [13:22:33]SAM_PROTO_SignData [13:22:33]wFMCommunicate request_size=4 [13:22:33]MH_SAM_APDU [13:22:33]CAPDU: 80 0D 01 02 [13:22:33]Write to MH i2c: E2 08 00 27 03 80 0D 01 02 00 00 00 00 A3 [13:22:33]Write i2c OK [13:22:33]MH_I2C_Read... [13:22:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:33]Read from MH i2c: E2 [13:22:33]MH_I2C_Read... [13:22:33]Read from MH i2c: E2 03 00 [13:22:33]MH_I2C_Read... [13:22:33]Read from MH i2c: E2 03 00 27 03 00 90 00 9E [13:22:33]RAPDU: 90 00 [13:22:33]wFMCommunicate OK [13:22:33]wFMCommunicate request_size=255 [13:22:33]MH_SAM_APDU [13:22:33]CAPDU: 80 0D 02 02 FA 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 98 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B7 [13:22:34]Write to MH i2c: E2 02 01 28 03 80 0D 02 02 FA 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 98 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B7 00 00 67 [13:22:34]Write i2c OK [13:22:34]MH_I2C_Read... [13:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:34]Read from MH i2c: E2 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 03 00 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 03 00 28 03 00 90 00 9F [13:22:34]RAPDU: 90 00 [13:22:34]wFMCommunicate OK [13:22:34]wFMCommunicate request_size=18 [13:22:34]MH_SAM_APDU [13:22:34]CAPDU: 80 0D 02 02 0D C3 01 00 35 04 06 00 B5 E5 CE 92 76 3A [13:22:34]Write to MH i2c: E2 15 00 29 03 80 0D 02 02 0D 00 C3 01 00 35 04 06 00 B5 E5 CE 92 76 3A 00 00 6D [13:22:34]Write i2c OK [13:22:34]MH_I2C_Read... [13:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:34]Read from MH i2c: E2 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 03 00 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 03 00 29 03 00 90 00 A0 [13:22:34]RAPDU: 90 00 [13:22:34]wFMCommunicate OK [13:22:34]wFMCommunicate request_size=4 [13:22:34]MH_SAM_APDU [13:22:34]CAPDU: 80 0D 03 02 [13:22:34]Write to MH i2c: E2 08 00 2A 03 80 0D 03 02 00 00 00 00 A8 [13:22:34]Write i2c OK [13:22:34]MH_I2C_Read... [13:22:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:34]Read from MH i2c: E2 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 0B 00 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 0B 00 2A 03 00 97 5E 5E 44 3D DB FC 51 90 00 A5 [13:22:34]RAPDU: 97 5E 5E 44 3D DB FC 51 90 00 [13:22:34]wFMCommunicate OK [13:22:34]SAM_PROTO_SignData done [13:22:34]FM_MakeSignedData done [13:22:34]CreateOFDProtocolMessage [13:22:34]wFMCommunicate request_size=4 [13:22:34]MH_SAM_APDU [13:22:34]CAPDU: 80 11 00 00 [13:22:34]Write to MH i2c: E2 08 00 2B 03 80 11 00 00 00 00 00 00 A8 [13:22:34]Write i2c OK [13:22:34]MH_I2C_Read... [13:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:34]Read from MH i2c: E2 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 17 00 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 17 00 2B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F6 [13:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:22:34]wFMCommunicate OK [13:22:34]CreateOFDProtocolMessage done [13:22:34]OFDSenderStorePacket 115639 [13:22:34]StoreOFDPacket docnum=115639 [13:22:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 17 01 00 00 EB 99 0F 01 E7 2A 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 98 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B7 C3 01 00 35 04 06 00 B5 E5 CE 92 76 3A 97 5E 5E 44 3D DB FC 51 [13:22:34]CheckFolder [13:22:34]dirname=/storage/ofd_packets [13:22:34]CheckFolder done [13:22:34]ProducePacketName [13:22:34]name=ofd_packets/00115639 [13:22:34]NVStorageSaveData ofd_packets/00115639 [13:22:34]File name is /storage/ofd_packets/00115639 [13:22:34]Write 309 bytes [13:22:34]NVStorageSaveData done [13:22:34]OFDSenderStorePacket done [13:22:34]KKMCreateOFDPacket done [13:22:34]NVStorageSaveData kkm_last_timestamp [13:22:34]File name is /storage/kkm_last_timestamp [13:22:34]Write 4 bytes [13:22:34]NVStorageSaveData done [13:22:34]ExternCall_PrintAddStr [13:22:34]wPrintStart [13:22:34]Write to MH i2c: 01 00 00 2C 03 2F [13:22:34]Write i2c OK [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: 01 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: 01 07 00 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: 01 07 00 2C 03 00 00 00 00 00 FF 0F 44 [13:22:34]RasterBufferAndPrint [13:22:34]line Счет N : (3)344013 [13:22:34]line ИНН: 02508201610067 [13:22:34]line Контрольно-Кассовый Чек [13:22:34]line ПРОДАЖА [13:22:34]line Товар: 46233820 [13:22:34]line LD Compact 100s Silver [13:22:34]line 1.000 * 134.00 [13:22:34]line = 134.00 [13:22:34]line НДС 12% НСП 1% [13:22:34]line > о реализуемом товаре [13:22:34]line ИТОГО: 134.00 [13:22:34]line НСП 1% : 1.19 [13:22:34]line НДС 12% : 14.23 [13:22:34]line Наличными: 134.00 [13:22:34]line Безнал.: 0.00 [13:22:34]line Место: АЗС № 90 "Партнер Нефть" [13:22:34]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:22:34]line СНО: Общий режим [13:22:34]line Чек 122 23.09.2024 13:22 [13:22:34]line Смена: 472 ФФД: 1.0 [13:22:34]line ЗНМ: 0300000120 [13:22:34]line РНМ: 0000000000091831 [13:22:34]line Версия ККМ: 001 [13:22:34]line ФМ: 0000000000871830 [13:22:34]line ФД: 115639 [13:22:34]line ФПД: 199998617843258 [13:22:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132232&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115639&fm=199998617843258&tin=02508201610067®Number=0000000000091831&sum=13400 [13:22:34]line 0 [13:22:34]written 0, free lines is 4095 [13:22:34]OFD Sender: Processing packet 115639 [packets to send 482, broken 481] [13:22:34]ProducePacketName [13:22:34]name=ofd_packets/00115639 [13:22:34]OFD Sender: To server: pG, [13:22:34]CommunicateWithHost lk.salyk.kg:30040 [13:22:34]ConnectInit lk.salyk.kg [13:22:34]Connected sock=10 [13:22:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 17 01 00 00 EB 99 0F 01 E7 2A 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 98 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B7 C3 01 00 35 04 06 00 B5 E5 CE 92 76 3A 97 5E 5E 44 3D DB FC 51 [13:22:34]Write to MH i2c: 01 00 00 53 03 56 [13:22:34]Write i2c OK [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: 01 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: 01 07 00 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: 01 07 00 53 03 00 00 00 00 00 9B 0C 04 [13:22:34]RasterBufferAndPrint [13:22:34]line [13:22:34]line [13:22:34]line [13:22:34]line [13:22:34]line [13:22:34]written 0, free lines is 3232 [13:22:34]MH_Cut [13:22:34]Write to MH i2c: D1 01 00 5A 03 01 2F [13:22:34]Write i2c OK [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: D1 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: D1 01 00 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: D1 01 00 5A 03 00 2E [13:22:34]Write to MH i2c: 01 00 00 5B 03 5E [13:22:34]Write i2c OK [13:22:34]MH_I2C_Read... [13:22:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F9 0A 47 00 75 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 38 33 30 10 04 04 00 B7 C3 01 00 F4 03 04 00 DB 10 F1 66 B6 04 01 00 00 AA E5 89 63 BB 97 27 E2 [13:22:35]CommunicateWithHost err = 0 [13:22:35]CheckOFDResponse [13:22:35]1017 (14) - 77093643461234 [13:22:35]1041 (16) - 0000000000871830 [13:22:35]1040 (4) - 115639 [13:22:35]1012 (4) - 23.09.2024 06:55 [13:22:35]1206 (1) - 0 [13:22:35]OFD Sender: Remove packet 115639 [13:22:35]ProducePacketName [13:22:35]name=ofd_packets/00115639 [13:22:35]NVStorageDeleteData [13:22:35]OFD Sender: No OFD packet to send [13:22:36]*** Cut start [13:22:36]*** Partial cut [13:22:36]*** CUTSNS_PIN = 1 [13:22:36]*** CUTSNS_PIN = 0 [13:22:36]*** Brake cut motor [13:22:36]Read from MH i2c: 01 [13:22:36]MH_I2C_Read... [13:22:36]*** Stop cut motor [13:22:36]*** Cut end [13:22:36]Read from MH i2c: 01 07 00 [13:22:36]MH_I2C_Read... [13:22:36]Read from MH i2c: 01 07 00 5B 03 00 00 00 00 00 FF 0F 73 [13:22:36]process_action close_receipt done [13:22:36]requested_data is exist [13:22:36]produce_requested_data [13:22:36]requested_item fm.sn is exist - process it [13:22:36]wFMCommunicate request_size=4 [13:22:36]MH_SAM_APDU [13:22:36]CAPDU: 80 11 00 00 [13:22:36]Write to MH i2c: E2 08 00 5C 03 80 11 00 00 00 00 00 00 D9 [13:22:36]Write i2c OK [13:22:36]MH_I2C_Read... [13:22:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:36]Read from MH i2c: E2 [13:22:36]MH_I2C_Read... [13:22:36]Read from MH i2c: E2 17 00 [13:22:36]MH_I2C_Read... [13:22:36]Read from MH i2c: E2 17 00 5C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 27 [13:22:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:22:36]wFMCommunicate OK [13:22:36]requested_item fd.num is exist - process it [13:22:36]SAM_PROTO_GetFieldsCounters [13:22:36]wFMCommunicate request_size=4 [13:22:36]MH_SAM_APDU [13:22:36]CAPDU: 80 13 00 00 [13:22:36]Write to MH i2c: E2 08 00 5D 03 80 13 00 00 00 00 00 00 DC [13:22:36]Write i2c OK [13:22:36]MH_I2C_Read... [13:22:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:36]Read from MH i2c: E2 [13:22:36]MH_I2C_Read... [13:22:36]Read from MH i2c: E2 62 00 [13:22:36]MH_I2C_Read... [13:22:36]Read from MH i2c: E2 62 00 5D 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B7 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [13:22:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B7 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:36]wFMCommunicate OK [13:22:36]SAM_PROTO_GetFieldsCounters done [13:22:36]requested_item shift.num is exist - process it [13:22:36]requested_item shift.opened is exist - process it [13:22:36]req_shift_opened [13:22:36]FM_GetShiftState [13:22:36]SAM_PROTO_GetShiftState [13:22:36]wFMCommunicate request_size=4 [13:22:36]MH_SAM_APDU [13:22:36]CAPDU: 80 13 01 00 [13:22:36]Write to MH i2c: E2 08 00 5E 03 80 13 01 00 00 00 00 00 DE [13:22:36]Write i2c OK [13:22:36]MH_I2C_Read... [13:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:36]Read from MH i2c: E2 [13:22:36]MH_I2C_Read... [13:22:36]Read from MH i2c: E2 0E 00 [13:22:36]MH_I2C_Read... [13:22:36]Read from MH i2c: E2 0E 00 5E 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1F [13:22:36]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:22:36]wFMCommunicate OK [13:22:36]SAM_PROTO_GetShiftState done [13:22:36]FM_GetShiftState done [13:22:36]req_shift_opened done [13:22:36]requested_item shift.open_date is exist - process it [13:22:36]req_shift_open_date [13:22:36]req_shift_open_date done [13:22:36]produce_requested_data done [13:22:36]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115639,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:22:36]process_action_free close_receipt [13:22:36]json_value_free [13:22:36]json_value_free done [13:22:36]process_json_proto returns [13:22:36]Send response to host [13:22:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115639,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:22:36]free response buf [13:22:36]execute_script done [13:22:36]execute_script returns [13:22:36]free content buf [13:22:36]Sock 7.Close socket [13:22:36]Sock 7.Thread stoped [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:11]accept exits with 9 [13:24:11]New connection [13:24:11]New thread 3067022692 created [13:24:11]Thread 3066879332 joined [13:24:11]Waiting for new connection... [13:24:11] Sock 9.Parse request [13:24:11]Sock 9.Check first char [13:24:11]Sock 9.First char is OK [13:24:11]request: POST /json_proto HTTP/1.0 [13:24:11]Method: POST [13:24:11]URL: /json_proto [13:24:11]Method is POST - this is cgi request [13:24:11]url: /json_proto [13:24:11]query_string will be loaded in cgi processing [13:24:11]execute_cgi json_proto POST (null) [13:24:11]execute_cgi path=json_proto method=POST [13:24:11]POST find Content-Length [13:24:11]Host: 172.17.41.136:8080 [13:24:11]Content-Length: 660 [13:24:11]Content-Type: application/json [13:24:11] [13:24:11]POST finish read [13:24:11]Found Content-Length = 660 [13:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 9.820, "sum" : 680.53, "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" ] } } [13:24:11]execute_script... [13:24: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)24617680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 9.820, "sum" : 680.53, "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" ] } } [13:24:11]POST & json_proto [13:24:11]process_json_proto [13:24:11]json parsed OK: [13:24:11]protocol is kg_v1.0 [13:24:11]action value=close_receipt [13:24:11]process_action close_receipt [13:24:11]cmd_close_receipt [13:24:11]MH_GetDate [13:24:11]Write to MH i2c: F0 00 00 5F 03 51 [13:24:11]Write i2c OK [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: F0 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: F0 09 00 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: F0 09 00 5F 03 00 FB 6B F1 66 1B D0 5A 64 C0 [13:24:11]GetLastDocTimeStamp 1727097752 [13:24:11]current date 1727097851 [13:24:11]FM_GetShiftState [13:24:11]SAM_PROTO_GetShiftState [13:24:11]wFMCommunicate request_size=4 [13:24:11]MH_SAM_APDU [13:24:11]CAPDU: 80 13 01 00 [13:24:11]Write to MH i2c: E2 08 00 60 03 80 13 01 00 00 00 00 00 E0 [13:24:11]Write i2c OK [13:24:11]MH_I2C_Read... [13:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:11]Read from MH i2c: E2 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: E2 0E 00 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: E2 0E 00 60 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 21 [13:24:11]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:24:11]wFMCommunicate OK [13:24:11]SAM_PROTO_GetShiftState done [13:24:11]FM_GetShiftState done [13:24:11]opened in 1727052070 [13:24:11]opened+sec_in_day 1727138470 [13:24:11]quantity*price = 68052 [13:24:11]sum+1 = 68054 [13:24:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.27 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 123 23.09.2024 13:24 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115640 ФПД: 117359932562661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132411&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115640&fm=117359932562661&tin=02508201610067®Number=0000000000091831&sum=68000 [13:24:12]StoreToDocumentArchive [13:24:12]shift 472 fd 115640 [13:24:12]save to /storage/0472/doc_00115640 [13:24:12]save last doc name /storage/0472/doc_00115640 to /storage/kkm_last_doc_name [13:24:12]save OK [13:24:12]Clear old archive folders... [13:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:24:12]tlvbuf is 017BD470 [13:24:12]SAM_PROTO_ClearQueue [13:24:12]wFMCommunicate request_size=4 [13:24:12]MH_SAM_APDU [13:24:12]CAPDU: 80 09 00 00 [13:24:12]Write to MH i2c: E2 08 00 6D 03 80 09 00 00 00 00 00 00 E2 [13:24:12]Write i2c OK [13:24:12]MH_I2C_Read... [13:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:12]Read from MH i2c: E2 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 03 00 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 03 00 6D 03 00 90 00 E4 [13:24:12]RAPDU: 90 00 [13:24:12]wFMCommunicate OK [13:24:12]SAM_PROTO_ClearQueue done [13:24:12]KKMCreateOFDPacket [13:24:12]OFDProtocolAddRootSTLVToBuf [13:24:12]FM_MakeSignedData [13:24:12]FM_MakeSignedData [13:24:12]SAM_PROTO_SignData [13:24:12]wFMCommunicate request_size=4 [13:24:12]MH_SAM_APDU [13:24:12]CAPDU: 80 0D 01 02 [13:24:12]Write to MH i2c: E2 08 00 6E 03 80 0D 01 02 00 00 00 00 EA [13:24:12]Write i2c OK [13:24:12]MH_I2C_Read... [13:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:12]Read from MH i2c: E2 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 03 00 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 03 00 6E 03 00 90 00 E5 [13:24:12]RAPDU: 90 00 [13:24:12]wFMCommunicate OK [13:24:12]wFMCommunicate request_size=253 [13:24:12]MH_SAM_APDU [13:24:12]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5C 26 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 D5 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 3B 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 7B 00 00 00 F4 03 04 00 FB 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B8 C3 01 00 35 04 06 00 6A BC FD 17 5C E5 [13:24:12]Write to MH i2c: E2 00 01 6F 03 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5C 26 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 D5 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 3B 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 7B 00 00 00 F4 03 04 00 FB 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B8 C3 01 00 35 04 06 00 6A BC FD 17 5C E5 00 00 37 [13:24:12]Write i2c OK [13:24:12]MH_I2C_Read... [13:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:12]Read from MH i2c: E2 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 03 00 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 03 00 6F 03 00 90 00 E6 [13:24:12]RAPDU: 90 00 [13:24:12]wFMCommunicate OK [13:24:12]wFMCommunicate request_size=4 [13:24:12]MH_SAM_APDU [13:24:12]CAPDU: 80 0D 03 02 [13:24:12]Write to MH i2c: E2 08 00 70 03 80 0D 03 02 00 00 00 00 EE [13:24:12]Write i2c OK [13:24:12]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 0B 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 0B 00 70 03 00 A4 1D E2 55 AA 8E 6C D6 90 00 61 [13:24:13]RAPDU: A4 1D E2 55 AA 8E 6C D6 90 00 [13:24:13]wFMCommunicate OK [13:24:13]SAM_PROTO_SignData done [13:24:13]FM_MakeSignedData done [13:24:13]CreateOFDProtocolMessage [13:24:13]wFMCommunicate request_size=4 [13:24:13]MH_SAM_APDU [13:24:13]CAPDU: 80 11 00 00 [13:24:13]Write to MH i2c: E2 08 00 71 03 80 11 00 00 00 00 00 00 EE [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 17 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 17 00 71 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3C [13:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:24:13]wFMCommunicate OK [13:24:13]CreateOFDProtocolMessage done [13:24:13]OFDSenderStorePacket 115640 [13:24:13]StoreOFDPacket docnum=115640 [13:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 D6 8B 00 01 43 04 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5C 26 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 D5 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 3B 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 7B 00 00 00 F4 03 04 00 FB 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B8 C3 01 00 35 04 06 00 6A BC FD 17 5C E5 A4 1D E2 55 AA 8E 6C D6 [13:24:13]CheckFolder [13:24:13]dirname=/storage/ofd_packets [13:24:13]CheckFolder done [13:24:13]ProducePacketName [13:24:13]name=ofd_packets/00115640 [13:24:13]NVStorageSaveData ofd_packets/00115640 [13:24:13]File name is /storage/ofd_packets/00115640 [13:24:13]Write 294 bytes [13:24:13]NVStorageSaveData done [13:24:13]OFDSenderStorePacket done [13:24:13]KKMCreateOFDPacket done [13:24:13]NVStorageSaveData kkm_last_timestamp [13:24:13]File name is /storage/kkm_last_timestamp [13:24:13]Write 4 bytes [13:24:13]NVStorageSaveData done [13:24:13]ExternCall_PrintAddStr [13:24:13]wPrintStart [13:24:13]Write to MH i2c: 01 00 00 72 03 75 [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: 01 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: 01 07 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: 01 07 00 72 03 00 00 00 00 00 FF 0F 8A [13:24:13]RasterBufferAndPrint [13:24:13]line Счет N : (1)24617680 [13:24:13]line ИНН: 02508201610067 [13:24:13]line Контрольно-Кассовый Чек [13:24:13]line ПРОДАЖА [13:24:13]line ТРК (МРК, ГНК) : 44 [13:24:13]line Товар: 2710124130 [13:24:13]line SU-92 [13:24:13]line 9.820 * 69.30 [13:24:13]line = 680.53 [13:24:13]line НДС 12% НСП 1% [13:24:13]line > о реализуемом товаре [13:24:13]line ОКРУГЛЕНИЕ: -0.53 [13:24:13]line ИТОГО: 680.00 [13:24:13]line Внесено: 680.00 [13:24:13]line СДАЧА: 0.00 [13:24:13]line НСП 1% : 6.02 [13:24:13]line НДС 12% : 72.27 [13:24:13]line Наличными: 680.00 [13:24:13]line Безнал.: 0.00 [13:24:13]line Место: АЗС № 90 "Партнер Нефть" [13:24:13]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:24:13]line СНО: Общий режим [13:24:13]line Чек 123 23.09.2024 13:24 [13:24:13]line Смена: 472 ФФД: 1.0 [13:24:13]line ЗНМ: 0300000120 [13:24:13]line РНМ: 0000000000091831 [13:24:13]line Версия ККМ: 001 [13:24:13]line ФМ: 0000000000871830 [13:24:13]line ФД: 115640 [13:24:13]line ФПД: 117359932562661 [13:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132411&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115640&fm=117359932562661&tin=02508201610067®Number=0000000000091831&sum=68000 [13:24:13]OFD Sender: Processing packet 115640 [packets to send 482, broken 481] [13:24:13]ProducePacketName [13:24:13]name=ofd_packets/00115640 [13:24:13]OFD Sender: To server: pG, [13:24:13]CommunicateWithHost lk.salyk.kg:30040 [13:24:13]ConnectInit lk.salyk.kg [13:24:13]written 0, free lines is 4095 [13:24:13]Connected sock=10 [13:24: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 38 33 30 08 01 00 00 D6 8B 00 01 43 04 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5C 26 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 D5 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 3B 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 7B 00 00 00 F4 03 04 00 FB 6B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B8 C3 01 00 35 04 06 00 6A BC FD 17 5C E5 A4 1D E2 55 AA 8E 6C D6 [13:24:13]Write to MH i2c: 01 00 00 9C 03 9F [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: 01 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: 01 07 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: 01 07 00 9C 03 00 00 00 00 00 74 0C 26 [13:24:13]RasterBufferAndPrint [13:24:13]line [13:24:13]line [13:24:13]line [13:24:13]line [13:24:13]line [13:24:13]written 0, free lines is 3191 [13:24:13]MH_Cut [13:24:13]Write to MH i2c: D1 01 00 A3 03 01 78 [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: D1 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: D1 01 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: D1 01 00 A3 03 00 77 [13:24:13]Write to MH i2c: 01 00 00 A4 03 A7 [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 75 61 47 00 96 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 38 33 30 10 04 04 00 B8 C3 01 00 F4 03 04 00 3E 11 F1 66 B6 04 01 00 00 58 84 06 ED BF 19 CE E5 [13:24:13]CommunicateWithHost err = 0 [13:24:13]CheckOFDResponse [13:24:13]1017 (14) - 77093643461234 [13:24:13]1041 (16) - 0000000000871830 [13:24:13]1040 (4) - 115640 [13:24:13]1012 (4) - 23.09.2024 06:57 [13:24:13]1206 (1) - 0 [13:24:13]OFD Sender: Remove packet 115640 [13:24:13]ProducePacketName [13:24:13]name=ofd_packets/00115640 [13:24:13]NVStorageDeleteData [13:24:14]OFD Sender: No OFD packet to send [13:24:15]*** Cut start [13:24:15]*** Partial cut [13:24:15]*** CUTSNS_PIN = 1 [13:24:15]*** CUTSNS_PIN = 0 [13:24:15]*** Brake cut motor [13:24:15]Read from MH i2c: 01 [13:24:15]MH_I2C_Read... [13:24:15]*** Stop cut motor [13:24:15]*** Cut end [13:24:15]Read from MH i2c: 01 07 00 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: 01 07 00 A4 03 00 00 00 00 00 FF 0F BC [13:24:15]process_action close_receipt done [13:24:15]requested_data is exist [13:24:15]produce_requested_data [13:24:15]requested_item fm.sn is exist - process it [13:24:15]wFMCommunicate request_size=4 [13:24:15]MH_SAM_APDU [13:24:15]CAPDU: 80 11 00 00 [13:24:15]Write to MH i2c: E2 08 00 A5 03 80 11 00 00 00 00 00 00 22 [13:24:15]Write i2c OK [13:24:15]MH_I2C_Read... [13:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:15]Read from MH i2c: E2 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 17 00 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 17 00 A5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 70 [13:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:24:15]wFMCommunicate OK [13:24:15]requested_item fd.num is exist - process it [13:24:15]SAM_PROTO_GetFieldsCounters [13:24:15]wFMCommunicate request_size=4 [13:24:15]MH_SAM_APDU [13:24:15]CAPDU: 80 13 00 00 [13:24:15]Write to MH i2c: E2 08 00 A6 03 80 13 00 00 00 00 00 00 25 [13:24:15]Write i2c OK [13:24:15]MH_I2C_Read... [13:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:15]Read from MH i2c: E2 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 62 00 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 62 00 A6 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B8 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [13:24: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B8 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:15]wFMCommunicate OK [13:24:15]SAM_PROTO_GetFieldsCounters done [13:24:15]requested_item shift.num is exist - process it [13:24:15]requested_item shift.opened is exist - process it [13:24:15]req_shift_opened [13:24:15]FM_GetShiftState [13:24:15]SAM_PROTO_GetShiftState [13:24:15]wFMCommunicate request_size=4 [13:24:15]MH_SAM_APDU [13:24:15]CAPDU: 80 13 01 00 [13:24:15]Write to MH i2c: E2 08 00 A7 03 80 13 01 00 00 00 00 00 27 [13:24:15]Write i2c OK [13:24:15]MH_I2C_Read... [13:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:15]Read from MH i2c: E2 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 0E 00 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 0E 00 A7 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 68 [13:24:15]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:24:15]wFMCommunicate OK [13:24:15]SAM_PROTO_GetShiftState done [13:24:15]FM_GetShiftState done [13:24:15]req_shift_opened done [13:24:15]requested_item shift.open_date is exist - process it [13:24:15]req_shift_open_date [13:24:15]req_shift_open_date done [13:24:15]produce_requested_data done [13:24:15]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115640,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:24:15]process_action_free close_receipt [13:24:15]json_value_free [13:24:15]json_value_free done [13:24:15]process_json_proto returns [13:24:15]Send response to host [13:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115640,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:24:15]free response buf [13:24:15]execute_script done [13:24:15]execute_script returns [13:24:15]free content buf [13:24:15]Sock 9.Close socket [13:24:15]Sock 9.Thread stoped [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:37]accept exits with 7 [13:24:37]New connection [13:24:37]New thread 3066879332 created [13:24:37]Thread 3067022692 joined [13:24:37]Waiting for new connection... [13:24:37] Sock 7.Parse request [13:24:37]Sock 7.Check first char [13:24:37]Sock 7.First char is OK [13:24:37]request: POST /json_proto HTTP/1.0 [13:24:37]Method: POST [13:24:37]URL: /json_proto [13:24:37]Method is POST - this is cgi request [13:24:37]url: /json_proto [13:24:37]query_string will be loaded in cgi processing [13:24:37]execute_cgi json_proto POST (null) [13:24:37]execute_cgi path=json_proto method=POST [13:24:37]POST find Content-Length [13:24:37]Host: 172.17.41.136:8080 [13:24:37]Content-Length: 215 [13:24:37]Content-Type: application/json [13:24:37] [13:24:37]POST finish read [13:24:37]Found Content-Length = 215 [13:24:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:37]execute_script... [13:24:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:37]POST & json_proto [13:24:37]process_json_proto [13:24:37]json parsed OK: [13:24:37]protocol is kg_v1.0 [13:24:37]action value=get_value [13:24:37]process_action get_value [13:24:37]cmd_get_value [13:24:37]process_action get_value done [13:24:37]requested_data is exist [13:24:37]produce_requested_data [13:24:37]requested_item kkm.sn is exist - process it [13:24:37]requested_item kkm.ver is exist - process it [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 A8 03 80 11 00 00 00 00 00 00 25 [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 A8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 73 [13:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 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 A9 03 80 13 00 00 00 00 00 00 28 [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 A9 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B8 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B8 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 AA 03 80 13 01 00 00 00 00 00 2A [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 AA 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6B [13:24:37]RAPDU: 09 00 01 26 B9 F0 66 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 {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115640,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:24:37]process_action_free get_value [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":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115640,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [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:37]accept exits with 10 [13:24:37]New connection [13:24:37]New thread 3067022692 created [13:24:37]Thread 3066879332 joined [13:24:37]Waiting for new connection... [13:24:37] Sock 10.Parse request [13:24:37]Sock 10.Check first char [13:24:37]Sock 10.First char is OK [13:24:37]request: POST /json_proto HTTP/1.0 [13:24:37]Method: POST [13:24:37]URL: /json_proto [13:24:37]Method is POST - this is cgi request [13:24:37]url: /json_proto [13:24:37]query_string will be loaded in cgi processing [13:24:37]execute_cgi json_proto POST (null) [13:24:37]execute_cgi path=json_proto method=POST [13:24:37]POST find Content-Length [13:24:37]Host: 172.17.41.136:8080 [13:24:37]Content-Length: 331 [13:24:37]Content-Type: application/json [13:24:37] [13:24:37]POST finish read [13:24:37]Found Content-Length = 331 [13:24:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:24:37]execute_script... [13:24:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:24:38]POST & json_proto [13:24:38]process_json_proto [13:24:38]json parsed OK: [13:24:38]protocol is kg_v1.0 [13:24:38]action value=get_value [13:24:38]process_action get_value [13:24:38]cmd_get_value [13:24:38]process_action get_value done [13:24:38]requested_data is exist [13:24:38]produce_requested_data [13:24:38]requested_item fm.sale.total is exist - process it [13:24:38]SAM_PROTO_GetFMData [13:24:38]wFMCommunicate request_size=4 [13:24:38]MH_SAM_APDU [13:24:38]CAPDU: 80 13 03 00 [13:24:38]Write to MH i2c: E2 08 00 AB 03 80 13 03 00 00 00 00 00 2D [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:24:38]Read from MH i2c: E2 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 FD 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 FD 00 AB 03 00 C5 04 85 04 C1 04 6E 04 04 00 07 C0 01 00 69 04 A3 00 6F 04 04 00 8A BE 01 00 B1 04 05 00 B2 46 52 81 01 70 04 05 00 25 81 99 47 01 72 04 04 00 8D C5 B8 39 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 70 2B ED 28 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 8A E2 68 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 41 AD 01 EF 03 09 90 00 46 [13:24:38]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 07 C0 01 00 69 04 A3 00 6F 04 04 00 8A BE 01 00 B1 04 05 00 B2 46 52 81 01 70 04 05 00 25 81 99 47 01 72 04 04 00 8D C5 B8 39 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 70 2B ED 28 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 8A E2 68 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7D 01 00 00 B1 04 04 00 5C F7 C9 0F 70 04 04 00 5C F7 C9 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 41 AD 01 EF 03 09 90 00 [13:24:38]wFMCommunicate OK [13:24:38]wFMCommunicate request_size=4 [13:24:38]MH_SAM_APDU [13:24:38]CAPDU: 80 17 00 00 [13:24:38]Write to MH i2c: E2 08 00 AC 03 80 17 00 00 00 00 00 00 2F [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:24:38]Read from MH i2c: E2 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 FD 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 FD 00 AC 03 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1C [13:24:38]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F C5 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:24:38]wFMCommunicate OK [13:24:38]wFMCommunicate request_size=4 [13:24:38]MH_SAM_APDU [13:24:38]CAPDU: 80 17 00 00 [13:24:38]Write to MH i2c: E2 08 00 AD 03 80 17 00 00 00 00 00 00 30 [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:24:38]Read from MH i2c: E2 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 FD 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 FD 00 AD 03 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 42 [13:24:38]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:24:38]wFMCommunicate OK [13:24:38]wFMCommunicate request_size=4 [13:24:38]MH_SAM_APDU [13:24:38]CAPDU: 80 17 00 00 [13:24:38]Write to MH i2c: E2 08 00 AE 03 80 17 00 00 00 00 00 00 31 [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:24:39]Read from MH i2c: E2 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 FD 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 FD 00 AE 03 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BD [13:24:39]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:24:39]wFMCommunicate OK [13:24:39]wFMCommunicate request_size=4 [13:24:39]MH_SAM_APDU [13:24:39]CAPDU: 80 17 00 00 [13:24:39]Write to MH i2c: E2 08 00 AF 03 80 17 00 00 00 00 00 00 32 [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:24:39]Read from MH i2c: E2 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 E2 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 E2 00 AF 03 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 10 [13:24:39]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:24:39]wFMCommunicate OK [13:24:39]SAM_PROTO_GetFMData done [13:24:39]requested_item fm.sale_refund.total is exist - process it [13:24:39]requested_item fm.buy.total is exist - process it [13:24:39]requested_item shift.sale.total is exist - process it [13:24:39]SAM_PROTO_GetShiftData [13:24:39]wFMCommunicate request_size=4 [13:24:39]MH_SAM_APDU [13:24:39]CAPDU: 80 13 02 00 [13:24:39]Write to MH i2c: E2 08 00 B0 03 80 13 02 00 00 00 00 00 31 [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:39]OFD Sender: No OFD packet to send [13:24:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:24:39]Read from MH i2c: E2 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 FD 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 FD 00 B0 03 00 AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 A1 77 67 70 04 03 00 88 60 53 72 04 03 00 19 17 14 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 2B FD 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 5D EA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5F [13:24:39]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 A1 77 67 70 04 03 00 88 60 53 72 04 03 00 19 17 14 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 2B FD 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 5D EA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:24:39]wFMCommunicate OK [13:24:39]wFMCommunicate request_size=4 [13:24:39]MH_SAM_APDU [13:24:39]CAPDU: 80 17 00 00 [13:24:39]Write to MH i2c: E2 08 00 B1 03 80 17 00 00 00 00 00 00 34 [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 FD 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 FD 00 B1 03 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 56 [13:24:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:24:40]wFMCommunicate OK [13:24:40]wFMCommunicate request_size=4 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 17 00 00 [13:24:40]Write to MH i2c: E2 08 00 B2 03 80 17 00 00 00 00 00 00 35 [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 FD 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 FD 00 B2 03 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EC [13:24:40]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:24:40]wFMCommunicate OK [13:24:40]wFMCommunicate request_size=4 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 17 00 00 [13:24:40]Write to MH i2c: E2 08 00 B3 03 80 17 00 00 00 00 00 00 36 [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 FD 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 FD 00 B3 03 00 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 90 00 A8 [13:24:40]RAPDU: 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 90 00 [13:24:40]wFMCommunicate OK [13:24:40]wFMCommunicate request_size=4 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 17 00 00 [13:24:40]Write to MH i2c: E2 08 00 B4 03 80 17 00 00 00 00 00 00 37 [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [13:24:41]Read from MH i2c: E2 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 CB 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 CB 00 B4 03 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 20 [13:24:41]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:24:41]wFMCommunicate OK [13:24:41]SAM_PROTO_GetShiftData done [13:24:41]requested_item shift.sale.total_cash is exist - process it [13:24:41]requested_item shift.sale_refund.total is exist - process it [13:24:41]requested_item shift.sale_refund.total_cash is exist - process it [13:24:41]requested_item shift.buy.total is exist - process it [13:24:41]requested_item shift.buy.total_cash is exist - process it [13:24:41]produce_requested_data done [13:24:41]produce_requested_data return {"fm.sale.total":64646202.10,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":67808.33,"shift.sale.total_cash":54642.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} [13:24:41]process_action_free get_value [13:24:41]json_value_free [13:24:41]json_value_free done [13:24:41]process_json_proto returns [13:24:41]Send response to host [13:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64646202.10,"fm.sale_refund.total":2648943.00,"fm.buy.total":0.00,"shift.sale.total":67808.33,"shift.sale.total_cash":54642.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}}} [13:24:41]free response buf [13:24:41]execute_script done [13:24:41]execute_script returns [13:24:41]free content buf [13:24:41]Sock 10.Close socket [13:24:41]Sock 10.Thread stoped [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:52]accept exits with 7 [13:24:52]New connection [13:24:52]New thread 3066879332 created [13:24:52]Thread 3067022692 joined [13:24:52]Waiting for new connection... [13:24:52] Sock 7.Parse request [13:24:52]Sock 7.Check first char [13:24:52]Sock 7.First char is OK [13:24:52]request: POST /json_proto HTTP/1.0 [13:24:52]Method: POST [13:24:52]URL: /json_proto [13:24:52]Method is POST - this is cgi request [13:24:52]url: /json_proto [13:24:52]query_string will be loaded in cgi processing [13:24:52]execute_cgi json_proto POST (null) [13:24:52]execute_cgi path=json_proto method=POST [13:24:52]POST find Content-Length [13:24:52]Host: 172.17.41.136:8080 [13:24:52]Content-Length: 791 [13:24:52]Content-Type: application/json [13:24:52] [13:24:52]POST finish read [13:24:52]Found Content-Length = 791 [13:24:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "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\u000A99990", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:52]execute_script... [13:24: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)24617679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "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\u000A99990", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:52]POST & json_proto [13:24:52]process_json_proto [13:24:52]json parsed OK: [13:24:52]protocol is kg_v1.0 [13:24:52]action value=close_receipt [13:24:52]process_action close_receipt [13:24:52]cmd_close_receipt [13:24:52]MH_GetDate [13:24:52]Write to MH i2c: F0 00 00 B5 03 A7 [13:24:52]Write i2c OK [13:24:52]MH_I2C_Read... [13:24:52]Read from MH i2c: F0 [13:24:52]MH_I2C_Read... [13:24:52]Read from MH i2c: F0 09 00 [13:24:52]MH_I2C_Read... [13:24:52]Read from MH i2c: F0 09 00 B5 03 00 24 6C F1 66 1B D0 5A 64 40 [13:24:52]GetLastDocTimeStamp 1727097851 [13:24:52]current date 1727097892 [13:24:52]FM_GetShiftState [13:24:52]SAM_PROTO_GetShiftState [13:24:52]wFMCommunicate request_size=4 [13:24:52]MH_SAM_APDU [13:24:52]CAPDU: 80 13 01 00 [13:24:52]Write to MH i2c: E2 08 00 B6 03 80 13 01 00 00 00 00 00 36 [13:24:52]Write i2c OK [13:24:52]MH_I2C_Read... [13:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:52]Read from MH i2c: E2 [13:24:52]MH_I2C_Read... [13:24:52]Read from MH i2c: E2 0E 00 [13:24:52]MH_I2C_Read... [13:24:52]Read from MH i2c: E2 0E 00 B6 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 77 [13:24:52]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:24:52]wFMCommunicate OK [13:24:52]SAM_PROTO_GetShiftState done [13:24:52]FM_GetShiftState done [13:24:52]opened in 1727052070 [13:24:52]opened+sec_in_day 1727138470 [13:24:52]quantity*price = 0 [13:24:52]sum+1 = 1 [13:24:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 124 23.09.2024 13:24 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливная Карта 99990 ФМ: 0000000000871830 ФД: 115641 ФПД: 4817967489862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132452&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115641&fm=4817967489862&tin=02508201610067®Number=0000000000091831&sum=0 [13:24:53]StoreToDocumentArchive [13:24:53]shift 472 fd 115641 [13:24:53]save to /storage/0472/doc_00115641 [13:24:53]save last doc name /storage/0472/doc_00115641 to /storage/kkm_last_doc_name [13:24:53]save OK [13:24:53]Clear old archive folders... [13:24:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:24:53]tlvbuf is 017B71F0 [13:24:53]SAM_PROTO_ClearQueue [13:24:53]wFMCommunicate request_size=4 [13:24:53]MH_SAM_APDU [13:24:53]CAPDU: 80 09 00 00 [13:24:53]Write to MH i2c: E2 08 00 C3 03 80 09 00 00 00 00 00 00 38 [13:24:53]Write i2c OK [13:24:53]MH_I2C_Read... [13:24:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:53]Read from MH i2c: E2 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 03 00 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 03 00 C3 03 00 90 00 3A [13:24:53]RAPDU: 90 00 [13:24:53]wFMCommunicate OK [13:24:53]SAM_PROTO_ClearQueue done [13:24:53]KKMCreateOFDPacket [13:24:53]OFDProtocolAddRootSTLVToBuf [13:24:53]FM_MakeSignedData [13:24:53]FM_MakeSignedData [13:24:53]SAM_PROTO_SignData [13:24:53]wFMCommunicate request_size=4 [13:24:53]MH_SAM_APDU [13:24:53]CAPDU: 80 0D 01 02 [13:24:53]Write to MH i2c: E2 08 00 C4 03 80 0D 01 02 00 00 00 00 40 [13:24:53]Write i2c OK [13:24:53]MH_I2C_Read... [13:24:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:53]Read from MH i2c: E2 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 03 00 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 03 00 C4 03 00 90 00 3B [13:24:53]RAPDU: 90 00 [13:24:53]wFMCommunicate OK [13:24:53]wFMCommunicate request_size=255 [13:24:53]MH_SAM_APDU [13:24: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 35 FF 03 08 00 03 D4 99 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 7C 00 00 00 F4 03 04 00 24 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B9 C3 01 00 35 04 06 00 04 61 C5 3D [13:24:53]Write to MH i2c: E2 02 01 C5 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 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 7C 00 00 00 F4 03 04 00 24 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B9 C3 01 00 35 04 06 00 04 61 C5 3D 00 00 22 [13:24:53]Write i2c OK [13:24:53]MH_I2C_Read... [13:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:53]Read from MH i2c: E2 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 03 00 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 03 00 C5 03 00 90 00 3C [13:24:53]RAPDU: 90 00 [13:24:53]wFMCommunicate OK [13:24:53]wFMCommunicate request_size=7 [13:24:53]MH_SAM_APDU [13:24:53]CAPDU: 80 0D 02 02 02 A3 46 [13:24:53]Write to MH i2c: E2 0A 00 C6 03 80 0D 02 02 02 00 A3 46 00 00 30 [13:24:53]Write i2c OK [13:24:53]MH_I2C_Read... [13:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:53]Read from MH i2c: E2 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 03 00 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 03 00 C6 03 00 90 00 3D [13:24:53]RAPDU: 90 00 [13:24:53]wFMCommunicate OK [13:24:53]wFMCommunicate request_size=4 [13:24:53]MH_SAM_APDU [13:24:53]CAPDU: 80 0D 03 02 [13:24:53]Write to MH i2c: E2 08 00 C7 03 80 0D 03 02 00 00 00 00 45 [13:24:53]Write i2c OK [13:24:53]MH_I2C_Read... [13:24:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:53]Read from MH i2c: E2 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 0B 00 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 0B 00 C7 03 00 9F 4E 0A 89 20 EC 3C 52 90 00 60 [13:24:53]RAPDU: 9F 4E 0A 89 20 EC 3C 52 90 00 [13:24:53]wFMCommunicate OK [13:24:53]SAM_PROTO_SignData done [13:24:53]FM_MakeSignedData done [13:24:53]CreateOFDProtocolMessage [13:24:53]wFMCommunicate request_size=4 [13:24:53]MH_SAM_APDU [13:24:53]CAPDU: 80 11 00 00 [13:24:53]Write to MH i2c: E2 08 00 C8 03 80 11 00 00 00 00 00 00 45 [13:24:53]Write i2c OK [13:24:53]MH_I2C_Read... [13:24:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:53]Read from MH i2c: E2 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 17 00 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 17 00 C8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 93 [13:24:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:24:53]wFMCommunicate OK [13:24:53]CreateOFDProtocolMessage done [13:24:53]OFDSenderStorePacket 115641 [13:24:53]StoreOFDPacket docnum=115641 [13:24:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 11 1D 04 01 50 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 35 FF 03 08 00 03 D4 99 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 7C 00 00 00 F4 03 04 00 24 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B9 C3 01 00 35 04 06 00 04 61 C5 3D A3 46 9F 4E 0A 89 20 EC 3C 52 [13:24:53]CheckFolder [13:24:53]dirname=/storage/ofd_packets [13:24:53]CheckFolder done [13:24:53]ProducePacketName [13:24:53]name=ofd_packets/00115641 [13:24:53]NVStorageSaveData ofd_packets/00115641 [13:24:53]File name is /storage/ofd_packets/00115641 [13:24:53]Write 298 bytes [13:24:53]NVStorageSaveData done [13:24:53]OFDSenderStorePacket done [13:24:53]KKMCreateOFDPacket done [13:24:53]NVStorageSaveData kkm_last_timestamp [13:24:53]File name is /storage/kkm_last_timestamp [13:24:53]Write 4 bytes [13:24:53]NVStorageSaveData done [13:24:53]ExternCall_PrintAddStr [13:24:53]wPrintStart [13:24:53]Write to MH i2c: 01 00 00 C9 03 CC [13:24:53]Write i2c OK [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: 01 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: 01 07 00 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: 01 07 00 C9 03 00 00 00 00 00 FF 0F E1 [13:24:53]RasterBufferAndPrint [13:24:53]line Счет N : (1)24617679 [13:24:53]line ИНН: 02508201610067 [13:24:53]line Контрольно-Кассовый Чек [13:24:53]line ПРОДАЖА [13:24:53]line ТРК (МРК, ГНК) : 65 [13:24:53]line Товар: 2710194210 [13:24:53]line ДТ-К-5 [13:24:53]line 39.380 * 0.00 [13:24:53]line = 0.00 [13:24:53]line НДС 12% НСП 1% [13:24:53]line > о реализуемом товаре [13:24:53]line ИТОГО: 0.00 [13:24:53]line НСП 1% : 0.00 [13:24:53]line НДС 12% : 0.00 [13:24:53]line Наличными: 0.00 [13:24:53]line Безнал.: 0.00 [13:24:53]line Место: АЗС № 90 "Партнер Нефть" [13:24:53]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:24:53]line СНО: Общий режим [13:24:53]line Чек 124 23.09.2024 13:24 [13:24:53]line Смена: 472 ФФД: 1.0 [13:24:53]line ЗНМ: 0300000120 [13:24:53]line РНМ: 0000000000091831 [13:24:53]line Версия ККМ: 001 [13:24:53]line Талоны: Топливная Карта [13:24:53]line 99990 [13:24:53]line ФМ: 0000000000871830 [13:24:53]line ФД: 115641 [13:24:53]line ФПД: 4817967489862 [13:24:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132452&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115641&fm=4817967489862&tin=02508201610067®Number=0000000000091831&sum=0 [13:24:53]written 0, free lines is 4095 [13:24:53]OFD Sender: Processing packet 115641 [packets to send 482, broken 481] [13:24:53]ProducePacketName [13:24:53]name=ofd_packets/00115641 [13:24:53]OFD Sender: To server: pG, [13:24:53]CommunicateWithHost lk.salyk.kg:30040 [13:24:53]ConnectInit lk.salyk.kg [13:24:54]Connected sock=11 [13:24: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 38 33 30 0C 01 00 00 11 1D 04 01 50 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 35 FF 03 08 00 03 D4 99 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 7C 00 00 00 F4 03 04 00 24 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 B9 C3 01 00 35 04 06 00 04 61 C5 3D A3 46 9F 4E 0A 89 20 EC 3C 52 [13:24:54]Write to MH i2c: 01 00 00 F2 03 F5 [13:24:54]Write i2c OK [13:24:54]MH_I2C_Read... [13:24:54]Read from MH i2c: 01 [13:24:54]MH_I2C_Read... [13:24:54]Read from MH i2c: 01 07 00 [13:24:54]MH_I2C_Read... [13:24:54]Read from MH i2c: 01 07 00 F2 03 00 00 00 00 00 85 0C 8D [13:24:54]RasterBufferAndPrint [13:24:54]line [13:24:54]line [13:24:54]line [13:24:54]line [13:24:54]line [13:24:54]written 0, free lines is 3210 [13:24:54]MH_Cut [13:24:54]Write to MH i2c: D1 01 00 F9 03 01 CE [13:24:54]Write i2c OK [13:24:54]MH_I2C_Read... [13:24:54]Read from MH i2c: D1 [13:24:54]MH_I2C_Read... [13:24:54]Read from MH i2c: D1 01 00 [13:24:54]MH_I2C_Read... [13:24:54]Read from MH i2c: D1 01 00 F9 03 00 CD [13:24:54]Write to MH i2c: 01 00 00 FA 03 FD [13:24:54]Write i2c OK [13:24:54]MH_I2C_Read... [13:24:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 03 C9 47 00 EE 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 38 33 30 10 04 04 00 B9 C3 01 00 F4 03 04 00 66 11 F1 66 B6 04 01 00 00 5A D8 C7 AF 78 79 50 D8 [13:24:54]CommunicateWithHost err = 0 [13:24:54]CheckOFDResponse [13:24:54]1017 (14) - 77093643461234 [13:24:54]1041 (16) - 0000000000871830 [13:24:54]1040 (4) - 115641 [13:24:54]1012 (4) - 23.09.2024 06:57 [13:24:54]1206 (1) - 0 [13:24:54]OFD Sender: Remove packet 115641 [13:24:54]ProducePacketName [13:24:54]name=ofd_packets/00115641 [13:24:54]NVStorageDeleteData [13:24:54]OFD Sender: No OFD packet to send [13:24:55]*** Cut start [13:24:55]*** Partial cut [13:24:55]*** CUTSNS_PIN = 1 [13:24:55]*** CUTSNS_PIN = 0 [13:24:55]*** Brake cut motor [13:24:56]Read from MH i2c: 01 [13:24:56]MH_I2C_Read... [13:24:56]*** Stop cut motor [13:24:56]*** Cut end [13:24:56]Read from MH i2c: 01 07 00 [13:24:56]MH_I2C_Read... [13:24:56]Read from MH i2c: 01 07 00 FA 03 00 00 00 00 00 FF 0F 12 [13:24:56]process_action close_receipt done [13:24:56]requested_data is exist [13:24:56]produce_requested_data [13:24:56]requested_item fm.sn is exist - process it [13:24:56]wFMCommunicate request_size=4 [13:24:56]MH_SAM_APDU [13:24:56]CAPDU: 80 11 00 00 [13:24:56]Write to MH i2c: E2 08 00 FB 03 80 11 00 00 00 00 00 00 78 [13:24:56]Write i2c OK [13:24:56]MH_I2C_Read... [13:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:56]Read from MH i2c: E2 [13:24:56]MH_I2C_Read... [13:24:56]Read from MH i2c: E2 17 00 [13:24:56]MH_I2C_Read... [13:24:56]Read from MH i2c: E2 17 00 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C6 [13:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:24:56]wFMCommunicate OK [13:24:56]requested_item fd.num is exist - process it [13:24:56]SAM_PROTO_GetFieldsCounters [13:24:56]wFMCommunicate request_size=4 [13:24:56]MH_SAM_APDU [13:24:56]CAPDU: 80 13 00 00 [13:24:56]Write to MH i2c: E2 08 00 FC 03 80 13 00 00 00 00 00 00 7B [13:24:56]Write i2c OK [13:24:56]MH_I2C_Read... [13:24:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:56]Read from MH i2c: E2 [13:24:56]MH_I2C_Read... [13:24:56]Read from MH i2c: E2 62 00 [13:24:56]MH_I2C_Read... [13:24:56]Read from MH i2c: E2 62 00 FC 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B9 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [13:24: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 B9 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:56]wFMCommunicate OK [13:24:56]SAM_PROTO_GetFieldsCounters done [13:24:56]requested_item shift.num is exist - process it [13:24:56]requested_item shift.opened is exist - process it [13:24:56]req_shift_opened [13:24:56]FM_GetShiftState [13:24:56]SAM_PROTO_GetShiftState [13:24:56]wFMCommunicate request_size=4 [13:24:56]MH_SAM_APDU [13:24:56]CAPDU: 80 13 01 00 [13:24:56]Write to MH i2c: E2 08 00 FD 03 80 13 01 00 00 00 00 00 7D [13:24:56]Write i2c OK [13:24:56]MH_I2C_Read... [13:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:56]Read from MH i2c: E2 [13:24:56]MH_I2C_Read... [13:24:56]Read from MH i2c: E2 0E 00 [13:24:56]MH_I2C_Read... [13:24:56]Read from MH i2c: E2 0E 00 FD 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 BE [13:24:56]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:24:56]wFMCommunicate OK [13:24:56]SAM_PROTO_GetShiftState done [13:24:56]FM_GetShiftState done [13:24:56]req_shift_opened done [13:24:56]requested_item shift.open_date is exist - process it [13:24:56]req_shift_open_date [13:24:56]req_shift_open_date done [13:24:56]produce_requested_data done [13:24:56]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115641,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:24:56]process_action_free close_receipt [13:24:56]json_value_free [13:24:56]json_value_free done [13:24:56]process_json_proto returns [13:24:56]Send response to host [13:24:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115641,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:24:56]free response buf [13:24:56]execute_script done [13:24:56]execute_script returns [13:24:56]free content buf [13:24:56]Sock 7.Close socket [13:24:56]Sock 7.Thread stoped [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:12]accept exits with 9 [13:25:12]New connection [13:25:12]New thread 3067022692 created [13:25:12]Thread 3066879332 joined [13:25:12]Waiting for new connection... [13:25:12] Sock 9.Parse request [13:25:12]Sock 9.Check first char [13:25:12]Sock 9.First char is OK [13:25:12]request: POST /json_proto HTTP/1.0 [13:25:12]Method: POST [13:25:12]URL: /json_proto [13:25:12]Method is POST - this is cgi request [13:25:12]url: /json_proto [13:25:12]query_string will be loaded in cgi processing [13:25:12]execute_cgi json_proto POST (null) [13:25:12]execute_cgi path=json_proto method=POST [13:25:12]POST find Content-Length [13:25:12]Host: 172.17.41.136:8080 [13:25:12]Content-Length: 2567 [13:25:12]Content-Type: application/json [13:25:12] [13:25:12]POST finish read [13:25:12]Found Content-Length = 2567 [13:25:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344014", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002782", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Ulker Biskrem \u043A\u0430\u043A\u0430\u043E-\u043A\u0440\u0435\u043C 180\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47018068", "name": "\u0421\u043F\u0440\u0435\u0439 Beauty \u0421\u0435\u043F\u0442 \u0430/\u0431\u0430\u043A\u0442 \u0434\u043B\u044F \u0440\u0443\u043A 60\u043C\u043B", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 730.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:12]execute_script... [13:25:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344014", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002782", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Ulker Biskrem \u043A\u0430\u043A\u0430\u043E-\u043A\u0440\u0435\u043C 180\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47018068", "name": "\u0421\u043F\u0440\u0435\u0439 Beauty \u0421\u0435\u043F\u0442 \u0430/\u0431\u0430\u043A\u0442 \u0434\u043B\u044F \u0440\u0443\u043A 60\u043C\u043B", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 730.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:12]POST & json_proto [13:25:12]process_json_proto [13:25:12]json parsed OK: [13:25:12]protocol is kg_v1.0 [13:25:12]action value=close_receipt [13:25:12]process_action close_receipt [13:25:12]cmd_close_receipt [13:25:12]MH_GetDate [13:25:12]Write to MH i2c: F0 00 00 FE 03 F0 [13:25:12]Write i2c OK [13:25:12]MH_I2C_Read... [13:25:12]Read from MH i2c: F0 [13:25:12]MH_I2C_Read... [13:25:12]Read from MH i2c: F0 09 00 [13:25:12]MH_I2C_Read... [13:25:12]Read from MH i2c: F0 09 00 FE 03 00 38 6C F1 66 1B D0 5A 64 9D [13:25:12]GetLastDocTimeStamp 1727097892 [13:25:12]current date 1727097912 [13:25:12]FM_GetShiftState [13:25:12]SAM_PROTO_GetShiftState [13:25:12]wFMCommunicate request_size=4 [13:25:12]MH_SAM_APDU [13:25:12]CAPDU: 80 13 01 00 [13:25:12]Write to MH i2c: E2 08 00 FF 03 80 13 01 00 00 00 00 00 7F [13:25:12]Write i2c OK [13:25:12]MH_I2C_Read... [13:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:12]Read from MH i2c: E2 [13:25:12]MH_I2C_Read... [13:25:12]Read from MH i2c: E2 0E 00 [13:25:12]MH_I2C_Read... [13:25:12]Read from MH i2c: E2 0E 00 FF 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C0 [13:25:12]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:25:12]wFMCommunicate OK [13:25:12]SAM_PROTO_GetShiftState done [13:25:12]FM_GetShiftState done [13:25:12]opened in 1727052070 [13:25:12]opened+sec_in_day 1727138470 [13:25:12]quantity*price = 12000 [13:25:12]sum+1 = 12001 [13:25:12]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607018771791 Минеральная вода Ессентуки 17 0,45л ст 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112002782 Печенье Ulker Biskrem какао-крем 180г 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 47018068 Спрей Beauty Септ а/бакт для рук 60мл 1.000 * 51.00 = 51.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700041420084 Салфетки влажн BEST ANTIBACTERIAL 100 шт 1.000 * 190.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091607 Сигареты ESSE Exchange 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 730.00 НСП 1% : 6.45 НДС 12% : 77.52 Наличными: 0.00 Безнал.: 730.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 125 23.09.2024 13:25 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115642 ФПД: 34145404366540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132512&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115642&fm=34145404366540&tin=02508201610067®Number=0000000000091831&sum=73000 0 [13:25:13]StoreToDocumentArchive [13:25:13]shift 472 fd 115642 [13:25:13]save to /storage/0472/doc_00115642 [13:25:13]save last doc name /storage/0472/doc_00115642 to /storage/kkm_last_doc_name [13:25:13]save OK [13:25:13]Clear old archive folders... [13:25:13]ProcessDocumentItem done err = 0, tmpTLVsize=997 [13:25:13]tlvbuf is 017AD680 [13:25:13]SAM_PROTO_ClearQueue [13:25:13]wFMCommunicate request_size=4 [13:25:13]MH_SAM_APDU [13:25:13]CAPDU: 80 09 00 00 [13:25:13]Write to MH i2c: E2 08 00 0C 04 80 09 00 00 00 00 00 00 82 [13:25:13]Write i2c OK [13:25:13]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 03 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 03 00 0C 04 00 90 00 84 [13:25:14]RAPDU: 90 00 [13:25:14]wFMCommunicate OK [13:25:14]SAM_PROTO_ClearQueue done [13:25:14]KKMCreateOFDPacket [13:25:14]OFDProtocolAddRootSTLVToBuf [13:25:14]FM_MakeSignedData [13:25:14]FM_MakeSignedData [13:25:14]SAM_PROTO_SignData [13:25:14]wFMCommunicate request_size=4 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 0D 01 02 [13:25:14]Write to MH i2c: E2 08 00 0D 04 80 0D 01 02 00 00 00 00 8A [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 03 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 03 00 0D 04 00 90 00 85 [13:25:14]RAPDU: 90 00 [13:25:14]wFMCommunicate OK [13:25:14]wFMCommunicate request_size=255 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 0D 02 02 FA 03 00 E5 03 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A [13:25:14]Write to MH i2c: E2 02 01 0E 04 80 0D 02 02 FA 00 03 00 E5 03 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 00 2A [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 03 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 03 00 0E 04 00 90 00 86 [13:25:14]RAPDU: 90 00 [13:25:14]wFMCommunicate OK [13:25:14]wFMCommunicate request_size=255 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 0D 02 02 FA 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 08 00 34 37 30 31 38 30 36 38 06 04 3B 00 D0 A1 D0 BF D1 80 D0 B5 D0 B9 20 42 65 61 75 74 79 20 D0 A1 D0 B5 D0 BF D1 82 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 D0 B4 D0 BB D1 8F 20 D1 80 D1 83 D0 BA 20 36 30 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 [13:25:14]Write to MH i2c: E2 02 01 0F 04 80 0D 02 02 FA 00 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 08 00 34 37 30 31 38 30 36 38 06 04 3B 00 D0 A1 D0 BF D1 80 D0 B5 D0 B9 20 42 65 61 75 74 79 20 D0 A1 D0 B5 D0 BF D1 82 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 D0 B4 D0 BB D1 8F 20 D1 80 D1 83 D0 BA 20 36 30 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 00 00 FE [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 03 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 03 00 0F 04 00 90 00 87 [13:25:14]RAPDU: 90 00 [13:25:14]wFMCommunicate OK [13:25:14]wFMCommunicate request_size=255 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 0D 02 02 FA 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 [13:25:14]Write to MH i2c: E2 02 01 10 04 80 0D 02 02 FA 00 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 00 00 DA [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 03 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 03 00 10 04 00 90 00 88 [13:25:14]RAPDU: 90 00 [13:25:14]wFMCommunicate OK [13:25:14]wFMCommunicate request_size=255 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 0D 02 02 FA 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 38 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BA C3 01 00 35 04 06 00 1F 0E 18 B2 AE [13:25:14]Write to MH i2c: E2 02 01 11 04 80 0D 02 02 FA 00 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 38 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BA C3 01 00 35 04 06 00 1F 0E 18 B2 AE 00 00 9C [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]OFD Sender: No OFD packet to send [13:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:15]Read from MH i2c: E2 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: E2 03 00 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: E2 03 00 11 04 00 90 00 89 [13:25:15]RAPDU: 90 00 [13:25:15]wFMCommunicate OK [13:25:15]wFMCommunicate request_size=6 [13:25:15]MH_SAM_APDU [13:25:15]CAPDU: 80 0D 02 02 01 CC [13:25:15]Write to MH i2c: E2 09 00 12 04 80 0D 02 02 01 00 CC 00 00 5E [13:25:15]Write i2c OK [13:25:15]MH_I2C_Read... [13:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:15]Read from MH i2c: E2 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: E2 03 00 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: E2 03 00 12 04 00 90 00 8A [13:25:15]RAPDU: 90 00 [13:25:15]wFMCommunicate OK [13:25:15]wFMCommunicate request_size=4 [13:25:15]MH_SAM_APDU [13:25:15]CAPDU: 80 0D 03 02 [13:25:15]Write to MH i2c: E2 08 00 13 04 80 0D 03 02 00 00 00 00 92 [13:25:15]Write i2c OK [13:25:15]MH_I2C_Read... [13:25:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:15]Read from MH i2c: E2 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: E2 0B 00 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: E2 0B 00 13 04 00 89 53 8A 5C A8 6F E3 0D 90 00 5C [13:25:15]RAPDU: 89 53 8A 5C A8 6F E3 0D 90 00 [13:25:15]wFMCommunicate OK [13:25:15]SAM_PROTO_SignData done [13:25:15]FM_MakeSignedData done [13:25:15]CreateOFDProtocolMessage [13:25:15]wFMCommunicate request_size=4 [13:25:15]MH_SAM_APDU [13:25:15]CAPDU: 80 11 00 00 [13:25:15]Write to MH i2c: E2 08 00 14 04 80 11 00 00 00 00 00 00 92 [13:25:15]Write i2c OK [13:25:15]MH_I2C_Read... [13:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:15]Read from MH i2c: E2 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: E2 17 00 [13:25:15]MH_I2C_Read... [13:25:15]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 38 33 30 90 00 E0 [13:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:25:15]wFMCommunicate OK [13:25:15]CreateOFDProtocolMessage done [13:25:15]OFDSenderStorePacket 115642 [13:25:15]StoreOFDPacket docnum=115642 [13:25:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F9 03 00 00 76 96 F1 03 B1 F1 5A 03 01 00 03 00 E5 03 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 08 00 34 37 30 31 38 30 36 38 06 04 3B 00 D0 A1 D0 BF D1 80 D0 B5 D0 B9 20 42 65 61 75 74 79 20 D0 A1 D0 B5 D0 BF D1 82 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 D0 B4 D0 BB D1 8F 20 D1 80 D1 83 D0 BA 20 36 30 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 38 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BA C3 01 00 35 04 06 00 1F 0E 18 B2 AE CC 89 53 8A 5C A8 6F E3 0D [13:25:15]CheckFolder [13:25:15]dirname=/storage/ofd_packets [13:25:15]CheckFolder done [13:25:15]ProducePacketName [13:25:15]name=ofd_packets/00115642 [13:25:15]NVStorageSaveData ofd_packets/00115642 [13:25:15]File name is /storage/ofd_packets/00115642 [13:25:15]Write 1047 bytes [13:25:15]NVStorageSaveData done [13:25:15]OFDSenderStorePacket done [13:25:15]KKMCreateOFDPacket done [13:25:15]NVStorageSaveData kkm_last_timestamp [13:25:15]File name is /storage/kkm_last_timestamp [13:25:15]Write 4 bytes [13:25:15]NVStorageSaveData done [13:25:15]ExternCall_PrintAddStr [13:25:15]wPrintStart [13:25:15]Write to MH i2c: 01 00 00 15 04 19 [13:25:15]Write i2c OK [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: 01 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: 01 07 00 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: 01 07 00 15 04 00 00 00 00 00 FF 0F 2E [13:25:15]RasterBufferAndPrint [13:25:15]line Счет N : (3)344014 [13:25:15]line ИНН: 02508201610067 [13:25:15]line Контрольно-Кассовый Чек [13:25:15]line ПРОДАЖА [13:25:15]line Товар: 4700000160211 [13:25:15]line Вода Легенда 0,5л [13:25:15]line 3.000 * 40.00 [13:25:15]line = 120.00 [13:25:15]line НДС 12% НСП 1% [13:25:15]line > о реализуемом товаре [13:25:15]line Товар: 4607018771791 [13:25:15]line Минеральная вода Ессентуки 17 0,45л ст [13:25:15]line 1.000 * 105.00 [13:25:15]line = 105.00 [13:25:15]line НДС 12% НСП 1% [13:25:15]line > о реализуемом товаре [13:25:15]line Товар: 4870112002782 [13:25:15]line Печенье Ulker Biskrem какао-крем 180г [13:25:15]line 1.000 * 110.00 [13:25:15]line = 110.00 [13:25:15]line НДС 12% НСП 1% [13:25:15]line > о реализуемом товаре [13:25:15]line Товар: 47018068 [13:25:15]line Спрей Beauty Септ а/бакт для рук 60мл [13:25:15]line 1.000 * 51.00 [13:25:15]line = 51.00 [13:25:15]line НДС 12% НСП 1% [13:25:15]line > о реализуемом товаре [13:25:15]line Товар: 4700041420084 [13:25:15]line Салфетки влажн BEST ANTIBACTERIAL 100 шт [13:25:15]line 1.000 * 190.00 [13:25:15]line = 190.00 [13:25:15]line НДС 12% НСП 1% [13:25:15]line > о реализуемом товаре [13:25:15]line Товар: 2000031750019 [13:25:15]line Пакет Партнер Нефть [13:25:15]line 1.000 * 4.00 [13:25:15]line = 4.00 [13:25:15]line НДС 12% НСП 1% [13:25:15]line > о реализуемом товаре [13:25:15]line Товар: 4640030091607 [13:25:15]line Сигареты ESSE Exchange [13:25:15]line 1.000 * 150.00 [13:25:15]line = 150.00 [13:25:15]line НДС 12% НСП 1% [13:25:15]line > о реализуемом товаре [13:25:15]line ИТОГО: 730.00 [13:25:15]line НСП 1% : 6.45 [13:25:15]line НДС 12% : 77.52 [13:25:15]line Наличными: 0.00 [13:25:15]line Безнал.: 730.00 [13:25:15]line Место: АЗС № 90 "Партнер Нефть" [13:25:15]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:25:15]line СНО: Общий режим [13:25:15]line Чек 125 23.09.2024 13:25 [13:25:15]line Смена: 472 ФФД: 1.0 [13:25:15]line ЗНМ: 0300000120 [13:25:15]line РНМ: 0000000000091831 [13:25:15]line Версия ККМ: 001 [13:25:15]line Платежная система: Бакай Банк [13:25:15]line ФМ: 0000000000871830 [13:25:15]line ФД: 115642 [13:25:15]line ФПД: 34145404366540 [13:25:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132512&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115642&fm=34145404366540&tin=02508201610067®Number=0000000000091831&sum=73000 [13:25:15]OFD Sender: Processing packet 115642 [packets to send 482, broken 481] [13:25:15]ProducePacketName [13:25:15]name=ofd_packets/00115642 [13:25:15]OFD Sender: To server: pG, [13:25:15]CommunicateWithHost lk.salyk.kg:30040 [13:25:15]ConnectInit lk.salyk.kg [13:25:15]line 0 [13:25:15]written 0, free lines is 4095 [13:25:16]Connected sock=11 [13:25: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 38 33 30 F9 03 00 00 76 96 F1 03 B1 F1 5A 03 01 00 03 00 E5 03 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 08 00 34 37 30 31 38 30 36 38 06 04 3B 00 D0 A1 D0 BF D1 80 D0 B5 D0 B9 20 42 65 61 75 74 79 20 D0 A1 D0 B5 D0 BF D1 82 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 D0 B4 D0 BB D1 8F 20 D1 80 D1 83 D0 BA 20 36 30 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 38 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BA C3 01 00 35 04 06 00 1F 0E 18 B2 AE CC 89 53 8A 5C A8 6F E3 0D [13:25:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D9 F8 47 00 C2 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 38 33 30 10 04 04 00 BA C3 01 00 F4 03 04 00 7C 11 F1 66 B6 04 01 00 00 C3 4E 66 AD D1 E1 FB 7A [13:25:16]CommunicateWithHost err = 0 [13:25:16]CheckOFDResponse [13:25:16]1017 (14) - 77093643461234 [13:25:16]1041 (16) - 0000000000871830 [13:25:16]1040 (4) - 115642 [13:25:16]1012 (4) - 23.09.2024 06:58 [13:25:16]1206 (1) - 0 [13:25:16]OFD Sender: Remove packet 115642 [13:25:16]ProducePacketName [13:25:16]name=ofd_packets/00115642 [13:25:16]NVStorageDeleteData [13:25:16]Write to MH i2c: 01 00 00 66 04 6A [13:25:16]Write i2c OK [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: 01 [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: 01 07 00 [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: 01 07 00 66 04 00 00 00 00 00 1E 09 98 [13:25:16]RasterBufferAndPrint [13:25:16]line [13:25:16]line [13:25:16]line [13:25:16]line [13:25:16]line [13:25:16]written 0, free lines is 2343 [13:25:16]MH_Cut [13:25:16]Write to MH i2c: D1 01 00 6D 04 01 43 [13:25:16]Write i2c OK [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: D1 [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: D1 01 00 [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: D1 01 00 6D 04 00 42 [13:25:16]Write to MH i2c: 01 00 00 6E 04 72 [13:25:16]Write i2c OK [13:25:16]MH_I2C_Read... [13:25:16]OFD Sender: No OFD packet to send [13:25:18]*** Cut start [13:25:18]*** Partial cut [13:25:18]*** CUTSNS_PIN = 1 [13:25:18]*** CUTSNS_PIN = 0 [13:25:19]*** Brake cut motor [13:25:19]Read from MH i2c: 01 [13:25:19]MH_I2C_Read... [13:25:19]*** Stop cut motor [13:25:19]*** Cut end [13:25:19]Read from MH i2c: 01 07 00 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: 01 07 00 6E 04 00 00 00 00 00 FF 0F 87 [13:25:19]process_action close_receipt done [13:25:19]requested_data is exist [13:25:19]produce_requested_data [13:25:19]requested_item fm.sn is exist - process it [13:25:19]wFMCommunicate request_size=4 [13:25:19]MH_SAM_APDU [13:25:19]CAPDU: 80 11 00 00 [13:25:19]Write to MH i2c: E2 08 00 6F 04 80 11 00 00 00 00 00 00 ED [13:25:19]Write i2c OK [13:25:19]MH_I2C_Read... [13:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:19]Read from MH i2c: E2 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: E2 17 00 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: E2 17 00 6F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3B [13:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:25:19]wFMCommunicate OK [13:25:19]requested_item fd.num is exist - process it [13:25:19]SAM_PROTO_GetFieldsCounters [13:25:19]wFMCommunicate request_size=4 [13:25:19]MH_SAM_APDU [13:25:19]CAPDU: 80 13 00 00 [13:25:19]Write to MH i2c: E2 08 00 70 04 80 13 00 00 00 00 00 00 F0 [13:25:19]Write i2c OK [13:25:19]MH_I2C_Read... [13:25:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:19]Read from MH i2c: E2 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: E2 62 00 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: E2 62 00 70 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BA C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [13:25: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BA C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:19]wFMCommunicate OK [13:25:19]SAM_PROTO_GetFieldsCounters done [13:25:19]requested_item shift.num is exist - process it [13:25:19]requested_item shift.opened is exist - process it [13:25:19]req_shift_opened [13:25:19]FM_GetShiftState [13:25:19]SAM_PROTO_GetShiftState [13:25:19]wFMCommunicate request_size=4 [13:25:19]MH_SAM_APDU [13:25:19]CAPDU: 80 13 01 00 [13:25:19]Write to MH i2c: E2 08 00 71 04 80 13 01 00 00 00 00 00 F2 [13:25:19]Write i2c OK [13:25:19]MH_I2C_Read... [13:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:19]Read from MH i2c: E2 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: E2 0E 00 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: E2 0E 00 71 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 33 [13:25:19]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:25:19]wFMCommunicate OK [13:25:19]SAM_PROTO_GetShiftState done [13:25:19]FM_GetShiftState done [13:25:19]req_shift_opened done [13:25:19]requested_item shift.open_date is exist - process it [13:25:19]req_shift_open_date [13:25:19]req_shift_open_date done [13:25:19]produce_requested_data done [13:25:19]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115642,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:25:19]process_action_free close_receipt [13:25:19]json_value_free [13:25:19]json_value_free done [13:25:19]process_json_proto returns [13:25:19]Send response to host [13:25:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115642,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:25:19]free response buf [13:25:19]execute_script done [13:25:19]execute_script returns [13:25:19]free content buf [13:25:19]Sock 9.Close socket [13:25:19]Sock 9.Thread stoped [13:25:21]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:48]accept exits with 7 [13:25:48]New connection [13:25:48]New thread 3066879332 created [13:25:48]Thread 3067022692 joined [13:25:48]Waiting for new connection... [13:25:48] Sock 7.Parse request [13:25:48]Sock 7.Check first char [13:25:48]Sock 7.First char is OK [13:25:48]request: POST /json_proto HTTP/1.0 [13:25:48]Method: POST [13:25:48]URL: /json_proto [13:25:48]Method is POST - this is cgi request [13:25:48]url: /json_proto [13:25:48]query_string will be loaded in cgi processing [13:25:48]execute_cgi json_proto POST (null) [13:25:48]execute_cgi path=json_proto method=POST [13:25:48]POST find Content-Length [13:25:48]Host: 172.17.41.136:8080 [13:25:48]Content-Length: 821 [13:25:48]Content-Type: application/json [13:25:48] [13:25:48]POST finish read [13:25:48]Found Content-Length = 821 [13:25:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.030, "sum" : 1337.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1337.83 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:48]execute_script... [13:25: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)24617681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.030, "sum" : 1337.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1337.83 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:48]POST & json_proto [13:25:48]process_json_proto [13:25:48]json parsed OK: [13:25:48]protocol is kg_v1.0 [13:25:48]action value=close_receipt [13:25:48]process_action close_receipt [13:25:48]cmd_close_receipt [13:25:48]MH_GetDate [13:25:48]Write to MH i2c: F0 00 00 72 04 65 [13:25:48]Write i2c OK [13:25:48]MH_I2C_Read... [13:25:48]Read from MH i2c: F0 [13:25:48]MH_I2C_Read... [13:25:48]Read from MH i2c: F0 09 00 [13:25:48]MH_I2C_Read... [13:25:48]Read from MH i2c: F0 09 00 72 04 00 5C 6C F1 66 1B D0 5A 64 36 [13:25:48]GetLastDocTimeStamp 1727097912 [13:25:48]current date 1727097948 [13:25:48]FM_GetShiftState [13:25:48]SAM_PROTO_GetShiftState [13:25:48]wFMCommunicate request_size=4 [13:25:48]MH_SAM_APDU [13:25:48]CAPDU: 80 13 01 00 [13:25:48]Write to MH i2c: E2 08 00 73 04 80 13 01 00 00 00 00 00 F4 [13:25:48]Write i2c OK [13:25:48]MH_I2C_Read... [13:25:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:48]Read from MH i2c: E2 [13:25:48]MH_I2C_Read... [13:25:48]Read from MH i2c: E2 0E 00 [13:25:48]MH_I2C_Read... [13:25:48]Read from MH i2c: E2 0E 00 73 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 35 [13:25:48]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:25:48]wFMCommunicate OK [13:25:48]SAM_PROTO_GetShiftState done [13:25:48]FM_GetShiftState done [13:25:48]opened in 1727052070 [13:25:48]opened+sec_in_day 1727138470 [13:25:48]quantity*price = 133782 [13:25:48]sum+1 = 133784 [13:25:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1337.83 НСП 1% : 11.84 НДС 12% : 142.07 Наличными: 0.00 Безнал.: 1337.83 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 126 23.09.2024 13:25 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115643 ФПД: 165768918816070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132548&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115643&fm=165768918816070&tin=02508201610067®Number=0000000000091831&sum=133783 [13:25:49]StoreToDocumentArchive [13:25:49]shift 472 fd 115643 [13:25:49]save to /storage/0472/doc_00115643 [13:25:49]save last doc name /storage/0472/doc_00115643 to /storage/kkm_last_doc_name [13:25:49]save OK [13:25:49]Clear old archive folders... [13:25:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:49]tlvbuf is 017C2AE0 [13:25:49]SAM_PROTO_ClearQueue [13:25:49]wFMCommunicate request_size=4 [13:25:49]MH_SAM_APDU [13:25:49]CAPDU: 80 09 00 00 [13:25:49]Write to MH i2c: E2 08 00 80 04 80 09 00 00 00 00 00 00 F6 [13:25:49]Write i2c OK [13:25:49]MH_I2C_Read... [13:25:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:49]Read from MH i2c: E2 [13:25:49]MH_I2C_Read... [13:25:49]Read from MH i2c: E2 03 00 [13:25:49]MH_I2C_Read... [13:25:49]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [13:25:49]RAPDU: 90 00 [13:25:49]wFMCommunicate OK [13:25:49]SAM_PROTO_ClearQueue done [13:25:49]KKMCreateOFDPacket [13:25:49]OFDProtocolAddRootSTLVToBuf [13:25:49]FM_MakeSignedData [13:25:49]FM_MakeSignedData [13:25:49]SAM_PROTO_SignData [13:25:49]wFMCommunicate request_size=4 [13:25:49]MH_SAM_APDU [13:25:49]CAPDU: 80 0D 01 02 [13:25:49]Write to MH i2c: E2 08 00 81 04 80 0D 01 02 00 00 00 00 FE [13:25:49]Write i2c OK [13:25:49]MH_I2C_Read... [13:25:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:49]Read from MH i2c: E2 [13:25:49]MH_I2C_Read... [13:25:49]Read from MH i2c: E2 03 00 [13:25:49]MH_I2C_Read... [13:25:49]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [13:25:49]RAPDU: 90 00 [13:25:49]wFMCommunicate OK [13:25:49]wFMCommunicate request_size=255 [13:25:49]MH_SAM_APDU [13:25: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 35 FF 03 08 00 03 6E 46 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 97 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 0A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5C 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BB C3 01 00 35 04 06 00 96 [13:25:49]Write to MH i2c: E2 02 01 82 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 46 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 97 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 0A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5C 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BB C3 01 00 35 04 06 00 96 00 00 9E [13:25:49]Write i2c OK [13:25:49]MH_I2C_Read... [13:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:50]Read from MH i2c: E2 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: E2 03 00 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [13:25:50]RAPDU: 90 00 [13:25:50]wFMCommunicate OK [13:25:50]wFMCommunicate request_size=10 [13:25:50]MH_SAM_APDU [13:25:50]CAPDU: 80 0D 02 02 05 C4 15 85 55 46 [13:25:50]Write to MH i2c: E2 0D 00 83 04 80 0D 02 02 05 00 C4 15 85 55 46 00 00 04 [13:25:50]Write i2c OK [13:25:50]MH_I2C_Read... [13:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:50]Read from MH i2c: E2 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: E2 03 00 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [13:25:50]RAPDU: 90 00 [13:25:50]wFMCommunicate OK [13:25:50]wFMCommunicate request_size=4 [13:25:50]MH_SAM_APDU [13:25:50]CAPDU: 80 0D 03 02 [13:25:50]Write to MH i2c: E2 08 00 84 04 80 0D 03 02 00 00 00 00 03 [13:25:50]Write i2c OK [13:25:50]MH_I2C_Read... [13:25:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:50]Read from MH i2c: E2 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: E2 0B 00 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: E2 0B 00 84 04 00 F8 78 27 92 05 FA 50 E1 90 00 5D [13:25:50]RAPDU: F8 78 27 92 05 FA 50 E1 90 00 [13:25:50]wFMCommunicate OK [13:25:50]SAM_PROTO_SignData done [13:25:50]FM_MakeSignedData done [13:25:50]CreateOFDProtocolMessage [13:25:50]wFMCommunicate request_size=4 [13:25:50]MH_SAM_APDU [13:25:50]CAPDU: 80 11 00 00 [13:25:50]Write to MH i2c: E2 08 00 85 04 80 11 00 00 00 00 00 00 03 [13:25:50]Write i2c OK [13:25:50]MH_I2C_Read... [13:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:50]Read from MH i2c: E2 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: E2 17 00 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: E2 17 00 85 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 51 [13:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:25:50]wFMCommunicate OK [13:25:50]CreateOFDProtocolMessage done [13:25:50]OFDSenderStorePacket 115643 [13:25:50]StoreOFDPacket docnum=115643 [13:25:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 AB 9E 07 01 B0 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 46 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 97 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 0A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5C 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BB C3 01 00 35 04 06 00 96 C4 15 85 55 46 F8 78 27 92 05 FA 50 E1 [13:25:50]CheckFolder [13:25:50]dirname=/storage/ofd_packets [13:25:50]CheckFolder done [13:25:50]ProducePacketName [13:25:50]name=ofd_packets/00115643 [13:25:50]NVStorageSaveData ofd_packets/00115643 [13:25:50]File name is /storage/ofd_packets/00115643 [13:25:50]Write 301 bytes [13:25:50]NVStorageSaveData done [13:25:50]OFDSenderStorePacket done [13:25:50]KKMCreateOFDPacket done [13:25:50]NVStorageSaveData kkm_last_timestamp [13:25:50]File name is /storage/kkm_last_timestamp [13:25:50]Write 4 bytes [13:25:50]NVStorageSaveData done [13:25:50]ExternCall_PrintAddStr [13:25:50]wPrintStart [13:25:50]Write to MH i2c: 01 00 00 86 04 8A [13:25:50]Write i2c OK [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: 01 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: 01 07 00 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: 01 07 00 86 04 00 00 00 00 00 FF 0F 9F [13:25:50]RasterBufferAndPrint [13:25:50]line Счет N : (1)24617681 [13:25:50]line ИНН: 02508201610067 [13:25:50]line Контрольно-Кассовый Чек [13:25:50]line ПРОДАЖА [13:25:50]line ТРК (МРК, ГНК) : 32 [13:25:50]line Товар: 2710124500 [13:25:50]line Аи-95-К-5 [13:25:50]line 18.030 * 74.20 [13:25:50]line = 1337.83 [13:25:50]line НДС 12% НСП 1% [13:25:50]line > о реализуемом товаре [13:25:50]line ИТОГО: 1337.83 [13:25:50]line НСП 1% : 11.84 [13:25:50]line НДС 12% : 142.07 [13:25:50]line Наличными: 0.00 [13:25:50]line Безнал.: 1337.83 [13:25:50]line Место: АЗС № 90 "Партнер Нефть" [13:25:50]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:25:50]line СНО: Общий режим [13:25:50]line Чек 126 23.09.2024 13:25 [13:25:50]line Смена: 472 ФФД: 1.0 [13:25:50]line ЗНМ: 0300000120 [13:25:50]line РНМ: 0000000000091831 [13:25:50]line Версия ККМ: 001 [13:25:50]line Платежная система: Бакай Банк [13:25:50]line ФМ: 0000000000871830 [13:25:50]line ФД: 115643 [13:25:50]line ФПД: 165768918816070 [13:25:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132548&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115643&fm=165768918816070&tin=02508201610067®Number=0000000000091831&sum=133783 [13:25:50]written 0, free lines is 4095 [13:25:50]OFD Sender: Processing packet 115643 [packets to send 482, broken 481] [13:25:50]ProducePacketName [13:25:50]name=ofd_packets/00115643 [13:25:50]OFD Sender: To server: pG, [13:25:50]CommunicateWithHost lk.salyk.kg:30040 [13:25:50]ConnectInit lk.salyk.kg [13:25:50]Connected sock=10 [13:25: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 38 33 30 0F 01 00 00 AB 9E 07 01 B0 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 46 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 97 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 0A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5C 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BB C3 01 00 35 04 06 00 96 C4 15 85 55 46 F8 78 27 92 05 FA 50 E1 [13:25:50]Write to MH i2c: 01 00 00 AF 04 B3 [13:25:50]Write i2c OK [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: 01 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: 01 07 00 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: 01 07 00 AF 04 00 00 00 00 00 82 0C 48 [13:25:50]RasterBufferAndPrint [13:25:50]line [13:25:50]line [13:25:50]line [13:25:50]line [13:25:50]line [13:25:50]written 0, free lines is 3206 [13:25:50]MH_Cut [13:25:50]Write to MH i2c: D1 01 00 B6 04 01 8C [13:25:50]Write i2c OK [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: D1 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: D1 01 00 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: D1 01 00 B6 04 00 8B [13:25:50]Write to MH i2c: 01 00 00 B7 04 BB [13:25:50]Write i2c OK [13:25:50]MH_I2C_Read... [13:25:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 52 FB 47 00 A5 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 38 33 30 10 04 04 00 BB C3 01 00 F4 03 04 00 9F 11 F1 66 B6 04 01 00 00 1D CB 6D FF D4 51 F3 0C [13:25:50]CommunicateWithHost err = 0 [13:25:50]CheckOFDResponse [13:25:50]1017 (14) - 77093643461234 [13:25:50]1041 (16) - 0000000000871830 [13:25:50]1040 (4) - 115643 [13:25:50]1012 (4) - 23.09.2024 06:58 [13:25:50]1206 (1) - 0 [13:25:50]OFD Sender: Remove packet 115643 [13:25:50]ProducePacketName [13:25:50]name=ofd_packets/00115643 [13:25:50]NVStorageDeleteData [13:25:51]OFD Sender: No OFD packet to send [13:25:52]*** Cut start [13:25:52]*** Partial cut [13:25:52]*** CUTSNS_PIN = 1 [13:25:52]*** CUTSNS_PIN = 0 [13:25:52]*** Brake cut motor [13:25:52]Read from MH i2c: 01 [13:25:52]MH_I2C_Read... [13:25:52]*** Stop cut motor [13:25:52]*** Cut end [13:25:52]Read from MH i2c: 01 07 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: 01 07 00 B7 04 00 00 00 00 00 FF 0F D0 [13:25:52]process_action close_receipt done [13:25:52]requested_data is exist [13:25:52]produce_requested_data [13:25:52]requested_item fm.sn is exist - process it [13:25:52]wFMCommunicate request_size=4 [13:25:52]MH_SAM_APDU [13:25:52]CAPDU: 80 11 00 00 [13:25:52]Write to MH i2c: E2 08 00 B8 04 80 11 00 00 00 00 00 00 36 [13:25:52]Write i2c OK [13:25:52]MH_I2C_Read... [13:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:52]Read from MH i2c: E2 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 17 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 17 00 B8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 84 [13:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:25:52]wFMCommunicate OK [13:25:52]requested_item fd.num is exist - process it [13:25:52]SAM_PROTO_GetFieldsCounters [13:25:52]wFMCommunicate request_size=4 [13:25:52]MH_SAM_APDU [13:25:52]CAPDU: 80 13 00 00 [13:25:52]Write to MH i2c: E2 08 00 B9 04 80 13 00 00 00 00 00 00 39 [13:25:52]Write i2c OK [13:25:52]MH_I2C_Read... [13:25:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:52]Read from MH i2c: E2 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 62 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 62 00 B9 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BB C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [13:25: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BB C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:52]wFMCommunicate OK [13:25:52]SAM_PROTO_GetFieldsCounters done [13:25:52]requested_item shift.num is exist - process it [13:25:52]requested_item shift.opened is exist - process it [13:25:52]req_shift_opened [13:25:52]FM_GetShiftState [13:25:52]SAM_PROTO_GetShiftState [13:25:52]wFMCommunicate request_size=4 [13:25:52]MH_SAM_APDU [13:25:52]CAPDU: 80 13 01 00 [13:25:52]Write to MH i2c: E2 08 00 BA 04 80 13 01 00 00 00 00 00 3B [13:25:52]Write i2c OK [13:25:52]MH_I2C_Read... [13:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:52]Read from MH i2c: E2 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 0E 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 0E 00 BA 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7C [13:25:52]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:25:52]wFMCommunicate OK [13:25:52]SAM_PROTO_GetShiftState done [13:25:52]FM_GetShiftState done [13:25:52]req_shift_opened done [13:25:52]requested_item shift.open_date is exist - process it [13:25:52]req_shift_open_date [13:25:52]req_shift_open_date done [13:25:52]produce_requested_data done [13:25:52]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115643,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:25:52]process_action_free close_receipt [13:25:52]json_value_free [13:25:52]json_value_free done [13:25:52]process_json_proto returns [13:25:52]Send response to host [13:25:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115643,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:25:52]free response buf [13:25:52]execute_script done [13:25:52]execute_script returns [13:25:52]free content buf [13:25:52]Sock 7.Close socket [13:25:53]Sock 7.Thread stoped [13:25:53]accept exits with 9 [13:25:53]New connection [13:25:53]New thread 3067022692 created [13:25:53]Thread 3066879332 joined [13:25:53]Waiting for new connection... [13:25:53] Sock 9.Parse request [13:25:53]Sock 9.Check first char [13:25:53]Sock 9.First char is OK [13:25:53]request: POST /json_proto HTTP/1.0 [13:25:53]Method: POST [13:25:53]URL: /json_proto [13:25:53]Method is POST - this is cgi request [13:25:53]url: /json_proto [13:25:53]query_string will be loaded in cgi processing [13:25:53]execute_cgi json_proto POST (null) [13:25:53]execute_cgi path=json_proto method=POST [13:25:53]POST find Content-Length [13:25:53]Host: 172.17.41.136:8080 [13:25:53]Content-Length: 676 [13:25:53]Content-Type: application/json [13:25:53] [13:25:53]POST finish read [13:25:53]Found Content-Length = 676 [13:25:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:53]execute_script... [13:25: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)24617683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:53]POST & json_proto [13:25:53]process_json_proto [13:25:53]json parsed OK: [13:25:53]protocol is kg_v1.0 [13:25:53]action value=close_receipt [13:25:53]process_action close_receipt [13:25:53]cmd_close_receipt [13:25:53]MH_GetDate [13:25:53]Write to MH i2c: F0 00 00 BB 04 AE [13:25:53]Write i2c OK [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: F0 [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: F0 09 00 [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: F0 09 00 BB 04 00 61 6C F1 66 1B D0 5A 64 84 [13:25:53]GetLastDocTimeStamp 1727097948 [13:25:53]current date 1727097953 [13:25:53]FM_GetShiftState [13:25:53]SAM_PROTO_GetShiftState [13:25:53]wFMCommunicate request_size=4 [13:25:53]MH_SAM_APDU [13:25:53]CAPDU: 80 13 01 00 [13:25:53]Write to MH i2c: E2 08 00 BC 04 80 13 01 00 00 00 00 00 3D [13:25:53]Write i2c OK [13:25:53]MH_I2C_Read... [13:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:53]Read from MH i2c: E2 [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: E2 0E 00 [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: E2 0E 00 BC 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7E [13:25:53]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:25:53]wFMCommunicate OK [13:25:53]SAM_PROTO_GetShiftState done [13:25:53]FM_GetShiftState done [13:25:53]opened in 1727052070 [13:25:53]opened+sec_in_day 1727138470 [13:25:53]quantity*price = 50063 [13:25:53]sum+1 = 50064 [13:25:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 127 23.09.2024 13:25 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115644 ФПД: 101657102979039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132553&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115644&fm=101657102979039&tin=02508201610067®Number=0000000000091831&sum=50000 [13:25:54]StoreToDocumentArchive [13:25:54]shift 472 fd 115644 [13:25:54]save to /storage/0472/doc_00115644 [13:25:54]save last doc name /storage/0472/doc_00115644 to /storage/kkm_last_doc_name [13:25:54]save OK [13:25:54]Clear old archive folders... [13:25:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:25:54]tlvbuf is 017B38B0 [13:25:54]SAM_PROTO_ClearQueue [13:25:54]wFMCommunicate request_size=4 [13:25:54]MH_SAM_APDU [13:25:54]CAPDU: 80 09 00 00 [13:25:54]Write to MH i2c: E2 08 00 C9 04 80 09 00 00 00 00 00 00 3F [13:25:54]Write i2c OK [13:25:54]MH_I2C_Read... [13:25:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:54]Read from MH i2c: E2 [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: E2 03 00 [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [13:25:54]RAPDU: 90 00 [13:25:54]wFMCommunicate OK [13:25:54]SAM_PROTO_ClearQueue done [13:25:54]KKMCreateOFDPacket [13:25:54]OFDProtocolAddRootSTLVToBuf [13:25:54]FM_MakeSignedData [13:25:54]FM_MakeSignedData [13:25:54]SAM_PROTO_SignData [13:25:54]wFMCommunicate request_size=4 [13:25:54]MH_SAM_APDU [13:25:54]CAPDU: 80 0D 01 02 [13:25:54]Write to MH i2c: E2 08 00 CA 04 80 0D 01 02 00 00 00 00 47 [13:25:54]Write i2c OK [13:25:54]MH_I2C_Read... [13:25:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:54]Read from MH i2c: E2 [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: E2 03 00 [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [13:25:54]RAPDU: 90 00 [13:25:54]wFMCommunicate OK [13:25:54]wFMCommunicate request_size=255 [13:25:54]MH_SAM_APDU [13:25:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 00 00 00 F4 03 04 00 61 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BC C3 01 00 35 04 06 00 5C 74 E3 83 [13:25:54]Write to MH i2c: E2 02 01 CB 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 00 00 00 F4 03 04 00 61 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BC C3 01 00 35 04 06 00 5C 74 E3 83 00 00 7E [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:55]Read from MH i2c: E2 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 03 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [13:25:55]RAPDU: 90 00 [13:25:55]wFMCommunicate OK [13:25:55]wFMCommunicate request_size=7 [13:25:55]MH_SAM_APDU [13:25:55]CAPDU: 80 0D 02 02 02 0F DF [13:25:55]Write to MH i2c: E2 0A 00 CC 04 80 0D 02 02 02 00 0F DF 00 00 3C [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:55]Read from MH i2c: E2 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 03 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [13:25:55]RAPDU: 90 00 [13:25:55]wFMCommunicate OK [13:25:55]wFMCommunicate request_size=4 [13:25:55]MH_SAM_APDU [13:25:55]CAPDU: 80 0D 03 02 [13:25:55]Write to MH i2c: E2 08 00 CD 04 80 0D 03 02 00 00 00 00 4C [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:55]Read from MH i2c: E2 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 0B 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 0B 00 CD 04 00 E0 EB 62 F6 0B 5E A9 F9 90 00 7B [13:25:55]RAPDU: E0 EB 62 F6 0B 5E A9 F9 90 00 [13:25:55]wFMCommunicate OK [13:25:55]SAM_PROTO_SignData done [13:25:55]FM_MakeSignedData done [13:25:55]CreateOFDProtocolMessage [13:25:55]wFMCommunicate request_size=4 [13:25:55]MH_SAM_APDU [13:25:55]CAPDU: 80 11 00 00 [13:25:55]Write to MH i2c: E2 08 00 CE 04 80 11 00 00 00 00 00 00 4C [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:55]Read from MH i2c: E2 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 17 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 17 00 CE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9A [13:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:25:55]wFMCommunicate OK [13:25:55]CreateOFDProtocolMessage done [13:25:55]OFDSenderStorePacket 115644 [13:25:55]StoreOFDPacket docnum=115644 [13:25:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 76 F8 04 01 00 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 00 00 00 F4 03 04 00 61 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BC C3 01 00 35 04 06 00 5C 74 E3 83 0F DF E0 EB 62 F6 0B 5E A9 F9 [13:25:55]CheckFolder [13:25:55]dirname=/storage/ofd_packets [13:25:55]CheckFolder done [13:25:55]ProducePacketName [13:25:55]name=ofd_packets/00115644 [13:25:55]NVStorageSaveData ofd_packets/00115644 [13:25:55]File name is /storage/ofd_packets/00115644 [13:25:55]Write 298 bytes [13:25:55]NVStorageSaveData done [13:25:55]OFDSenderStorePacket done [13:25:55]KKMCreateOFDPacket done [13:25:55]NVStorageSaveData kkm_last_timestamp [13:25:55]File name is /storage/kkm_last_timestamp [13:25:55]Write 4 bytes [13:25:55]NVStorageSaveData done [13:25:55]ExternCall_PrintAddStr [13:25:55]wPrintStart [13:25:55]Write to MH i2c: 01 00 00 CF 04 D3 [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: 01 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: 01 07 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: 01 07 00 CF 04 00 00 00 00 00 FF 0F E8 [13:25:55]RasterBufferAndPrint [13:25:55]line Счет N : (1)24617683 [13:25:55]line ИНН: 02508201610067 [13:25:55]line Контрольно-Кассовый Чек [13:25:55]line ПРОДАЖА [13:25:55]line ТРК (МРК, ГНК) : 11 [13:25:55]line Товар: 2710194210 [13:25:55]line ДТ-К-5 [13:25:55]line 6.570 * 76.20 [13:25:55]line = 500.63 [13:25:55]line НДС 12% НСП 1% [13:25:55]line > о реализуемом товаре [13:25:55]line ОКРУГЛЕНИЕ: -0.63 [13:25:55]line ИТОГО: 500.00 [13:25:55]line Внесено: 500.00 [13:25:55]line СДАЧА: 0.00 [13:25:55]line НСП 1% : 4.43 [13:25:55]line НДС 12% : 53.16 [13:25:55]line Наличными: 500.00 [13:25:55]line Безнал.: 0.00 [13:25:55]line Место: АЗС № 90 "Партнер Нефть" [13:25:55]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:25:55]line СНО: Общий режим [13:25:55]line Чек 127 23.09.2024 13:25 [13:25:55]line Смена: 472 ФФД: 1.0 [13:25:55]line ЗНМ: 0300000120 [13:25:55]line РНМ: 0000000000091831 [13:25:55]line Версия ККМ: 001 [13:25:55]line ФМ: 0000000000871830 [13:25:55]line ФД: 115644 [13:25:55]line ФПД: 101657102979039 [13:25:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132553&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115644&fm=101657102979039&tin=02508201610067®Number=0000000000091831&sum=50000 [13:25:55]OFD Sender: Processing packet 115644 [packets to send 482, broken 481] [13:25:55]ProducePacketName [13:25:55]name=ofd_packets/00115644 [13:25:55]OFD Sender: To server: pG, [13:25:55]CommunicateWithHost lk.salyk.kg:30040 [13:25:55]ConnectInit lk.salyk.kg [13:25:55]written 0, free lines is 4095 [13:25:55]Connected sock=10 [13:25: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 38 33 30 0C 01 00 00 76 F8 04 01 00 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 00 00 00 F4 03 04 00 61 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BC C3 01 00 35 04 06 00 5C 74 E3 83 0F DF E0 EB 62 F6 0B 5E A9 F9 [13:25:55]Write to MH i2c: 01 00 00 F9 04 FD [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: 01 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: 01 07 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: 01 07 00 F9 04 00 00 00 00 00 77 0C 87 [13:25:55]RasterBufferAndPrint [13:25:55]line [13:25:55]line [13:25:55]line [13:25:55]line [13:25:55]line [13:25:55]written 0, free lines is 3199 [13:25:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 FA 22 47 00 EE FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BC C3 01 00 F4 03 04 00 A4 11 F1 66 B6 04 01 00 00 20 2A 29 AD 35 E1 22 13 [13:25:55]CommunicateWithHost err = 0 [13:25:55]CheckOFDResponse [13:25:55]1017 (14) - 77093643461234 [13:25:55]1041 (16) - 0000000000871830 [13:25:55]1040 (4) - 115644 [13:25:55]1012 (4) - 23.09.2024 06:58 [13:25:55]1206 (1) - 0 [13:25:55]OFD Sender: Remove packet 115644 [13:25:55]ProducePacketName [13:25:55]name=ofd_packets/00115644 [13:25:55]NVStorageDeleteData [13:25:55]MH_Cut [13:25:55]Write to MH i2c: D1 01 00 00 05 01 D7 [13:25:56]Write i2c OK [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: D1 [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: D1 01 00 [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: D1 01 00 00 05 00 D6 [13:25:56]Write to MH i2c: 01 00 00 01 05 06 [13:25:56]Write i2c OK [13:25:56]MH_I2C_Read... [13:25:56]OFD Sender: No OFD packet to send [13:25:57]*** Cut start [13:25:57]*** Partial cut [13:25:57]*** CUTSNS_PIN = 1 [13:25:57]*** CUTSNS_PIN = 0 [13:25:57]*** Brake cut motor [13:25:57]Read from MH i2c: 01 [13:25:57]MH_I2C_Read... [13:25:57]*** Stop cut motor [13:25:57]*** Cut end [13:25:57]Read from MH i2c: 01 07 00 [13:25:57]MH_I2C_Read... [13:25:57]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 FF 0F 1B [13:25:57]process_action close_receipt done [13:25:57]requested_data is exist [13:25:57]produce_requested_data [13:25:57]requested_item fm.sn is exist - process it [13:25:57]wFMCommunicate request_size=4 [13:25:57]MH_SAM_APDU [13:25:57]CAPDU: 80 11 00 00 [13:25:57]Write to MH i2c: E2 08 00 02 05 80 11 00 00 00 00 00 00 81 [13:25:57]Write i2c OK [13:25:57]MH_I2C_Read... [13:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:57]Read from MH i2c: E2 [13:25:57]MH_I2C_Read... [13:25:57]Read from MH i2c: E2 17 00 [13:25:57]MH_I2C_Read... [13:25:57]Read from MH i2c: E2 17 00 02 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CF [13:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:25:57]wFMCommunicate OK [13:25:57]requested_item fd.num is exist - process it [13:25:57]SAM_PROTO_GetFieldsCounters [13:25:57]wFMCommunicate request_size=4 [13:25:57]MH_SAM_APDU [13:25:57]CAPDU: 80 13 00 00 [13:25:57]Write to MH i2c: E2 08 00 03 05 80 13 00 00 00 00 00 00 84 [13:25:57]Write i2c OK [13:25:57]MH_I2C_Read... [13:25:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:57]Read from MH i2c: E2 [13:25:57]MH_I2C_Read... [13:25:57]Read from MH i2c: E2 62 00 [13:25:57]MH_I2C_Read... [13:25:57]Read from MH i2c: E2 62 00 03 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BC C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [13:25: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BC C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:57]wFMCommunicate OK [13:25:58]SAM_PROTO_GetFieldsCounters done [13:25:58]requested_item shift.num is exist - process it [13:25:58]requested_item shift.opened is exist - process it [13:25:58]req_shift_opened [13:25:58]FM_GetShiftState [13:25:58]SAM_PROTO_GetShiftState [13:25:58]wFMCommunicate request_size=4 [13:25:58]MH_SAM_APDU [13:25:58]CAPDU: 80 13 01 00 [13:25:58]Write to MH i2c: E2 08 00 04 05 80 13 01 00 00 00 00 00 86 [13:25:58]Write i2c OK [13:25:58]MH_I2C_Read... [13:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:58]Read from MH i2c: E2 [13:25:58]MH_I2C_Read... [13:25:58]Read from MH i2c: E2 0E 00 [13:25:58]MH_I2C_Read... [13:25:58]Read from MH i2c: E2 0E 00 04 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C7 [13:25:58]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:25:58]wFMCommunicate OK [13:25:58]SAM_PROTO_GetShiftState done [13:25:58]FM_GetShiftState done [13:25:58]req_shift_opened done [13:25:58]requested_item shift.open_date is exist - process it [13:25:58]req_shift_open_date [13:25:58]req_shift_open_date done [13:25:58]produce_requested_data done [13:25:58]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115644,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:25:58]process_action_free close_receipt [13:25:58]json_value_free [13:25:58]json_value_free done [13:25:58]process_json_proto returns [13:25:58]Send response to host [13:25:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115644,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:25:58]free response buf [13:25:58]execute_script done [13:25:58]execute_script returns [13:25:58]free content buf [13:25:58]Sock 9.Close socket [13:25:58]Sock 9.Thread stoped [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:18]accept exits with 7 [13:26:18]New connection [13:26:18]New thread 3066879332 created [13:26:18]Thread 3067022692 joined [13:26:18]Waiting for new connection... [13:26:18] Sock 7.Parse request [13:26:18]Sock 7.Check first char [13:26:18]Sock 7.First char is OK [13:26:18]request: POST /json_proto HTTP/1.0 [13:26:18]Method: POST [13:26:18]URL: /json_proto [13:26:18]Method is POST - this is cgi request [13:26:18]url: /json_proto [13:26:18]query_string will be loaded in cgi processing [13:26:18]execute_cgi json_proto POST (null) [13:26:18]execute_cgi path=json_proto method=POST [13:26:18]POST find Content-Length [13:26:18]Host: 172.17.41.136:8080 [13:26:18]Content-Length: 1389 [13:26:18]Content-Type: application/json [13:26:18] [13:26:18]POST finish read [13:26:18]Found Content-Length = 1389 [13:26:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344015", "tax_sys" : 0, "items" : [ { "code": "4870205390987", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 PN -40 ORGANIC COOLANT Carbox (", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 475.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:18]execute_script... [13:26:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344015", "tax_sys" : 0, "items" : [ { "code": "4870205390987", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 PN -40 ORGANIC COOLANT Carbox (", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 475.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:18]POST & json_proto [13:26:18]process_json_proto [13:26:18]json parsed OK: [13:26:18]protocol is kg_v1.0 [13:26:18]action value=close_receipt [13:26:18]process_action close_receipt [13:26:18]cmd_close_receipt [13:26:18]MH_GetDate [13:26:18]Write to MH i2c: F0 00 00 05 05 F9 [13:26:18]Write i2c OK [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: F0 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: F0 09 00 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: F0 09 00 05 05 00 7A 6C F1 66 1B D0 5A 64 E8 [13:26:18]GetLastDocTimeStamp 1727097953 [13:26:18]current date 1727097978 [13:26:18]FM_GetShiftState [13:26:18]SAM_PROTO_GetShiftState [13:26:18]wFMCommunicate request_size=4 [13:26:18]MH_SAM_APDU [13:26:18]CAPDU: 80 13 01 00 [13:26:18]Write to MH i2c: E2 08 00 06 05 80 13 01 00 00 00 00 00 88 [13:26:18]Write i2c OK [13:26:18]MH_I2C_Read... [13:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:18]Read from MH i2c: E2 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E2 0E 00 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E2 0E 00 06 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C9 [13:26:18]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:26:18]wFMCommunicate OK [13:26:18]SAM_PROTO_GetShiftState done [13:26:18]FM_GetShiftState done [13:26:18]opened in 1727052070 [13:26:18]opened+sec_in_day 1727138470 [13:26:18]quantity*price = 30000 [13:26:18]sum+1 = 30001 [13:26:18]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521216 Напиток MAXI чай 1,2 зел.лимон (новый) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 475.00 НСП 1% : 4.20 НДС 12% : 50.44 Наличными: 0.00 Безнал.: 475.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 128 23.09.2024 13:26 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115645 ФПД: 80656816749274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132618&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115645&fm=80656816749274&tin=02508201610067®Number=0000000000091831&sum=47500 0 [13:26:19]StoreToDocumentArchive [13:26:19]shift 472 fd 115645 [13:26:19]save to /storage/0472/doc_00115645 [13:26:19]save last doc name /storage/0472/doc_00115645 to /storage/kkm_last_doc_name [13:26:19]save OK [13:26:19]Clear old archive folders... [13:26:19]ProcessDocumentItem done err = 0, tmpTLVsize=522 [13:26:19]tlvbuf is 017C12C0 [13:26:19]SAM_PROTO_ClearQueue [13:26:19]wFMCommunicate request_size=4 [13:26:19]MH_SAM_APDU [13:26:19]CAPDU: 80 09 00 00 [13:26:19]Write to MH i2c: E2 08 00 13 05 80 09 00 00 00 00 00 00 8A [13:26:19]Write i2c OK [13:26:19]MH_I2C_Read... [13:26:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:19]Read from MH i2c: E2 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 03 00 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [13:26:19]RAPDU: 90 00 [13:26:19]wFMCommunicate OK [13:26:19]SAM_PROTO_ClearQueue done [13:26:19]KKMCreateOFDPacket [13:26:19]OFDProtocolAddRootSTLVToBuf [13:26:19]FM_MakeSignedData [13:26:19]FM_MakeSignedData [13:26:19]SAM_PROTO_SignData [13:26:19]wFMCommunicate request_size=4 [13:26:19]MH_SAM_APDU [13:26:19]CAPDU: 80 0D 01 02 [13:26:19]Write to MH i2c: E2 08 00 14 05 80 0D 01 02 00 00 00 00 92 [13:26:19]Write i2c OK [13:26:19]MH_I2C_Read... [13:26:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:19]Read from MH i2c: E2 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 03 00 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [13:26:19]RAPDU: 90 00 [13:26:19]wFMCommunicate OK [13:26:19]wFMCommunicate request_size=255 [13:26:19]MH_SAM_APDU [13:26:19]CAPDU: 80 0D 02 02 FA 03 00 0A 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 38 37 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 43 61 72 62 6F 78 20 28 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 [13:26:19]Write to MH i2c: E2 02 01 15 05 80 0D 02 02 FA 00 03 00 0A 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 38 37 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 43 61 72 62 6F 78 20 28 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 00 2A [13:26:19]Write i2c OK [13:26:19]MH_I2C_Read... [13:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:20]Read from MH i2c: E2 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 03 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [13:26:20]RAPDU: 90 00 [13:26:20]wFMCommunicate OK [13:26:20]wFMCommunicate request_size=255 [13:26:20]MH_SAM_APDU [13:26:20]CAPDU: 80 0D 02 02 FA 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C B9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7A 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [13:26:20]Write to MH i2c: E2 02 01 16 05 80 0D 02 02 FA 00 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C B9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7A 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 AD [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:20]Read from MH i2c: E2 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 03 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [13:26:20]RAPDU: 90 00 [13:26:20]wFMCommunicate OK [13:26:20]wFMCommunicate request_size=31 [13:26:20]MH_SAM_APDU [13:26:20]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 BD C3 01 00 35 04 06 00 49 5B 60 E9 3A DA [13:26:20]Write to MH i2c: E2 22 00 17 05 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 BD C3 01 00 35 04 06 00 49 5B 60 E9 3A DA 00 00 3E [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:20]Read from MH i2c: E2 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 03 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [13:26:20]RAPDU: 90 00 [13:26:20]wFMCommunicate OK [13:26:20]wFMCommunicate request_size=4 [13:26:20]MH_SAM_APDU [13:26:20]CAPDU: 80 0D 03 02 [13:26:20]Write to MH i2c: E2 08 00 18 05 80 0D 03 02 00 00 00 00 98 [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:20]Read from MH i2c: E2 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 0B 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 0B 00 18 05 00 37 1F 8A 95 29 8B B2 04 90 00 78 [13:26:20]RAPDU: 37 1F 8A 95 29 8B B2 04 90 00 [13:26:20]wFMCommunicate OK [13:26:20]SAM_PROTO_SignData done [13:26:20]FM_MakeSignedData done [13:26:20]CreateOFDProtocolMessage [13:26:20]wFMCommunicate request_size=4 [13:26:20]MH_SAM_APDU [13:26:20]CAPDU: 80 11 00 00 [13:26:20]Write to MH i2c: E2 08 00 19 05 80 11 00 00 00 00 00 00 98 [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:20]Read from MH i2c: E2 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 17 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 17 00 19 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E6 [13:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:26:20]wFMCommunicate OK [13:26:20]CreateOFDProtocolMessage done [13:26:20]OFDSenderStorePacket 115645 [13:26:20]StoreOFDPacket docnum=115645 [13:26:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 02 00 00 43 E3 16 02 59 A8 5A 03 01 00 03 00 0A 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 38 37 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 43 61 72 62 6F 78 20 28 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C B9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7A 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BD C3 01 00 35 04 06 00 49 5B 60 E9 3A DA 37 1F 8A 95 29 8B B2 04 [13:26:20]CheckFolder [13:26:20]dirname=/storage/ofd_packets [13:26:20]CheckFolder done [13:26:20]ProducePacketName [13:26:20]name=ofd_packets/00115645 [13:26:20]NVStorageSaveData ofd_packets/00115645 [13:26:20]File name is /storage/ofd_packets/00115645 [13:26:20]Write 572 bytes [13:26:20]NVStorageSaveData done [13:26:20]OFDSenderStorePacket done [13:26:20]KKMCreateOFDPacket done [13:26:20]NVStorageSaveData kkm_last_timestamp [13:26:20]File name is /storage/kkm_last_timestamp [13:26:20]Write 4 bytes [13:26:20]NVStorageSaveData done [13:26:20]ExternCall_PrintAddStr [13:26:20]wPrintStart [13:26:20]Write to MH i2c: 01 00 00 1A 05 1F [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: 01 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: 01 07 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: 01 07 00 1A 05 00 00 00 00 00 FF 0F 34 [13:26:20]RasterBufferAndPrint [13:26:20]line Счет N : (3)344015 [13:26:20]line ИНН: 02508201610067 [13:26:20]line Контрольно-Кассовый Чек [13:26:20]line ПРОДАЖА [13:26:20]line Товар: 4870205390987 [13:26:20]line Антифриз PN -40 ORGANIC COOLANT Carbox ( [13:26:20]line 1.000 * 300.00 [13:26:20]line = 300.00 [13:26:20]line НДС 12% НСП 1% [13:26:20]line > о реализуемом товаре [13:26:20]line Товар: 4870202521216 [13:26:20]line Напиток MAXI чай 1,2 зел.лимон (новый) [13:26:20]line 1.000 * 125.00 [13:26:20]line = 125.00 [13:26:20]line НДС 12% НСП 1% [13:26:20]line > о реализуемом товаре [13:26:20]line Товар: 4700000160358 [13:26:20]line Вода Легенда 1л [13:26:20]line 1.000 * 50.00 [13:26:20]line = 50.00 [13:26:20]line НДС 12% НСП 1% [13:26:20]line > о реализуемом товаре [13:26:20]line ИТОГО: 475.00 [13:26:20]line НСП 1% : 4.20 [13:26:20]line НДС 12% : 50.44 [13:26:20]line Наличными: 0.00 [13:26:20]line Безнал.: 475.00 [13:26:20]line Место: АЗС № 90 "Партнер Нефть" [13:26:20]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:26:20]line СНО: Общий режим [13:26:20]line Чек 128 23.09.2024 13:26 [13:26:20]line Смена: 472 ФФД: 1.0 [13:26:20]line ЗНМ: 0300000120 [13:26:20]line РНМ: 0000000000091831 [13:26:20]line Версия ККМ: 001 [13:26:20]line Платежная система: Бакай Банк [13:26:20]line ФМ: 0000000000871830 [13:26:20]line ФД: 115645 [13:26:20]line ФПД: 80656816749274 [13:26:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132618&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115645&fm=80656816749274&tin=02508201610067®Number=0000000000091831&sum=47500 [13:26:20]line 0 [13:26:20]written 0, free lines is 4095 [13:26:20]OFD Sender: Processing packet 115645 [packets to send 482, broken 481] [13:26:20]ProducePacketName [13:26:20]name=ofd_packets/00115645 [13:26:20]OFD Sender: To server: pG, [13:26:20]CommunicateWithHost lk.salyk.kg:30040 [13:26:20]ConnectInit lk.salyk.kg [13:26:21]Connected sock=11 [13:26: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 38 33 30 1E 02 00 00 43 E3 16 02 59 A8 5A 03 01 00 03 00 0A 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 38 37 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 43 61 72 62 6F 78 20 28 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C B9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7A 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BD C3 01 00 35 04 06 00 49 5B 60 E9 3A DA 37 1F 8A 95 29 8B B2 04 [13:26:21]Write to MH i2c: 01 00 00 51 05 56 [13:26:21]Write i2c OK [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: 01 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: 01 07 00 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 48 0B B0 [13:26:21]RasterBufferAndPrint [13:26:21]line [13:26:21]line [13:26:21]line [13:26:21]line [13:26:21]line [13:26:21]written 0, free lines is 2891 [13:26:21]MH_Cut [13:26:21]Write to MH i2c: D1 01 00 58 05 01 2F [13:26:21]Write i2c OK [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: D1 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: D1 01 00 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: D1 01 00 58 05 00 2E [13:26:21]Write to MH i2c: 01 00 00 59 05 5E [13:26:21]Write i2c OK [13:26:21]MH_I2C_Read... [13:26:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 09 24 47 00 A4 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 38 33 30 10 04 04 00 BD C3 01 00 F4 03 04 00 BD 11 F1 66 B6 04 01 00 00 F7 8C 30 34 AE 40 A1 1E [13:26:21]CommunicateWithHost err = 0 [13:26:21]CheckOFDResponse [13:26:21]1017 (14) - 77093643461234 [13:26:21]1041 (16) - 0000000000871830 [13:26:21]1040 (4) - 115645 [13:26:21]1012 (4) - 23.09.2024 06:59 [13:26:21]1206 (1) - 0 [13:26:21]OFD Sender: Remove packet 115645 [13:26:21]ProducePacketName [13:26:21]name=ofd_packets/00115645 [13:26:21]NVStorageDeleteData [13:26:21]OFD Sender: No OFD packet to send [13:26:22]*** Cut start [13:26:22]*** Partial cut [13:26:22]*** CUTSNS_PIN = 1 [13:26:22]*** CUTSNS_PIN = 0 [13:26:23]*** Brake cut motor [13:26:23]Read from MH i2c: 01 [13:26:23]MH_I2C_Read... [13:26:23]*** Stop cut motor [13:26:23]*** Cut end [13:26:23]Read from MH i2c: 01 07 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: 01 07 00 59 05 00 00 00 00 00 FF 0F 73 [13:26:23]process_action close_receipt done [13:26:23]requested_data is exist [13:26:23]produce_requested_data [13:26:23]requested_item fm.sn is exist - process it [13:26:23]wFMCommunicate request_size=4 [13:26:23]MH_SAM_APDU [13:26:23]CAPDU: 80 11 00 00 [13:26:23]Write to MH i2c: E2 08 00 5A 05 80 11 00 00 00 00 00 00 D9 [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:23]Read from MH i2c: E2 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 17 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 17 00 5A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 27 [13:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:26:23]wFMCommunicate OK [13:26:23]requested_item fd.num is exist - process it [13:26:23]SAM_PROTO_GetFieldsCounters [13:26:23]wFMCommunicate request_size=4 [13:26:23]MH_SAM_APDU [13:26:23]CAPDU: 80 13 00 00 [13:26:23]Write to MH i2c: E2 08 00 5B 05 80 13 00 00 00 00 00 00 DC [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:23]Read from MH i2c: E2 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 62 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 62 00 5B 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BD C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [13: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BD C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:23]wFMCommunicate OK [13:26:23]SAM_PROTO_GetFieldsCounters done [13:26:23]requested_item shift.num is exist - process it [13:26:23]requested_item shift.opened is exist - process it [13:26:23]req_shift_opened [13:26:23]FM_GetShiftState [13:26:23]SAM_PROTO_GetShiftState [13:26:23]wFMCommunicate request_size=4 [13:26:23]MH_SAM_APDU [13:26:23]CAPDU: 80 13 01 00 [13:26:23]Write to MH i2c: E2 08 00 5C 05 80 13 01 00 00 00 00 00 DE [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:23]Read from MH i2c: E2 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 0E 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 0E 00 5C 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1F [13:26:23]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:26:23]wFMCommunicate OK [13:26:23]SAM_PROTO_GetShiftState done [13:26:23]FM_GetShiftState done [13:26:23]req_shift_opened done [13:26:23]requested_item shift.open_date is exist - process it [13:26:23]req_shift_open_date [13:26:23]req_shift_open_date done [13:26:23]produce_requested_data done [13:26:23]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115645,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:26:23]process_action_free close_receipt [13:26:23]json_value_free [13:26:23]json_value_free done [13:26:23]process_json_proto returns [13:26:23]Send response to host [13:26:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115645,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:26:23]free response buf [13:26:23]execute_script done [13:26:23]execute_script returns [13:26:23]free content buf [13:26:23]Sock 7.Close socket [13:26:23]Sock 7.Thread stoped [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:49]accept exits with 9 [13:26:49]New connection [13:26:49]New thread 3067022692 created [13:26:49]Thread 3066879332 joined [13:26:49]Waiting for new connection... [13:26:49] Sock 9.Parse request [13:26:49]Sock 9.Check first char [13:26:49]Sock 9.First char is OK [13:26:49]request: POST /json_proto HTTP/1.0 [13:26:49]Method: POST [13:26:49]URL: /json_proto [13:26:49]Method is POST - this is cgi request [13:26:49]url: /json_proto [13:26:49]query_string will be loaded in cgi processing [13:26:49]execute_cgi json_proto POST (null) [13:26:49]execute_cgi path=json_proto method=POST [13:26:49]POST find Content-Length [13:26:49]Host: 172.17.41.136:8080 [13:26:49]Content-Length: 877 [13:26:49]Content-Type: application/json [13:26:49] [13:26:49]POST finish read [13:26:49]Found Content-Length = 877 [13:26:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344016", "tax_sys" : 0, "items" : [ { "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:49]execute_script... [13:26:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344016", "tax_sys" : 0, "items" : [ { "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:49]POST & json_proto [13:26:49]process_json_proto [13:26:49]json parsed OK: [13:26:49]protocol is kg_v1.0 [13:26:49]action value=close_receipt [13:26:49]process_action close_receipt [13:26:49]cmd_close_receipt [13:26:49]MH_GetDate [13:26:49]Write to MH i2c: F0 00 00 5D 05 51 [13:26:49]Write i2c OK [13:26:49]MH_I2C_Read... [13:26:49]Read from MH i2c: F0 [13:26:49]MH_I2C_Read... [13:26:49]Read from MH i2c: F0 09 00 [13:26:49]MH_I2C_Read... [13:26:49]Read from MH i2c: F0 09 00 5D 05 00 99 6C F1 66 1B D0 5A 64 5F [13:26:49]GetLastDocTimeStamp 1727097978 [13:26:49]current date 1727098009 [13:26:49]FM_GetShiftState [13:26:49]SAM_PROTO_GetShiftState [13:26:49]wFMCommunicate request_size=4 [13:26:49]MH_SAM_APDU [13:26:49]CAPDU: 80 13 01 00 [13:26:49]Write to MH i2c: E2 08 00 5E 05 80 13 01 00 00 00 00 00 E0 [13:26:49]Write i2c OK [13:26:49]MH_I2C_Read... [13:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:49]Read from MH i2c: E2 [13:26:49]MH_I2C_Read... [13:26:49]Read from MH i2c: E2 0E 00 [13:26:49]MH_I2C_Read... [13:26:49]Read from MH i2c: E2 0E 00 5E 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 21 [13:26:49]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:26:49]wFMCommunicate OK [13:26:49]SAM_PROTO_GetShiftState done [13:26:49]FM_GetShiftState done [13:26:49]opened in 1727052070 [13:26:49]opened+sec_in_day 1727138470 [13:26:49]quantity*price = 13000 [13:26:49]sum+1 = 13001 [13:26:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 129 23.09.2024 13:26 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115646 ФПД: 81788630820345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132650&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115646&fm=81788630820345&tin=02508201610067®Number=0000000000091831&sum=13000 0 [13:26:50]StoreToDocumentArchive [13:26:50]shift 472 fd 115646 [13:26:50]save to /storage/0472/doc_00115646 [13:26:50]save last doc name /storage/0472/doc_00115646 to /storage/kkm_last_doc_name [13:26:50]save OK [13:26:50]Clear old archive folders... [13:26:50]ProcessDocumentItem done err = 0, tmpTLVsize=296 [13:26:50]tlvbuf is 017BABD0 [13:26:50]SAM_PROTO_ClearQueue [13:26:50]wFMCommunicate request_size=4 [13:26:50]MH_SAM_APDU [13:26:50]CAPDU: 80 09 00 00 [13:26:50]Write to MH i2c: E2 08 00 6B 05 80 09 00 00 00 00 00 00 E2 [13:26:50]Write i2c OK [13:26:50]MH_I2C_Read... [13:26:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:50]Read from MH i2c: E2 [13:26:50]MH_I2C_Read... [13:26:50]Read from MH i2c: E2 03 00 [13:26:50]MH_I2C_Read... [13:26:50]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [13:26:50]RAPDU: 90 00 [13:26:51]wFMCommunicate OK [13:26:51]SAM_PROTO_ClearQueue done [13:26:51]KKMCreateOFDPacket [13:26:51]OFDProtocolAddRootSTLVToBuf [13:26:51]FM_MakeSignedData [13:26:51]FM_MakeSignedData [13:26:51]SAM_PROTO_SignData [13:26:51]wFMCommunicate request_size=4 [13:26:51]MH_SAM_APDU [13:26:51]CAPDU: 80 0D 01 02 [13:26:51]Write to MH i2c: E2 08 00 6C 05 80 0D 01 02 00 00 00 00 EA [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:51]Read from MH i2c: E2 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 03 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [13:26:51]RAPDU: 90 00 [13:26:51]wFMCommunicate OK [13:26:51]wFMCommunicate request_size=255 [13:26:51]MH_SAM_APDU [13:26:51]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9A 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [13:26:51]Write to MH i2c: E2 02 01 6D 05 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9A 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 16 [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:51]Read from MH i2c: E2 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 03 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [13:26:51]RAPDU: 90 00 [13:26:51]wFMCommunicate OK [13:26:51]wFMCommunicate request_size=55 [13:26:51]MH_SAM_APDU [13:26:51]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BE C3 01 00 35 04 06 00 4A 62 E6 49 65 F9 [13:26:51]Write to MH i2c: E2 3A 00 6E 05 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BE C3 01 00 35 04 06 00 4A 62 E6 49 65 F9 00 00 F9 [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:51]Read from MH i2c: E2 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 03 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [13:26:51]RAPDU: 90 00 [13:26:51]wFMCommunicate OK [13:26:51]wFMCommunicate request_size=4 [13:26:51]MH_SAM_APDU [13:26:51]CAPDU: 80 0D 03 02 [13:26:51]Write to MH i2c: E2 08 00 6F 05 80 0D 03 02 00 00 00 00 EF [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:51]Read from MH i2c: E2 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 0B 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 0B 00 6F 05 00 3F 68 52 A9 03 BE 1B A2 90 00 10 [13:26:51]RAPDU: 3F 68 52 A9 03 BE 1B A2 90 00 [13:26:51]wFMCommunicate OK [13:26:51]SAM_PROTO_SignData done [13:26:51]FM_MakeSignedData done [13:26:51]CreateOFDProtocolMessage [13:26:51]wFMCommunicate request_size=4 [13:26:51]MH_SAM_APDU [13:26:51]CAPDU: 80 11 00 00 [13:26:51]Write to MH i2c: E2 08 00 70 05 80 11 00 00 00 00 00 00 EF [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:51]Read from MH i2c: E2 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 17 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 17 00 70 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3D [13:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:26:51]wFMCommunicate OK [13:26:51]CreateOFDProtocolMessage done [13:26:51]OFDSenderStorePacket 115646 [13:26:51]StoreOFDPacket docnum=115646 [13:26:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3C 01 00 00 97 32 34 01 E0 67 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9A 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BE C3 01 00 35 04 06 00 4A 62 E6 49 65 F9 3F 68 52 A9 03 BE 1B A2 [13:26:51]CheckFolder [13:26:51]dirname=/storage/ofd_packets [13:26:51]CheckFolder done [13:26:51]ProducePacketName [13:26:51]name=ofd_packets/00115646 [13:26:51]NVStorageSaveData ofd_packets/00115646 [13:26:51]File name is /storage/ofd_packets/00115646 [13:26:51]Write 346 bytes [13:26:51]NVStorageSaveData done [13:26:51]OFDSenderStorePacket done [13:26:51]KKMCreateOFDPacket done [13:26:51]NVStorageSaveData kkm_last_timestamp [13:26:51]File name is /storage/kkm_last_timestamp [13:26:51]Write 4 bytes [13:26:51]NVStorageSaveData done [13:26:51]ExternCall_PrintAddStr [13:26:51]wPrintStart [13:26:51]Write to MH i2c: 01 00 00 71 05 76 [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 71 05 00 00 00 00 00 FF 0F 8B [13:26:51]RasterBufferAndPrint [13:26:51]line Счет N : (3)344016 [13:26:51]line ИНН: 02508201610067 [13:26:51]line Контрольно-Кассовый Чек [13:26:51]line ПРОДАЖА [13:26:51]line Товар: 4700321005024 [13:26:51]line Миндаль Mike жареный соленый 50г [13:26:51]line 1.000 * 130.00 [13:26:51]line = 130.00 [13:26:51]line НДС 12% НСП 1% [13:26:51]line > о реализуемом товаре [13:26:51]line ИТОГО: 130.00 [13:26:51]line НСП 1% : 1.15 [13:26:51]line НДС 12% : 13.80 [13:26:51]line Наличными: 0.00 [13:26:51]line Безнал.: 130.00 [13:26:51]line Место: АЗС № 90 "Партнер Нефть" [13:26:51]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:26:51]line СНО: Общий режим [13:26:51]line Чек 129 23.09.2024 13:26 [13:26:51]line Смена: 472 ФФД: 1.0 [13:26:51]line ЗНМ: 0300000120 [13:26:51]line РНМ: 0000000000091831 [13:26:51]line Версия ККМ: 001 [13:26:51]line Платежная система: Бакай Банк [13:26:51]line ФМ: 0000000000871830 [13:26:51]line ФД: 115646 [13:26:51]line ФПД: 81788630820345 [13:26:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132650&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115646&fm=81788630820345&tin=02508201610067®Number=0000000000091831&sum=13000 [13:26:51]line 0 [13:26:51]OFD Sender: Processing packet 115646 [packets to send 482, broken 481] [13:26:51]ProducePacketName [13:26:51]name=ofd_packets/00115646 [13:26:51]OFD Sender: To server: pG, [13:26:51]CommunicateWithHost lk.salyk.kg:30040 [13:26:51]ConnectInit lk.salyk.kg [13:26:51]written 0, free lines is 4095 [13:26:52]Connected sock=10 [13:26:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3C 01 00 00 97 32 34 01 E0 67 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9A 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BE C3 01 00 35 04 06 00 4A 62 E6 49 65 F9 3F 68 52 A9 03 BE 1B A2 [13:26:52]Write to MH i2c: 01 00 00 9B 05 A0 [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: 01 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: 01 07 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: 01 07 00 9B 05 00 00 00 00 00 56 0C 09 [13:26:52]RasterBufferAndPrint [13:26:52]line [13:26:52]line [13:26:52]line [13:26:52]line [13:26:52]line [13:26:52]written 0, free lines is 3163 [13:26:52]MH_Cut [13:26:52]Write to MH i2c: D1 01 00 A2 05 01 79 [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: D1 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: D1 01 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: D1 01 00 A2 05 00 78 [13:26:52]Write to MH i2c: 01 00 00 A3 05 A8 [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 DC 3B 47 00 49 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 38 33 30 10 04 04 00 BE C3 01 00 F4 03 04 00 DC 11 F1 66 B6 04 01 00 00 37 8F C2 38 94 32 1E DA [13:26:52]CommunicateWithHost err = 0 [13:26:52]CheckOFDResponse [13:26:52]1017 (14) - 77093643461234 [13:26:52]1041 (16) - 0000000000871830 [13:26:52]1040 (4) - 115646 [13:26:52]1012 (4) - 23.09.2024 06:59 [13:26:52]1206 (1) - 0 [13:26:52]OFD Sender: Remove packet 115646 [13:26:52]ProducePacketName [13:26:52]name=ofd_packets/00115646 [13:26:52]NVStorageDeleteData [13:26:52]OFD Sender: No OFD packet to send [13:26:53]*** Cut start [13:26:53]*** Partial cut [13:26:53]*** CUTSNS_PIN = 1 [13:26:53]*** CUTSNS_PIN = 0 [13:26:53]*** Brake cut motor [13:26:54]Read from MH i2c: 01 [13:26:54]MH_I2C_Read... [13:26:54]*** Stop cut motor [13:26:54]*** Cut end [13:26:54]Read from MH i2c: 01 07 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: 01 07 00 A3 05 00 00 00 00 00 FF 0F BD [13:26:54]process_action close_receipt done [13:26:54]requested_data is exist [13:26:54]produce_requested_data [13:26:54]requested_item fm.sn is exist - process it [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 11 00 00 [13:26:54]Write to MH i2c: E2 08 00 A4 05 80 11 00 00 00 00 00 00 23 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 17 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 17 00 A4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 71 [13:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:26:54]wFMCommunicate OK [13:26:54]requested_item fd.num is exist - process it [13:26:54]SAM_PROTO_GetFieldsCounters [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 13 00 00 [13:26:54]Write to MH i2c: E2 08 00 A5 05 80 13 00 00 00 00 00 00 26 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 62 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 62 00 A5 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BE C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [13:26: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BE C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:54]wFMCommunicate OK [13:26:54]SAM_PROTO_GetFieldsCounters done [13:26:54]requested_item shift.num is exist - process it [13:26:54]requested_item shift.opened is exist - process it [13:26:54]req_shift_opened [13:26:54]FM_GetShiftState [13:26:54]SAM_PROTO_GetShiftState [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 13 01 00 [13:26:54]Write to MH i2c: E2 08 00 A6 05 80 13 01 00 00 00 00 00 28 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 0E 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 0E 00 A6 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 69 [13:26:54]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:26:54]wFMCommunicate OK [13:26:54]SAM_PROTO_GetShiftState done [13:26:54]FM_GetShiftState done [13:26:54]req_shift_opened done [13:26:54]requested_item shift.open_date is exist - process it [13:26:54]req_shift_open_date [13:26:54]req_shift_open_date done [13:26:54]produce_requested_data done [13:26:54]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115646,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:26:54]process_action_free close_receipt [13:26:54]json_value_free [13:26:54]json_value_free done [13:26:54]process_json_proto returns [13:26:54]Send response to host [13:26:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115646,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:26:54]free response buf [13:26:54]execute_script done [13:26:54]execute_script returns [13:26:54]free content buf [13:26:54]Sock 9.Close socket [13:26:54]Sock 9.Thread stoped [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]accept exits with 7 [13:27:37]New connection [13:27:37]New thread 3066879332 created [13:27:37]Thread 3067022692 joined [13:27:37]Waiting for new connection... [13:27:37] Sock 7.Parse request [13:27:37]Sock 7.Check first char [13:27:37]Sock 7.First char is OK [13:27:37]request: POST /json_proto HTTP/1.0 [13:27:37]Method: POST [13:27:37]URL: /json_proto [13:27:37]Method is POST - this is cgi request [13:27:37]url: /json_proto [13:27:37]query_string will be loaded in cgi processing [13:27:37]execute_cgi json_proto POST (null) [13:27:37]execute_cgi path=json_proto method=POST [13:27:37]POST find Content-Length [13:27:37]Host: 172.17.41.136:8080 [13:27:37]Content-Length: 687 [13:27:37]Content-Type: application/json [13:27:37] [13:27:37]POST finish read [13:27:37]Found Content-Length = 687 [13:27:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:37]execute_script... [13:27:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:37]POST & json_proto [13:27:37]process_json_proto [13:27:37]json parsed OK: [13:27:37]protocol is kg_v1.0 [13:27:37]action value=close_receipt [13:27:37]process_action close_receipt [13:27:37]cmd_close_receipt [13:27:37]MH_GetDate [13:27:37]Write to MH i2c: F0 00 00 A7 05 9B [13:27:37]Write i2c OK [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: F0 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: F0 09 00 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: F0 09 00 A7 05 00 C9 6C F1 66 1B D0 5A 64 D9 [13:27:37]GetLastDocTimeStamp 1727098010 [13:27:37]current date 1727098057 [13:27:37]FM_GetShiftState [13:27:37]SAM_PROTO_GetShiftState [13:27:37]wFMCommunicate request_size=4 [13:27:37]MH_SAM_APDU [13:27:37]CAPDU: 80 13 01 00 [13:27:37]Write to MH i2c: E2 08 00 A8 05 80 13 01 00 00 00 00 00 2A [13:27:37]Write i2c OK [13:27:37]MH_I2C_Read... [13:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:37]Read from MH i2c: E2 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 0E 00 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 0E 00 A8 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6B [13:27:37]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:27:37]wFMCommunicate OK [13:27:37]SAM_PROTO_GetShiftState done [13:27:37]FM_GetShiftState done [13:27:37]opened in 1727052070 [13:27:37]opened+sec_in_day 1727138470 [13:27:37]quantity*price = 100007 [13:27:37]sum+1 = 100009 [13:27:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 130 23.09.2024 13:27 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115647 ФПД: 255329167574688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132737&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115647&fm=255329167574688&tin=02508201610067®Number=0000000000091831&sum=100000 [13:27:38]StoreToDocumentArchive [13:27:38]shift 472 fd 115647 [13:27:38]save to /storage/0472/doc_00115647 [13:27:38]save last doc name /storage/0472/doc_00115647 to /storage/kkm_last_doc_name [13:27:38]save OK [13:27:38]Clear old archive folders... [13:27:38]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:27:38]tlvbuf is 017BC220 [13:27:38]SAM_PROTO_ClearQueue [13:27:38]wFMCommunicate request_size=4 [13:27:38]MH_SAM_APDU [13:27:38]CAPDU: 80 09 00 00 [13:27:38]Write to MH i2c: E2 08 00 B5 05 80 09 00 00 00 00 00 00 2C [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:38]Read from MH i2c: E2 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [13:27:38]RAPDU: 90 00 [13:27:38]wFMCommunicate OK [13:27:38]SAM_PROTO_ClearQueue done [13:27:38]KKMCreateOFDPacket [13:27:38]OFDProtocolAddRootSTLVToBuf [13:27:38]FM_MakeSignedData [13:27:38]FM_MakeSignedData [13:27:38]SAM_PROTO_SignData [13:27:38]wFMCommunicate request_size=4 [13:27:38]MH_SAM_APDU [13:27:38]CAPDU: 80 0D 01 02 [13:27:38]Write to MH i2c: E2 08 00 B6 05 80 0D 01 02 00 00 00 00 34 [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:38]Read from MH i2c: E2 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [13:27:38]RAPDU: 90 00 [13:27:38]wFMCommunicate OK [13:27:38]wFMCommunicate request_size=255 [13:27:38]MH_SAM_APDU [13:27:38]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 C9 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BF C3 01 00 35 04 06 00 E8 38 [13:27:38]Write to MH i2c: E2 02 01 B7 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 C9 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BF C3 01 00 35 04 06 00 E8 38 00 00 87 [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:38]Read from MH i2c: E2 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [13:27:38]RAPDU: 90 00 [13:27:38]wFMCommunicate OK [13:27:38]wFMCommunicate request_size=9 [13:27:38]MH_SAM_APDU [13:27:38]CAPDU: 80 0D 02 02 04 74 55 86 A0 [13:27:38]Write to MH i2c: E2 0C 00 B8 05 80 0D 02 02 04 00 74 55 86 A0 00 00 2E [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:38]Read from MH i2c: E2 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [13:27:38]RAPDU: 90 00 [13:27:38]wFMCommunicate OK [13:27:38]wFMCommunicate request_size=4 [13:27:38]MH_SAM_APDU [13:27:38]CAPDU: 80 0D 03 02 [13:27:38]Write to MH i2c: E2 08 00 B9 05 80 0D 03 02 00 00 00 00 39 [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:38]Read from MH i2c: E2 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 0B 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 0B 00 B9 05 00 7F 9C 7C 25 95 90 11 49 90 00 75 [13:27:38]RAPDU: 7F 9C 7C 25 95 90 11 49 90 00 [13:27:38]wFMCommunicate OK [13:27:38]SAM_PROTO_SignData done [13:27:38]FM_MakeSignedData done [13:27:38]CreateOFDProtocolMessage [13:27:38]wFMCommunicate request_size=4 [13:27:38]MH_SAM_APDU [13:27:38]CAPDU: 80 11 00 00 [13:27:38]Write to MH i2c: E2 08 00 BA 05 80 11 00 00 00 00 00 00 39 [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:38]Read from MH i2c: E2 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 17 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 17 00 BA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 87 [13:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:27:38]wFMCommunicate OK [13:27:38]CreateOFDProtocolMessage done [13:27:38]OFDSenderStorePacket 115647 [13:27:38]StoreOFDPacket docnum=115647 [13:27:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 47 FB 06 01 D3 FD 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 C9 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BF C3 01 00 35 04 06 00 E8 38 74 55 86 A0 7F 9C 7C 25 95 90 11 49 [13:27:38]CheckFolder [13:27:38]dirname=/storage/ofd_packets [13:27:38]CheckFolder done [13:27:38]ProducePacketName [13:27:38]name=ofd_packets/00115647 [13:27:38]NVStorageSaveData ofd_packets/00115647 [13:27:38]File name is /storage/ofd_packets/00115647 [13:27:38]Write 300 bytes [13:27:38]NVStorageSaveData done [13:27:38]OFDSenderStorePacket done [13:27:38]KKMCreateOFDPacket done [13:27:38]NVStorageSaveData kkm_last_timestamp [13:27:38]File name is /storage/kkm_last_timestamp [13:27:38]Write 4 bytes [13:27:38]NVStorageSaveData done [13:27:38]ExternCall_PrintAddStr [13:27:38]wPrintStart [13:27:38]Write to MH i2c: 01 00 00 BB 05 C0 [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: 01 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: 01 07 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: 01 07 00 BB 05 00 00 00 00 00 FF 0F D5 [13:27:38]RasterBufferAndPrint [13:27:38]line Счет N : (1)24617682 [13:27:38]line ИНН: 02508201610067 [13:27:38]line Контрольно-Кассовый Чек [13:27:38]line ПРОДАЖА [13:27:38]line ТРК (МРК, ГНК) : 71 [13:27:38]line Товар: 2711190000 [13:27:38]line ГАЗ-К-5 [13:27:38]line 26.740 * 37.40 [13:27:38]line = 1000.08 [13:27:38]line НДС 12% НСП 1% [13:27:38]line > о реализуемом товаре [13:27:38]line ОКРУГЛЕНИЕ: -0.08 [13:27:38]line ИТОГО: 1000.00 [13:27:38]line Внесено: 1000.00 [13:27:38]line СДАЧА: 0.00 [13:27:38]line НСП 1% : 8.85 [13:27:38]line НДС 12% : 106.20 [13:27:38]line Наличными: 1000.00 [13:27:38]line Безнал.: 0.00 [13:27:38]line Место: АЗС № 90 "Партнер Нефть" [13:27:38]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:27:38]line СНО: Общий режим [13:27:38]line Чек 130 23.09.2024 13:27 [13:27:38]line Смена: 472 ФФД: 1.0 [13:27:38]line ЗНМ: 0300000120 [13:27:38]line РНМ: 0000000000091831 [13:27:38]line Версия ККМ: 001 [13:27:38]line ФМ: 0000000000871830 [13:27:38]line ФД: 115647 [13:27:38]line ФПД: 255329167574688 [13:27:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132737&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115647&fm=255329167574688&tin=02508201610067®Number=0000000000091831&sum=100000 [13:27:39]OFD Sender: Processing packet 115647 [packets to send 482, broken 481] [13:27:39]ProducePacketName [13:27:39]name=ofd_packets/00115647 [13:27:39]OFD Sender: To server: pG, [13:27:39]CommunicateWithHost lk.salyk.kg:30040 [13:27:39]ConnectInit lk.salyk.kg [13:27:39]written 0, free lines is 4095 [13:27:39]Connected sock=9 [13:27:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 47 FB 06 01 D3 FD 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 C9 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BF C3 01 00 35 04 06 00 E8 38 74 55 86 A0 7F 9C 7C 25 95 90 11 49 [13:27:39]Write to MH i2c: 01 00 00 E5 05 EA [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 07 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 07 00 E5 05 00 00 00 00 00 71 0C 6E [13:27:39]RasterBufferAndPrint [13:27:39]line [13:27:39]line [13:27:39]line [13:27:39]line [13:27:39]line [13:27:39]written 0, free lines is 3190 [13:27:39]MH_Cut [13:27:39]Write to MH i2c: D1 01 00 EC 05 01 C3 [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: D1 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: D1 01 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: D1 01 00 EC 05 00 C2 [13:27:39]Write to MH i2c: 01 00 00 ED 05 F2 [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1A 62 47 00 8F 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 38 33 30 10 04 04 00 BF C3 01 00 F4 03 04 00 0C 12 F1 66 B6 04 01 00 00 6C 6A C6 08 90 CA 02 F6 [13:27:39]CommunicateWithHost err = 0 [13:27:39]CheckOFDResponse [13:27:39]1017 (14) - 77093643461234 [13:27:39]1041 (16) - 0000000000871830 [13:27:39]1040 (4) - 115647 [13:27:39]1012 (4) - 23.09.2024 07:00 [13:27:39]1206 (1) - 0 [13:27:39]OFD Sender: Remove packet 115647 [13:27:39]ProducePacketName [13:27:39]name=ofd_packets/00115647 [13:27:39]NVStorageDeleteData [13:27:40]OFD Sender: No OFD packet to send [13:27:40]*** Cut start [13:27:40]*** Partial cut [13:27:40]*** CUTSNS_PIN = 1 [13:27:41]*** CUTSNS_PIN = 0 [13:27:41]*** Brake cut motor [13:27:41]Read from MH i2c: 01 [13:27:41]MH_I2C_Read... [13:27:41]*** Stop cut motor [13:27:41]*** Cut end [13:27:41]Read from MH i2c: 01 07 00 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: 01 07 00 ED 05 00 00 00 00 00 FF 0F 07 [13:27:41]process_action close_receipt done [13:27:41]requested_data is exist [13:27:41]produce_requested_data [13:27:41]requested_item fm.sn is exist - process it [13:27:41]wFMCommunicate request_size=4 [13:27:41]MH_SAM_APDU [13:27:41]CAPDU: 80 11 00 00 [13:27:41]Write to MH i2c: E2 08 00 EE 05 80 11 00 00 00 00 00 00 6D [13:27:41]Write i2c OK [13:27:41]MH_I2C_Read... [13:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:41]Read from MH i2c: E2 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: E2 17 00 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: E2 17 00 EE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BB [13:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:27:41]wFMCommunicate OK [13:27:41]requested_item fd.num is exist - process it [13:27:41]SAM_PROTO_GetFieldsCounters [13:27:41]wFMCommunicate request_size=4 [13:27:41]MH_SAM_APDU [13:27:41]CAPDU: 80 13 00 00 [13:27:41]Write to MH i2c: E2 08 00 EF 05 80 13 00 00 00 00 00 00 70 [13:27:41]Write i2c OK [13:27:41]MH_I2C_Read... [13:27:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:41]Read from MH i2c: E2 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: E2 62 00 [13:27:41]MH_I2C_Read... [13:27:41]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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BF C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [13:27: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BF C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:41]wFMCommunicate OK [13:27:41]SAM_PROTO_GetFieldsCounters done [13:27:41]requested_item shift.num is exist - process it [13:27:41]requested_item shift.opened is exist - process it [13:27:41]req_shift_opened [13:27:41]FM_GetShiftState [13:27:41]SAM_PROTO_GetShiftState [13:27:41]wFMCommunicate request_size=4 [13:27:41]MH_SAM_APDU [13:27:41]CAPDU: 80 13 01 00 [13:27:41]Write to MH i2c: E2 08 00 F0 05 80 13 01 00 00 00 00 00 72 [13:27:41]Write i2c OK [13:27:41]MH_I2C_Read... [13:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:41]Read from MH i2c: E2 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: E2 0E 00 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: E2 0E 00 F0 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B3 [13:27:41]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:27:41]wFMCommunicate OK [13:27:41]SAM_PROTO_GetShiftState done [13:27:41]FM_GetShiftState done [13:27:41]req_shift_opened done [13:27:41]requested_item shift.open_date is exist - process it [13:27:41]req_shift_open_date [13:27:41]req_shift_open_date done [13:27:41]produce_requested_data done [13:27:41]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115647,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:27:41]process_action_free close_receipt [13:27:41]json_value_free [13:27:41]json_value_free done [13:27:41]process_json_proto returns [13:27:41]Send response to host [13:27:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115647,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:27:41]free response buf [13:27:41]execute_script done [13:27:41]execute_script returns [13:27:41]free content buf [13:27:41]Sock 7.Close socket [13:27:41]Sock 7.Thread stoped [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:51]accept exits with 10 [13:27:51]New connection [13:27:51]New thread 3067022692 created [13:27:51]Thread 3066879332 joined [13:27:51]Waiting for new connection... [13:27:51] Sock 10.Parse request [13:27:51]Sock 10.Check first char [13:27:51]Sock 10.First char is OK [13:27:51]request: POST /json_proto HTTP/1.0 [13:27:51]Method: POST [13:27:51]URL: /json_proto [13:27:51]Method is POST - this is cgi request [13:27:51]url: /json_proto [13:27:51]query_string will be loaded in cgi processing [13:27:51]execute_cgi json_proto POST (null) [13:27:51]execute_cgi path=json_proto method=POST [13:27:51]POST find Content-Length [13:27:51]Host: 172.17.41.136:8080 [13:27:51]Content-Length: 684 [13:27:51]Content-Type: application/json [13:27:51] [13:27:51]POST finish read [13:27:51]Found Content-Length = 684 [13:27:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.870, "sum" : 1400.15, "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:27:51]execute_script... [13:27: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)24617686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.870, "sum" : 1400.15, "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:27:51]POST & json_proto [13:27:51]process_json_proto [13:27:51]json parsed OK: [13:27:51]protocol is kg_v1.0 [13:27:51]action value=close_receipt [13:27:51]process_action close_receipt [13:27:51]cmd_close_receipt [13:27:51]MH_GetDate [13:27:51]Write to MH i2c: F0 00 00 F1 05 E5 [13:27:51]Write i2c OK [13:27:51]MH_I2C_Read... [13:27:51]Read from MH i2c: F0 [13:27:51]MH_I2C_Read... [13:27:51]Read from MH i2c: F0 09 00 [13:27:51]MH_I2C_Read... [13:27:51]Read from MH i2c: F0 09 00 F1 05 00 D7 6C F1 66 1B D0 5A 64 31 [13:27:51]GetLastDocTimeStamp 1727098057 [13:27:51]current date 1727098071 [13:27:51]FM_GetShiftState [13:27:51]SAM_PROTO_GetShiftState [13:27:51]wFMCommunicate request_size=4 [13:27:51]MH_SAM_APDU [13:27:51]CAPDU: 80 13 01 00 [13:27:51]Write to MH i2c: E2 08 00 F2 05 80 13 01 00 00 00 00 00 74 [13:27:51]Write i2c OK [13:27:51]MH_I2C_Read... [13:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:51]Read from MH i2c: E2 [13:27:51]MH_I2C_Read... [13:27:51]Read from MH i2c: E2 0E 00 [13:27:51]MH_I2C_Read... [13:27:51]Read from MH i2c: E2 0E 00 F2 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B5 [13:27:51]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:27:51]wFMCommunicate OK [13:27:51]SAM_PROTO_GetShiftState done [13:27:51]FM_GetShiftState done [13:27:51]opened in 1727052070 [13:27:51]opened+sec_in_day 1727138470 [13:27:51]quantity*price = 140015 [13:27:51]sum+1 = 140016 [13:27:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 131 23.09.2024 13:27 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115648 ФПД: 77512542157897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132751&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115648&fm=77512542157897&tin=02508201610067®Number=0000000000091831&sum=140000 [13:27:52]StoreToDocumentArchive [13:27:52]shift 472 fd 115648 [13:27:52]save to /storage/0472/doc_00115648 [13:27:52]save last doc name /storage/0472/doc_00115648 to /storage/kkm_last_doc_name [13:27:52]save OK [13:27:52]Clear old archive folders... [13:27:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:52]tlvbuf is 017BB460 [13:27:52]SAM_PROTO_ClearQueue [13:27:52]wFMCommunicate request_size=4 [13:27:52]MH_SAM_APDU [13:27:52]CAPDU: 80 09 00 00 [13:27:52]Write to MH i2c: E2 08 00 FF 05 80 09 00 00 00 00 00 00 76 [13:27:52]Write i2c OK [13:27:52]MH_I2C_Read... [13:27:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:52]Read from MH i2c: E2 [13:27:52]MH_I2C_Read... [13:27:52]Read from MH i2c: E2 03 00 [13:27:52]MH_I2C_Read... [13:27:52]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [13:27:52]RAPDU: 90 00 [13:27:52]wFMCommunicate OK [13:27:52]SAM_PROTO_ClearQueue done [13:27:52]KKMCreateOFDPacket [13:27:52]OFDProtocolAddRootSTLVToBuf [13:27:52]FM_MakeSignedData [13:27:52]FM_MakeSignedData [13:27:52]SAM_PROTO_SignData [13:27:52]wFMCommunicate request_size=4 [13:27:52]MH_SAM_APDU [13:27:52]CAPDU: 80 0D 01 02 [13:27:52]Write to MH i2c: E2 08 00 00 06 80 0D 01 02 00 00 00 00 7F [13:27:52]Write i2c OK [13:27:52]MH_I2C_Read... [13:27:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:52]Read from MH i2c: E2 [13:27:52]MH_I2C_Read... [13:27:52]Read from MH i2c: E2 03 00 [13:27:52]MH_I2C_Read... [13:27:52]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [13:27:52]RAPDU: 90 00 [13:27:52]wFMCommunicate OK [13:27:52]wFMCommunicate request_size=255 [13:27:52]MH_SAM_APDU [13:27: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 15 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 83 00 00 00 F4 03 04 00 D7 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C0 C3 01 00 35 04 06 00 46 [13:27:53]Write to MH i2c: E2 02 01 01 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 15 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 83 00 00 00 F4 03 04 00 D7 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C0 C3 01 00 35 04 06 00 46 00 00 A1 [13:27:53]Write i2c OK [13:27:53]MH_I2C_Read... [13:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:53]Read from MH i2c: E2 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 03 00 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [13:27:53]RAPDU: 90 00 [13:27:53]wFMCommunicate OK [13:27:53]wFMCommunicate request_size=10 [13:27:53]MH_SAM_APDU [13:27:53]CAPDU: 80 0D 02 02 05 7F 4B 8A 7C 49 [13:27:53]Write to MH i2c: E2 0D 00 02 06 80 0D 02 02 05 00 7F 4B 8A 7C 49 00 00 A5 [13:27:53]Write i2c OK [13:27:53]MH_I2C_Read... [13:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:53]Read from MH i2c: E2 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 03 00 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [13:27:53]RAPDU: 90 00 [13:27:53]wFMCommunicate OK [13:27:53]wFMCommunicate request_size=4 [13:27:53]MH_SAM_APDU [13:27:53]CAPDU: 80 0D 03 02 [13:27:53]Write to MH i2c: E2 08 00 03 06 80 0D 03 02 00 00 00 00 84 [13:27:53]Write i2c OK [13:27:53]MH_I2C_Read... [13:27:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:53]Read from MH i2c: E2 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 0B 00 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 0B 00 03 06 00 49 23 F5 BE A9 28 59 10 90 00 DE [13:27:53]RAPDU: 49 23 F5 BE A9 28 59 10 90 00 [13:27:53]wFMCommunicate OK [13:27:53]SAM_PROTO_SignData done [13:27:53]FM_MakeSignedData done [13:27:53]CreateOFDProtocolMessage [13:27:53]wFMCommunicate request_size=4 [13:27:53]MH_SAM_APDU [13:27:53]CAPDU: 80 11 00 00 [13:27:53]Write to MH i2c: E2 08 00 04 06 80 11 00 00 00 00 00 00 84 [13:27:53]Write i2c OK [13:27:53]MH_I2C_Read... [13:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:53]Read from MH i2c: E2 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 17 00 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 17 00 04 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [13:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:27:53]wFMCommunicate OK [13:27:53]CreateOFDProtocolMessage done [13:27:53]OFDSenderStorePacket 115648 [13:27:53]StoreOFDPacket docnum=115648 [13:27:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 A0 88 07 01 6E 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 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 15 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 83 00 00 00 F4 03 04 00 D7 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C0 C3 01 00 35 04 06 00 46 7F 4B 8A 7C 49 49 23 F5 BE A9 28 59 10 [13:27:53]CheckFolder [13:27:53]dirname=/storage/ofd_packets [13:27:53]CheckFolder done [13:27:53]ProducePacketName [13:27:53]name=ofd_packets/00115648 [13:27:53]NVStorageSaveData ofd_packets/00115648 [13:27:53]File name is /storage/ofd_packets/00115648 [13:27:53]Write 301 bytes [13:27:53]NVStorageSaveData done [13:27:53]OFDSenderStorePacket done [13:27:53]KKMCreateOFDPacket done [13:27:53]NVStorageSaveData kkm_last_timestamp [13:27:53]File name is /storage/kkm_last_timestamp [13:27:53]Write 4 bytes [13:27:53]NVStorageSaveData done [13:27:53]ExternCall_PrintAddStr [13:27:53]wPrintStart [13:27:53]Write to MH i2c: 01 00 00 05 06 0B [13:27:53]Write i2c OK [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: 01 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: 01 07 00 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: 01 07 00 05 06 00 00 00 00 00 FF 0F 20 [13:27:53]RasterBufferAndPrint [13:27:53]line Счет N : (1)24617686 [13:27:53]line ИНН: 02508201610067 [13:27:53]line Контрольно-Кассовый Чек [13:27:53]line ПРОДАЖА [13:27:53]line ТРК (МРК, ГНК) : 62 [13:27:53]line Товар: 2710124500 [13:27:53]line Аи-95-К-5 [13:27:53]line 18.870 * 74.20 [13:27:53]line = 1400.15 [13:27:53]line НДС 12% НСП 1% [13:27:53]line > о реализуемом товаре [13:27:53]line ОКРУГЛЕНИЕ: -0.15 [13:27:53]line ИТОГО: 1400.00 [13:27:53]line Внесено: 1400.00 [13:27:53]line СДАЧА: 0.00 [13:27:53]line НСП 1% : 12.39 [13:27:53]line НДС 12% : 148.69 [13:27:53]line Наличными: 1400.00 [13:27:53]line Безнал.: 0.00 [13:27:53]line Место: АЗС № 90 "Партнер Нефть" [13:27:53]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:27:53]line СНО: Общий режим [13:27:53]line Чек 131 23.09.2024 13:27 [13:27:53]line Смена: 472 ФФД: 1.0 [13:27:53]line ЗНМ: 0300000120 [13:27:53]line РНМ: 0000000000091831 [13:27:53]line Версия ККМ: 001 [13:27:53]line ФМ: 0000000000871830 [13:27:53]line ФД: 115648 [13:27:53]line ФПД: 77512542157897 [13:27:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132751&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115648&fm=77512542157897&tin=02508201610067®Number=0000000000091831&sum=140000 [13:27:53]written 0, free lines is 4095 [13:27:53]OFD Sender: Processing packet 115648 [packets to send 482, broken 481] [13:27:53]ProducePacketName [13:27:53]name=ofd_packets/00115648 [13:27:53]OFD Sender: To server: pG, [13:27:53]CommunicateWithHost lk.salyk.kg:30040 [13:27:53]ConnectInit lk.salyk.kg [13:27:53]Connected sock=11 [13:27: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 38 33 30 0F 01 00 00 A0 88 07 01 6E 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 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 15 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 83 00 00 00 F4 03 04 00 D7 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C0 C3 01 00 35 04 06 00 46 7F 4B 8A 7C 49 49 23 F5 BE A9 28 59 10 [13:27:53]Write to MH i2c: 01 00 00 2F 06 35 [13:27:53]Write i2c OK [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: 01 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: 01 07 00 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: 01 07 00 2F 06 00 00 00 00 00 73 0C BB [13:27:53]RasterBufferAndPrint [13:27:53]line [13:27:53]line [13:27:53]line [13:27:53]line [13:27:53]line [13:27:53]written 0, free lines is 3190 [13:27:53]MH_Cut [13:27:53]Write to MH i2c: D1 01 00 36 06 01 0E [13:27:53]Write i2c OK [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: D1 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: D1 01 00 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: D1 01 00 36 06 00 0D [13:27:53]Write to MH i2c: 01 00 00 37 06 3D [13:27:53]Write i2c OK [13:27:53]MH_I2C_Read... [13:27:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 4D E8 47 00 B7 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 38 33 30 10 04 04 00 C0 C3 01 00 F4 03 04 00 1A 12 F1 66 B6 04 01 00 00 D7 01 48 02 E6 FB EE 12 [13:27:54]CommunicateWithHost err = 0 [13:27:54]CheckOFDResponse [13:27:54]1017 (14) - 77093643461234 [13:27:54]1041 (16) - 0000000000871830 [13:27:54]1040 (4) - 115648 [13:27:54]1012 (4) - 23.09.2024 07:00 [13:27:54]1206 (1) - 0 [13:27:54]OFD Sender: Remove packet 115648 [13:27:54]ProducePacketName [13:27:54]name=ofd_packets/00115648 [13:27:54]NVStorageDeleteData [13:27:54]OFD Sender: No OFD packet to send [13:27:55]*** Cut start [13:27:55]*** Partial cut [13:27:55]*** CUTSNS_PIN = 1 [13:27:55]*** CUTSNS_PIN = 0 [13:27:55]*** Brake cut motor [13:27:55]Read from MH i2c: 01 [13:27:55]MH_I2C_Read... [13:27:55]*** Stop cut motor [13:27:55]*** Cut end [13:27:55]Read from MH i2c: 01 07 00 [13:27:55]MH_I2C_Read... [13:27:55]Read from MH i2c: 01 07 00 37 06 00 00 00 00 00 FF 0F 52 [13:27:55]process_action close_receipt done [13:27:55]requested_data is exist [13:27:55]produce_requested_data [13:27:55]requested_item fm.sn is exist - process it [13:27:55]wFMCommunicate request_size=4 [13:27:55]MH_SAM_APDU [13:27:55]CAPDU: 80 11 00 00 [13:27:55]Write to MH i2c: E2 08 00 38 06 80 11 00 00 00 00 00 00 B8 [13:27:55]Write i2c OK [13:27:55]MH_I2C_Read... [13:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:55]Read from MH i2c: E2 [13:27:55]MH_I2C_Read... [13:27:55]Read from MH i2c: E2 17 00 [13:27:55]MH_I2C_Read... [13:27:55]Read from MH i2c: E2 17 00 38 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 06 [13:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:27:55]wFMCommunicate OK [13:27:55]requested_item fd.num is exist - process it [13:27:55]SAM_PROTO_GetFieldsCounters [13:27:55]wFMCommunicate request_size=4 [13:27:55]MH_SAM_APDU [13:27:55]CAPDU: 80 13 00 00 [13:27:55]Write to MH i2c: E2 08 00 39 06 80 13 00 00 00 00 00 00 BB [13:27:55]Write i2c OK [13:27:55]MH_I2C_Read... [13:27:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:55]Read from MH i2c: E2 [13:27:55]MH_I2C_Read... [13:27:55]Read from MH i2c: E2 62 00 [13:27:55]MH_I2C_Read... [13:27:55]Read from MH i2c: E2 62 00 39 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C0 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [13:27: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C0 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:55]wFMCommunicate OK [13:27:55]SAM_PROTO_GetFieldsCounters done [13:27:55]requested_item shift.num is exist - process it [13:27:55]requested_item shift.opened is exist - process it [13:27:55]req_shift_opened [13:27:55]FM_GetShiftState [13:27:55]SAM_PROTO_GetShiftState [13:27:55]wFMCommunicate request_size=4 [13:27:55]MH_SAM_APDU [13:27:55]CAPDU: 80 13 01 00 [13:27:55]Write to MH i2c: E2 08 00 3A 06 80 13 01 00 00 00 00 00 BD [13:27:55]Write i2c OK [13:27:55]MH_I2C_Read... [13:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:56]Read from MH i2c: E2 [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: E2 0E 00 [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: E2 0E 00 3A 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 FE [13:27:56]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:27:56]wFMCommunicate OK [13:27:56]SAM_PROTO_GetShiftState done [13:27:56]FM_GetShiftState done [13:27:56]req_shift_opened done [13:27:56]requested_item shift.open_date is exist - process it [13:27:56]req_shift_open_date [13:27:56]req_shift_open_date done [13:27:56]produce_requested_data done [13:27:56]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115648,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:27:56]process_action_free close_receipt [13:27:56]json_value_free [13:27:56]json_value_free done [13:27:56]process_json_proto returns [13:27:56]Send response to host [13:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115648,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:27:56]free response buf [13:27:56]execute_script done [13:27:56]execute_script returns [13:27:56]free content buf [13:27:56]Sock 10.Close socket [13:27:56]Sock 10.Thread stoped [13:27:59]OFD Sender: No OFD packet to send [13:28:04]accept exits with 7 [13:28:04]New connection [13:28:04]New thread 3066879332 created [13:28:04]Thread 3067022692 joined [13:28:04]Waiting for new connection... [13:28:04] Sock 7.Parse request [13:28:04]Sock 7.Check first char [13:28:04]Sock 7.First char is OK [13:28:04]request: POST /json_proto HTTP/1.0 [13:28:04]Method: POST [13:28:04]URL: /json_proto [13:28:04]Method is POST - this is cgi request [13:28:04]url: /json_proto [13:28:04]query_string will be loaded in cgi processing [13:28:04]execute_cgi json_proto POST (null) [13:28:04]execute_cgi path=json_proto method=POST [13:28:04]POST find Content-Length [13:28:04]Host: 172.17.41.136:8080 [13:28:04]Content-Length: 661 [13:28:04]Content-Type: application/json [13:28:04] [13:28:04]POST finish read [13:28:04]Found Content-Length = 661 [13:28:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 12.270, "sum" : 850.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:04]execute_script... [13:28: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)24617685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 12.270, "sum" : 850.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:04]POST & json_proto [13:28:04]process_json_proto [13:28:04]json parsed OK: [13:28:04]protocol is kg_v1.0 [13:28:04]action value=close_receipt [13:28:04]process_action close_receipt [13:28:04]cmd_close_receipt [13:28:04]MH_GetDate [13:28:04]Write to MH i2c: F0 00 00 3B 06 30 [13:28:04]Write i2c OK [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: F0 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: F0 09 00 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: F0 09 00 3B 06 00 E4 6C F1 66 1B D0 5A 64 89 [13:28:04]GetLastDocTimeStamp 1727098071 [13:28:04]current date 1727098084 [13:28:04]FM_GetShiftState [13:28:04]SAM_PROTO_GetShiftState [13:28:04]wFMCommunicate request_size=4 [13:28:04]MH_SAM_APDU [13:28:04]CAPDU: 80 13 01 00 [13:28:04]Write to MH i2c: E2 08 00 3C 06 80 13 01 00 00 00 00 00 BF [13:28:04]Write i2c OK [13:28:04]MH_I2C_Read... [13:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:04]Read from MH i2c: E2 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 0E 00 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 0E 00 3C 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 00 [13:28:04]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:28:04]wFMCommunicate OK [13:28:04]SAM_PROTO_GetShiftState done [13:28:04]FM_GetShiftState done [13:28:04]opened in 1727052070 [13:28:04]opened+sec_in_day 1727138470 [13:28:04]quantity*price = 85031 [13:28:04]sum+1 = 85032 [13:28:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 132 23.09.2024 13:28 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115649 ФПД: 103021589534153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132804&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115649&fm=103021589534153&tin=02508201610067®Number=0000000000091831&sum=85000 [13:28:05]StoreToDocumentArchive [13:28:05]shift 472 fd 115649 [13:28:05]save to /storage/0472/doc_00115649 [13:28:05]save last doc name /storage/0472/doc_00115649 to /storage/kkm_last_doc_name [13:28:05]save OK [13:28:05]Clear old archive folders... [13:28:05]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:28:05]tlvbuf is 0183B440 [13:28:05]SAM_PROTO_ClearQueue [13:28:05]wFMCommunicate request_size=4 [13:28:05]MH_SAM_APDU [13:28:05]CAPDU: 80 09 00 00 [13:28:05]Write to MH i2c: E2 08 00 49 06 80 09 00 00 00 00 00 00 C1 [13:28:05]Write i2c OK [13:28:05]MH_I2C_Read... [13:28:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:05]Read from MH i2c: E2 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: E2 03 00 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [13:28:05]RAPDU: 90 00 [13:28:05]wFMCommunicate OK [13:28:05]SAM_PROTO_ClearQueue done [13:28:05]KKMCreateOFDPacket [13:28:05]OFDProtocolAddRootSTLVToBuf [13:28:05]FM_MakeSignedData [13:28:05]FM_MakeSignedData [13:28:05]SAM_PROTO_SignData [13:28:05]wFMCommunicate request_size=4 [13:28:05]MH_SAM_APDU [13:28:05]CAPDU: 80 0D 01 02 [13:28:05]Write to MH i2c: E2 08 00 4A 06 80 0D 01 02 00 00 00 00 C9 [13:28:05]Write i2c OK [13:28:05]MH_I2C_Read... [13:28:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:05]Read from MH i2c: E2 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: E2 03 00 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [13:28:05]RAPDU: 90 00 [13:28:05]wFMCommunicate OK [13:28:05]wFMCommunicate request_size=253 [13:28:05]MH_SAM_APDU [13:28:05]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 EE 2F 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 27 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E4 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C1 C3 01 00 35 04 06 00 5D B2 95 3F 95 C9 [13:28:05]Write to MH i2c: E2 00 01 4B 06 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 EE 2F 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 27 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E4 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C1 C3 01 00 35 04 06 00 5D B2 95 3F 95 C9 00 00 06 [13:28:05]Write i2c OK [13:28:05]MH_I2C_Read... [13:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:05]Read from MH i2c: E2 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: E2 03 00 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [13:28:05]RAPDU: 90 00 [13:28:05]wFMCommunicate OK [13:28:05]wFMCommunicate request_size=4 [13:28:05]MH_SAM_APDU [13:28:05]CAPDU: 80 0D 03 02 [13:28:05]Write to MH i2c: E2 08 00 4C 06 80 0D 03 02 00 00 00 00 CD [13:28:05]Write i2c OK [13:28:05]MH_I2C_Read... [13:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:05]Read from MH i2c: E2 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: E2 0B 00 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: E2 0B 00 4C 06 00 7B 78 FF 08 22 AD 0D 86 90 00 2A [13:28:05]RAPDU: 7B 78 FF 08 22 AD 0D 86 90 00 [13:28:05]wFMCommunicate OK [13:28:05]SAM_PROTO_SignData done [13:28:05]FM_MakeSignedData done [13:28:05]CreateOFDProtocolMessage [13:28:05]wFMCommunicate request_size=4 [13:28:05]MH_SAM_APDU [13:28:05]CAPDU: 80 11 00 00 [13:28:05]Write to MH i2c: E2 08 00 4D 06 80 11 00 00 00 00 00 00 CD [13:28:05]Write i2c OK [13:28:05]MH_I2C_Read... [13:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:05]Read from MH i2c: E2 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: E2 17 00 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: E2 17 00 4D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1B [13:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:28:05]wFMCommunicate OK [13:28:05]CreateOFDProtocolMessage done [13:28:05]OFDSenderStorePacket 115649 [13:28:05]StoreOFDPacket docnum=115649 [13:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 28 EC 00 01 75 84 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 EE 2F 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 27 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E4 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C1 C3 01 00 35 04 06 00 5D B2 95 3F 95 C9 7B 78 FF 08 22 AD 0D 86 [13:28:05]CheckFolder [13:28:05]dirname=/storage/ofd_packets [13:28:05]CheckFolder done [13:28:05]ProducePacketName [13:28:05]name=ofd_packets/00115649 [13:28:05]NVStorageSaveData ofd_packets/00115649 [13:28:05]File name is /storage/ofd_packets/00115649 [13:28:05]Write 294 bytes [13:28:05]NVStorageSaveData done [13:28:05]OFDSenderStorePacket done [13:28:05]KKMCreateOFDPacket done [13:28:05]NVStorageSaveData kkm_last_timestamp [13:28:05]File name is /storage/kkm_last_timestamp [13:28:05]Write 4 bytes [13:28:05]NVStorageSaveData done [13:28:05]ExternCall_PrintAddStr [13:28:05]wPrintStart [13:28:05]Write to MH i2c: 01 00 00 4E 06 54 [13:28:05]Write i2c OK [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: 01 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: 01 07 00 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: 01 07 00 4E 06 00 00 00 00 00 FF 0F 69 [13:28:05]RasterBufferAndPrint [13:28:05]line Счет N : (1)24617685 [13:28:05]line ИНН: 02508201610067 [13:28:05]line Контрольно-Кассовый Чек [13:28:05]line ПРОДАЖА [13:28:05]line ТРК (МРК, ГНК) : 44 [13:28:05]line Товар: 2710124130 [13:28:05]line SU-92 [13:28:05]line 12.270 * 69.30 [13:28:05]line = 850.31 [13:28:05]line НДС 12% НСП 1% [13:28:05]line > о реализуемом товаре [13:28:05]line ОКРУГЛЕНИЕ: -0.31 [13:28:05]line ИТОГО: 850.00 [13:28:05]line Внесено: 850.00 [13:28:05]line СДАЧА: 0.00 [13:28:05]line НСП 1% : 7.52 [13:28:05]line НДС 12% : 90.30 [13:28:05]line Наличными: 850.00 [13:28:05]line Безнал.: 0.00 [13:28:05]line Место: АЗС № 90 "Партнер Нефть" [13:28:05]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:28:05]line СНО: Общий режим [13:28:05]line Чек 132 23.09.2024 13:28 [13:28:05]line Смена: 472 ФФД: 1.0 [13:28:05]line ЗНМ: 0300000120 [13:28:05]line РНМ: 0000000000091831 [13:28:05]line Версия ККМ: 001 [13:28:05]line ФМ: 0000000000871830 [13:28:05]line ФД: 115649 [13:28:05]line ФПД: 103021589534153 [13:28:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132804&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115649&fm=103021589534153&tin=02508201610067®Number=0000000000091831&sum=85000 [13:28:05]written 0, free lines is 4095 [13:28:06]OFD Sender: Processing packet 115649 [packets to send 482, broken 481] [13:28:06]ProducePacketName [13:28:06]name=ofd_packets/00115649 [13:28:06]OFD Sender: To server: pG, [13:28:06]CommunicateWithHost lk.salyk.kg:30040 [13:28:06]ConnectInit lk.salyk.kg [13:28:06]Connected sock=9 [13:28: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 38 33 30 08 01 00 00 28 EC 00 01 75 84 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 EE 2F 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 27 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E4 6C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C1 C3 01 00 35 04 06 00 5D B2 95 3F 95 C9 7B 78 FF 08 22 AD 0D 86 [13:28:06]Write to MH i2c: 01 00 00 78 06 7E [13:28:06]Write i2c OK [13:28:06]MH_I2C_Read... [13:28:06]Read from MH i2c: 01 [13:28:06]MH_I2C_Read... [13:28:06]Read from MH i2c: 01 07 00 [13:28:06]MH_I2C_Read... [13:28:06]Read from MH i2c: 01 07 00 78 06 00 00 00 00 00 7C 0C 0D [13:28:06]RasterBufferAndPrint [13:28:06]line [13:28:06]line [13:28:06]line [13:28:06]line [13:28:06]line [13:28:06]written 0, free lines is 3201 [13:28:06]MH_Cut [13:28:06]Write to MH i2c: D1 01 00 7F 06 01 57 [13:28:06]Write i2c OK [13:28:06]MH_I2C_Read... [13:28:06]Read from MH i2c: D1 [13:28:06]MH_I2C_Read... [13:28:06]Read from MH i2c: D1 01 00 [13:28:06]MH_I2C_Read... [13:28:06]Read from MH i2c: D1 01 00 7F 06 00 56 [13:28:06]Write to MH i2c: 01 00 00 80 06 86 [13:28:06]Write i2c OK [13:28:06]MH_I2C_Read... [13:28:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1A E0 47 00 08 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 38 33 30 10 04 04 00 C1 C3 01 00 F4 03 04 00 26 12 F1 66 B6 04 01 00 00 96 71 CF B5 77 87 6B 8D [13:28:06]CommunicateWithHost err = 0 [13:28:06]CheckOFDResponse [13:28:06]1017 (14) - 77093643461234 [13:28:06]1041 (16) - 0000000000871830 [13:28:06]1040 (4) - 115649 [13:28:06]1012 (4) - 23.09.2024 07:00 [13:28:06]1206 (1) - 0 [13:28:06]OFD Sender: Remove packet 115649 [13:28:06]ProducePacketName [13:28:06]name=ofd_packets/00115649 [13:28:06]NVStorageDeleteData [13:28:07]OFD Sender: No OFD packet to send [13:28:07]*** Cut start [13:28:07]*** Partial cut [13:28:07]*** CUTSNS_PIN = 1 [13:28:07]*** CUTSNS_PIN = 0 [13:28:07]*** Brake cut motor [13:28:08]Read from MH i2c: 01 [13:28:08]MH_I2C_Read... [13:28:08]*** Stop cut motor [13:28:08]*** Cut end [13:28:08]Read from MH i2c: 01 07 00 [13:28:08]MH_I2C_Read... [13:28:08]Read from MH i2c: 01 07 00 80 06 00 00 00 00 00 FF 0F 9B [13:28:08]process_action close_receipt done [13:28:08]requested_data is exist [13:28:08]produce_requested_data [13:28:08]requested_item fm.sn is exist - process it [13:28:08]wFMCommunicate request_size=4 [13:28:08]MH_SAM_APDU [13:28:08]CAPDU: 80 11 00 00 [13:28:08]Write to MH i2c: E2 08 00 81 06 80 11 00 00 00 00 00 00 01 [13:28:08]Write i2c OK [13:28:08]MH_I2C_Read... [13:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:08]Read from MH i2c: E2 [13:28:08]MH_I2C_Read... [13:28:08]Read from MH i2c: E2 17 00 [13:28:08]MH_I2C_Read... [13:28:08]Read from MH i2c: E2 17 00 81 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4F [13:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:28:08]wFMCommunicate OK [13:28:08]requested_item fd.num is exist - process it [13:28:08]SAM_PROTO_GetFieldsCounters [13:28:08]wFMCommunicate request_size=4 [13:28:08]MH_SAM_APDU [13:28:08]CAPDU: 80 13 00 00 [13:28:08]Write to MH i2c: E2 08 00 82 06 80 13 00 00 00 00 00 00 04 [13:28:08]Write i2c OK [13:28:08]MH_I2C_Read... [13:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:08]Read from MH i2c: E2 [13:28:08]MH_I2C_Read... [13:28:08]Read from MH i2c: E2 62 00 [13:28:08]MH_I2C_Read... [13:28:08]Read from MH i2c: E2 62 00 82 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C1 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [13:28:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C1 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:08]wFMCommunicate OK [13:28:08]SAM_PROTO_GetFieldsCounters done [13:28:08]requested_item shift.num is exist - process it [13:28:08]requested_item shift.opened is exist - process it [13:28:08]req_shift_opened [13:28:08]FM_GetShiftState [13:28:08]SAM_PROTO_GetShiftState [13:28:08]wFMCommunicate request_size=4 [13:28:08]MH_SAM_APDU [13:28:08]CAPDU: 80 13 01 00 [13:28:08]Write to MH i2c: E2 08 00 83 06 80 13 01 00 00 00 00 00 06 [13:28:08]Write i2c OK [13:28:08]MH_I2C_Read... [13:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:08]Read from MH i2c: E2 [13:28:08]MH_I2C_Read... [13:28:08]Read from MH i2c: E2 0E 00 [13:28:08]MH_I2C_Read... [13:28:08]Read from MH i2c: E2 0E 00 83 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 47 [13:28:08]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:28:08]wFMCommunicate OK [13:28:08]SAM_PROTO_GetShiftState done [13:28:08]FM_GetShiftState done [13:28:08]req_shift_opened done [13:28:08]requested_item shift.open_date is exist - process it [13:28:08]req_shift_open_date [13:28:08]req_shift_open_date done [13:28:08]produce_requested_data done [13:28:08]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115649,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:28:08]process_action_free close_receipt [13:28:08]json_value_free [13:28:08]json_value_free done [13:28:08]process_json_proto returns [13:28:08]Send response to host [13:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115649,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:28:08]free response buf [13:28:08]execute_script done [13:28:08]execute_script returns [13:28:08]free content buf [13:28:08]Sock 7.Close socket [13:28:08]Sock 7.Thread stoped [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:54]accept exits with 10 [13:28:54]New connection [13:28:54]New thread 3067022692 created [13:28:54]Thread 3066879332 joined [13:28:54]Waiting for new connection... [13:28:54] Sock 10.Parse request [13:28:54]Sock 10.Check first char [13:28:54]Sock 10.First char is OK [13:28:54]request: POST /json_proto HTTP/1.0 [13:28:54]Method: POST [13:28:54]URL: /json_proto [13:28:54]Method is POST - this is cgi request [13:28:54]url: /json_proto [13:28:54]query_string will be loaded in cgi processing [13:28:54]execute_cgi json_proto POST (null) [13:28:54]execute_cgi path=json_proto method=POST [13:28:54]POST find Content-Length [13:28:54]Host: 172.17.41.136:8080 [13:28:54]Content-Length: 802 [13:28:54]Content-Type: application/json [13:28:54] [13:28:54]POST finish read [13:28:54]Found Content-Length = 802 [13:28:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 43.300, "sum" : 3000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 3000.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:54]execute_script... [13:28: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)24617684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 43.300, "sum" : 3000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 3000.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:54]POST & json_proto [13:28:54]process_json_proto [13:28:54]json parsed OK: [13:28:54]protocol is kg_v1.0 [13:28:54]action value=close_receipt [13:28:54]process_action close_receipt [13:28:54]cmd_close_receipt [13:28:54]MH_GetDate [13:28:54]Write to MH i2c: F0 00 00 84 06 79 [13:28:54]Write i2c OK [13:28:54]MH_I2C_Read... [13:28:54]Read from MH i2c: F0 [13:28:54]MH_I2C_Read... [13:28:54]Read from MH i2c: F0 09 00 [13:28:54]MH_I2C_Read... [13:28:54]Read from MH i2c: F0 09 00 84 06 00 16 6D F1 66 1B D0 5A 64 05 [13:28:54]GetLastDocTimeStamp 1727098084 [13:28:54]current date 1727098134 [13:28:54]FM_GetShiftState [13:28:54]SAM_PROTO_GetShiftState [13:28:54]wFMCommunicate request_size=4 [13:28:54]MH_SAM_APDU [13:28:54]CAPDU: 80 13 01 00 [13:28:54]Write to MH i2c: E2 08 00 85 06 80 13 01 00 00 00 00 00 08 [13:28:54]Write i2c OK [13:28:54]MH_I2C_Read... [13:28:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:54]Read from MH i2c: E2 [13:28:54]MH_I2C_Read... [13:28:54]Read from MH i2c: E2 0E 00 [13:28:54]MH_I2C_Read... [13:28:54]Read from MH i2c: E2 0E 00 85 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 49 [13:28:54]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:28:54]wFMCommunicate OK [13:28:54]SAM_PROTO_GetShiftState done [13:28:54]FM_GetShiftState done [13:28:54]opened in 1727052070 [13:28:54]opened+sec_in_day 1727138470 [13:28:54]quantity*price = 300069 [13:28:54]sum+1 = 300070 [13:28:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.69 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.69 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 133 23.09.2024 13:28 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115650 ФПД: 80256335189675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132854&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115650&fm=80256335189675&tin=02508201610067®Number=0000000000091831&sum=300069 [13:28:55]StoreToDocumentArchive [13:28:55]shift 472 fd 115650 [13:28:55]save to /storage/0472/doc_00115650 [13:28:55]save last doc name /storage/0472/doc_00115650 to /storage/kkm_last_doc_name [13:28:55]save OK [13:28:55]Clear old archive folders... [13:28:55]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:28:55]tlvbuf is 01828DF0 [13:28:55]SAM_PROTO_ClearQueue [13:28:55]wFMCommunicate request_size=4 [13:28:55]MH_SAM_APDU [13:28:55]CAPDU: 80 09 00 00 [13:28:55]Write to MH i2c: E2 08 00 92 06 80 09 00 00 00 00 00 00 0A [13:28:55]Write i2c OK [13:28:55]MH_I2C_Read... [13:28:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:55]Read from MH i2c: E2 [13:28:55]MH_I2C_Read... [13:28:55]Read from MH i2c: E2 03 00 [13:28:55]MH_I2C_Read... [13:28:55]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [13:28:55]RAPDU: 90 00 [13:28:55]wFMCommunicate OK [13:28:55]SAM_PROTO_ClearQueue done [13:28:55]KKMCreateOFDPacket [13:28:55]OFDProtocolAddRootSTLVToBuf [13:28:55]FM_MakeSignedData [13:28:55]FM_MakeSignedData [13:28:55]SAM_PROTO_SignData [13:28:55]wFMCommunicate request_size=4 [13:28:55]MH_SAM_APDU [13:28:55]CAPDU: 80 0D 01 02 [13:28:55]Write to MH i2c: E2 08 00 93 06 80 0D 01 02 00 00 00 00 12 [13:28:55]Write i2c OK [13:28:55]MH_I2C_Read... [13:28:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:55]Read from MH i2c: E2 [13:28:55]MH_I2C_Read... [13:28:55]Read from MH i2c: E2 03 00 [13:28:55]MH_I2C_Read... [13:28:55]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [13:28:55]RAPDU: 90 00 [13:28:55]wFMCommunicate OK [13:28:55]wFMCommunicate request_size=253 [13:28:55]MH_SAM_APDU [13:28:55]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 24 A9 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 25 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 16 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C2 C3 01 00 35 04 06 00 48 FE 22 59 96 AB [13:28:55]Write to MH i2c: E2 00 01 94 06 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 24 A9 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 25 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 16 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C2 C3 01 00 35 04 06 00 48 FE 22 59 96 AB 00 00 12 [13:28:55]Write i2c OK [13:28:55]MH_I2C_Read... [13:28:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:56]Read from MH i2c: E2 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: E2 03 00 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [13:28:56]RAPDU: 90 00 [13:28:56]wFMCommunicate OK [13:28:56]wFMCommunicate request_size=4 [13:28:56]MH_SAM_APDU [13:28:56]CAPDU: 80 0D 03 02 [13:28:56]Write to MH i2c: E2 08 00 95 06 80 0D 03 02 00 00 00 00 16 [13:28:56]Write i2c OK [13:28:56]MH_I2C_Read... [13:28:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:56]Read from MH i2c: E2 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: E2 0B 00 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: E2 0B 00 95 06 00 AF 97 69 60 5B 17 09 F2 90 00 93 [13:28:56]RAPDU: AF 97 69 60 5B 17 09 F2 90 00 [13:28:56]wFMCommunicate OK [13:28:56]SAM_PROTO_SignData done [13:28:56]FM_MakeSignedData done [13:28:56]CreateOFDProtocolMessage [13:28:56]wFMCommunicate request_size=4 [13:28:56]MH_SAM_APDU [13:28:56]CAPDU: 80 11 00 00 [13:28:56]Write to MH i2c: E2 08 00 96 06 80 11 00 00 00 00 00 00 16 [13:28:56]Write i2c OK [13:28:56]MH_I2C_Read... [13:28:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:56]Read from MH i2c: E2 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: E2 17 00 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: E2 17 00 96 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 64 [13:28:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:28:56]wFMCommunicate OK [13:28:56]CreateOFDProtocolMessage done [13:28:56]OFDSenderStorePacket 115650 [13:28:56]StoreOFDPacket docnum=115650 [13:28:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 66 4C 00 01 80 48 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 24 A9 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 25 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 16 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C2 C3 01 00 35 04 06 00 48 FE 22 59 96 AB AF 97 69 60 5B 17 09 F2 [13:28:56]CheckFolder [13:28:56]dirname=/storage/ofd_packets [13:28:56]CheckFolder done [13:28:56]ProducePacketName [13:28:56]name=ofd_packets/00115650 [13:28:56]NVStorageSaveData ofd_packets/00115650 [13:28:56]File name is /storage/ofd_packets/00115650 [13:28:56]Write 294 bytes [13:28:56]NVStorageSaveData done [13:28:56]OFDSenderStorePacket done [13:28:56]KKMCreateOFDPacket done [13:28:56]NVStorageSaveData kkm_last_timestamp [13:28:56]File name is /storage/kkm_last_timestamp [13:28:56]Write 4 bytes [13:28:56]NVStorageSaveData done [13:28:56]ExternCall_PrintAddStr [13:28:56]wPrintStart [13:28:56]Write to MH i2c: 01 00 00 97 06 9D [13:28:56]Write i2c OK [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: 01 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: 01 07 00 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: 01 07 00 97 06 00 00 00 00 00 FF 0F B2 [13:28:56]RasterBufferAndPrint [13:28:56]line Счет N : (1)24617684 [13:28:56]line ИНН: 02508201610067 [13:28:56]line Контрольно-Кассовый Чек [13:28:56]line ПРОДАЖА [13:28:56]line ТРК (МРК, ГНК) : 54 [13:28:56]line Товар: 2710124130 [13:28:56]line SU-92 [13:28:56]line 43.300 * 69.30 [13:28:56]line = 3000.69 [13:28:56]line НДС 12% НСП 1% [13:28:56]line > о реализуемом товаре [13:28:56]line ИТОГО: 3000.69 [13:28:56]line НСП 1% : 26.55 [13:28:56]line НДС 12% : 318.66 [13:28:56]line Наличными: 0.00 [13:28:56]line Безнал.: 3000.69 [13:28:56]line Место: АЗС № 90 "Партнер Нефть" [13:28:56]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:28:56]line СНО: Общий режим [13:28:56]line Чек 133 23.09.2024 13:28 [13:28:56]line Смена: 472 ФФД: 1.0 [13:28:56]line ЗНМ: 0300000120 [13:28:56]line РНМ: 0000000000091831 [13:28:56]line Версия ККМ: 001 [13:28:56]line Платежная система: Бакай Банк [13:28:56]line ФМ: 0000000000871830 [13:28:56]line ФД: 115650 [13:28:56]line ФПД: 80256335189675 [13:28:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132854&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115650&fm=80256335189675&tin=02508201610067®Number=0000000000091831&sum=300069 [13:28:56]written 0, free lines is 4095 [13:28:56]OFD Sender: Processing packet 115650 [packets to send 482, broken 481] [13:28:56]ProducePacketName [13:28:56]name=ofd_packets/00115650 [13:28:56]OFD Sender: To server: pG, [13:28:56]CommunicateWithHost lk.salyk.kg:30040 [13:28:56]ConnectInit lk.salyk.kg [13:28:56]Connected sock=9 [13:28: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 38 33 30 08 01 00 00 66 4C 00 01 80 48 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 24 A9 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 25 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 16 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C2 C3 01 00 35 04 06 00 48 FE 22 59 96 AB AF 97 69 60 5B 17 09 F2 [13:28:56]Write to MH i2c: 01 00 00 C0 06 C6 [13:28:56]Write i2c OK [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: 01 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: 01 07 00 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: 01 07 00 C0 06 00 00 00 00 00 8D 0C 66 [13:28:56]RasterBufferAndPrint [13:28:56]line [13:28:56]line [13:28:56]line [13:28:56]line [13:28:56]line [13:28:56]written 0, free lines is 3217 [13:28:56]MH_Cut [13:28:56]Write to MH i2c: D1 01 00 C7 06 01 9F [13:28:56]Write i2c OK [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: D1 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: D1 01 00 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: D1 01 00 C7 06 00 9E [13:28:56]Write to MH i2c: 01 00 00 C8 06 CE [13:28:56]Write i2c OK [13:28:56]MH_I2C_Read... [13:28:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 AB 4F 47 00 FE 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 38 33 30 10 04 04 00 C2 C3 01 00 F4 03 04 00 59 12 F1 66 B6 04 01 00 00 53 4D F1 35 06 6A AF 54 [13:28:56]CommunicateWithHost err = 0 [13:28:56]CheckOFDResponse [13:28:56]1017 (14) - 77093643461234 [13:28:56]1041 (16) - 0000000000871830 [13:28:56]1040 (4) - 115650 [13:28:56]1012 (4) - 23.09.2024 07:01 [13:28:56]1206 (1) - 0 [13:28:56]OFD Sender: Remove packet 115650 [13:28:56]ProducePacketName [13:28:56]name=ofd_packets/00115650 [13:28:56]NVStorageDeleteData [13:28:57]OFD Sender: No OFD packet to send [13:28:57]*** Cut start [13:28:57]*** Partial cut [13:28:57]*** CUTSNS_PIN = 1 [13:28:57]*** CUTSNS_PIN = 0 [13:28:58]*** Brake cut motor [13:28:58]Read from MH i2c: 01 [13:28:58]MH_I2C_Read... [13:28:58]*** Stop cut motor [13:28:58]*** Cut end [13:28:58]Read from MH i2c: 01 07 00 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: 01 07 00 C8 06 00 00 00 00 00 FF 0F E3 [13:28:58]process_action close_receipt done [13:28:58]requested_data is exist [13:28:58]produce_requested_data [13:28:58]requested_item fm.sn is exist - process it [13:28:58]wFMCommunicate request_size=4 [13:28:58]MH_SAM_APDU [13:28:58]CAPDU: 80 11 00 00 [13:28:58]Write to MH i2c: E2 08 00 C9 06 80 11 00 00 00 00 00 00 49 [13:28:58]Write i2c OK [13:28:58]MH_I2C_Read... [13:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:58]Read from MH i2c: E2 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 17 00 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 17 00 C9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 97 [13:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:28:58]wFMCommunicate OK [13:28:58]requested_item fd.num is exist - process it [13:28:58]SAM_PROTO_GetFieldsCounters [13:28:58]wFMCommunicate request_size=4 [13:28:58]MH_SAM_APDU [13:28:58]CAPDU: 80 13 00 00 [13:28:58]Write to MH i2c: E2 08 00 CA 06 80 13 00 00 00 00 00 00 4C [13:28:58]Write i2c OK [13:28:58]MH_I2C_Read... [13:28:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:58]Read from MH i2c: E2 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 62 00 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 62 00 CA 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C2 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [13:28: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C2 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:58]wFMCommunicate OK [13:28:58]SAM_PROTO_GetFieldsCounters done [13:28:58]requested_item shift.num is exist - process it [13:28:58]requested_item shift.opened is exist - process it [13:28:58]req_shift_opened [13:28:58]FM_GetShiftState [13:28:58]SAM_PROTO_GetShiftState [13:28:58]wFMCommunicate request_size=4 [13:28:58]MH_SAM_APDU [13:28:58]CAPDU: 80 13 01 00 [13:28:58]Write to MH i2c: E2 08 00 CB 06 80 13 01 00 00 00 00 00 4E [13:28:58]Write i2c OK [13:28:58]MH_I2C_Read... [13:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:58]Read from MH i2c: E2 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 0E 00 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 0E 00 CB 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 8F [13:28:58]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:28:58]wFMCommunicate OK [13:28:58]SAM_PROTO_GetShiftState done [13:28:58]FM_GetShiftState done [13:28:58]req_shift_opened done [13:28:58]requested_item shift.open_date is exist - process it [13:28:58]req_shift_open_date [13:28:58]req_shift_open_date done [13:28:58]produce_requested_data done [13:28:58]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115650,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:28:58]process_action_free close_receipt [13:28:58]json_value_free [13:28:58]json_value_free done [13:28:58]process_json_proto returns [13:28:58]Send response to host [13:28:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115650,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:28:58]free response buf [13:28:58]execute_script done [13:28:58]execute_script returns [13:28:58]free content buf [13:28:58]Sock 10.Close socket [13:28:58]Sock 10.Thread stoped [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]accept exits with 7 [13:29:27]New connection [13:29:27]New thread 3066879332 created [13:29:27]Thread 3067022692 joined [13:29:27]Waiting for new connection... [13:29:27] Sock 7.Parse request [13:29:27]Sock 7.Check first char [13:29:27]Sock 7.First char is OK [13:29:27]request: POST /json_proto HTTP/1.0 [13:29:27]Method: POST [13:29:27]URL: /json_proto [13:29:27]Method is POST - this is cgi request [13:29:27]url: /json_proto [13:29:27]query_string will be loaded in cgi processing [13:29:27]execute_cgi json_proto POST (null) [13:29:27]execute_cgi path=json_proto method=POST [13:29:27]POST find Content-Length [13:29:27]Host: 172.17.41.136:8080 [13:29:27]Content-Length: 679 [13:29:27]Content-Type: application/json [13:29:27] [13:29:27]POST finish read [13:29:27]Found Content-Length = 679 [13:29:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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:29:27]execute_script... [13:29: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)24617687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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:29:27]POST & json_proto [13:29:27]process_json_proto [13:29:27]json parsed OK: [13:29:27]protocol is kg_v1.0 [13:29:27]action value=close_receipt [13:29:27]process_action close_receipt [13:29:27]cmd_close_receipt [13:29:27]MH_GetDate [13:29:27]Write to MH i2c: F0 00 00 CC 06 C1 [13:29:27]Write i2c OK [13:29:27]MH_I2C_Read... [13:29:27]Read from MH i2c: F0 [13:29:27]MH_I2C_Read... [13:29:27]Read from MH i2c: F0 09 00 [13:29:27]MH_I2C_Read... [13:29:27]Read from MH i2c: F0 09 00 CC 06 00 37 6D F1 66 1B D0 5A 64 6E [13:29:27]GetLastDocTimeStamp 1727098134 [13:29:27]current date 1727098167 [13:29:27]FM_GetShiftState [13:29:27]SAM_PROTO_GetShiftState [13:29:27]wFMCommunicate request_size=4 [13:29:27]MH_SAM_APDU [13:29:27]CAPDU: 80 13 01 00 [13:29:27]Write to MH i2c: E2 08 00 CD 06 80 13 01 00 00 00 00 00 50 [13:29:27]Write i2c OK [13:29:27]MH_I2C_Read... [13:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:27]Read from MH i2c: E2 [13:29:27]MH_I2C_Read... [13:29:27]Read from MH i2c: E2 0E 00 [13:29:27]MH_I2C_Read... [13:29:27]Read from MH i2c: E2 0E 00 CD 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 91 [13:29:27]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:29:27]wFMCommunicate OK [13:29:27]SAM_PROTO_GetShiftState done [13:29:27]FM_GetShiftState done [13:29:27]opened in 1727052070 [13:29:27]opened+sec_in_day 1727138470 [13:29:27]quantity*price = 50010 [13:29:27]sum+1 = 50012 [13:29:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 134 23.09.2024 13:29 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115651 ФПД: 168621705360092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132927&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115651&fm=168621705360092&tin=02508201610067®Number=0000000000091831&sum=50000 [13:29:28]StoreToDocumentArchive [13:29:28]shift 472 fd 115651 [13:29:28]save to /storage/0472/doc_00115651 [13:29:28]save last doc name /storage/0472/doc_00115651 to /storage/kkm_last_doc_name [13:29:28]save OK [13:29:28]Clear old archive folders... [13:29:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:28]tlvbuf is 017C1610 [13:29:28]SAM_PROTO_ClearQueue [13:29:28]wFMCommunicate request_size=4 [13:29:28]MH_SAM_APDU [13:29:28]CAPDU: 80 09 00 00 [13:29:28]Write to MH i2c: E2 08 00 DA 06 80 09 00 00 00 00 00 00 52 [13:29:28]Write i2c OK [13:29:28]MH_I2C_Read... [13:29:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:28]Read from MH i2c: E2 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: E2 03 00 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: E2 03 00 DA 06 00 90 00 54 [13:29:28]RAPDU: 90 00 [13:29:28]wFMCommunicate OK [13:29:28]SAM_PROTO_ClearQueue done [13:29:28]KKMCreateOFDPacket [13:29:28]OFDProtocolAddRootSTLVToBuf [13:29:28]FM_MakeSignedData [13:29:28]FM_MakeSignedData [13:29:28]SAM_PROTO_SignData [13:29:28]wFMCommunicate request_size=4 [13:29:28]MH_SAM_APDU [13:29:28]CAPDU: 80 0D 01 02 [13:29:28]Write to MH i2c: E2 08 00 DB 06 80 0D 01 02 00 00 00 00 5A [13:29:28]Write i2c OK [13:29:28]MH_I2C_Read... [13:29:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:28]Read from MH i2c: E2 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: E2 03 00 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: E2 03 00 DB 06 00 90 00 55 [13:29:28]RAPDU: 90 00 [13:29:28]wFMCommunicate OK [13:29:28]wFMCommunicate request_size=255 [13:29:28]MH_SAM_APDU [13:29:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 86 00 00 00 F4 03 04 00 37 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C3 C3 01 00 35 04 06 00 99 [13:29:28]Write to MH i2c: E2 02 01 DC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 86 00 00 00 F4 03 04 00 37 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C3 C3 01 00 35 04 06 00 99 00 00 33 [13:29:28]Write i2c OK [13:29:28]MH_I2C_Read... [13:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:28]Read from MH i2c: E2 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: E2 03 00 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: E2 03 00 DC 06 00 90 00 56 [13:29:28]RAPDU: 90 00 [13:29:28]wFMCommunicate OK [13:29:28]wFMCommunicate request_size=10 [13:29:28]MH_SAM_APDU [13:29:28]CAPDU: 80 0D 02 02 05 5C 4C D9 72 DC [13:29:28]Write to MH i2c: E2 0D 00 DD 06 80 0D 02 02 05 00 5C 4C D9 72 DC 00 00 36 [13:29:28]Write i2c OK [13:29:28]MH_I2C_Read... [13:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:28]Read from MH i2c: E2 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: E2 03 00 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [13:29:28]RAPDU: 90 00 [13:29:28]wFMCommunicate OK [13:29:28]wFMCommunicate request_size=4 [13:29:28]MH_SAM_APDU [13:29:28]CAPDU: 80 0D 03 02 [13:29:28]Write to MH i2c: E2 08 00 DE 06 80 0D 03 02 00 00 00 00 5F [13:29:28]Write i2c OK [13:29:28]MH_I2C_Read... [13:29:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:28]Read from MH i2c: E2 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: E2 0B 00 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: E2 0B 00 DE 06 00 77 13 93 1A 97 21 B7 FC 90 00 02 [13:29:28]RAPDU: 77 13 93 1A 97 21 B7 FC 90 00 [13:29:28]wFMCommunicate OK [13:29:28]SAM_PROTO_SignData done [13:29:28]FM_MakeSignedData done [13:29:28]CreateOFDProtocolMessage [13:29:28]wFMCommunicate request_size=4 [13:29:28]MH_SAM_APDU [13:29:28]CAPDU: 80 11 00 00 [13:29:28]Write to MH i2c: E2 08 00 DF 06 80 11 00 00 00 00 00 00 5F [13:29:28]Write i2c OK [13:29:28]MH_I2C_Read... [13:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:28]Read from MH i2c: E2 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: E2 17 00 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: E2 17 00 DF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AD [13:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:29:28]wFMCommunicate OK [13:29:28]CreateOFDProtocolMessage done [13:29:28]OFDSenderStorePacket 115651 [13:29:28]StoreOFDPacket docnum=115651 [13:29:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 C1 52 07 01 79 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 86 00 00 00 F4 03 04 00 37 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C3 C3 01 00 35 04 06 00 99 5C 4C D9 72 DC 77 13 93 1A 97 21 B7 FC [13:29:28]CheckFolder [13:29:28]dirname=/storage/ofd_packets [13:29:28]CheckFolder done [13:29:28]ProducePacketName [13:29:28]name=ofd_packets/00115651 [13:29:28]NVStorageSaveData ofd_packets/00115651 [13:29:28]File name is /storage/ofd_packets/00115651 [13:29:28]Write 301 bytes [13:29:28]NVStorageSaveData done [13:29:28]OFDSenderStorePacket done [13:29:28]KKMCreateOFDPacket done [13:29:28]NVStorageSaveData kkm_last_timestamp [13:29:28]File name is /storage/kkm_last_timestamp [13:29:28]Write 4 bytes [13:29:28]NVStorageSaveData done [13:29:28]ExternCall_PrintAddStr [13:29:28]wPrintStart [13:29:28]Write to MH i2c: 01 00 00 E0 06 E6 [13:29:28]Write i2c OK [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: 01 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: 01 07 00 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: 01 07 00 E0 06 00 00 00 00 00 FF 0F FB [13:29:28]RasterBufferAndPrint [13:29:28]line Счет N : (1)24617687 [13:29:28]line ИНН: 02508201610067 [13:29:28]line Контрольно-Кассовый Чек [13:29:28]line ПРОДАЖА [13:29:28]line ТРК (МРК, ГНК) : 32 [13:29:28]line Товар: 2710124500 [13:29:28]line Аи-95-К-5 [13:29:28]line 6.740 * 74.20 [13:29:28]line = 500.11 [13:29:28]line НДС 12% НСП 1% [13:29:28]line > о реализуемом товаре [13:29:28]line ОКРУГЛЕНИЕ: -0.11 [13:29:28]line ИТОГО: 500.00 [13:29:28]line Внесено: 500.00 [13:29:28]line СДАЧА: 0.00 [13:29:28]line НСП 1% : 4.43 [13:29:28]line НДС 12% : 53.11 [13:29:28]line Наличными: 500.00 [13:29:28]line Безнал.: 0.00 [13:29:28]line Место: АЗС № 90 "Партнер Нефть" [13:29:28]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:29:28]line СНО: Общий режим [13:29:28]line Чек 134 23.09.2024 13:29 [13:29:28]line Смена: 472 ФФД: 1.0 [13:29:28]line ЗНМ: 0300000120 [13:29:28]line РНМ: 0000000000091831 [13:29:28]line Версия ККМ: 001 [13:29:28]line ФМ: 0000000000871830 [13:29:28]line ФД: 115651 [13:29:28]line ФПД: 168621705360092 [13:29:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132927&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115651&fm=168621705360092&tin=02508201610067®Number=0000000000091831&sum=50000 [13:29:28]written 0, free lines is 4095 [13:29:28]OFD Sender: Processing packet 115651 [packets to send 482, broken 481] [13:29:28]ProducePacketName [13:29:28]name=ofd_packets/00115651 [13:29:28]OFD Sender: To server: pG, [13:29:28]CommunicateWithHost lk.salyk.kg:30040 [13:29:28]ConnectInit lk.salyk.kg [13:29:28]Connected sock=10 [13:29: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 38 33 30 0F 01 00 00 C1 52 07 01 79 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 86 00 00 00 F4 03 04 00 37 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C3 C3 01 00 35 04 06 00 99 5C 4C D9 72 DC 77 13 93 1A 97 21 B7 FC [13:29:29]Write to MH i2c: 01 00 00 0A 07 11 [13:29:29]Write i2c OK [13:29:29]MH_I2C_Read... [13:29:29]Read from MH i2c: 01 [13:29:29]MH_I2C_Read... [13:29:29]Read from MH i2c: 01 07 00 [13:29:29]MH_I2C_Read... [13:29:29]Read from MH i2c: 01 07 00 0A 07 00 00 00 00 00 7F 0C A3 [13:29:29]RasterBufferAndPrint [13:29:29]line [13:29:29]line [13:29:29]line [13:29:29]line [13:29:29]line [13:29:29]written 0, free lines is 3203 [13:29:29]MH_Cut [13:29:29]Write to MH i2c: D1 01 00 11 07 01 EA [13:29:29]Write i2c OK [13:29:29]MH_I2C_Read... [13:29:29]Read from MH i2c: D1 [13:29:29]MH_I2C_Read... [13:29:29]Read from MH i2c: D1 01 00 [13:29:29]MH_I2C_Read... [13:29:29]Read from MH i2c: D1 01 00 11 07 00 E9 [13:29:29]Write to MH i2c: 01 00 00 12 07 19 [13:29:29]Write i2c OK [13:29:29]MH_I2C_Read... [13:29:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 BA B6 47 00 D4 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C3 C3 01 00 F4 03 04 00 79 12 F1 66 B6 04 01 00 00 01 ED BD 64 58 0E B9 4B [13:29:29]CommunicateWithHost err = 0 [13:29:29]CheckOFDResponse [13:29:29]1017 (14) - 77093643461234 [13:29:29]1041 (16) - 0000000000871830 [13:29:29]1040 (4) - 115651 [13:29:29]1012 (4) - 23.09.2024 07:02 [13:29:29]1206 (1) - 0 [13:29:29]OFD Sender: Remove packet 115651 [13:29:29]ProducePacketName [13:29:29]name=ofd_packets/00115651 [13:29:29]NVStorageDeleteData [13:29:29]OFD Sender: No OFD packet to send [13:29:30]*** Cut start [13:29:30]*** Partial cut [13:29:30]*** CUTSNS_PIN = 1 [13:29:30]*** CUTSNS_PIN = 0 [13:29:30]*** Brake cut motor [13:29:31]Read from MH i2c: 01 [13:29:31]MH_I2C_Read... [13:29:31]*** Stop cut motor [13:29:31]*** Cut end [13:29:31]Read from MH i2c: 01 07 00 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: 01 07 00 12 07 00 00 00 00 00 FF 0F 2E [13:29:31]process_action close_receipt done [13:29:31]requested_data is exist [13:29:31]produce_requested_data [13:29:31]requested_item fm.sn is exist - process it [13:29:31]wFMCommunicate request_size=4 [13:29:31]MH_SAM_APDU [13:29:31]CAPDU: 80 11 00 00 [13:29:31]Write to MH i2c: E2 08 00 13 07 80 11 00 00 00 00 00 00 94 [13:29:31]Write i2c OK [13:29:31]MH_I2C_Read... [13:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:31]Read from MH i2c: E2 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 17 00 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 17 00 13 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E2 [13:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:29:31]wFMCommunicate OK [13:29:31]requested_item fd.num is exist - process it [13:29:31]SAM_PROTO_GetFieldsCounters [13:29:31]wFMCommunicate request_size=4 [13:29:31]MH_SAM_APDU [13:29:31]CAPDU: 80 13 00 00 [13:29:31]Write to MH i2c: E2 08 00 14 07 80 13 00 00 00 00 00 00 97 [13:29:31]Write i2c OK [13:29:31]MH_I2C_Read... [13:29:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:31]Read from MH i2c: E2 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 62 00 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 62 00 14 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C3 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [13:29: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C3 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:31]wFMCommunicate OK [13:29:31]SAM_PROTO_GetFieldsCounters done [13:29:31]requested_item shift.num is exist - process it [13:29:31]requested_item shift.opened is exist - process it [13:29:31]req_shift_opened [13:29:31]FM_GetShiftState [13:29:31]SAM_PROTO_GetShiftState [13:29:31]wFMCommunicate request_size=4 [13:29:31]MH_SAM_APDU [13:29:31]CAPDU: 80 13 01 00 [13:29:31]Write to MH i2c: E2 08 00 15 07 80 13 01 00 00 00 00 00 99 [13:29:31]Write i2c OK [13:29:31]MH_I2C_Read... [13:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:31]Read from MH i2c: E2 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 0E 00 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 0E 00 15 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 DA [13:29:31]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:29:31]wFMCommunicate OK [13:29:31]SAM_PROTO_GetShiftState done [13:29:31]FM_GetShiftState done [13:29:31]req_shift_opened done [13:29:31]requested_item shift.open_date is exist - process it [13:29:31]req_shift_open_date [13:29:31]req_shift_open_date done [13:29:31]produce_requested_data done [13:29:31]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115651,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:29:31]process_action_free close_receipt [13:29:31]json_value_free [13:29:31]json_value_free done [13:29:31]process_json_proto returns [13:29:31]Send response to host [13:29:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115651,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:29:31]free response buf [13:29:31]execute_script done [13:29:31]execute_script returns [13:29:31]free content buf [13:29:31]Sock 7.Close socket [13:29:31]Sock 7.Thread stoped [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:06]accept exits with 9 [13:30:06]New connection [13:30:06]New thread 3067022692 created [13:30:06]Thread 3066879332 joined [13:30:06]Waiting for new connection... [13:30:06] Sock 9.Parse request [13:30:06]Sock 9.Check first char [13:30:06]Sock 9.First char is OK [13:30:06]request: POST /json_proto HTTP/1.0 [13:30:06]Method: POST [13:30:06]URL: /json_proto [13:30:06]Method is POST - this is cgi request [13:30:06]url: /json_proto [13:30:06]query_string will be loaded in cgi processing [13:30:06]execute_cgi json_proto POST (null) [13:30:06]execute_cgi path=json_proto method=POST [13:30:06]POST find Content-Length [13:30:06]Host: 172.17.41.136:8080 [13:30:06]Content-Length: 676 [13:30:06]Content-Type: application/json [13:30:06] [13:30:06]POST finish read [13:30:06]Found Content-Length = 676 [13:30:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 45", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.450, "sum" : 720.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:06]execute_script... [13:30: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)24617688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 45", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.450, "sum" : 720.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:06]POST & json_proto [13:30:06]process_json_proto [13:30:06]json parsed OK: [13:30:06]protocol is kg_v1.0 [13:30:06]action value=close_receipt [13:30:06]process_action close_receipt [13:30:06]cmd_close_receipt [13:30:06]MH_GetDate [13:30:06]Write to MH i2c: F0 00 00 16 07 0C [13:30:06]Write i2c OK [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: F0 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: F0 09 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: F0 09 00 16 07 00 5E 6D F1 66 1B D0 5A 64 E0 [13:30:06]GetLastDocTimeStamp 1727098167 [13:30:06]current date 1727098206 [13:30:06]FM_GetShiftState [13:30:06]SAM_PROTO_GetShiftState [13:30:06]wFMCommunicate request_size=4 [13:30:06]MH_SAM_APDU [13:30:06]CAPDU: 80 13 01 00 [13:30:06]Write to MH i2c: E2 08 00 17 07 80 13 01 00 00 00 00 00 9B [13:30:06]Write i2c OK [13:30:06]MH_I2C_Read... [13:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:06]Read from MH i2c: E2 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 0E 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 0E 00 17 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 DC [13:30:06]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:30:06]wFMCommunicate OK [13:30:06]SAM_PROTO_GetShiftState done [13:30:06]FM_GetShiftState done [13:30:06]opened in 1727052070 [13:30:06]opened+sec_in_day 1727138470 [13:30:06]quantity*price = 72009 [13:30:06]sum+1 = 72010 [13:30:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.37 НДС 12% : 76.47 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 135 23.09.2024 13:30 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115652 ФПД: 53778039751811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133006&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115652&fm=53778039751811&tin=02508201610067®Number=0000000000091831&sum=72000 [13:30:07]StoreToDocumentArchive [13:30:07]shift 472 fd 115652 [13:30:07]save to /storage/0472/doc_00115652 [13:30:07]save last doc name /storage/0472/doc_00115652 to /storage/kkm_last_doc_name [13:30:07]save OK [13:30:07]Clear old archive folders... [13:30:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:30:07]tlvbuf is 01822730 [13:30:07]SAM_PROTO_ClearQueue [13:30:07]wFMCommunicate request_size=4 [13:30:07]MH_SAM_APDU [13:30:07]CAPDU: 80 09 00 00 [13:30:07]Write to MH i2c: E2 08 00 24 07 80 09 00 00 00 00 00 00 9D [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:07]Read from MH i2c: E2 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 03 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [13:30:07]RAPDU: 90 00 [13:30:07]wFMCommunicate OK [13:30:07]SAM_PROTO_ClearQueue done [13:30:07]KKMCreateOFDPacket [13:30:07]OFDProtocolAddRootSTLVToBuf [13:30:07]FM_MakeSignedData [13:30:07]FM_MakeSignedData [13:30:07]SAM_PROTO_SignData [13:30:07]wFMCommunicate request_size=4 [13:30:07]MH_SAM_APDU [13:30:07]CAPDU: 80 0D 01 02 [13:30:07]Write to MH i2c: E2 08 00 25 07 80 0D 01 02 00 00 00 00 A5 [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:07]Read from MH i2c: E2 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 03 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [13:30:07]RAPDU: 90 00 [13:30:07]wFMCommunicate OK [13:30:07]wFMCommunicate request_size=255 [13:30:07]MH_SAM_APDU [13:30:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 5E 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C4 C3 01 00 35 04 06 00 30 E9 2C F4 [13:30:07]Write to MH i2c: E2 02 01 26 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 5E 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C4 C3 01 00 35 04 06 00 30 E9 2C F4 00 00 BE [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:07]Read from MH i2c: E2 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 03 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [13:30:07]RAPDU: 90 00 [13:30:07]wFMCommunicate OK [13:30:07]wFMCommunicate request_size=7 [13:30:07]MH_SAM_APDU [13:30:07]CAPDU: 80 0D 02 02 02 C4 83 [13:30:07]Write to MH i2c: E2 0A 00 27 07 80 0D 02 02 02 00 C4 83 00 00 F3 [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:07]Read from MH i2c: E2 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 03 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [13:30:07]RAPDU: 90 00 [13:30:07]wFMCommunicate OK [13:30:07]wFMCommunicate request_size=4 [13:30:07]MH_SAM_APDU [13:30:07]CAPDU: 80 0D 03 02 [13:30:07]Write to MH i2c: E2 08 00 28 07 80 0D 03 02 00 00 00 00 AA [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:07]Read from MH i2c: E2 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 0B 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 0B 00 28 07 00 7C 1F EA 38 38 C2 E1 79 90 00 BC [13:30:07]RAPDU: 7C 1F EA 38 38 C2 E1 79 90 00 [13:30:07]wFMCommunicate OK [13:30:07]SAM_PROTO_SignData done [13:30:07]FM_MakeSignedData done [13:30:07]CreateOFDProtocolMessage [13:30:07]wFMCommunicate request_size=4 [13:30:07]MH_SAM_APDU [13:30:07]CAPDU: 80 11 00 00 [13:30:07]Write to MH i2c: E2 08 00 29 07 80 11 00 00 00 00 00 00 AA [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:08]Read from MH i2c: E2 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: E2 17 00 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: E2 17 00 29 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F8 [13:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:30:08]wFMCommunicate OK [13:30:08]CreateOFDProtocolMessage done [13:30:08]OFDSenderStorePacket 115652 [13:30:08]StoreOFDPacket docnum=115652 [13:30:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 A3 66 04 01 82 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 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 5E 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C4 C3 01 00 35 04 06 00 30 E9 2C F4 C4 83 7C 1F EA 38 38 C2 E1 79 [13:30:08]CheckFolder [13:30:08]dirname=/storage/ofd_packets [13:30:08]CheckFolder done [13:30:08]ProducePacketName [13:30:08]name=ofd_packets/00115652 [13:30:08]NVStorageSaveData ofd_packets/00115652 [13:30:08]File name is /storage/ofd_packets/00115652 [13:30:08]Write 298 bytes [13:30:08]NVStorageSaveData done [13:30:08]OFDSenderStorePacket done [13:30:08]KKMCreateOFDPacket done [13:30:08]NVStorageSaveData kkm_last_timestamp [13:30:08]File name is /storage/kkm_last_timestamp [13:30:08]Write 4 bytes [13:30:08]NVStorageSaveData done [13:30:08]ExternCall_PrintAddStr [13:30:08]wPrintStart [13:30:08]Write to MH i2c: 01 00 00 2A 07 31 [13:30:08]Write i2c OK [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: 01 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: 01 07 00 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: 01 07 00 2A 07 00 00 00 00 00 FF 0F 46 [13:30:08]RasterBufferAndPrint [13:30:08]line Счет N : (1)24617688 [13:30:08]line ИНН: 02508201610067 [13:30:08]line Контрольно-Кассовый Чек [13:30:08]line ПРОДАЖА [13:30:08]line ТРК (МРК, ГНК) : 45 [13:30:08]line Товар: 2710194210 [13:30:08]line ДТ-К-5 [13:30:08]line 9.450 * 76.20 [13:30:08]line = 720.09 [13:30:08]line НДС 12% НСП 1% [13:30:08]line > о реализуемом товаре [13:30:08]line ОКРУГЛЕНИЕ: -0.09 [13:30:08]line ИТОГО: 720.00 [13:30:08]line Внесено: 720.00 [13:30:08]line СДАЧА: 0.00 [13:30:08]line НСП 1% : 6.37 [13:30:08]line НДС 12% : 76.47 [13:30:08]line Наличными: 720.00 [13:30:08]line Безнал.: 0.00 [13:30:08]line Место: АЗС № 90 "Партнер Нефть" [13:30:08]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:30:08]line СНО: Общий режим [13:30:08]line Чек 135 23.09.2024 13:30 [13:30:08]line Смена: 472 ФФД: 1.0 [13:30:08]line ЗНМ: 0300000120 [13:30:08]line РНМ: 0000000000091831 [13:30:08]line Версия ККМ: 001 [13:30:08]line ФМ: 0000000000871830 [13:30:08]line ФД: 115652 [13:30:08]line ФПД: 53778039751811 [13:30:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133006&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115652&fm=53778039751811&tin=02508201610067®Number=0000000000091831&sum=72000 [13:30:08]written 0, free lines is 4095 [13:30:08]OFD Sender: Processing packet 115652 [packets to send 482, broken 481] [13:30:08]ProducePacketName [13:30:08]name=ofd_packets/00115652 [13:30:08]OFD Sender: To server: pG, [13:30:08]CommunicateWithHost lk.salyk.kg:30040 [13:30:08]ConnectInit lk.salyk.kg [13:30:08]Connected sock=10 [13:30: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 38 33 30 0C 01 00 00 A3 66 04 01 82 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 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 5E 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C4 C3 01 00 35 04 06 00 30 E9 2C F4 C4 83 7C 1F EA 38 38 C2 E1 79 [13:30:08]Write to MH i2c: 01 00 00 54 07 5B [13:30:08]Write i2c OK [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: 01 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: 01 07 00 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: 01 07 00 54 07 00 00 00 00 00 72 0C E0 [13:30:08]RasterBufferAndPrint [13:30:08]line [13:30:08]line [13:30:08]line [13:30:08]line [13:30:08]line [13:30:08]written 0, free lines is 3190 [13:30:08]MH_Cut [13:30:08]Write to MH i2c: D1 01 00 5B 07 01 34 [13:30:08]Write i2c OK [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: D1 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: D1 01 00 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: D1 01 00 5B 07 00 33 [13:30:08]Write to MH i2c: 01 00 00 5C 07 63 [13:30:08]Write i2c OK [13:30:08]MH_I2C_Read... [13:30:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A8 CE 47 00 29 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 38 33 30 10 04 04 00 C4 C3 01 00 F4 03 04 00 A0 12 F1 66 B6 04 01 00 00 80 A7 CB B7 1D A9 3E 07 [13:30:08]CommunicateWithHost err = 0 [13:30:08]CheckOFDResponse [13:30:08]1017 (14) - 77093643461234 [13:30:08]1041 (16) - 0000000000871830 [13:30:08]1040 (4) - 115652 [13:30:08]1012 (4) - 23.09.2024 07:02 [13:30:08]1206 (1) - 0 [13:30:08]OFD Sender: Remove packet 115652 [13:30:08]ProducePacketName [13:30:08]name=ofd_packets/00115652 [13:30:08]NVStorageDeleteData [13:30:09]OFD Sender: No OFD packet to send [13:30:09]*** Cut start [13:30:09]*** Partial cut [13:30:09]*** CUTSNS_PIN = 1 [13:30:09]*** CUTSNS_PIN = 0 [13:30:09]*** Brake cut motor [13:30:10]Read from MH i2c: 01 [13:30:10]MH_I2C_Read... [13:30:10]*** Stop cut motor [13:30:10]*** Cut end [13:30:10]Read from MH i2c: 01 07 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: 01 07 00 5C 07 00 00 00 00 00 FF 0F 78 [13:30:10]process_action close_receipt done [13:30:10]requested_data is exist [13:30:10]produce_requested_data [13:30:10]requested_item fm.sn is exist - process it [13:30:10]wFMCommunicate request_size=4 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 11 00 00 [13:30:10]Write to MH i2c: E2 08 00 5D 07 80 11 00 00 00 00 00 00 DE [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 17 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 17 00 5D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2C [13:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:30:10]wFMCommunicate OK [13:30:10]requested_item fd.num is exist - process it [13:30:10]SAM_PROTO_GetFieldsCounters [13:30:10]wFMCommunicate request_size=4 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 13 00 00 [13:30:10]Write to MH i2c: E2 08 00 5E 07 80 13 00 00 00 00 00 00 E1 [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 62 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 62 00 5E 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C4 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [13:30: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C4 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:10]wFMCommunicate OK [13:30:10]SAM_PROTO_GetFieldsCounters done [13:30:10]requested_item shift.num is exist - process it [13:30:10]requested_item shift.opened is exist - process it [13:30:10]req_shift_opened [13:30:10]FM_GetShiftState [13:30:10]SAM_PROTO_GetShiftState [13:30:10]wFMCommunicate request_size=4 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 13 01 00 [13:30:10]Write to MH i2c: E2 08 00 5F 07 80 13 01 00 00 00 00 00 E3 [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 0E 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 0E 00 5F 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 24 [13:30:10]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:30:10]wFMCommunicate OK [13:30:10]SAM_PROTO_GetShiftState done [13:30:10]FM_GetShiftState done [13:30:10]req_shift_opened done [13:30:10]requested_item shift.open_date is exist - process it [13:30:10]req_shift_open_date [13:30:10]req_shift_open_date done [13:30:10]produce_requested_data done [13:30:10]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115652,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:30:10]process_action_free close_receipt [13:30:10]json_value_free [13:30:10]json_value_free done [13:30:10]process_json_proto returns [13:30:10]Send response to host [13:30:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115652,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:30:10]free response buf [13:30:10]execute_script done [13:30:10]execute_script returns [13:30:10]free content buf [13:30:10]Sock 9.Close socket [13:30:10]Sock 9.Thread stoped [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:21]accept exits with 7 [13:32:21]New connection [13:32:21]New thread 3066879332 created [13:32:21]Thread 3067022692 joined [13:32:21]Waiting for new connection... [13:32:21] Sock 7.Parse request [13:32:21]Sock 7.Check first char [13:32:21]Sock 7.First char is OK [13:32:21]request: POST /json_proto HTTP/1.0 [13:32:21]Method: POST [13:32:21]URL: /json_proto [13:32:21]Method is POST - this is cgi request [13:32:21]url: /json_proto [13:32:21]query_string will be loaded in cgi processing [13:32:21]execute_cgi json_proto POST (null) [13:32:21]execute_cgi path=json_proto method=POST [13:32:21]POST find Content-Length [13:32:21]Host: 172.17.41.136:8080 [13:32:21]Content-Length: 759 [13:32:21]Content-Type: application/json [13:32:21] [13:32:21]POST finish read [13:32:21]Found Content-Length = 759 [13:32:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30052601", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:21]execute_script... [13:32:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30052601", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:21]POST & json_proto [13:32:21]process_json_proto [13:32:21]json parsed OK: [13:32:21]protocol is kg_v1.0 [13:32:21]action value=close_receipt [13:32:21]process_action close_receipt [13:32:21]cmd_close_receipt [13:32:21]MH_GetDate [13:32:21]Write to MH i2c: F0 00 00 60 07 56 [13:32:21]Write i2c OK [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: F0 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: F0 09 00 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: F0 09 00 60 07 00 E6 6D F1 66 1B D0 5A 64 B2 [13:32:21]GetLastDocTimeStamp 1727098206 [13:32:21]current date 1727098342 [13:32:21]FM_GetShiftState [13:32:21]SAM_PROTO_GetShiftState [13:32:21]wFMCommunicate request_size=4 [13:32:21]MH_SAM_APDU [13:32:21]CAPDU: 80 13 01 00 [13:32:21]Write to MH i2c: E2 08 00 61 07 80 13 01 00 00 00 00 00 E5 [13:32:21]Write i2c OK [13:32:21]MH_I2C_Read... [13:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:22]Read from MH i2c: E2 [13:32:22]MH_I2C_Read... [13:32:22]Read from MH i2c: E2 0E 00 [13:32:22]MH_I2C_Read... [13:32:22]Read from MH i2c: E2 0E 00 61 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 26 [13:32:22]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:32:22]wFMCommunicate OK [13:32:22]SAM_PROTO_GetShiftState done [13:32:22]FM_GetShiftState done [13:32:22]opened in 1727052070 [13:32:22]opened+sec_in_day 1727138470 [13:32:22]quantity*price = 0 [13:32:22]sum+1 = 1 [13:32:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 136 23.09.2024 13:32 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30052601 ФМ: 0000000000871830 ФД: 115653 ФПД: 261517646956994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133222&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115653&fm=261517646956994&tin=02508201610067®Number=0000000000091831&sum=0 [13:32:23]StoreToDocumentArchive [13:32:23]shift 472 fd 115653 [13:32:23]save to /storage/0472/doc_00115653 [13:32:23]save last doc name /storage/0472/doc_00115653 to /storage/kkm_last_doc_name [13:32:23]save OK [13:32:23]Clear old archive folders... [13:32:23]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:32:23]tlvbuf is 017BA880 [13:32:23]SAM_PROTO_ClearQueue [13:32:23]wFMCommunicate request_size=4 [13:32:23]MH_SAM_APDU [13:32:23]CAPDU: 80 09 00 00 [13:32:23]Write to MH i2c: E2 08 00 6E 07 80 09 00 00 00 00 00 00 E7 [13:32:23]Write i2c OK [13:32:23]MH_I2C_Read... [13:32:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:23]Read from MH i2c: E2 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 03 00 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 03 00 6E 07 00 90 00 E9 [13:32:23]RAPDU: 90 00 [13:32:23]wFMCommunicate OK [13:32:23]SAM_PROTO_ClearQueue done [13:32:23]KKMCreateOFDPacket [13:32:23]OFDProtocolAddRootSTLVToBuf [13:32:23]FM_MakeSignedData [13:32:23]FM_MakeSignedData [13:32:23]SAM_PROTO_SignData [13:32:23]wFMCommunicate request_size=4 [13:32:23]MH_SAM_APDU [13:32:23]CAPDU: 80 0D 01 02 [13:32:23]Write to MH i2c: E2 08 00 6F 07 80 0D 01 02 00 00 00 00 EF [13:32:23]Write i2c OK [13:32:23]MH_I2C_Read... [13:32:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:23]Read from MH i2c: E2 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 03 00 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [13:32:23]RAPDU: 90 00 [13:32:23]wFMCommunicate OK [13:32:23]wFMCommunicate request_size=255 [13:32:23]MH_SAM_APDU [13:32:23]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 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 88 00 00 00 F4 03 04 00 E6 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C5 C3 01 00 35 04 06 00 ED D9 [13:32:23]Write to MH i2c: E2 02 01 70 07 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 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 88 00 00 00 F4 03 04 00 E6 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C5 C3 01 00 35 04 06 00 ED D9 00 00 CE [13:32:23]Write i2c OK [13:32:23]MH_I2C_Read... [13:32:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:23]Read from MH i2c: E2 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 03 00 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 03 00 70 07 00 90 00 EB [13:32:23]RAPDU: 90 00 [13:32:23]wFMCommunicate OK [13:32:23]wFMCommunicate request_size=9 [13:32:23]MH_SAM_APDU [13:32:23]CAPDU: 80 0D 02 02 04 52 73 09 C2 [13:32:23]Write to MH i2c: E2 0C 00 71 07 80 0D 02 02 04 00 52 73 09 C2 00 00 8A [13:32:23]Write i2c OK [13:32:23]MH_I2C_Read... [13:32:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:23]Read from MH i2c: E2 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 03 00 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 03 00 71 07 00 90 00 EC [13:32:23]RAPDU: 90 00 [13:32:23]wFMCommunicate OK [13:32:23]wFMCommunicate request_size=4 [13:32:23]MH_SAM_APDU [13:32:23]CAPDU: 80 0D 03 02 [13:32:23]Write to MH i2c: E2 08 00 72 07 80 0D 03 02 00 00 00 00 F4 [13:32:23]Write i2c OK [13:32:23]MH_I2C_Read... [13:32:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:23]Read from MH i2c: E2 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 0B 00 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 0B 00 72 07 00 A1 01 39 3E 79 02 E9 20 90 00 92 [13:32:23]RAPDU: A1 01 39 3E 79 02 E9 20 90 00 [13:32:23]wFMCommunicate OK [13:32:23]SAM_PROTO_SignData done [13:32:23]FM_MakeSignedData done [13:32:23]CreateOFDProtocolMessage [13:32:23]wFMCommunicate request_size=4 [13:32:23]MH_SAM_APDU [13:32:23]CAPDU: 80 11 00 00 [13:32:23]Write to MH i2c: E2 08 00 73 07 80 11 00 00 00 00 00 00 F4 [13:32:23]Write i2c OK [13:32:23]MH_I2C_Read... [13:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:23]Read from MH i2c: E2 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 17 00 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 17 00 73 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 42 [13:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:32:23]wFMCommunicate OK [13:32:23]CreateOFDProtocolMessage done [13:32:23]OFDSenderStorePacket 115653 [13:32:23]StoreOFDPacket docnum=115653 [13:32:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 2B BC 06 01 40 09 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 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 88 00 00 00 F4 03 04 00 E6 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C5 C3 01 00 35 04 06 00 ED D9 52 73 09 C2 A1 01 39 3E 79 02 E9 20 [13:32:23]CheckFolder [13:32:23]dirname=/storage/ofd_packets [13:32:23]CheckFolder done [13:32:23]ProducePacketName [13:32:23]name=ofd_packets/00115653 [13:32:23]NVStorageSaveData ofd_packets/00115653 [13:32:23]File name is /storage/ofd_packets/00115653 [13:32:23]Write 300 bytes [13:32:23]NVStorageSaveData done [13:32:23]OFDSenderStorePacket done [13:32:23]KKMCreateOFDPacket done [13:32:23]NVStorageSaveData kkm_last_timestamp [13:32:23]File name is /storage/kkm_last_timestamp [13:32:23]Write 4 bytes [13:32:23]NVStorageSaveData done [13:32:23]ExternCall_PrintAddStr [13:32:23]wPrintStart [13:32:23]Write to MH i2c: 01 00 00 74 07 7B [13:32:23]Write i2c OK [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: 01 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: 01 07 00 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: 01 07 00 74 07 00 00 00 00 00 FF 0F 90 [13:32:23]RasterBufferAndPrint [13:32:23]line Счет N : (1)24617689 [13:32:23]line ИНН: 02508201610067 [13:32:23]line Контрольно-Кассовый Чек [13:32:23]line ПРОДАЖА [13:32:23]line ТРК (МРК, ГНК) : 71 [13:32:23]line Товар: 2711190000 [13:32:23]line ГАЗ-К-5 [13:32:23]line 40.000 * 0.00 [13:32:23]line = 0.00 [13:32:23]line НДС 12% НСП 1% [13:32:23]line > о реализуемом товаре [13:32:23]line ИТОГО: 0.00 [13:32:23]line НСП 1% : 0.00 [13:32:23]line НДС 12% : 0.00 [13:32:23]line Наличными: 0.00 [13:32:23]line Безнал.: 0.00 [13:32:23]line Место: АЗС № 90 "Партнер Нефть" [13:32:23]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:32:23]line СНО: Общий режим [13:32:23]line Чек 136 23.09.2024 13:32 [13:32:23]line Смена: 472 ФФД: 1.0 [13:32:23]line ЗНМ: 0300000120 [13:32:23]line РНМ: 0000000000091831 [13:32:23]line Версия ККМ: 001 [13:32:23]line Талоны: ТК ГПНА Online [13:32:23]line 30052601 [13:32:23]line ФМ: 0000000000871830 [13:32:23]line ФД: 115653 [13:32:23]line ФПД: 261517646956994 [13:32:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133222&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115653&fm=261517646956994&tin=02508201610067®Number=0000000000091831&sum=0 [13:32:23]written 0, free lines is 4095 [13:32:23]OFD Sender: Processing packet 115653 [packets to send 482, broken 481] [13:32:23]ProducePacketName [13:32:23]name=ofd_packets/00115653 [13:32:23]OFD Sender: To server: pG, [13:32:23]CommunicateWithHost lk.salyk.kg:30040 [13:32:23]ConnectInit lk.salyk.kg [13:32:23]Connected sock=10 [13:32:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 2B BC 06 01 40 09 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 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 88 00 00 00 F4 03 04 00 E6 6D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C5 C3 01 00 35 04 06 00 ED D9 52 73 09 C2 A1 01 39 3E 79 02 E9 20 [13:32:24]Write to MH i2c: 01 00 00 9D 07 A4 [13:32:24]Write i2c OK [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: 01 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: 01 07 00 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: 01 07 00 9D 07 00 00 00 00 00 7A 0C 31 [13:32:24]RasterBufferAndPrint [13:32:24]line [13:32:24]line [13:32:24]line [13:32:24]line [13:32:24]line [13:32:24]written 0, free lines is 3200 [13:32:24]MH_Cut [13:32:24]Write to MH i2c: D1 01 00 A4 07 01 7D [13:32:24]Write i2c OK [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: D1 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: D1 01 00 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: D1 01 00 A4 07 00 7C [13:32:24]Write to MH i2c: 01 00 00 A5 07 AC [13:32:24]Write i2c OK [13:32:24]MH_I2C_Read... [13:32:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 93 EE 47 00 C3 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C5 C3 01 00 F4 03 04 00 28 13 F1 66 B6 04 01 00 00 59 E4 2A 76 4A C7 06 F9 [13:32:24]CommunicateWithHost err = 0 [13:32:24]CheckOFDResponse [13:32:24]1017 (14) - 77093643461234 [13:32:24]1041 (16) - 0000000000871830 [13:32:24]1040 (4) - 115653 [13:32:24]1012 (4) - 23.09.2024 07:05 [13:32:24]1206 (1) - 0 [13:32:24]OFD Sender: Remove packet 115653 [13:32:24]ProducePacketName [13:32:24]name=ofd_packets/00115653 [13:32:24]NVStorageDeleteData [13:32:24]OFD Sender: No OFD packet to send [13:32:25]*** Cut start [13:32:25]*** Partial cut [13:32:25]*** CUTSNS_PIN = 1 [13:32:25]*** CUTSNS_PIN = 0 [13:32:25]*** Brake cut motor [13:32:25]Read from MH i2c: 01 [13:32:25]MH_I2C_Read... [13:32:25]*** Stop cut motor [13:32:25]*** Cut end [13:32:25]Read from MH i2c: 01 07 00 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: 01 07 00 A5 07 00 00 00 00 00 FF 0F C1 [13:32:25]process_action close_receipt done [13:32:25]requested_data is exist [13:32:25]produce_requested_data [13:32:25]requested_item fm.sn is exist - process it [13:32:25]wFMCommunicate request_size=4 [13:32:25]MH_SAM_APDU [13:32:25]CAPDU: 80 11 00 00 [13:32:25]Write to MH i2c: E2 08 00 A6 07 80 11 00 00 00 00 00 00 27 [13:32:25]Write i2c OK [13:32:25]MH_I2C_Read... [13:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:25]Read from MH i2c: E2 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: E2 17 00 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: E2 17 00 A6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 75 [13:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:32:25]wFMCommunicate OK [13:32:25]requested_item fd.num is exist - process it [13:32:25]SAM_PROTO_GetFieldsCounters [13:32:25]wFMCommunicate request_size=4 [13:32:25]MH_SAM_APDU [13:32:25]CAPDU: 80 13 00 00 [13:32:25]Write to MH i2c: E2 08 00 A7 07 80 13 00 00 00 00 00 00 2A [13:32:25]Write i2c OK [13:32:25]MH_I2C_Read... [13:32:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:26]Read from MH i2c: E2 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: E2 62 00 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: E2 62 00 A7 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C5 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [13:32: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C5 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:26]wFMCommunicate OK [13:32:26]SAM_PROTO_GetFieldsCounters done [13:32:26]requested_item shift.num is exist - process it [13:32:26]requested_item shift.opened is exist - process it [13:32:26]req_shift_opened [13:32:26]FM_GetShiftState [13:32:26]SAM_PROTO_GetShiftState [13:32:26]wFMCommunicate request_size=4 [13:32:26]MH_SAM_APDU [13:32:26]CAPDU: 80 13 01 00 [13:32:26]Write to MH i2c: E2 08 00 A8 07 80 13 01 00 00 00 00 00 2C [13:32:26]Write i2c OK [13:32:26]MH_I2C_Read... [13:32:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:26]Read from MH i2c: E2 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: E2 0E 00 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: E2 0E 00 A8 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6D [13:32:26]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:32:26]wFMCommunicate OK [13:32:26]SAM_PROTO_GetShiftState done [13:32:26]FM_GetShiftState done [13:32:26]req_shift_opened done [13:32:26]requested_item shift.open_date is exist - process it [13:32:26]req_shift_open_date [13:32:26]req_shift_open_date done [13:32:26]produce_requested_data done [13:32:26]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115653,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:32:26]process_action_free close_receipt [13:32:26]json_value_free [13:32:26]json_value_free done [13:32:26]process_json_proto returns [13:32:26]Send response to host [13:32:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115653,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:32:26]free response buf [13:32:26]execute_script done [13:32:26]execute_script returns [13:32:26]free content buf [13:32:26]Sock 7.Close socket [13:32:26]Sock 7.Thread stoped [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:40]accept exits with 9 [13:33:40]New connection [13:33:40]New thread 3067022692 created [13:33:40]Thread 3066879332 joined [13:33:40]Waiting for new connection... [13:33:40] Sock 9.Parse request [13:33:40]Sock 9.Check first char [13:33:40]Sock 9.First char is OK [13:33:40]request: POST /json_proto HTTP/1.0 [13:33:40]Method: POST [13:33:40]URL: /json_proto [13:33:40]Method is POST - this is cgi request [13:33:40]url: /json_proto [13:33:40]query_string will be loaded in cgi processing [13:33:40]execute_cgi json_proto POST (null) [13:33:40]execute_cgi path=json_proto method=POST [13:33:40]POST find Content-Length [13:33:40]Host: 172.17.41.136:8080 [13:33:40]Content-Length: 625 [13:33:40]Content-Type: application/json [13:33:40] [13:33:40]POST finish read [13:33:40]Found Content-Length = 625 [13:33:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:40]execute_script... [13: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)24617691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:40]POST & json_proto [13:33:40]process_json_proto [13:33:40]json parsed OK: [13:33:40]protocol is kg_v1.0 [13:33:40]action value=close_receipt [13:33:40]process_action close_receipt [13:33:40]cmd_close_receipt [13:33:40]MH_GetDate [13:33:40]Write to MH i2c: F0 00 00 A9 07 9F [13:33:40]Write i2c OK [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: F0 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: F0 09 00 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: F0 09 00 A9 07 00 34 6E F1 66 1B D0 5A 64 4A [13:33:40]GetLastDocTimeStamp 1727098342 [13:33:40]current date 1727098420 [13:33:40]FM_GetShiftState [13:33:40]SAM_PROTO_GetShiftState [13:33:40]wFMCommunicate request_size=4 [13:33:40]MH_SAM_APDU [13:33:40]CAPDU: 80 13 01 00 [13:33:40]Write to MH i2c: E2 08 00 AA 07 80 13 01 00 00 00 00 00 2E [13:33:40]Write i2c OK [13:33:40]MH_I2C_Read... [13:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:40]Read from MH i2c: E2 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: E2 0E 00 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: E2 0E 00 AA 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6F [13:33:40]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:33:40]wFMCommunicate OK [13:33:40]SAM_PROTO_GetShiftState done [13:33:40]FM_GetShiftState done [13:33:40]opened in 1727052070 [13:33:40]opened+sec_in_day 1727138470 [13:33:40]quantity*price = 99999 [13:33:40]sum+1 = 100001 [13:33:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 137 23.09.2024 13:33 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115654 ФПД: 23561296450135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133340&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115654&fm=23561296450135&tin=02508201610067®Number=0000000000091831&sum=100000 [13:33:41]StoreToDocumentArchive [13:33:41]shift 472 fd 115654 [13:33:41]save to /storage/0472/doc_00115654 [13:33:41]save last doc name /storage/0472/doc_00115654 to /storage/kkm_last_doc_name [13:33:41]save OK [13:33:41]Clear old archive folders... [13:33:41]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:33:41]tlvbuf is 017D3F40 [13:33:41]SAM_PROTO_ClearQueue [13:33:41]wFMCommunicate request_size=4 [13:33:41]MH_SAM_APDU [13:33:41]CAPDU: 80 09 00 00 [13:33:41]Write to MH i2c: E2 08 00 B7 07 80 09 00 00 00 00 00 00 30 [13:33:41]Write i2c OK [13:33:41]MH_I2C_Read... [13:33:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:41]Read from MH i2c: E2 [13:33:41]MH_I2C_Read... [13:33:41]Read from MH i2c: E2 03 00 [13:33:41]MH_I2C_Read... [13:33:41]Read from MH i2c: E2 03 00 B7 07 00 90 00 32 [13:33:41]RAPDU: 90 00 [13:33:41]wFMCommunicate OK [13:33:41]SAM_PROTO_ClearQueue done [13:33:41]KKMCreateOFDPacket [13:33:41]OFDProtocolAddRootSTLVToBuf [13:33:41]FM_MakeSignedData [13:33:41]FM_MakeSignedData [13:33:41]SAM_PROTO_SignData [13:33:41]wFMCommunicate request_size=4 [13:33:41]MH_SAM_APDU [13:33:41]CAPDU: 80 0D 01 02 [13:33:41]Write to MH i2c: E2 08 00 B8 07 80 0D 01 02 00 00 00 00 38 [13:33:41]Write i2c OK [13:33:41]MH_I2C_Read... [13:33:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:41]Read from MH i2c: E2 [13:33:41]MH_I2C_Read... [13:33:41]Read from MH i2c: E2 03 00 [13:33:41]MH_I2C_Read... [13:33:41]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [13:33:41]RAPDU: 90 00 [13:33:41]wFMCommunicate OK [13:33:41]wFMCommunicate request_size=253 [13:33:41]MH_SAM_APDU [13:33:41]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 34 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C6 C3 01 00 35 04 06 00 15 6D CA B4 92 57 [13:33:41]Write to MH i2c: E2 00 01 B9 07 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 34 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C6 C3 01 00 35 04 06 00 15 6D CA B4 92 57 00 00 0A [13:33:41]Write i2c OK [13:33:41]MH_I2C_Read... [13:33:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:42]Read from MH i2c: E2 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: E2 03 00 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: E2 03 00 B9 07 00 90 00 34 [13:33:42]RAPDU: 90 00 [13:33:42]wFMCommunicate OK [13:33:42]wFMCommunicate request_size=4 [13:33:42]MH_SAM_APDU [13:33:42]CAPDU: 80 0D 03 02 [13:33:42]Write to MH i2c: E2 08 00 BA 07 80 0D 03 02 00 00 00 00 3C [13:33:42]Write i2c OK [13:33:42]MH_I2C_Read... [13:33:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:42]Read from MH i2c: E2 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: E2 0B 00 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: E2 0B 00 BA 07 00 E9 B4 71 2C 08 D2 08 70 90 00 C9 [13:33:42]RAPDU: E9 B4 71 2C 08 D2 08 70 90 00 [13:33:42]wFMCommunicate OK [13:33:42]SAM_PROTO_SignData done [13:33:42]FM_MakeSignedData done [13:33:42]CreateOFDProtocolMessage [13:33:42]wFMCommunicate request_size=4 [13:33:42]MH_SAM_APDU [13:33:42]CAPDU: 80 11 00 00 [13:33:42]Write to MH i2c: E2 08 00 BB 07 80 11 00 00 00 00 00 00 3C [13:33:42]Write i2c OK [13:33:42]MH_I2C_Read... [13:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:42]Read from MH i2c: E2 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: E2 17 00 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: E2 17 00 BB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8A [13:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:33:42]wFMCommunicate OK [13:33:42]CreateOFDProtocolMessage done [13:33:42]OFDSenderStorePacket 115654 [13:33:42]StoreOFDPacket docnum=115654 [13:33:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 15 90 00 01 49 9C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 34 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C6 C3 01 00 35 04 06 00 15 6D CA B4 92 57 E9 B4 71 2C 08 D2 08 70 [13:33:42]CheckFolder [13:33:42]dirname=/storage/ofd_packets [13:33:42]CheckFolder done [13:33:42]ProducePacketName [13:33:42]name=ofd_packets/00115654 [13:33:42]NVStorageSaveData ofd_packets/00115654 [13:33:42]File name is /storage/ofd_packets/00115654 [13:33:42]Write 294 bytes [13:33:42]NVStorageSaveData done [13:33:42]OFDSenderStorePacket done [13:33:42]KKMCreateOFDPacket done [13:33:42]NVStorageSaveData kkm_last_timestamp [13:33:42]File name is /storage/kkm_last_timestamp [13:33:42]Write 4 bytes [13:33:42]NVStorageSaveData done [13:33:42]ExternCall_PrintAddStr [13:33:42]wPrintStart [13:33:42]Write to MH i2c: 01 00 00 BC 07 C3 [13:33:42]Write i2c OK [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: 01 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: 01 07 00 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: 01 07 00 BC 07 00 00 00 00 00 FF 0F D8 [13:33:42]RasterBufferAndPrint [13:33:42]line Счет N : (1)24617691 [13:33:42]line ИНН: 02508201610067 [13:33:42]line Контрольно-Кассовый Чек [13:33:42]line ПРОДАЖА [13:33:42]line ТРК (МРК, ГНК) : 54 [13:33:42]line Товар: 2710124130 [13:33:42]line SU-92 [13:33:42]line 14.430 * 69.30 [13:33:42]line = 1000.00 [13:33:42]line НДС 12% НСП 1% [13:33:42]line > о реализуемом товаре [13:33:42]line ИТОГО: 1000.00 [13:33:42]line НСП 1% : 8.85 [13:33:42]line НДС 12% : 106.19 [13:33:42]line Наличными: 1000.00 [13:33:42]line Безнал.: 0.00 [13:33:42]line Место: АЗС № 90 "Партнер Нефть" [13:33:42]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:33:42]line СНО: Общий режим [13:33:42]line Чек 137 23.09.2024 13:33 [13:33:42]line Смена: 472 ФФД: 1.0 [13:33:42]line ЗНМ: 0300000120 [13:33:42]line РНМ: 0000000000091831 [13:33:42]line Версия ККМ: 001 [13:33:42]line ФМ: 0000000000871830 [13:33:42]line ФД: 115654 [13:33:42]line ФПД: 23561296450135 [13:33:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133340&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115654&fm=23561296450135&tin=02508201610067®Number=0000000000091831&sum=100000 [13:33:42]written 0, free lines is 4095 [13:33:42]OFD Sender: Processing packet 115654 [packets to send 482, broken 481] [13:33:42]ProducePacketName [13:33:42]name=ofd_packets/00115654 [13:33:42]OFD Sender: To server: pG, [13:33:42]CommunicateWithHost lk.salyk.kg:30040 [13:33:42]ConnectInit lk.salyk.kg [13:33:42]Connected sock=10 [13: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 38 33 30 08 01 00 00 15 90 00 01 49 9C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 34 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C6 C3 01 00 35 04 06 00 15 6D CA B4 92 57 E9 B4 71 2C 08 D2 08 70 [13:33:42]Write to MH i2c: 01 00 00 E3 07 EA [13:33:42]Write i2c OK [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: 01 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: 01 07 00 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: 01 07 00 E3 07 00 00 00 00 00 A4 0C A1 [13:33:42]RasterBufferAndPrint [13:33:42]line [13:33:42]line [13:33:42]line [13:33:42]line [13:33:42]line [13:33:42]written 0, free lines is 3242 [13:33:42]MH_Cut [13:33:42]Write to MH i2c: D1 01 00 EA 07 01 C3 [13:33:42]Write i2c OK [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: D1 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: D1 01 00 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: D1 01 00 EA 07 00 C2 [13:33:42]Write to MH i2c: 01 00 00 EB 07 F2 [13:33:42]Write i2c OK [13:33:42]MH_I2C_Read... [13: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 38 33 30 4F 00 00 00 69 09 47 00 5F 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 38 33 30 10 04 04 00 C6 C3 01 00 F4 03 04 00 77 13 F1 66 B6 04 01 00 00 57 D6 24 CB 45 57 40 E6 [13:33:42]CommunicateWithHost err = 0 [13:33:42]CheckOFDResponse [13:33:42]1017 (14) - 77093643461234 [13:33:42]1041 (16) - 0000000000871830 [13:33:42]1040 (4) - 115654 [13:33:42]1012 (4) - 23.09.2024 07:06 [13:33:42]1206 (1) - 0 [13:33:42]OFD Sender: Remove packet 115654 [13:33:42]ProducePacketName [13:33:42]name=ofd_packets/00115654 [13:33:42]NVStorageDeleteData [13:33:43]OFD Sender: No OFD packet to send [13:33:43]*** Cut start [13:33:43]*** Partial cut [13:33:43]*** CUTSNS_PIN = 1 [13:33:44]*** CUTSNS_PIN = 0 [13:33:44]*** Brake cut motor [13:33:44]Read from MH i2c: 01 [13:33:44]MH_I2C_Read... [13:33:44]*** Stop cut motor [13:33:44]*** Cut end [13:33:44]Read from MH i2c: 01 07 00 [13:33:44]MH_I2C_Read... [13:33:44]Read from MH i2c: 01 07 00 EB 07 00 00 00 00 00 FF 0F 07 [13:33:44]process_action close_receipt done [13:33:44]requested_data is exist [13:33:44]produce_requested_data [13:33:44]requested_item fm.sn is exist - process it [13:33:44]wFMCommunicate request_size=4 [13:33:44]MH_SAM_APDU [13:33:44]CAPDU: 80 11 00 00 [13:33:44]Write to MH i2c: E2 08 00 EC 07 80 11 00 00 00 00 00 00 6D [13:33:44]Write i2c OK [13:33:44]MH_I2C_Read... [13:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:44]Read from MH i2c: E2 [13:33:44]MH_I2C_Read... [13:33:44]Read from MH i2c: E2 17 00 [13:33:44]MH_I2C_Read... [13:33:44]Read from MH i2c: E2 17 00 EC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BB [13:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:33:44]wFMCommunicate OK [13:33:44]requested_item fd.num is exist - process it [13:33:44]SAM_PROTO_GetFieldsCounters [13:33:44]wFMCommunicate request_size=4 [13:33:44]MH_SAM_APDU [13:33:44]CAPDU: 80 13 00 00 [13:33:44]Write to MH i2c: E2 08 00 ED 07 80 13 00 00 00 00 00 00 70 [13:33:44]Write i2c OK [13:33:44]MH_I2C_Read... [13:33:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:44]Read from MH i2c: E2 [13:33:44]MH_I2C_Read... [13:33:44]Read from MH i2c: E2 62 00 [13:33:44]MH_I2C_Read... [13:33:44]Read from MH i2c: E2 62 00 ED 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C6 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [13: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C6 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:44]wFMCommunicate OK [13:33:44]SAM_PROTO_GetFieldsCounters done [13:33:44]requested_item shift.num is exist - process it [13:33:44]requested_item shift.opened is exist - process it [13:33:44]req_shift_opened [13:33:44]FM_GetShiftState [13:33:44]SAM_PROTO_GetShiftState [13:33:44]wFMCommunicate request_size=4 [13:33:44]MH_SAM_APDU [13:33:44]CAPDU: 80 13 01 00 [13:33:44]Write to MH i2c: E2 08 00 EE 07 80 13 01 00 00 00 00 00 72 [13:33:44]Write i2c OK [13:33:44]MH_I2C_Read... [13:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:44]Read from MH i2c: E2 [13:33:44]MH_I2C_Read... [13:33:44]Read from MH i2c: E2 0E 00 [13:33:44]MH_I2C_Read... [13:33:44]Read from MH i2c: E2 0E 00 EE 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B3 [13:33:44]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:33:44]wFMCommunicate OK [13:33:44]SAM_PROTO_GetShiftState done [13:33:44]FM_GetShiftState done [13:33:44]req_shift_opened done [13:33:44]requested_item shift.open_date is exist - process it [13:33:44]req_shift_open_date [13:33:44]req_shift_open_date done [13:33:44]produce_requested_data done [13:33:44]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115654,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:33:44]process_action_free close_receipt [13:33:44]json_value_free [13:33:44]json_value_free done [13:33:44]process_json_proto returns [13:33:44]Send response to host [13:33:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115654,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:33:44]free response buf [13:33:44]execute_script done [13:33:44]execute_script returns [13:33:44]free content buf [13:33:44]Sock 9.Close socket [13:33:44]Sock 9.Thread stoped [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:55]accept exits with 7 [13:33:55]New connection [13:33:55]New thread 3066879332 created [13:33:55]Thread 3067022692 joined [13:33:55]Waiting for new connection... [13:33:55] Sock 7.Parse request [13:33:55]Sock 7.Check first char [13:33:55]Sock 7.First char is OK [13:33:55]request: POST /json_proto HTTP/1.0 [13:33:55]Method: POST [13:33:55]URL: /json_proto [13:33:55]Method is POST - this is cgi request [13:33:55]url: /json_proto [13:33:55]query_string will be loaded in cgi processing [13:33:55]execute_cgi json_proto POST (null) [13:33:55]execute_cgi path=json_proto method=POST [13:33:55]POST find Content-Length [13:33:55]Host: 172.17.41.136:8080 [13:33:55]Content-Length: 802 [13:33:55]Content-Type: application/json [13:33:55] [13:33:55]POST finish read [13:33:55]Found Content-Length = 802 [13:33:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:55]execute_script... [13:33: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)24617690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:55]POST & json_proto [13:33:55]process_json_proto [13:33:55]json parsed OK: [13:33:55]protocol is kg_v1.0 [13:33:55]action value=close_receipt [13:33:55]process_action close_receipt [13:33:55]cmd_close_receipt [13:33:55]MH_GetDate [13:33:55]Write to MH i2c: F0 00 00 EF 07 E5 [13:33:55]Write i2c OK [13:33:55]MH_I2C_Read... [13:33:55]Read from MH i2c: F0 [13:33:55]MH_I2C_Read... [13:33:55]Read from MH i2c: F0 09 00 [13:33:55]MH_I2C_Read... [13:33:55]Read from MH i2c: F0 09 00 EF 07 00 43 6E F1 66 1B D0 5A 64 9F [13:33:55]GetLastDocTimeStamp 1727098420 [13:33:55]current date 1727098435 [13:33:55]FM_GetShiftState [13:33:55]SAM_PROTO_GetShiftState [13:33:55]wFMCommunicate request_size=4 [13:33:55]MH_SAM_APDU [13:33:55]CAPDU: 80 13 01 00 [13:33:55]Write to MH i2c: E2 08 00 F0 07 80 13 01 00 00 00 00 00 74 [13:33:55]Write i2c OK [13:33:55]MH_I2C_Read... [13:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:55]Read from MH i2c: E2 [13:33:55]MH_I2C_Read... [13:33:55]Read from MH i2c: E2 0E 00 [13:33:55]MH_I2C_Read... [13:33:55]Read from MH i2c: E2 0E 00 F0 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B5 [13:33:55]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:33:55]wFMCommunicate OK [13:33:55]SAM_PROTO_GetShiftState done [13:33:55]FM_GetShiftState done [13:33:55]opened in 1727052070 [13:33:55]opened+sec_in_day 1727138470 [13:33:55]quantity*price = 100050 [13:33:55]sum+1 = 100052 [13:33:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 138 23.09.2024 13:33 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115655 ФПД: 129917518899536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133355&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115655&fm=129917518899536&tin=02508201610067®Number=0000000000091831&sum=100051 [13:33:56]StoreToDocumentArchive [13:33:56]shift 472 fd 115655 [13:33:56]save to /storage/0472/doc_00115655 [13:33:56]save last doc name /storage/0472/doc_00115655 to /storage/kkm_last_doc_name [13:33:56]save OK [13:33:56]Clear old archive folders... [13:33:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:33:56]tlvbuf is 01822600 [13:33:56]SAM_PROTO_ClearQueue [13:33:56]wFMCommunicate request_size=4 [13:33:56]MH_SAM_APDU [13:33:56]CAPDU: 80 09 00 00 [13:33:56]Write to MH i2c: E2 08 00 FD 07 80 09 00 00 00 00 00 00 76 [13:33:56]Write i2c OK [13:33:56]MH_I2C_Read... [13:33:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:56]Read from MH i2c: E2 [13:33:56]MH_I2C_Read... [13:33:56]Read from MH i2c: E2 03 00 [13:33:56]MH_I2C_Read... [13:33:56]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [13:33:56]RAPDU: 90 00 [13:33:56]wFMCommunicate OK [13:33:56]SAM_PROTO_ClearQueue done [13:33:56]KKMCreateOFDPacket [13:33:56]OFDProtocolAddRootSTLVToBuf [13:33:56]FM_MakeSignedData [13:33:56]FM_MakeSignedData [13:33:56]SAM_PROTO_SignData [13:33:56]wFMCommunicate request_size=4 [13:33:56]MH_SAM_APDU [13:33:56]CAPDU: 80 0D 01 02 [13:33:56]Write to MH i2c: E2 08 00 FE 07 80 0D 01 02 00 00 00 00 7E [13:33:56]Write i2c OK [13:33:56]MH_I2C_Read... [13:33:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:56]Read from MH i2c: E2 [13:33:56]MH_I2C_Read... [13:33:56]Read from MH i2c: E2 03 00 [13:33:56]MH_I2C_Read... [13:33:56]Read from MH i2c: E2 03 00 FE 07 00 90 00 79 [13:33:56]RAPDU: 90 00 [13:33:56]wFMCommunicate OK [13:33:56]wFMCommunicate request_size=255 [13:33:56]MH_SAM_APDU [13:33: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 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8A 00 00 00 F4 03 04 00 43 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C7 C3 01 00 35 04 06 00 76 28 C7 90 [13:33:56]Write to MH i2c: E2 02 01 FF 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 00 00 00 F4 03 04 00 43 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C7 C3 01 00 35 04 06 00 76 28 C7 90 00 00 4C [13:33:56]Write i2c OK [13:33:56]MH_I2C_Read... [13:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:57]Read from MH i2c: E2 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 03 00 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [13:33:57]RAPDU: 90 00 [13:33:57]wFMCommunicate OK [13:33:57]wFMCommunicate request_size=7 [13:33:57]MH_SAM_APDU [13:33:57]CAPDU: 80 0D 02 02 02 69 50 [13:33:57]Write to MH i2c: E2 0A 00 00 08 80 0D 02 02 02 00 69 50 00 00 3F [13:33:57]Write i2c OK [13:33:57]MH_I2C_Read... [13:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:57]Read from MH i2c: E2 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 03 00 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [13:33:57]RAPDU: 90 00 [13:33:57]wFMCommunicate OK [13:33:57]wFMCommunicate request_size=4 [13:33:57]MH_SAM_APDU [13:33:57]CAPDU: 80 0D 03 02 [13:33:57]Write to MH i2c: E2 08 00 01 08 80 0D 03 02 00 00 00 00 84 [13:33:57]Write i2c OK [13:33:57]MH_I2C_Read... [13:33:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:57]Read from MH i2c: E2 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 0B 00 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 0B 00 01 08 00 98 52 71 60 2B 53 47 FD 90 00 02 [13:33:57]RAPDU: 98 52 71 60 2B 53 47 FD 90 00 [13:33:57]wFMCommunicate OK [13:33:57]SAM_PROTO_SignData done [13:33:57]FM_MakeSignedData done [13:33:57]CreateOFDProtocolMessage [13:33:57]wFMCommunicate request_size=4 [13:33:57]MH_SAM_APDU [13:33:57]CAPDU: 80 11 00 00 [13:33:57]Write to MH i2c: E2 08 00 02 08 80 11 00 00 00 00 00 00 84 [13:33:57]Write i2c OK [13:33:57]MH_I2C_Read... [13:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:57]Read from MH i2c: E2 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 17 00 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 17 00 02 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [13:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:33:57]wFMCommunicate OK [13:33:57]CreateOFDProtocolMessage done [13:33:57]OFDSenderStorePacket 115655 [13:33:57]StoreOFDPacket docnum=115655 [13:33:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 7C 6B 04 01 3F DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 00 00 00 F4 03 04 00 43 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C7 C3 01 00 35 04 06 00 76 28 C7 90 69 50 98 52 71 60 2B 53 47 FD [13:33:57]CheckFolder [13:33:57]dirname=/storage/ofd_packets [13:33:57]CheckFolder done [13:33:57]ProducePacketName [13:33:57]name=ofd_packets/00115655 [13:33:57]NVStorageSaveData ofd_packets/00115655 [13:33:57]File name is /storage/ofd_packets/00115655 [13:33:57]Write 298 bytes [13:33:57]NVStorageSaveData done [13:33:57]OFDSenderStorePacket done [13:33:57]KKMCreateOFDPacket done [13:33:57]NVStorageSaveData kkm_last_timestamp [13:33:57]File name is /storage/kkm_last_timestamp [13:33:57]Write 4 bytes [13:33:57]NVStorageSaveData done [13:33:57]ExternCall_PrintAddStr [13:33:57]wPrintStart [13:33:57]Write to MH i2c: 01 00 00 03 08 0B [13:33:57]Write i2c OK [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: 01 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: 01 07 00 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: 01 07 00 03 08 00 00 00 00 00 FF 0F 20 [13:33:57]RasterBufferAndPrint [13:33:57]line Счет N : (1)24617690 [13:33:57]line ИНН: 02508201610067 [13:33:57]line Контрольно-Кассовый Чек [13:33:57]line ПРОДАЖА [13:33:57]line ТРК (МРК, ГНК) : 22 [13:33:57]line Товар: 2710194210 [13:33:57]line ДТ-К-5 [13:33:57]line 13.130 * 76.20 [13:33:57]line = 1000.51 [13:33:57]line НДС 12% НСП 1% [13:33:57]line > о реализуемом товаре [13:33:57]line ИТОГО: 1000.51 [13:33:57]line НСП 1% : 8.85 [13:33:57]line НДС 12% : 106.25 [13:33:57]line Наличными: 0.00 [13:33:57]line Безнал.: 1000.51 [13:33:57]line Место: АЗС № 90 "Партнер Нефть" [13:33:57]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:33:57]line СНО: Общий режим [13:33:57]line Чек 138 23.09.2024 13:33 [13:33:57]line Смена: 472 ФФД: 1.0 [13:33:57]line ЗНМ: 0300000120 [13:33:57]line РНМ: 0000000000091831 [13:33:57]line Версия ККМ: 001 [13:33:57]line Платежная система: O! деньги [13:33:57]line ФМ: 0000000000871830 [13:33:57]line ФД: 115655 [13:33:57]line ФПД: 129917518899536 [13:33:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133355&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115655&fm=129917518899536&tin=02508201610067®Number=0000000000091831&sum=100051 [13:33:57]written 0, free lines is 4095 [13:33:57]OFD Sender: Processing packet 115655 [packets to send 482, broken 481] [13:33:57]ProducePacketName [13:33:57]name=ofd_packets/00115655 [13:33:57]OFD Sender: To server: pG, [13:33:57]CommunicateWithHost lk.salyk.kg:30040 [13:33:57]ConnectInit lk.salyk.kg [13:33:57]Connected sock=10 [13:33: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 38 33 30 0C 01 00 00 7C 6B 04 01 3F DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 00 00 00 F4 03 04 00 43 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C7 C3 01 00 35 04 06 00 76 28 C7 90 69 50 98 52 71 60 2B 53 47 FD [13:33:57]Write to MH i2c: 01 00 00 2C 08 34 [13:33:57]Write i2c OK [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: 01 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: 01 07 00 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: 01 07 00 2C 08 00 00 00 00 00 83 0C CA [13:33:57]RasterBufferAndPrint [13:33:57]line [13:33:57]line [13:33:57]line [13:33:57]line [13:33:57]line [13:33:57]written 0, free lines is 3208 [13:33:57]MH_Cut [13:33:57]Write to MH i2c: D1 01 00 33 08 01 0D [13:33:57]Write i2c OK [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: D1 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: D1 01 00 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: D1 01 00 33 08 00 0C [13:33:57]Write to MH i2c: 01 00 00 34 08 3C [13:33:57]Write i2c OK [13:33:57]MH_I2C_Read... [13:33:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 44 66 47 00 56 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 38 33 30 10 04 04 00 C7 C3 01 00 F4 03 04 00 86 13 F1 66 B6 04 01 00 00 D7 5A C9 A9 A8 D3 C5 9D [13:33:57]CommunicateWithHost err = 0 [13:33:57]CheckOFDResponse [13:33:57]1017 (14) - 77093643461234 [13:33:57]1041 (16) - 0000000000871830 [13:33:57]1040 (4) - 115655 [13:33:57]1012 (4) - 23.09.2024 07:06 [13:33:57]1206 (1) - 0 [13:33:57]OFD Sender: Remove packet 115655 [13:33:57]ProducePacketName [13:33:57]name=ofd_packets/00115655 [13:33:57]NVStorageDeleteData [13:33:58]OFD Sender: No OFD packet to send [13:33:59]*** Cut start [13:33:59]*** Partial cut [13:33:59]*** CUTSNS_PIN = 1 [13:33:59]*** CUTSNS_PIN = 0 [13:33:59]*** Brake cut motor [13:33:59]Read from MH i2c: 01 [13:33:59]MH_I2C_Read... [13:33:59]*** Stop cut motor [13:33:59]*** Cut end [13:33:59]Read from MH i2c: 01 07 00 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: 01 07 00 34 08 00 00 00 00 00 FF 0F 51 [13:33:59]process_action close_receipt done [13:33:59]requested_data is exist [13:33:59]produce_requested_data [13:33:59]requested_item fm.sn is exist - process it [13:33:59]wFMCommunicate request_size=4 [13:33:59]MH_SAM_APDU [13:33:59]CAPDU: 80 11 00 00 [13:33:59]Write to MH i2c: E2 08 00 35 08 80 11 00 00 00 00 00 00 B7 [13:33:59]Write i2c OK [13:33:59]MH_I2C_Read... [13:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:59]Read from MH i2c: E2 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 17 00 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 17 00 35 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 05 [13:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:33:59]wFMCommunicate OK [13:33:59]requested_item fd.num is exist - process it [13:33:59]SAM_PROTO_GetFieldsCounters [13:33:59]wFMCommunicate request_size=4 [13:33:59]MH_SAM_APDU [13:33:59]CAPDU: 80 13 00 00 [13:33:59]Write to MH i2c: E2 08 00 36 08 80 13 00 00 00 00 00 00 BA [13:33:59]Write i2c OK [13:33:59]MH_I2C_Read... [13:33:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:59]Read from MH i2c: E2 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 62 00 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 62 00 36 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C7 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [13:33: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C7 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:59]wFMCommunicate OK [13:33:59]SAM_PROTO_GetFieldsCounters done [13:33:59]requested_item shift.num is exist - process it [13:33:59]requested_item shift.opened is exist - process it [13:33:59]req_shift_opened [13:33:59]FM_GetShiftState [13:33:59]SAM_PROTO_GetShiftState [13:33:59]wFMCommunicate request_size=4 [13:33:59]MH_SAM_APDU [13:33:59]CAPDU: 80 13 01 00 [13:33:59]Write to MH i2c: E2 08 00 37 08 80 13 01 00 00 00 00 00 BC [13:33:59]Write i2c OK [13:33:59]MH_I2C_Read... [13:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:59]Read from MH i2c: E2 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 0E 00 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 0E 00 37 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 FD [13:33:59]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:33:59]wFMCommunicate OK [13:33:59]SAM_PROTO_GetShiftState done [13:33:59]FM_GetShiftState done [13:33:59]req_shift_opened done [13:33:59]requested_item shift.open_date is exist - process it [13:33:59]req_shift_open_date [13:33:59]req_shift_open_date done [13:33:59]produce_requested_data done [13:33:59]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115655,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:33:59]process_action_free close_receipt [13:33:59]json_value_free [13:33:59]json_value_free done [13:33:59]process_json_proto returns [13:33:59]Send response to host [13:33:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115655,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:33:59]free response buf [13:33:59]execute_script done [13:33:59]execute_script returns [13:33:59]free content buf [13:33:59]Sock 7.Close socket [13:33:59]Sock 7.Thread stoped [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]accept exits with 9 [13:35:08]New connection [13:35:08]New thread 3067022692 created [13:35:08]Thread 3066879332 joined [13:35:08]Waiting for new connection... [13:35:08] Sock 9.Parse request [13:35:08]Sock 9.Check first char [13:35:08]Sock 9.First char is OK [13:35:08]request: POST /json_proto HTTP/1.0 [13:35:08]Method: POST [13:35:08]URL: /json_proto [13:35:08]Method is POST - this is cgi request [13:35:08]url: /json_proto [13:35:08]query_string will be loaded in cgi processing [13:35:08]execute_cgi json_proto POST (null) [13:35:08]execute_cgi path=json_proto method=POST [13:35:08]POST find Content-Length [13:35:08]Host: 172.17.41.136:8080 [13:35:08]Content-Length: 799 [13:35:08]Content-Type: application/json [13:35:08] [13:35:08]POST finish read [13:35:08]Found Content-Length = 799 [13:35:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:08]execute_script... [13:35: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)24617692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:08]POST & json_proto [13:35:08]process_json_proto [13:35:08]json parsed OK: [13:35:08]protocol is kg_v1.0 [13:35:08]action value=close_receipt [13:35:08]process_action close_receipt [13:35:08]cmd_close_receipt [13:35:08]MH_GetDate [13:35:08]Write to MH i2c: F0 00 00 38 08 2F [13:35:08]Write i2c OK [13:35:08]MH_I2C_Read... [13:35:08]Read from MH i2c: F0 [13:35:08]MH_I2C_Read... [13:35:08]Read from MH i2c: F0 09 00 [13:35:08]MH_I2C_Read... [13:35:08]Read from MH i2c: F0 09 00 38 08 00 8C 6E F1 66 1B D0 5A 64 32 [13:35:08]GetLastDocTimeStamp 1727098435 [13:35:08]current date 1727098508 [13:35:08]FM_GetShiftState [13:35:08]SAM_PROTO_GetShiftState [13:35:08]wFMCommunicate request_size=4 [13:35:08]MH_SAM_APDU [13:35:08]CAPDU: 80 13 01 00 [13:35:08]Write to MH i2c: E2 08 00 39 08 80 13 01 00 00 00 00 00 BE [13:35:08]Write i2c OK [13:35:08]MH_I2C_Read... [13:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:08]Read from MH i2c: E2 [13:35:08]MH_I2C_Read... [13:35:08]Read from MH i2c: E2 0E 00 [13:35:08]MH_I2C_Read... [13:35:08]Read from MH i2c: E2 0E 00 39 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 FF [13:35:08]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:35:08]wFMCommunicate OK [13:35:08]SAM_PROTO_GetShiftState done [13:35:08]FM_GetShiftState done [13:35:08]opened in 1727052070 [13:35:08]opened+sec_in_day 1727138470 [13:35:08]quantity*price = 50063 [13:35:08]sum+1 = 50064 [13:35:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 139 23.09.2024 13:35 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115656 ФПД: 199705488289881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133508&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115656&fm=199705488289881&tin=02508201610067®Number=0000000000091831&sum=50063 [13:35:09]StoreToDocumentArchive [13:35:09]shift 472 fd 115656 [13:35:09]save to /storage/0472/doc_00115656 [13:35:09]save last doc name /storage/0472/doc_00115656 to /storage/kkm_last_doc_name [13:35:09]save OK [13:35:09]Clear old archive folders... [13:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:35:09]tlvbuf is 01825460 [13:35:09]SAM_PROTO_ClearQueue [13:35:09]wFMCommunicate request_size=4 [13:35:09]MH_SAM_APDU [13:35:09]CAPDU: 80 09 00 00 [13:35:09]Write to MH i2c: E2 08 00 46 08 80 09 00 00 00 00 00 00 C0 [13:35:09]Write i2c OK [13:35:09]MH_I2C_Read... [13:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:09]Read from MH i2c: E2 [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: E2 03 00 [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: E2 03 00 46 08 00 90 00 C2 [13:35:09]RAPDU: 90 00 [13:35:09]wFMCommunicate OK [13:35:09]SAM_PROTO_ClearQueue done [13:35:09]KKMCreateOFDPacket [13:35:09]OFDProtocolAddRootSTLVToBuf [13:35:09]FM_MakeSignedData [13:35:09]FM_MakeSignedData [13:35:09]SAM_PROTO_SignData [13:35:09]wFMCommunicate request_size=4 [13:35:09]MH_SAM_APDU [13:35:09]CAPDU: 80 0D 01 02 [13:35:09]Write to MH i2c: E2 08 00 47 08 80 0D 01 02 00 00 00 00 C8 [13:35:09]Write i2c OK [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: E2 [13:35:09]MH_I2C_Read... [13:35:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:09]Read from MH i2c: E2 03 00 [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [13:35:09]RAPDU: 90 00 [13:35:09]wFMCommunicate OK [13:35:09]wFMCommunicate request_size=255 [13:35:09]MH_SAM_APDU [13:35:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8B 00 00 00 F4 03 04 00 8C 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C8 C3 01 00 35 04 06 00 B5 A1 8E B0 [13:35:09]Write to MH i2c: E2 02 01 48 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8B 00 00 00 F4 03 04 00 8C 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C8 C3 01 00 35 04 06 00 B5 A1 8E B0 00 00 20 [13:35:09]Write i2c OK [13:35:09]MH_I2C_Read... [13:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:10]Read from MH i2c: E2 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 03 00 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [13:35:10]RAPDU: 90 00 [13:35:10]wFMCommunicate OK [13:35:10]wFMCommunicate request_size=7 [13:35:10]MH_SAM_APDU [13:35:10]CAPDU: 80 0D 02 02 02 70 59 [13:35:10]Write to MH i2c: E2 0A 00 49 08 80 0D 02 02 02 00 70 59 00 00 98 [13:35:10]Write i2c OK [13:35:10]MH_I2C_Read... [13:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:10]Read from MH i2c: E2 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 03 00 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [13:35:10]RAPDU: 90 00 [13:35:10]wFMCommunicate OK [13:35:10]wFMCommunicate request_size=4 [13:35:10]MH_SAM_APDU [13:35:10]CAPDU: 80 0D 03 02 [13:35:10]Write to MH i2c: E2 08 00 4A 08 80 0D 03 02 00 00 00 00 CD [13:35:10]Write i2c OK [13:35:10]MH_I2C_Read... [13:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:10]Read from MH i2c: E2 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 0B 00 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 0B 00 4A 08 00 D2 5A E1 91 14 5D 7F 60 90 00 BC [13:35:10]RAPDU: D2 5A E1 91 14 5D 7F 60 90 00 [13:35:10]wFMCommunicate OK [13:35:10]SAM_PROTO_SignData done [13:35:10]FM_MakeSignedData done [13:35:10]CreateOFDProtocolMessage [13:35:10]wFMCommunicate request_size=4 [13:35:10]MH_SAM_APDU [13:35:10]CAPDU: 80 11 00 00 [13:35:10]Write to MH i2c: E2 08 00 4B 08 80 11 00 00 00 00 00 00 CD [13:35:10]Write i2c OK [13:35:10]MH_I2C_Read... [13:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:10]Read from MH i2c: E2 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 17 00 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: E2 17 00 4B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1B [13:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:35:10]wFMCommunicate OK [13:35:10]CreateOFDProtocolMessage done [13:35:10]OFDSenderStorePacket 115656 [13:35:10]StoreOFDPacket docnum=115656 [13:35:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 E8 CF 04 01 12 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 00 00 00 F4 03 04 00 8C 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C8 C3 01 00 35 04 06 00 B5 A1 8E B0 70 59 D2 5A E1 91 14 5D 7F 60 [13:35:10]CheckFolder [13:35:10]dirname=/storage/ofd_packets [13:35:10]CheckFolder done [13:35:10]ProducePacketName [13:35:10]name=ofd_packets/00115656 [13:35:10]NVStorageSaveData ofd_packets/00115656 [13:35:10]File name is /storage/ofd_packets/00115656 [13:35:10]Write 298 bytes [13:35:10]NVStorageSaveData done [13:35:10]OFDSenderStorePacket done [13:35:10]KKMCreateOFDPacket done [13:35:10]NVStorageSaveData kkm_last_timestamp [13:35:10]File name is /storage/kkm_last_timestamp [13:35:10]Write 4 bytes [13:35:10]NVStorageSaveData done [13:35:10]ExternCall_PrintAddStr [13:35:10]wPrintStart [13:35:10]Write to MH i2c: 01 00 00 4C 08 54 [13:35:10]Write i2c OK [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: 01 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: 01 07 00 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: 01 07 00 4C 08 00 00 00 00 00 FF 0F 69 [13:35:10]RasterBufferAndPrint [13:35:10]line Счет N : (1)24617692 [13:35:10]line ИНН: 02508201610067 [13:35:10]line Контрольно-Кассовый Чек [13:35:10]line ПРОДАЖА [13:35:10]line ТРК (МРК, ГНК) : 35 [13:35:10]line Товар: 2710194210 [13:35:10]line ДТ-К-5 [13:35:10]line 6.570 * 76.20 [13:35:10]line = 500.63 [13:35:10]line НДС 12% НСП 1% [13:35:10]line > о реализуемом товаре [13:35:10]line ИТОГО: 500.63 [13:35:10]line НСП 1% : 4.43 [13:35:10]line НДС 12% : 53.16 [13:35:10]line Наличными: 0.00 [13:35:10]line Безнал.: 500.63 [13:35:10]line Место: АЗС № 90 "Партнер Нефть" [13:35:10]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:35:10]line СНО: Общий режим [13:35:10]line Чек 139 23.09.2024 13:35 [13:35:10]line Смена: 472 ФФД: 1.0 [13:35:10]line ЗНМ: 0300000120 [13:35:10]line РНМ: 0000000000091831 [13:35:10]line Версия ККМ: 001 [13:35:10]line Платежная система: O! деньги [13:35:10]line ФМ: 0000000000871830 [13:35:10]line ФД: 115656 [13:35:10]line ФПД: 199705488289881 [13:35:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133508&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115656&fm=199705488289881&tin=02508201610067®Number=0000000000091831&sum=50063 [13:35:10]written 0, free lines is 4095 [13:35:10]OFD Sender: Processing packet 115656 [packets to send 482, broken 481] [13:35:10]ProducePacketName [13:35:10]name=ofd_packets/00115656 [13:35:10]OFD Sender: To server: pG, [13:35:10]CommunicateWithHost lk.salyk.kg:30040 [13:35:10]ConnectInit lk.salyk.kg [13:35:10]Connected sock=10 [13:35: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 38 33 30 0C 01 00 00 E8 CF 04 01 12 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 00 00 00 F4 03 04 00 8C 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C8 C3 01 00 35 04 06 00 B5 A1 8E B0 70 59 D2 5A E1 91 14 5D 7F 60 [13:35:10]Write to MH i2c: 01 00 00 75 08 7D [13:35:10]Write i2c OK [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: 01 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: 01 07 00 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: 01 07 00 75 08 00 00 00 00 00 87 0C 17 [13:35:10]RasterBufferAndPrint [13:35:10]line [13:35:10]line [13:35:10]line [13:35:10]line [13:35:10]line [13:35:10]written 0, free lines is 3211 [13:35:10]MH_Cut [13:35:10]Write to MH i2c: D1 01 00 7C 08 01 56 [13:35:10]Write i2c OK [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: D1 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: D1 01 00 [13:35:10]MH_I2C_Read... [13:35:10]Read from MH i2c: D1 01 00 7C 08 00 55 [13:35:10]Write to MH i2c: 01 00 00 7D 08 85 [13:35:10]Write i2c OK [13:35:10]MH_I2C_Read... [13:35:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 51 DC 47 00 F2 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 38 33 30 10 04 04 00 C8 C3 01 00 F4 03 04 00 CF 13 F1 66 B6 04 01 00 00 04 9D 88 83 DE 15 B1 40 [13:35:10]CommunicateWithHost err = 0 [13:35:10]CheckOFDResponse [13:35:10]1017 (14) - 77093643461234 [13:35:10]1041 (16) - 0000000000871830 [13:35:10]1040 (4) - 115656 [13:35:10]1012 (4) - 23.09.2024 07:07 [13:35:10]1206 (1) - 0 [13:35:10]OFD Sender: Remove packet 115656 [13:35:10]ProducePacketName [13:35:10]name=ofd_packets/00115656 [13:35:10]NVStorageDeleteData [13:35:11]OFD Sender: No OFD packet to send [13:35:11]*** Cut start [13:35:11]*** Partial cut [13:35:11]*** CUTSNS_PIN = 1 [13:35:11]*** CUTSNS_PIN = 0 [13:35:12]*** Brake cut motor [13:35:12]Read from MH i2c: 01 [13:35:12]MH_I2C_Read... [13:35:12]*** Stop cut motor [13:35:12]*** Cut end [13:35:12]Read from MH i2c: 01 07 00 [13:35:12]MH_I2C_Read... [13:35:12]Read from MH i2c: 01 07 00 7D 08 00 00 00 00 00 FF 0F 9A [13:35:12]process_action close_receipt done [13:35:12]requested_data is exist [13:35:12]produce_requested_data [13:35:12]requested_item fm.sn is exist - process it [13:35:12]wFMCommunicate request_size=4 [13:35:12]MH_SAM_APDU [13:35:12]CAPDU: 80 11 00 00 [13:35:12]Write to MH i2c: E2 08 00 7E 08 80 11 00 00 00 00 00 00 00 [13:35:12]Write i2c OK [13:35:12]MH_I2C_Read... [13:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:12]Read from MH i2c: E2 [13:35:12]MH_I2C_Read... [13:35:12]Read from MH i2c: E2 17 00 [13:35:12]MH_I2C_Read... [13:35:12]Read from MH i2c: E2 17 00 7E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4E [13:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:35:12]wFMCommunicate OK [13:35:12]requested_item fd.num is exist - process it [13:35:12]SAM_PROTO_GetFieldsCounters [13:35:12]wFMCommunicate request_size=4 [13:35:12]MH_SAM_APDU [13:35:12]CAPDU: 80 13 00 00 [13:35:12]Write to MH i2c: E2 08 00 7F 08 80 13 00 00 00 00 00 00 03 [13:35:12]Write i2c OK [13:35:12]MH_I2C_Read... [13:35:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:12]Read from MH i2c: E2 [13:35:12]MH_I2C_Read... [13:35:12]Read from MH i2c: E2 62 00 [13:35:12]MH_I2C_Read... [13:35:12]Read from MH i2c: E2 62 00 7F 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C8 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [13:35:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C8 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:12]wFMCommunicate OK [13:35:12]SAM_PROTO_GetFieldsCounters done [13:35:12]requested_item shift.num is exist - process it [13:35:12]requested_item shift.opened is exist - process it [13:35:12]req_shift_opened [13:35:12]FM_GetShiftState [13:35:12]SAM_PROTO_GetShiftState [13:35:12]wFMCommunicate request_size=4 [13:35:12]MH_SAM_APDU [13:35:12]CAPDU: 80 13 01 00 [13:35:12]Write to MH i2c: E2 08 00 80 08 80 13 01 00 00 00 00 00 05 [13:35:12]Write i2c OK [13:35:12]MH_I2C_Read... [13:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:12]Read from MH i2c: E2 [13:35:12]MH_I2C_Read... [13:35:12]Read from MH i2c: E2 0E 00 [13:35:12]MH_I2C_Read... [13:35:12]Read from MH i2c: E2 0E 00 80 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 46 [13:35:12]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:35:12]wFMCommunicate OK [13:35:12]SAM_PROTO_GetShiftState done [13:35:12]FM_GetShiftState done [13:35:12]req_shift_opened done [13:35:12]requested_item shift.open_date is exist - process it [13:35:12]req_shift_open_date [13:35:12]req_shift_open_date done [13:35:12]produce_requested_data done [13:35:12]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115656,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:35:12]process_action_free close_receipt [13:35:12]json_value_free [13:35:12]json_value_free done [13:35:12]process_json_proto returns [13:35:12]Send response to host [13:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115656,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:35:12]free response buf [13:35:12]execute_script done [13:35:12]execute_script returns [13:35:12]free content buf [13:35:12]Sock 9.Close socket [13:35:12]Sock 9.Thread stoped [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:54]accept exits with 7 [13:35:54]New connection [13:35:54]New thread 3066879332 created [13:35:54]Thread 3067022692 joined [13:35:54]Waiting for new connection... [13:35:54] Sock 7.Parse request [13:35:54]Sock 7.Check first char [13:35:54]Sock 7.First char is OK [13:35:54]request: POST /json_proto HTTP/1.0 [13:35:54]Method: POST [13:35:54]URL: /json_proto [13:35:54]Method is POST - this is cgi request [13:35:54]url: /json_proto [13:35:54]query_string will be loaded in cgi processing [13:35:54]execute_cgi json_proto POST (null) [13:35:54]execute_cgi path=json_proto method=POST [13:35:54]POST find Content-Length [13:35:54]Host: 172.17.41.136:8080 [13:35:54]Content-Length: 658 [13:35:54]Content-Type: application/json [13:35:54] [13:35:54]POST finish read [13:35:54]Found Content-Length = 658 [13:35:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344017", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:54]execute_script... [13:35:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344017", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:54]POST & json_proto [13:35:54]process_json_proto [13:35:54]json parsed OK: [13:35:54]protocol is kg_v1.0 [13:35:54]action value=close_receipt [13:35:54]process_action close_receipt [13:35:54]cmd_close_receipt [13:35:54]MH_GetDate [13:35:54]Write to MH i2c: F0 00 00 81 08 78 [13:35:54]Write i2c OK [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: F0 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: F0 09 00 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: F0 09 00 81 08 00 BB 6E F1 66 1B D0 5A 64 AA [13:35:54]GetLastDocTimeStamp 1727098508 [13:35:54]current date 1727098555 [13:35:54]FM_GetShiftState [13:35:54]SAM_PROTO_GetShiftState [13:35:54]wFMCommunicate request_size=4 [13:35:54]MH_SAM_APDU [13:35:54]CAPDU: 80 13 01 00 [13:35:54]Write to MH i2c: E2 08 00 82 08 80 13 01 00 00 00 00 00 07 [13:35:54]Write i2c OK [13:35:54]MH_I2C_Read... [13:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:54]Read from MH i2c: E2 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: E2 0E 00 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: E2 0E 00 82 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 48 [13:35:54]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:35:54]wFMCommunicate OK [13:35:54]SAM_PROTO_GetShiftState done [13:35:54]FM_GetShiftState done [13:35:54]opened in 1727052070 [13:35:54]opened+sec_in_day 1727138470 [13:35:54]quantity*price = 10500 [13:35:54]sum+1 = 10501 [13:35:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 140 23.09.2024 13:35 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115657 ФПД: 103926357076016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133555&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115657&fm=103926357076016&tin=02508201610067®Number=0000000000091831&sum=10500 0 [13:35:56]StoreToDocumentArchive [13:35:56]shift 472 fd 115657 [13:35:56]save to /storage/0472/doc_00115657 [13:35:56]save last doc name /storage/0472/doc_00115657 to /storage/kkm_last_doc_name [13:35:56]save OK [13:35:56]Clear old archive folders... [13:35:56]ProcessDocumentItem done err = 0, tmpTLVsize=278 [13:35:56]tlvbuf is 01820F90 [13:35:56]SAM_PROTO_ClearQueue [13:35:56]wFMCommunicate request_size=4 [13:35:56]MH_SAM_APDU [13:35:56]CAPDU: 80 09 00 00 [13:35:56]Write to MH i2c: E2 08 00 8F 08 80 09 00 00 00 00 00 00 09 [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:56]Read from MH i2c: E2 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 03 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 03 00 8F 08 00 90 00 0B [13:35:56]RAPDU: 90 00 [13:35:56]wFMCommunicate OK [13:35:56]SAM_PROTO_ClearQueue done [13:35:56]KKMCreateOFDPacket [13:35:56]OFDProtocolAddRootSTLVToBuf [13:35:56]FM_MakeSignedData [13:35:56]FM_MakeSignedData [13:35:56]SAM_PROTO_SignData [13:35:56]wFMCommunicate request_size=4 [13:35:56]MH_SAM_APDU [13:35:56]CAPDU: 80 0D 01 02 [13:35:56]Write to MH i2c: E2 08 00 90 08 80 0D 01 02 00 00 00 00 11 [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:56]Read from MH i2c: E2 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 03 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [13:35:56]RAPDU: 90 00 [13:35:56]wFMCommunicate OK [13:35:56]wFMCommunicate request_size=255 [13:35:56]MH_SAM_APDU [13:35:56]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 BB 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 [13:35:56]Write to MH i2c: E2 02 01 91 08 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 BB 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 00 00 5C [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:56]OFD Sender: No OFD packet to send [13:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:56]Read from MH i2c: E2 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 03 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [13:35:56]RAPDU: 90 00 [13:35:56]wFMCommunicate OK [13:35:56]wFMCommunicate request_size=37 [13:35:56]MH_SAM_APDU [13:35:56]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C9 C3 01 00 35 04 06 00 5E 85 3D 98 A8 30 [13:35:56]Write to MH i2c: E2 28 00 92 08 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C9 C3 01 00 35 04 06 00 5E 85 3D 98 A8 30 00 00 83 [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:56]Read from MH i2c: E2 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 03 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [13:35:56]RAPDU: 90 00 [13:35:56]wFMCommunicate OK [13:35:56]wFMCommunicate request_size=4 [13:35:56]MH_SAM_APDU [13:35:56]CAPDU: 80 0D 03 02 [13:35:56]Write to MH i2c: E2 08 00 93 08 80 0D 03 02 00 00 00 00 16 [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:56]Read from MH i2c: E2 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 0B 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 0B 00 93 08 00 31 56 83 B3 CC F7 95 B9 90 00 E5 [13:35:56]RAPDU: 31 56 83 B3 CC F7 95 B9 90 00 [13:35:56]wFMCommunicate OK [13:35:56]SAM_PROTO_SignData done [13:35:56]FM_MakeSignedData done [13:35:56]CreateOFDProtocolMessage [13:35:56]wFMCommunicate request_size=4 [13:35:56]MH_SAM_APDU [13:35:56]CAPDU: 80 11 00 00 [13:35:56]Write to MH i2c: E2 08 00 94 08 80 11 00 00 00 00 00 00 16 [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:56]Read from MH i2c: E2 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 17 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 17 00 94 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 64 [13:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:35:56]wFMCommunicate OK [13:35:56]CreateOFDProtocolMessage done [13:35:56]OFDSenderStorePacket 115657 [13:35:56]StoreOFDPacket docnum=115657 [13:35:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2A 01 00 00 F2 5C 22 01 E3 D1 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 BB 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C9 C3 01 00 35 04 06 00 5E 85 3D 98 A8 30 31 56 83 B3 CC F7 95 B9 [13:35:56]CheckFolder [13:35:56]dirname=/storage/ofd_packets [13:35:56]CheckFolder done [13:35:56]ProducePacketName [13:35:56]name=ofd_packets/00115657 [13:35:56]NVStorageSaveData ofd_packets/00115657 [13:35:56]File name is /storage/ofd_packets/00115657 [13:35:56]Write 328 bytes [13:35:56]NVStorageSaveData done [13:35:56]OFDSenderStorePacket done [13:35:56]KKMCreateOFDPacket done [13:35:56]NVStorageSaveData kkm_last_timestamp [13:35:56]File name is /storage/kkm_last_timestamp [13:35:56]Write 4 bytes [13:35:56]NVStorageSaveData done [13:35:56]ExternCall_PrintAddStr [13:35:56]wPrintStart [13:35:56]Write to MH i2c: 01 00 00 95 08 9D [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: 01 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: 01 07 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: 01 07 00 95 08 00 00 00 00 00 FF 0F B2 [13:35:56]RasterBufferAndPrint [13:35:56]line Счет N : (3)344017 [13:35:56]line ИНН: 02508201610067 [13:35:56]line Контрольно-Кассовый Чек [13:35:56]line ПРОДАЖА [13:35:56]line Товар: 5449000054227 [13:35:56]line Напиток Кока-Кола 1л [13:35:56]line 1.000 * 105.00 [13:35:56]line = 105.00 [13:35:56]line НДС 12% НСП 1% [13:35:56]line > о реализуемом товаре [13:35:56]line ИТОГО: 105.00 [13:35:56]line НСП 1% : 0.93 [13:35:56]line НДС 12% : 11.15 [13:35:56]line Наличными: 105.00 [13:35:56]line Безнал.: 0.00 [13:35:56]line Место: АЗС № 90 "Партнер Нефть" [13:35:56]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:35:56]line СНО: Общий режим [13:35:56]line Чек 140 23.09.2024 13:35 [13:35:56]line Смена: 472 ФФД: 1.0 [13:35:56]line ЗНМ: 0300000120 [13:35:56]line РНМ: 0000000000091831 [13:35:56]line Версия ККМ: 001 [13:35:56]line ФМ: 0000000000871830 [13:35:56]line ФД: 115657 [13:35:56]line ФПД: 103926357076016 [13:35:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133555&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115657&fm=103926357076016&tin=02508201610067®Number=0000000000091831&sum=10500 [13:35:56]line 0 [13:35:56]OFD Sender: Processing packet 115657 [packets to send 482, broken 481] [13:35:56]ProducePacketName [13:35:56]name=ofd_packets/00115657 [13:35:56]OFD Sender: To server: pG, [13:35:56]CommunicateWithHost lk.salyk.kg:30040 [13:35:56]ConnectInit lk.salyk.kg [13:35:56]written 0, free lines is 4095 [13:35:57]Connected sock=10 [13:35: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 38 33 30 2A 01 00 00 F2 5C 22 01 E3 D1 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 BB 6E F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C9 C3 01 00 35 04 06 00 5E 85 3D 98 A8 30 31 56 83 B3 CC F7 95 B9 [13:35:57]Write to MH i2c: 01 00 00 BC 08 C4 [13:35:57]Write i2c OK [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: 01 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: 01 07 00 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: 01 07 00 BC 08 00 00 00 00 00 99 0C 70 [13:35:57]RasterBufferAndPrint [13:35:57]line [13:35:57]line [13:35:57]line [13:35:57]line [13:35:57]line [13:35:57]written 0, free lines is 3230 [13:35:57]MH_Cut [13:35:57]Write to MH i2c: D1 01 00 C3 08 01 9D [13:35:57]Write i2c OK [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: D1 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: D1 01 00 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: D1 01 00 C3 08 00 9C [13:35:57]Write to MH i2c: 01 00 00 C4 08 CC [13:35:57]Write i2c OK [13:35:57]MH_I2C_Read... [13:35:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D9 A8 47 00 76 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 38 33 30 10 04 04 00 C9 C3 01 00 F4 03 04 00 FD 13 F1 66 B6 04 01 00 00 BA 9A 34 96 D0 11 49 E5 [13:35:57]CommunicateWithHost err = 0 [13:35:57]CheckOFDResponse [13:35:57]1017 (14) - 77093643461234 [13:35:57]1041 (16) - 0000000000871830 [13:35:57]1040 (4) - 115657 [13:35:57]1012 (4) - 23.09.2024 07:08 [13:35:57]1206 (1) - 0 [13:35:57]OFD Sender: Remove packet 115657 [13:35:57]ProducePacketName [13:35:57]name=ofd_packets/00115657 [13:35:57]NVStorageDeleteData [13:35:58]OFD Sender: No OFD packet to send [13:35:58]*** Cut start [13:35:58]*** Partial cut [13:35:58]*** CUTSNS_PIN = 1 [13:35:58]*** CUTSNS_PIN = 0 [13:35:58]*** Brake cut motor [13:35:59]Read from MH i2c: 01 [13:35:59]MH_I2C_Read... [13:35:59]*** Stop cut motor [13:35:59]*** Cut end [13:35:59]Read from MH i2c: 01 07 00 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: 01 07 00 C4 08 00 00 00 00 00 FF 0F E1 [13:35:59]process_action close_receipt done [13:35:59]requested_data is exist [13:35:59]produce_requested_data [13:35:59]requested_item fm.sn is exist - process it [13:35:59]wFMCommunicate request_size=4 [13:35:59]MH_SAM_APDU [13:35:59]CAPDU: 80 11 00 00 [13:35:59]Write to MH i2c: E2 08 00 C5 08 80 11 00 00 00 00 00 00 47 [13:35:59]Write i2c OK [13:35:59]MH_I2C_Read... [13:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:59]Read from MH i2c: E2 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: E2 17 00 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: E2 17 00 C5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 95 [13:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:35:59]wFMCommunicate OK [13:35:59]requested_item fd.num is exist - process it [13:35:59]SAM_PROTO_GetFieldsCounters [13:35:59]wFMCommunicate request_size=4 [13:35:59]MH_SAM_APDU [13:35:59]CAPDU: 80 13 00 00 [13:35:59]Write to MH i2c: E2 08 00 C6 08 80 13 00 00 00 00 00 00 4A [13:35:59]Write i2c OK [13:35:59]MH_I2C_Read... [13:35:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:59]Read from MH i2c: E2 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: E2 62 00 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: E2 62 00 C6 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C9 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [13:35: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C9 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:59]wFMCommunicate OK [13:35:59]SAM_PROTO_GetFieldsCounters done [13:35:59]requested_item shift.num is exist - process it [13:35:59]requested_item shift.opened is exist - process it [13:35:59]req_shift_opened [13:35:59]FM_GetShiftState [13:35:59]SAM_PROTO_GetShiftState [13:35:59]wFMCommunicate request_size=4 [13:35:59]MH_SAM_APDU [13:35:59]CAPDU: 80 13 01 00 [13:35:59]Write to MH i2c: E2 08 00 C7 08 80 13 01 00 00 00 00 00 4C [13:35:59]Write i2c OK [13:35:59]MH_I2C_Read... [13:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:59]Read from MH i2c: E2 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: E2 0E 00 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: E2 0E 00 C7 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 8D [13:35:59]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:35:59]wFMCommunicate OK [13:35:59]SAM_PROTO_GetShiftState done [13:35:59]FM_GetShiftState done [13:35:59]req_shift_opened done [13:35:59]requested_item shift.open_date is exist - process it [13:35:59]req_shift_open_date [13:35:59]req_shift_open_date done [13:35:59]produce_requested_data done [13:35:59]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115657,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:35:59]process_action_free close_receipt [13:35:59]json_value_free [13:35:59]json_value_free done [13:35:59]process_json_proto returns [13:35:59]Send response to host [13:35:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115657,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:35:59]free response buf [13:35:59]execute_script done [13:35:59]execute_script returns [13:35:59]free content buf [13:35:59]Sock 7.Close socket [13:35:59]Sock 7.Thread stoped [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:06]accept exits with 9 [13:37:06]New connection [13:37:06]New thread 3067022692 created [13:37:06]Thread 3066879332 joined [13:37:06]Waiting for new connection... [13:37:06] Sock 9.Parse request [13:37:06]Sock 9.Check first char [13:37:06]Sock 9.First char is OK [13:37:06]request: POST /json_proto HTTP/1.0 [13:37:06]Method: POST [13:37:06]URL: /json_proto [13:37:06]Method is POST - this is cgi request [13:37:06]url: /json_proto [13:37:06]query_string will be loaded in cgi processing [13:37:06]execute_cgi json_proto POST (null) [13:37:06]execute_cgi path=json_proto method=POST [13:37:06]POST find Content-Length [13:37:06]Host: 172.17.41.136:8080 [13:37:06]Content-Length: 786 [13:37:06]Content-Type: application/json [13:37:06] [13:37:06]POST finish read [13:37:06]Found Content-Length = 786 [13:37:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:06]execute_script... [13:37:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:06]POST & json_proto [13:37:06]process_json_proto [13:37:06]json parsed OK: [13:37:06]protocol is kg_v1.0 [13:37:06]action value=close_receipt [13:37:06]process_action close_receipt [13:37:06]cmd_close_receipt [13:37:06]MH_GetDate [13:37:06]Write to MH i2c: F0 00 00 C8 08 BF [13:37:06]Write i2c OK [13:37:06]MH_I2C_Read... [13:37:06]Read from MH i2c: F0 [13:37:06]MH_I2C_Read... [13:37:06]Read from MH i2c: F0 09 00 [13:37:06]MH_I2C_Read... [13:37:06]Read from MH i2c: F0 09 00 C8 08 00 03 6F F1 66 1B D0 5A 64 3A [13:37:06]GetLastDocTimeStamp 1727098555 [13:37:06]current date 1727098627 [13:37:06]FM_GetShiftState [13:37:06]SAM_PROTO_GetShiftState [13:37:06]wFMCommunicate request_size=4 [13:37:06]MH_SAM_APDU [13:37:06]CAPDU: 80 13 01 00 [13:37:06]Write to MH i2c: E2 08 00 C9 08 80 13 01 00 00 00 00 00 4E [13:37:06]Write i2c OK [13:37:06]MH_I2C_Read... [13:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:06]Read from MH i2c: E2 [13:37:06]MH_I2C_Read... [13:37:06]Read from MH i2c: E2 0E 00 [13:37:06]MH_I2C_Read... [13:37:06]Read from MH i2c: E2 0E 00 C9 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 8F [13:37:06]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:37:06]wFMCommunicate OK [13:37:06]SAM_PROTO_GetShiftState done [13:37:06]FM_GetShiftState done [13:37:06]opened in 1727052070 [13:37:06]opened+sec_in_day 1727138470 [13:37:06]quantity*price = 99999 [13:37:06]sum+1 = 100001 [13:37:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 141 23.09.2024 13:37 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115658 ФПД: 1267339296614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133707&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115658&fm=1267339296614&tin=02508201610067®Number=0000000000091831&sum=100000 [13:37:08]StoreToDocumentArchive [13:37:08]shift 472 fd 115658 [13:37:08]save to /storage/0472/doc_00115658 [13:37:08]save last doc name /storage/0472/doc_00115658 to /storage/kkm_last_doc_name [13:37:08]save OK [13:37:08]Clear old archive folders... [13:37:08]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:37:08]tlvbuf is 018214A0 [13:37:08]SAM_PROTO_ClearQueue [13:37:08]wFMCommunicate request_size=4 [13:37:08]MH_SAM_APDU [13:37:08]CAPDU: 80 09 00 00 [13:37:08]Write to MH i2c: E2 08 00 D6 08 80 09 00 00 00 00 00 00 50 [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:08]Read from MH i2c: E2 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 03 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 03 00 D6 08 00 90 00 52 [13:37:08]RAPDU: 90 00 [13:37:08]wFMCommunicate OK [13:37:08]SAM_PROTO_ClearQueue done [13:37:08]KKMCreateOFDPacket [13:37:08]OFDProtocolAddRootSTLVToBuf [13:37:08]FM_MakeSignedData [13:37:08]FM_MakeSignedData [13:37:08]SAM_PROTO_SignData [13:37:08]wFMCommunicate request_size=4 [13:37:08]MH_SAM_APDU [13:37:08]CAPDU: 80 0D 01 02 [13:37:08]Write to MH i2c: E2 08 00 D7 08 80 0D 01 02 00 00 00 00 58 [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:08]Read from MH i2c: E2 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 03 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 03 00 D7 08 00 90 00 53 [13:37:08]RAPDU: 90 00 [13:37:08]wFMCommunicate OK [13:37:08]wFMCommunicate request_size=253 [13:37:08]MH_SAM_APDU [13:37:08]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 03 6F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CA C3 01 00 35 04 06 00 01 27 13 4E FF 66 [13:37:08]Write to MH i2c: E2 00 01 D8 08 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 03 6F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CA C3 01 00 35 04 06 00 01 27 13 4E FF 66 00 00 07 [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]OFD Sender: No OFD packet to send [13:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:08]Read from MH i2c: E2 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 03 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 03 00 D8 08 00 90 00 54 [13:37:08]RAPDU: 90 00 [13:37:08]wFMCommunicate OK [13:37:08]wFMCommunicate request_size=4 [13:37:08]MH_SAM_APDU [13:37:08]CAPDU: 80 0D 03 02 [13:37:08]Write to MH i2c: E2 08 00 D9 08 80 0D 03 02 00 00 00 00 5C [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:08]Read from MH i2c: E2 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 0B 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 0B 00 D9 08 00 E8 D9 89 9A 50 15 C4 AA 90 00 14 [13:37:08]RAPDU: E8 D9 89 9A 50 15 C4 AA 90 00 [13:37:08]wFMCommunicate OK [13:37:08]SAM_PROTO_SignData done [13:37:08]FM_MakeSignedData done [13:37:08]CreateOFDProtocolMessage [13:37:08]wFMCommunicate request_size=4 [13:37:08]MH_SAM_APDU [13:37:08]CAPDU: 80 11 00 00 [13:37:08]Write to MH i2c: E2 08 00 DA 08 80 11 00 00 00 00 00 00 5C [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:08]Read from MH i2c: E2 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 17 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 17 00 DA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AA [13:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:37:08]wFMCommunicate OK [13:37:08]CreateOFDProtocolMessage done [13:37:08]OFDSenderStorePacket 115658 [13:37:08]StoreOFDPacket docnum=115658 [13:37:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 C0 54 00 01 6F A8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 03 6F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CA C3 01 00 35 04 06 00 01 27 13 4E FF 66 E8 D9 89 9A 50 15 C4 AA [13:37:08]CheckFolder [13:37:08]dirname=/storage/ofd_packets [13:37:08]CheckFolder done [13:37:08]ProducePacketName [13:37:08]name=ofd_packets/00115658 [13:37:08]NVStorageSaveData ofd_packets/00115658 [13:37:08]File name is /storage/ofd_packets/00115658 [13:37:08]Write 294 bytes [13:37:08]NVStorageSaveData done [13:37:08]OFDSenderStorePacket done [13:37:08]KKMCreateOFDPacket done [13:37:08]NVStorageSaveData kkm_last_timestamp [13:37:08]File name is /storage/kkm_last_timestamp [13:37:08]Write 4 bytes [13:37:08]NVStorageSaveData done [13:37:08]ExternCall_PrintAddStr [13:37:08]wPrintStart [13:37:08]Write to MH i2c: 01 00 00 DB 08 E3 [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: 01 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: 01 07 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: 01 07 00 DB 08 00 00 00 00 00 FF 0F F8 [13:37:08]RasterBufferAndPrint [13:37:08]line Счет N : (1)24617693 [13:37:08]line ИНН: 02508201610067 [13:37:08]line Контрольно-Кассовый Чек [13:37:08]line ПРОДАЖА [13:37:08]line ТРК (МРК, ГНК) : 44 [13:37:08]line Товар: 2710124130 [13:37:08]line SU-92 [13:37:08]line 14.430 * 69.30 [13:37:08]line = 1000.00 [13:37:08]line НДС 12% НСП 1% [13:37:08]line > о реализуемом товаре [13:37:08]line ИТОГО: 1000.00 [13:37:08]line НСП 1% : 8.85 [13:37:08]line НДС 12% : 106.19 [13:37:08]line Наличными: 0.00 [13:37:08]line Безнал.: 1000.00 [13:37:08]line Место: АЗС № 90 "Партнер Нефть" [13:37:08]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:37:08]line СНО: Общий режим [13:37:08]line Чек 141 23.09.2024 13:37 [13:37:08]line Смена: 472 ФФД: 1.0 [13:37:08]line ЗНМ: 0300000120 [13:37:08]line РНМ: 0000000000091831 [13:37:08]line Версия ККМ: 001 [13:37:08]line Платежная система: O! деньги [13:37:08]line ФМ: 0000000000871830 [13:37:08]line ФД: 115658 [13:37:08]line ФПД: 1267339296614 [13:37:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133707&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115658&fm=1267339296614&tin=02508201610067®Number=0000000000091831&sum=100000 [13:37:08]written 0, free lines is 4095 [13:37:08]OFD Sender: Processing packet 115658 [packets to send 482, broken 481] [13:37:08]ProducePacketName [13:37:08]name=ofd_packets/00115658 [13:37:08]OFD Sender: To server: pG, [13:37:08]CommunicateWithHost lk.salyk.kg:30040 [13:37:08]ConnectInit lk.salyk.kg [13:37:08]Connected sock=10 [13:37: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 38 33 30 08 01 00 00 C0 54 00 01 6F A8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 03 6F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CA C3 01 00 35 04 06 00 01 27 13 4E FF 66 E8 D9 89 9A 50 15 C4 AA [13:37:09]Write to MH i2c: 01 00 00 04 09 0D [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: 01 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: 01 07 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: 01 07 00 04 09 00 00 00 00 00 88 0C A8 [13:37:09]RasterBufferAndPrint [13:37:09]line [13:37:09]line [13:37:09]line [13:37:09]line [13:37:09]line [13:37:09]written 0, free lines is 3212 [13:37:09]MH_Cut [13:37:09]Write to MH i2c: D1 01 00 0B 09 01 E6 [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: D1 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: D1 01 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: D1 01 00 0B 09 00 E5 [13:37:09]Write to MH i2c: 01 00 00 0C 09 15 [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 28 4E 47 00 03 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 38 33 30 10 04 04 00 CA C3 01 00 F4 03 04 00 45 14 F1 66 B6 04 01 00 00 BA CA A9 08 94 3D 08 A9 [13:37:09]CommunicateWithHost err = 0 [13:37:09]CheckOFDResponse [13:37:09]1017 (14) - 77093643461234 [13:37:09]1041 (16) - 0000000000871830 [13:37:09]1040 (4) - 115658 [13:37:09]1012 (4) - 23.09.2024 07:09 [13:37:09]1206 (1) - 0 [13:37:09]OFD Sender: Remove packet 115658 [13:37:09]ProducePacketName [13:37:09]name=ofd_packets/00115658 [13:37:09]NVStorageDeleteData [13:37:09]OFD Sender: No OFD packet to send [13:37:10]*** Cut start [13:37:10]*** Partial cut [13:37:10]*** CUTSNS_PIN = 1 [13:37:10]*** CUTSNS_PIN = 0 [13:37:10]*** Brake cut motor [13:37:10]Read from MH i2c: 01 [13:37:10]MH_I2C_Read... [13:37:10]*** Stop cut motor [13:37:10]*** Cut end [13:37:10]Read from MH i2c: 01 07 00 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: 01 07 00 0C 09 00 00 00 00 00 FF 0F 2A [13:37:10]process_action close_receipt done [13:37:10]requested_data is exist [13:37:10]produce_requested_data [13:37:10]requested_item fm.sn is exist - process it [13:37:10]wFMCommunicate request_size=4 [13:37:10]MH_SAM_APDU [13:37:10]CAPDU: 80 11 00 00 [13:37:10]Write to MH i2c: E2 08 00 0D 09 80 11 00 00 00 00 00 00 90 [13:37:10]Write i2c OK [13:37:10]MH_I2C_Read... [13:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:10]Read from MH i2c: E2 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 17 00 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 17 00 0D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 DE [13:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:37:10]wFMCommunicate OK [13:37:10]requested_item fd.num is exist - process it [13:37:10]SAM_PROTO_GetFieldsCounters [13:37:10]wFMCommunicate request_size=4 [13:37:10]MH_SAM_APDU [13:37:10]CAPDU: 80 13 00 00 [13:37:10]Write to MH i2c: E2 08 00 0E 09 80 13 00 00 00 00 00 00 93 [13:37:10]Write i2c OK [13:37:10]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 62 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 62 00 0E 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CA C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [13: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CA C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:11]wFMCommunicate OK [13:37:11]SAM_PROTO_GetFieldsCounters done [13:37:11]requested_item shift.num is exist - process it [13:37:11]requested_item shift.opened is exist - process it [13:37:11]req_shift_opened [13:37:11]FM_GetShiftState [13:37:11]SAM_PROTO_GetShiftState [13:37:11]wFMCommunicate request_size=4 [13:37:11]MH_SAM_APDU [13:37:11]CAPDU: 80 13 01 00 [13:37:11]Write to MH i2c: E2 08 00 0F 09 80 13 01 00 00 00 00 00 95 [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 0E 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 0E 00 0F 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D6 [13:37:11]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:37:11]wFMCommunicate OK [13:37:11]SAM_PROTO_GetShiftState done [13:37:11]FM_GetShiftState done [13:37:11]req_shift_opened done [13:37:11]requested_item shift.open_date is exist - process it [13:37:11]req_shift_open_date [13:37:11]req_shift_open_date done [13:37:11]produce_requested_data done [13:37:11]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115658,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:37:11]process_action_free close_receipt [13:37:11]json_value_free [13:37:11]json_value_free done [13:37:11]process_json_proto returns [13:37:11]Send response to host [13:37:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115658,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:37:11]free response buf [13:37:11]execute_script done [13:37:11]execute_script returns [13:37:11]free content buf [13:37:11]Sock 9.Close socket [13:37:11]Sock 9.Thread stoped [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]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:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:32]accept exits with 7 [13:39:32]New connection [13:39:32]New thread 3066879332 created [13:39:32]Thread 3067022692 joined [13:39:32]Waiting for new connection... [13:39:32] Sock 7.Parse request [13:39:32]Sock 7.Check first char [13:39:32]Sock 7.First char is OK [13:39:32]request: POST /json_proto HTTP/1.0 [13:39:32]Method: POST [13:39:32]URL: /json_proto [13:39:32]Method is POST - this is cgi request [13:39:32]url: /json_proto [13:39:32]query_string will be loaded in cgi processing [13:39:32]execute_cgi json_proto POST (null) [13:39:32]execute_cgi path=json_proto method=POST [13:39:32]POST find Content-Length [13:39:32]Host: 172.17.41.136:8080 [13:39:32]Content-Length: 967 [13:39:32]Content-Type: application/json [13:39:32] [13:39:32]POST finish read [13:39:32]Found Content-Length = 967 [13:39:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344018", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 249.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:32]execute_script... [13:39:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344018", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 249.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:32]POST & json_proto [13:39:32]process_json_proto [13:39:32]json parsed OK: [13:39:32]protocol is kg_v1.0 [13:39:32]action value=close_receipt [13:39:32]process_action close_receipt [13:39:32]cmd_close_receipt [13:39:32]MH_GetDate [13:39:32]Write to MH i2c: F0 00 00 10 09 08 [13:39:32]Write i2c OK [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: F0 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: F0 09 00 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: F0 09 00 10 09 00 94 6F F1 66 1B D0 5A 64 14 [13:39:32]GetLastDocTimeStamp 1727098627 [13:39:32]current date 1727098772 [13:39:32]FM_GetShiftState [13:39:32]SAM_PROTO_GetShiftState [13:39:32]wFMCommunicate request_size=4 [13:39:32]MH_SAM_APDU [13:39:32]CAPDU: 80 13 01 00 [13:39:32]Write to MH i2c: E2 08 00 11 09 80 13 01 00 00 00 00 00 97 [13:39:32]Write i2c OK [13:39:32]MH_I2C_Read... [13:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:32]Read from MH i2c: E2 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: E2 0E 00 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: E2 0E 00 11 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D8 [13:39:32]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:39:32]wFMCommunicate OK [13:39:32]SAM_PROTO_GetShiftState done [13:39:32]FM_GetShiftState done [13:39:32]opened in 1727052070 [13:39:32]opened+sec_in_day 1727138470 [13:39:32]quantity*price = 10500 [13:39:32]sum+1 = 10501 [13:39:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 249.00 НСП 1% : 2.20 НДС 12% : 26.44 Наличными: 249.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 142 23.09.2024 13:39 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115659 ФПД: 184525796894549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133932&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115659&fm=184525796894549&tin=02508201610067®Number=0000000000091831&sum=24900 0 [13:39:33]StoreToDocumentArchive [13:39:33]shift 472 fd 115659 [13:39:33]save to /storage/0472/doc_00115659 [13:39:33]save last doc name /storage/0472/doc_00115659 to /storage/kkm_last_doc_name [13:39:33]save OK [13:39:33]Clear old archive folders... [13:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=413 [13:39:33]tlvbuf is 01826380 [13:39:33]SAM_PROTO_ClearQueue [13:39:33]wFMCommunicate request_size=4 [13:39:33]MH_SAM_APDU [13:39:33]CAPDU: 80 09 00 00 [13:39:33]Write to MH i2c: E2 08 00 1E 09 80 09 00 00 00 00 00 00 99 [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 [13:39:33]MH_I2C_Read... [13:39:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:33]Read from MH i2c: E2 03 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [13:39:33]RAPDU: 90 00 [13:39:33]wFMCommunicate OK [13:39:33]SAM_PROTO_ClearQueue done [13:39:33]KKMCreateOFDPacket [13:39:33]OFDProtocolAddRootSTLVToBuf [13:39:33]FM_MakeSignedData [13:39:33]FM_MakeSignedData [13:39:33]SAM_PROTO_SignData [13:39:33]wFMCommunicate request_size=4 [13:39:33]MH_SAM_APDU [13:39:33]CAPDU: 80 0D 01 02 [13:39:33]Write to MH i2c: E2 08 00 1F 09 80 0D 01 02 00 00 00 00 A1 [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:33]Read from MH i2c: E2 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 03 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [13:39:33]RAPDU: 90 00 [13:39:33]wFMCommunicate OK [13:39:33]wFMCommunicate request_size=255 [13:39:33]MH_SAM_APDU [13:39:33]CAPDU: 80 0D 02 02 FA 03 00 9D 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [13:39:33]Write to MH i2c: E2 02 01 20 09 80 0D 02 02 FA 00 03 00 9D 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 38 [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:33]Read from MH i2c: E2 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 03 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 03 00 20 09 00 90 00 9D [13:39:33]RAPDU: 90 00 [13:39:33]wFMCommunicate OK [13:39:33]wFMCommunicate request_size=172 [13:39:33]MH_SAM_APDU [13:39:33]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 0A 00 00 00 00 07 04 06 00 44 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 94 6F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CB C3 01 00 35 04 06 00 A7 D3 42 93 67 55 [13:39:33]Write to MH i2c: E2 AF 00 21 09 80 0D 02 02 A7 00 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 0A 00 00 00 00 07 04 06 00 44 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 94 6F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CB C3 01 00 35 04 06 00 A7 D3 42 93 67 55 00 00 0C [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:33]Read from MH i2c: E2 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 03 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 03 00 21 09 00 90 00 9E [13:39:33]RAPDU: 90 00 [13:39:33]wFMCommunicate OK [13:39:33]wFMCommunicate request_size=4 [13:39:33]MH_SAM_APDU [13:39:33]CAPDU: 80 0D 03 02 [13:39:33]Write to MH i2c: E2 08 00 22 09 80 0D 03 02 00 00 00 00 A6 [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:33]Read from MH i2c: E2 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 0B 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 0B 00 22 09 00 1F CF BB 0C 6C DB 0E FF 90 00 B0 [13:39:33]RAPDU: 1F CF BB 0C 6C DB 0E FF 90 00 [13:39:33]wFMCommunicate OK [13:39:33]SAM_PROTO_SignData done [13:39:33]FM_MakeSignedData done [13:39:33]CreateOFDProtocolMessage [13:39:33]wFMCommunicate request_size=4 [13:39:33]MH_SAM_APDU [13:39:33]CAPDU: 80 11 00 00 [13:39:33]Write to MH i2c: E2 08 00 23 09 80 11 00 00 00 00 00 00 A6 [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:33]Read from MH i2c: E2 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 17 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 17 00 23 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F4 [13:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:39:33]wFMCommunicate OK [13:39:33]CreateOFDProtocolMessage done [13:39:33]OFDSenderStorePacket 115659 [13:39:33]StoreOFDPacket docnum=115659 [13:39:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B1 01 00 00 B6 9B A9 01 0D E4 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 0A 00 00 00 00 07 04 06 00 44 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 94 6F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CB C3 01 00 35 04 06 00 A7 D3 42 93 67 55 1F CF BB 0C 6C DB 0E FF [13:39:33]CheckFolder [13:39:33]dirname=/storage/ofd_packets [13:39:33]CheckFolder done [13:39:33]ProducePacketName [13:39:33]name=ofd_packets/00115659 [13:39:33]NVStorageSaveData ofd_packets/00115659 [13:39:33]File name is /storage/ofd_packets/00115659 [13:39:33]Write 463 bytes [13:39:33]NVStorageSaveData done [13:39:33]OFDSenderStorePacket done [13:39:33]KKMCreateOFDPacket done [13:39:33]NVStorageSaveData kkm_last_timestamp [13:39:33]File name is /storage/kkm_last_timestamp [13:39:33]Write 4 bytes [13:39:33]NVStorageSaveData done [13:39:33]ExternCall_PrintAddStr [13:39:33]wPrintStart [13:39:33]Write to MH i2c: 01 00 00 24 09 2D [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: 01 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: 01 07 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: 01 07 00 24 09 00 00 00 00 00 FF 0F 42 [13:39:33]RasterBufferAndPrint [13:39:34]line Счет N : (3)344018 [13:39:34]line ИНН: 02508201610067 [13:39:34]line Контрольно-Кассовый Чек [13:39:34]line ПРОДАЖА [13:39:34]line Товар: 5449000027474 [13:39:34]line Напиток FuzeTea зел чай манго,ромашка 1л [13:39:34]line 1.000 * 105.00 [13:39:34]line = 105.00 [13:39:34]line НДС 12% НСП 1% [13:39:34]line > о реализуемом товаре [13:39:34]line Товар: 48743587 [13:39:34]line Сигареты Winston XStyle Silver [13:39:34]line 1.000 * 144.00 [13:39:34]line = 144.00 [13:39:34]line НДС 12% НСП 1% [13:39:34]line > о реализуемом товаре [13:39:34]line ИТОГО: 249.00 [13:39:34]line НСП 1% : 2.20 [13:39:34]line НДС 12% : 26.44 [13:39:34]line Наличными: 249.00 [13:39:34]line Безнал.: 0.00 [13:39:34]line Место: АЗС № 90 "Партнер Нефть" [13:39:34]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:39:34]line СНО: Общий режим [13:39:34]line Чек 142 23.09.2024 13:39 [13:39:34]line Смена: 472 ФФД: 1.0 [13:39:34]line ЗНМ: 0300000120 [13:39:34]line РНМ: 0000000000091831 [13:39:34]line Версия ККМ: 001 [13:39:34]line ФМ: 0000000000871830 [13:39:34]line ФД: 115659 [13:39:34]line ФПД: 184525796894549 [13:39:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133932&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115659&fm=184525796894549&tin=02508201610067®Number=0000000000091831&sum=24900 [13:39:34]line 0 [13:39:34]OFD Sender: Processing packet 115659 [packets to send 482, broken 481] [13:39:34]ProducePacketName [13:39:34]name=ofd_packets/00115659 [13:39:34]OFD Sender: To server: pG, [13:39:34]CommunicateWithHost lk.salyk.kg:30040 [13:39:34]ConnectInit lk.salyk.kg [13:39:34]written 0, free lines is 4095 [13:39:34]Connected sock=10 [13:39: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 38 33 30 B1 01 00 00 B6 9B A9 01 0D E4 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 0A 00 00 00 00 07 04 06 00 44 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 94 6F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CB C3 01 00 35 04 06 00 A7 D3 42 93 67 55 1F CF BB 0C 6C DB 0E FF [13:39:34]Write to MH i2c: 01 00 00 53 09 5C [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: 01 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: 01 07 00 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: 01 07 00 53 09 00 00 00 00 00 EE 0B 5C [13:39:34]RasterBufferAndPrint [13:39:34]line [13:39:34]line [13:39:34]line [13:39:34]line [13:39:34]line [13:39:34]written 0, free lines is 3058 [13:39:34]MH_Cut [13:39:34]Write to MH i2c: D1 01 00 5A 09 01 35 [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: D1 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: D1 01 00 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: D1 01 00 5A 09 00 34 [13:39:34]Write to MH i2c: 01 00 00 5B 09 64 [13:39:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 DE 5A 47 00 43 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 38 33 30 10 04 04 00 CB C3 01 00 F4 03 04 00 D7 14 F1 66 B6 04 01 00 00 D6 EB B7 4F DB 72 C1 B0 [13:39:34]CommunicateWithHost err = 0 [13:39:34]CheckOFDResponse [13:39:34]1017 (14) - 77093643461234 [13:39:34]1041 (16) - 0000000000871830 [13:39:34]1040 (4) - 115659 [13:39:34]1012 (4) - 23.09.2024 07:12 [13:39:34]1206 (1) - 0 [13:39:34]OFD Sender: Remove packet 115659 [13:39:34]ProducePacketName [13:39:34]name=ofd_packets/00115659 [13:39:34]NVStorageDeleteData [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:35]OFD Sender: No OFD packet to send [13:39:36]*** Cut start [13:39:36]*** Partial cut [13:39:36]*** CUTSNS_PIN = 1 [13:39:36]*** CUTSNS_PIN = 0 [13:39:36]*** Brake cut motor [13:39:36]Read from MH i2c: 01 [13:39:36]MH_I2C_Read... [13:39:36]*** Stop cut motor [13:39:36]*** Cut end [13:39:36]Read from MH i2c: 01 07 00 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: 01 07 00 5B 09 00 00 00 00 00 FF 0F 79 [13:39:36]process_action close_receipt done [13:39:36]requested_data is exist [13:39:36]produce_requested_data [13:39:36]requested_item fm.sn is exist - process it [13:39:36]wFMCommunicate request_size=4 [13:39:36]MH_SAM_APDU [13:39:36]CAPDU: 80 11 00 00 [13:39:36]Write to MH i2c: E2 08 00 5C 09 80 11 00 00 00 00 00 00 DF [13:39:36]Write i2c OK [13:39:36]MH_I2C_Read... [13:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:36]Read from MH i2c: E2 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 17 00 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 17 00 5C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2D [13:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:39:36]wFMCommunicate OK [13:39:36]requested_item fd.num is exist - process it [13:39:36]SAM_PROTO_GetFieldsCounters [13:39:36]wFMCommunicate request_size=4 [13:39:36]MH_SAM_APDU [13:39:36]CAPDU: 80 13 00 00 [13:39:36]Write to MH i2c: E2 08 00 5D 09 80 13 00 00 00 00 00 00 E2 [13:39:36]Write i2c OK [13:39:36]MH_I2C_Read... [13:39:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:36]Read from MH i2c: E2 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 62 00 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 62 00 5D 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CB C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [13:39: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CB C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:36]wFMCommunicate OK [13:39:36]SAM_PROTO_GetFieldsCounters done [13:39:36]requested_item shift.num is exist - process it [13:39:36]requested_item shift.opened is exist - process it [13:39:36]req_shift_opened [13:39:36]FM_GetShiftState [13:39:36]SAM_PROTO_GetShiftState [13:39:36]wFMCommunicate request_size=4 [13:39:36]MH_SAM_APDU [13:39:36]CAPDU: 80 13 01 00 [13:39:36]Write to MH i2c: E2 08 00 5E 09 80 13 01 00 00 00 00 00 E4 [13:39:36]Write i2c OK [13:39:36]MH_I2C_Read... [13:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:36]Read from MH i2c: E2 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 0E 00 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 0E 00 5E 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 25 [13:39:36]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:39:36]wFMCommunicate OK [13:39:36]SAM_PROTO_GetShiftState done [13:39:36]FM_GetShiftState done [13:39:36]req_shift_opened done [13:39:36]requested_item shift.open_date is exist - process it [13:39:36]req_shift_open_date [13:39:36]req_shift_open_date done [13:39:36]produce_requested_data done [13:39:36]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115659,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:39:36]process_action_free close_receipt [13:39:36]json_value_free [13:39:36]json_value_free done [13:39:36]process_json_proto returns [13:39:36]Send response to host [13:39:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115659,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:39:36]free response buf [13:39:36]execute_script done [13:39:36]execute_script returns [13:39:36]free content buf [13:39:36]Sock 7.Close socket [13:39:36]Sock 7.Thread stoped [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:47]accept exits with 9 [13:41:47]New connection [13:41:47]New thread 3067022692 created [13:41:47]Thread 3066879332 joined [13:41:47]Waiting for new connection... [13:41:47] Sock 9.Parse request [13:41:47]Sock 9.Check first char [13:41:47]Sock 9.First char is OK [13:41:47]request: POST /json_proto HTTP/1.0 [13:41:47]Method: POST [13:41:47]URL: /json_proto [13:41:47]Method is POST - this is cgi request [13:41:47]url: /json_proto [13:41:47]query_string will be loaded in cgi processing [13:41:47]execute_cgi json_proto POST (null) [13:41:47]execute_cgi path=json_proto method=POST [13:41:47]POST find Content-Length [13:41:47]Host: 172.17.41.136:8080 [13:41:47]Content-Length: 909 [13:41:47]Content-Type: application/json [13:41:47] [13:41:47]POST finish read [13:41:47]Found Content-Length = 909 [13:41:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344019", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 152.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:47]execute_script... [13:41:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344019", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 152.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:47]POST & json_proto [13:41:47]process_json_proto [13:41:47]json parsed OK: [13:41:47]protocol is kg_v1.0 [13:41:47]action value=close_receipt [13:41:47]process_action close_receipt [13:41:47]cmd_close_receipt [13:41:47]MH_GetDate [13:41:47]Write to MH i2c: F0 00 00 5F 09 57 [13:41:47]Write i2c OK [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: F0 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: F0 09 00 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: F0 09 00 5F 09 00 1B 70 F1 66 1B D0 5A 64 EB [13:41:47]GetLastDocTimeStamp 1727098772 [13:41:47]current date 1727098907 [13:41:47]FM_GetShiftState [13:41:47]SAM_PROTO_GetShiftState [13:41:47]wFMCommunicate request_size=4 [13:41:47]MH_SAM_APDU [13:41:47]CAPDU: 80 13 01 00 [13:41:47]Write to MH i2c: E2 08 00 60 09 80 13 01 00 00 00 00 00 E6 [13:41:47]Write i2c OK [13:41:47]MH_I2C_Read... [13:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:47]Read from MH i2c: E2 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: E2 0E 00 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: E2 0E 00 60 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 27 [13:41:47]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:41:47]wFMCommunicate OK [13:41:47]SAM_PROTO_GetShiftState done [13:41:47]FM_GetShiftState done [13:41:47]opened in 1727052070 [13:41:47]opened+sec_in_day 1727138470 [13:41:47]quantity*price = 8700 [13:41:47]sum+1 = 8701 [13:41:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47011656 Водка Пшеничная 0,1л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 152.00 НСП 1% : 1.34 НДС 12% : 16.14 Наличными: 152.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 143 23.09.2024 13:41 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115660 ФПД: 11978964671178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T134147&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115660&fm=11978964671178&tin=02508201610067®Number=0000000000091831&sum=15200 0 [13:41:48]StoreToDocumentArchive [13:41:48]shift 472 fd 115660 [13:41:48]save to /storage/0472/doc_00115660 [13:41:48]save last doc name /storage/0472/doc_00115660 to /storage/kkm_last_doc_name [13:41:48]save OK [13:41:48]Clear old archive folders... [13:41:48]ProcessDocumentItem done err = 0, tmpTLVsize=379 [13:41:48]tlvbuf is 01825F20 [13:41:48]SAM_PROTO_ClearQueue [13:41:48]wFMCommunicate request_size=4 [13:41:48]MH_SAM_APDU [13:41:48]CAPDU: 80 09 00 00 [13:41:48]Write to MH i2c: E2 08 00 6D 09 80 09 00 00 00 00 00 00 E8 [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:48]Read from MH i2c: E2 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 6D 09 00 90 00 EA [13:41:48]RAPDU: 90 00 [13:41:48]wFMCommunicate OK [13:41:48]SAM_PROTO_ClearQueue done [13:41:48]KKMCreateOFDPacket [13:41:48]OFDProtocolAddRootSTLVToBuf [13:41:48]FM_MakeSignedData [13:41:48]FM_MakeSignedData [13:41:48]SAM_PROTO_SignData [13:41:48]wFMCommunicate request_size=4 [13:41:48]MH_SAM_APDU [13:41:48]CAPDU: 80 0D 01 02 [13:41:48]Write to MH i2c: E2 08 00 6E 09 80 0D 01 02 00 00 00 00 F0 [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:48]Read from MH i2c: E2 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 6E 09 00 90 00 EB [13:41:48]RAPDU: 90 00 [13:41:48]wFMCommunicate OK [13:41:48]wFMCommunicate request_size=255 [13:41:48]MH_SAM_APDU [13:41:48]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 [13:41:48]Write to MH i2c: E2 02 01 6F 09 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 00 8F [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:48]Read from MH i2c: E2 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 6F 09 00 90 00 EC [13:41:48]RAPDU: 90 00 [13:41:48]wFMCommunicate OK [13:41:48]wFMCommunicate request_size=138 [13:41:48]MH_SAM_APDU [13:41:48]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 1B 70 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CC C3 01 00 35 04 06 00 0A E5 11 EF 1A CA [13:41:48]Write to MH i2c: E2 8D 00 70 09 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 1B 70 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CC C3 01 00 35 04 06 00 0A E5 11 EF 1A CA 00 00 BE [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:48]Read from MH i2c: E2 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 70 09 00 90 00 ED [13:41:48]RAPDU: 90 00 [13:41:48]wFMCommunicate OK [13:41:48]wFMCommunicate request_size=4 [13:41:48]MH_SAM_APDU [13:41:48]CAPDU: 80 0D 03 02 [13:41:48]Write to MH i2c: E2 08 00 71 09 80 0D 03 02 00 00 00 00 F5 [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:48]Read from MH i2c: E2 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 0B 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 0B 00 71 09 00 AE AB 3B 91 6F 62 41 BC 90 00 E9 [13:41:48]RAPDU: AE AB 3B 91 6F 62 41 BC 90 00 [13:41:48]wFMCommunicate OK [13:41:48]SAM_PROTO_SignData done [13:41:48]FM_MakeSignedData done [13:41:48]CreateOFDProtocolMessage [13:41:48]wFMCommunicate request_size=4 [13:41:48]MH_SAM_APDU [13:41:48]CAPDU: 80 11 00 00 [13:41:48]Write to MH i2c: E2 08 00 72 09 80 11 00 00 00 00 00 00 F5 [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:48]Read from MH i2c: E2 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 17 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 17 00 72 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 43 [13:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:41:48]wFMCommunicate OK [13:41:48]CreateOFDProtocolMessage done [13:41:48]OFDSenderStorePacket 115660 [13:41:48]StoreOFDPacket docnum=115660 [13:41:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8F 01 00 00 0A 58 87 01 8A 70 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 1B 70 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CC C3 01 00 35 04 06 00 0A E5 11 EF 1A CA AE AB 3B 91 6F 62 41 BC [13:41:48]CheckFolder [13:41:48]dirname=/storage/ofd_packets [13:41:48]CheckFolder done [13:41:48]ProducePacketName [13:41:48]name=ofd_packets/00115660 [13:41:48]NVStorageSaveData ofd_packets/00115660 [13:41:48]File name is /storage/ofd_packets/00115660 [13:41:48]Write 429 bytes [13:41:48]NVStorageSaveData done [13:41:48]OFDSenderStorePacket done [13:41:48]KKMCreateOFDPacket done [13:41:48]NVStorageSaveData kkm_last_timestamp [13:41:48]File name is /storage/kkm_last_timestamp [13:41:48]Write 4 bytes [13:41:48]NVStorageSaveData done [13:41:48]ExternCall_PrintAddStr [13:41:48]wPrintStart [13:41:48]Write to MH i2c: 01 00 00 73 09 7C [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: 01 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: 01 07 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: 01 07 00 73 09 00 00 00 00 00 FF 0F 91 [13:41:48]RasterBufferAndPrint [13:41:48]line Счет N : (3)344019 [13:41:48]line ИНН: 02508201610067 [13:41:48]line Контрольно-Кассовый Чек [13:41:48]line ПРОДАЖА [13:41:48]line Товар: 4860019001339 [13:41:49]line Вода Боржоми 0,33л ст [13:41:49]line 1.000 * 87.00 [13:41:49]line = 87.00 [13:41:49]line НДС 12% НСП 1% [13:41:49]line > о реализуемом товаре [13:41:49]line Товар: 47011656 [13:41:49]line Водка Пшеничная 0,1л [13:41:49]line 1.000 * 65.00 [13:41:49]line = 65.00 [13:41:49]line НДС 12% НСП 1% [13:41:49]line > о реализуемом товаре [13:41:49]line ИТОГО: 152.00 [13:41:49]line НСП 1% : 1.34 [13:41:49]line НДС 12% : 16.14 [13:41:49]line Наличными: 152.00 [13:41:49]line Безнал.: 0.00 [13:41:49]line Место: АЗС № 90 "Партнер Нефть" [13:41:49]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:41:49]line СНО: Общий режим [13:41:49]line Чек 143 23.09.2024 13:41 [13:41:49]line Смена: 472 ФФД: 1.0 [13:41:49]line ЗНМ: 0300000120 [13:41:49]line РНМ: 0000000000091831 [13:41:49]line Версия ККМ: 001 [13:41:49]line ФМ: 0000000000871830 [13:41:49]line ФД: 115660 [13:41:49]line ФПД: 11978964671178 [13:41:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T134147&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115660&fm=11978964671178&tin=02508201610067®Number=0000000000091831&sum=15200 [13:41:49]OFD Sender: Processing packet 115660 [packets to send 482, broken 481] [13:41:49]ProducePacketName [13:41:49]name=ofd_packets/00115660 [13:41:49]OFD Sender: To server: pG, [13:41:49]CommunicateWithHost lk.salyk.kg:30040 [13:41:49]ConnectInit lk.salyk.kg [13:41:49]line 0 [13:41:49]written 0, free lines is 4095 [13:41:49]Connected sock=10 [13:41:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8F 01 00 00 0A 58 87 01 8A 70 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 1B 70 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CC C3 01 00 35 04 06 00 0A E5 11 EF 1A CA AE AB 3B 91 6F 62 41 BC [13:41:49]Write to MH i2c: 01 00 00 A0 09 A9 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 07 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 07 00 A0 09 00 00 00 00 00 18 0C D4 [13:41:49]RasterBufferAndPrint [13:41:49]line [13:41:49]line [13:41:49]line [13:41:49]line [13:41:49]line [13:41:49]written 0, free lines is 3098 [13:41:49]MH_Cut [13:41:49]Write to MH i2c: D1 01 00 A7 09 01 82 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: D1 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: D1 01 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: D1 01 00 A7 09 00 81 [13:41:49]Write to MH i2c: 01 00 00 A8 09 B1 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 7C 98 47 00 76 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 38 33 30 10 04 04 00 CC C3 01 00 F4 03 04 00 5E 15 F1 66 B6 04 01 00 00 3A E2 72 4A 29 4F 6C 82 [13:41:49]CommunicateWithHost err = 0 [13:41:49]CheckOFDResponse [13:41:49]1017 (14) - 77093643461234 [13:41:49]1041 (16) - 0000000000871830 [13:41:49]1040 (4) - 115660 [13:41:49]1012 (4) - 23.09.2024 07:14 [13:41:49]1206 (1) - 0 [13:41:49]OFD Sender: Remove packet 115660 [13:41:49]ProducePacketName [13:41:49]name=ofd_packets/00115660 [13:41:49]NVStorageDeleteData [13:41:50]OFD Sender: No OFD packet to send [13:41:50]*** Cut start [13:41:50]*** Partial cut [13:41:50]*** CUTSNS_PIN = 1 [13:41:51]*** CUTSNS_PIN = 0 [13:41:51]*** Brake cut motor [13:41:51]Read from MH i2c: 01 [13:41:51]MH_I2C_Read... [13:41:51]*** Stop cut motor [13:41:51]*** Cut end [13:41:51]Read from MH i2c: 01 07 00 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: 01 07 00 A8 09 00 00 00 00 00 FF 0F C6 [13:41:51]process_action close_receipt done [13:41:51]requested_data is exist [13:41:51]produce_requested_data [13:41:51]requested_item fm.sn is exist - process it [13:41:51]wFMCommunicate request_size=4 [13:41:51]MH_SAM_APDU [13:41:51]CAPDU: 80 11 00 00 [13:41:51]Write to MH i2c: E2 08 00 A9 09 80 11 00 00 00 00 00 00 2C [13:41:51]Write i2c OK [13:41:51]MH_I2C_Read... [13:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:51]Read from MH i2c: E2 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 17 00 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 17 00 A9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7A [13:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:41:51]wFMCommunicate OK [13:41:51]requested_item fd.num is exist - process it [13:41:51]SAM_PROTO_GetFieldsCounters [13:41:51]wFMCommunicate request_size=4 [13:41:51]MH_SAM_APDU [13:41:51]CAPDU: 80 13 00 00 [13:41:51]Write to MH i2c: E2 08 00 AA 09 80 13 00 00 00 00 00 00 2F [13:41:51]Write i2c OK [13:41:51]MH_I2C_Read... [13:41:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:51]Read from MH i2c: E2 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 62 00 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 62 00 AA 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CC C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [13:41:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CC C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:51]wFMCommunicate OK [13:41:51]SAM_PROTO_GetFieldsCounters done [13:41:51]requested_item shift.num is exist - process it [13:41:51]requested_item shift.opened is exist - process it [13:41:51]req_shift_opened [13:41:51]FM_GetShiftState [13:41:51]SAM_PROTO_GetShiftState [13:41:51]wFMCommunicate request_size=4 [13:41:51]MH_SAM_APDU [13:41:51]CAPDU: 80 13 01 00 [13:41:51]Write to MH i2c: E2 08 00 AB 09 80 13 01 00 00 00 00 00 31 [13:41:51]Write i2c OK [13:41:51]MH_I2C_Read... [13:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:51]Read from MH i2c: E2 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 0E 00 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 0E 00 AB 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 72 [13:41:51]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:41:51]wFMCommunicate OK [13:41:51]SAM_PROTO_GetShiftState done [13:41:51]FM_GetShiftState done [13:41:51]req_shift_opened done [13:41:51]requested_item shift.open_date is exist - process it [13:41:51]req_shift_open_date [13:41:51]req_shift_open_date done [13:41:51]produce_requested_data done [13:41:51]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115660,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:41:51]process_action_free close_receipt [13:41:51]json_value_free [13:41:51]json_value_free done [13:41:51]process_json_proto returns [13:41:51]Send response to host [13:41:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115660,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:41:51]free response buf [13:41:51]execute_script done [13:41:51]execute_script returns [13:41:51]free content buf [13:41:51]Sock 9.Close socket [13:41:51]Sock 9.Thread stoped [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:45]accept exits with 7 [13:42:45]New connection [13:42:45]New thread 3066879332 created [13:42:45]Thread 3067022692 joined [13:42:45]Waiting for new connection... [13:42:45] Sock 7.Parse request [13:42:45]Sock 7.Check first char [13:42:45]Sock 7.First char is OK [13:42:45]request: POST /json_proto HTTP/1.0 [13:42:45]Method: POST [13:42:45]URL: /json_proto [13:42:45]Method is POST - this is cgi request [13:42:45]url: /json_proto [13:42:45]query_string will be loaded in cgi processing [13:42:45]execute_cgi json_proto POST (null) [13:42:45]execute_cgi path=json_proto method=POST [13:42:45]POST find Content-Length [13:42:45]Host: 172.17.41.136:8080 [13:42:45]Content-Length: 700 [13:42:45]Content-Type: application/json [13:42:45] [13:42:45]POST finish read [13:42:45]Found Content-Length = 700 [13:42:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344020", "tax_sys" : 0, "items" : [ { "code": "4870002328602", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u0430\u043F,\u043B\u0435\u043C\u043E\u043D\u0433\u0440\u0430\u0441 \u041F\u042D\u0422 1\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:45]execute_script... [13:42: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 : (3)344020", "tax_sys" : 0, "items" : [ { "code": "4870002328602", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u0430\u043F,\u043B\u0435\u043C\u043E\u043D\u0433\u0440\u0430\u0441 \u041F\u042D\u0422 1\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:45]POST & json_proto [13:42:45]process_json_proto [13:42:45]json parsed OK: [13:42:45]protocol is kg_v1.0 [13:42:45]action value=close_receipt [13:42:45]process_action close_receipt [13:42:45]cmd_close_receipt [13:42:45]MH_GetDate [13:42:45]Write to MH i2c: F0 00 00 AC 09 A4 [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: F0 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: F0 09 00 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: F0 09 00 AC 09 00 56 70 F1 66 1B D0 5A 64 73 [13:42:45]GetLastDocTimeStamp 1727098907 [13:42:45]current date 1727098966 [13:42:45]FM_GetShiftState [13:42:45]SAM_PROTO_GetShiftState [13:42:45]wFMCommunicate request_size=4 [13:42:45]MH_SAM_APDU [13:42:45]CAPDU: 80 13 01 00 [13:42:45]Write to MH i2c: E2 08 00 AD 09 80 13 01 00 00 00 00 00 33 [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:45]Read from MH i2c: E2 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 0E 00 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 0E 00 AD 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 74 [13:42:45]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:42:45]wFMCommunicate OK [13:42:45]SAM_PROTO_GetShiftState done [13:42:45]FM_GetShiftState done [13:42:45]opened in 1727052070 [13:42:45]opened+sec_in_day 1727138470 [13:42:45]quantity*price = 16500 [13:42:45]sum+1 = 16501 [13:42:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 144 23.09.2024 13:42 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115661 ФПД: 40774985888382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T134246&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115661&fm=40774985888382&tin=02508201610067®Number=0000000000091831&sum=16500 0 [13:42:46]StoreToDocumentArchive [13:42:46]shift 472 fd 115661 [13:42:46]save to /storage/0472/doc_00115661 [13:42:46]save last doc name /storage/0472/doc_00115661 to /storage/kkm_last_doc_name [13:42:46]save OK [13:42:46]Clear old archive folders... [13:42:46]ProcessDocumentItem done err = 0, tmpTLVsize=296 [13:42:46]tlvbuf is 0183C700 [13:42:46]SAM_PROTO_ClearQueue [13:42:46]wFMCommunicate request_size=4 [13:42:46]MH_SAM_APDU [13:42:46]CAPDU: 80 09 00 00 [13:42:46]Write to MH i2c: E2 08 00 BA 09 80 09 00 00 00 00 00 00 35 [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:47]Read from MH i2c: E2 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 03 00 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 03 00 BA 09 00 90 00 37 [13:42:47]RAPDU: 90 00 [13:42:47]wFMCommunicate OK [13:42:47]SAM_PROTO_ClearQueue done [13:42:47]KKMCreateOFDPacket [13:42:47]OFDProtocolAddRootSTLVToBuf [13:42:47]FM_MakeSignedData [13:42:47]FM_MakeSignedData [13:42:47]SAM_PROTO_SignData [13:42:47]wFMCommunicate request_size=4 [13:42:47]MH_SAM_APDU [13:42:47]CAPDU: 80 0D 01 02 [13:42:47]Write to MH i2c: E2 08 00 BB 09 80 0D 01 02 00 00 00 00 3D [13:42:47]Write i2c OK [13:42:47]MH_I2C_Read... [13:42:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:47]Read from MH i2c: E2 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 03 00 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 03 00 BB 09 00 90 00 38 [13:42:47]RAPDU: 90 00 [13:42:47]wFMCommunicate OK [13:42:47]wFMCommunicate request_size=255 [13:42:47]MH_SAM_APDU [13:42:47]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 D0 B0 D1 81 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 56 70 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [13:42:47]Write to MH i2c: E2 02 01 BC 09 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 D0 B0 D1 81 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 56 70 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 62 [13:42:47]Write i2c OK [13:42:47]MH_I2C_Read... [13:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:47]Read from MH i2c: E2 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 03 00 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [13:42:47]RAPDU: 90 00 [13:42:47]wFMCommunicate OK [13:42:47]wFMCommunicate request_size=55 [13:42:47]MH_SAM_APDU [13:42:47]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CD C3 01 00 35 04 06 00 25 15 AA 8C B2 7E [13:42:47]Write to MH i2c: E2 3A 00 BD 09 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CD C3 01 00 35 04 06 00 25 15 AA 8C B2 7E 00 00 C2 [13:42:47]Write i2c OK [13:42:47]MH_I2C_Read... [13:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:47]Read from MH i2c: E2 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 03 00 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 03 00 BD 09 00 90 00 3A [13:42:47]RAPDU: 90 00 [13:42:47]wFMCommunicate OK [13:42:47]wFMCommunicate request_size=4 [13:42:47]MH_SAM_APDU [13:42:47]CAPDU: 80 0D 03 02 [13:42:47]Write to MH i2c: E2 08 00 BE 09 80 0D 03 02 00 00 00 00 42 [13:42:47]Write i2c OK [13:42:47]MH_I2C_Read... [13:42:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:47]Read from MH i2c: E2 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 0B 00 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 0B 00 BE 09 00 03 3C D1 8E E0 5A 6F 4A 90 00 D4 [13:42:47]RAPDU: 03 3C D1 8E E0 5A 6F 4A 90 00 [13:42:47]wFMCommunicate OK [13:42:47]SAM_PROTO_SignData done [13:42:47]FM_MakeSignedData done [13:42:47]CreateOFDProtocolMessage [13:42:47]wFMCommunicate request_size=4 [13:42:47]MH_SAM_APDU [13:42:47]CAPDU: 80 11 00 00 [13:42:47]Write to MH i2c: E2 08 00 BF 09 80 11 00 00 00 00 00 00 42 [13:42:47]Write i2c OK [13:42:47]MH_I2C_Read... [13:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:47]Read from MH i2c: E2 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 17 00 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 17 00 BF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 90 [13:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:42:47]wFMCommunicate OK [13:42:47]CreateOFDProtocolMessage done [13:42:47]OFDSenderStorePacket 115661 [13:42:47]StoreOFDPacket docnum=115661 [13:42:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3C 01 00 00 C7 B3 34 01 05 0F 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 D0 B0 D1 81 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 56 70 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CD C3 01 00 35 04 06 00 25 15 AA 8C B2 7E 03 3C D1 8E E0 5A 6F 4A [13:42:47]CheckFolder [13:42:47]dirname=/storage/ofd_packets [13:42:47]CheckFolder done [13:42:47]ProducePacketName [13:42:47]name=ofd_packets/00115661 [13:42:47]NVStorageSaveData ofd_packets/00115661 [13:42:47]File name is /storage/ofd_packets/00115661 [13:42:47]Write 346 bytes [13:42:47]NVStorageSaveData done [13:42:47]OFDSenderStorePacket done [13:42:47]KKMCreateOFDPacket done [13:42:47]NVStorageSaveData kkm_last_timestamp [13:42:47]File name is /storage/kkm_last_timestamp [13:42:47]Write 4 bytes [13:42:47]NVStorageSaveData done [13:42:47]ExternCall_PrintAddStr [13:42:47]wPrintStart [13:42:47]Write to MH i2c: 01 00 00 C0 09 C9 [13:42:47]Write i2c OK [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: 01 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: 01 07 00 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: 01 07 00 C0 09 00 00 00 00 00 FF 0F DE [13:42:47]RasterBufferAndPrint [13:42:47]line Счет N : (3)344020 [13:42:47]line ИНН: 02508201610067 [13:42:47]line Контрольно-Кассовый Чек [13:42:47]line ПРОДАЖА [13:42:47]line Товар: 4870002328602 [13:42:47]line Напиток DADA ап,лемонграс ПЭТ 1л [13:42:47]line 1.000 * 165.00 [13:42:47]line = 165.00 [13:42:47]line НДС 12% НСП 1% [13:42:47]line > о реализуемом товаре [13:42:47]line ИТОГО: 165.00 [13:42:47]line НСП 1% : 1.46 [13:42:47]line НДС 12% : 17.52 [13:42:47]line Наличными: 165.00 [13:42:47]line Безнал.: 0.00 [13:42:47]line Место: АЗС № 90 "Партнер Нефть" [13:42:47]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:42:47]line СНО: Общий режим [13:42:47]line Чек 144 23.09.2024 13:42 [13:42:47]line Смена: 472 ФФД: 1.0 [13:42:47]line ЗНМ: 0300000120 [13:42:47]line РНМ: 0000000000091831 [13:42:47]line Версия ККМ: 001 [13:42:47]line ФМ: 0000000000871830 [13:42:47]line ФД: 115661 [13:42:47]line ФПД: 40774985888382 [13:42:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T134246&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115661&fm=40774985888382&tin=02508201610067®Number=0000000000091831&sum=16500 [13:42:47]OFD Sender: Processing packet 115661 [packets to send 482, broken 481] [13:42:47]ProducePacketName [13:42:47]name=ofd_packets/00115661 [13:42:47]OFD Sender: To server: pG, [13:42:47]CommunicateWithHost lk.salyk.kg:30040 [13:42:47]ConnectInit lk.salyk.kg [13:42:47]line 0 [13:42:47]written 0, free lines is 4095 [13:42:48]Connected sock=10 [13:42: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 38 33 30 3C 01 00 00 C7 B3 34 01 05 0F 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 D0 B0 D1 81 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 56 70 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CD C3 01 00 35 04 06 00 25 15 AA 8C B2 7E 03 3C D1 8E E0 5A 6F 4A [13:42:48]Write to MH i2c: 01 00 00 E8 09 F1 [13:42:48]Write i2c OK [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: 01 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: 01 07 00 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: 01 07 00 E8 09 00 00 00 00 00 6C 0C 70 [13:42:48]RasterBufferAndPrint [13:42:48]line [13:42:48]line [13:42:48]line [13:42:48]line [13:42:48]line [13:42:48]written 0, free lines is 3185 [13:42:48]MH_Cut [13:42:48]Write to MH i2c: D1 01 00 EF 09 01 CA [13:42:48]Write i2c OK [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: D1 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: D1 01 00 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: D1 01 00 EF 09 00 C9 [13:42:48]Write to MH i2c: 01 00 00 F0 09 F9 [13:42:48]Write i2c OK [13:42:48]MH_I2C_Read... [13:42:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C2 EC 47 00 E4 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CD C3 01 00 F4 03 04 00 98 15 F1 66 B6 04 01 00 00 D0 8B 0C 37 B6 E4 10 51 [13:42:48]CommunicateWithHost err = 0 [13:42:48]CheckOFDResponse [13:42:48]1017 (14) - 77093643461234 [13:42:48]1041 (16) - 0000000000871830 [13:42:48]1040 (4) - 115661 [13:42:48]1012 (4) - 23.09.2024 07:15 [13:42:48]1206 (1) - 0 [13:42:48]OFD Sender: Remove packet 115661 [13:42:48]ProducePacketName [13:42:48]name=ofd_packets/00115661 [13:42:48]NVStorageDeleteData [13:42:48]OFD Sender: No OFD packet to send [13:42:49]*** Cut start [13:42:49]*** Partial cut [13:42:49]*** CUTSNS_PIN = 1 [13:42:49]*** CUTSNS_PIN = 0 [13:42:49]*** Brake cut motor [13:42:50]Read from MH i2c: 01 [13:42:50]MH_I2C_Read... [13:42:50]*** Stop cut motor [13:42:50]*** Cut end [13:42:50]Read from MH i2c: 01 07 00 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: 01 07 00 F0 09 00 00 00 00 00 FF 0F 0E [13:42:50]process_action close_receipt done [13:42:50]requested_data is exist [13:42:50]produce_requested_data [13:42:50]requested_item fm.sn is exist - process it [13:42:50]wFMCommunicate request_size=4 [13:42:50]MH_SAM_APDU [13:42:50]CAPDU: 80 11 00 00 [13:42:50]Write to MH i2c: E2 08 00 F1 09 80 11 00 00 00 00 00 00 74 [13:42:50]Write i2c OK [13:42:50]MH_I2C_Read... [13:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:50]Read from MH i2c: E2 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 17 00 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 17 00 F1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C2 [13:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:42:50]wFMCommunicate OK [13:42:50]requested_item fd.num is exist - process it [13:42:50]SAM_PROTO_GetFieldsCounters [13:42:50]wFMCommunicate request_size=4 [13:42:50]MH_SAM_APDU [13:42:50]CAPDU: 80 13 00 00 [13:42:50]Write to MH i2c: E2 08 00 F2 09 80 13 00 00 00 00 00 00 77 [13:42:50]Write i2c OK [13:42:50]MH_I2C_Read... [13:42:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:50]Read from MH i2c: E2 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 62 00 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 62 00 F2 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CD C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [13:42: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CD C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:50]wFMCommunicate OK [13:42:50]SAM_PROTO_GetFieldsCounters done [13:42:50]requested_item shift.num is exist - process it [13:42:50]requested_item shift.opened is exist - process it [13:42:50]req_shift_opened [13:42:50]FM_GetShiftState [13:42:50]SAM_PROTO_GetShiftState [13:42:50]wFMCommunicate request_size=4 [13:42:50]MH_SAM_APDU [13:42:50]CAPDU: 80 13 01 00 [13:42:50]Write to MH i2c: E2 08 00 F3 09 80 13 01 00 00 00 00 00 79 [13:42:50]Write i2c OK [13:42:50]MH_I2C_Read... [13:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:50]Read from MH i2c: E2 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 0E 00 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 0E 00 F3 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 BA [13:42:50]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:42:50]wFMCommunicate OK [13:42:50]SAM_PROTO_GetShiftState done [13:42:50]FM_GetShiftState done [13:42:50]req_shift_opened done [13:42:50]requested_item shift.open_date is exist - process it [13:42:50]req_shift_open_date [13:42:50]req_shift_open_date done [13:42:50]produce_requested_data done [13:42:50]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115661,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:42:50]process_action_free close_receipt [13:42:50]json_value_free [13:42:50]json_value_free done [13:42:50]process_json_proto returns [13:42:50]Send response to host [13:42:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115661,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:42:50]free response buf [13:42:50]execute_script done [13:42:50]execute_script returns [13:42:50]free content buf [13:42:50]Sock 7.Close socket [13:42:50]Sock 7.Thread stoped [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:36]accept exits with 9 [13:43:36]New connection [13:43:36]New thread 3067022692 created [13:43:36]Thread 3066879332 joined [13:43:36]Waiting for new connection... [13:43:36] Sock 9.Parse request [13:43:36]Sock 9.Check first char [13:43:36]Sock 9.First char is OK [13:43:36]request: POST /json_proto HTTP/1.0 [13:43:36]Method: POST [13:43:36]URL: /json_proto [13:43:36]Method is POST - this is cgi request [13:43:36]url: /json_proto [13:43:36]query_string will be loaded in cgi processing [13:43:36]execute_cgi json_proto POST (null) [13:43:36]execute_cgi path=json_proto method=POST [13:43:36]POST find Content-Length [13:43:36]Host: 172.17.41.136:8080 [13:43:36]Content-Length: 660 [13:43:36]Content-Type: application/json [13:43:36] [13:43:36]POST finish read [13:43:36]Found Content-Length = 660 [13:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:36]execute_script... [13:43: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)24617695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:36]POST & json_proto [13:43:36]process_json_proto [13:43:36]json parsed OK: [13:43:36]protocol is kg_v1.0 [13:43:36]action value=close_receipt [13:43:36]process_action close_receipt [13:43:36]cmd_close_receipt [13:43:36]MH_GetDate [13:43:36]Write to MH i2c: F0 00 00 F4 09 EC [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: F0 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: F0 09 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: F0 09 00 F4 09 00 88 70 F1 66 1B D0 5A 64 ED [13:43:36]GetLastDocTimeStamp 1727098966 [13:43:36]current date 1727099016 [13:43:36]FM_GetShiftState [13:43:36]SAM_PROTO_GetShiftState [13:43:36]wFMCommunicate request_size=4 [13:43:36]MH_SAM_APDU [13:43:36]CAPDU: 80 13 01 00 [13:43:36]Write to MH i2c: E2 08 00 F5 09 80 13 01 00 00 00 00 00 7B [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:36]Read from MH i2c: E2 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 0E 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 0E 00 F5 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 BC [13:43:36]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:43:36]wFMCommunicate OK [13:43:36]SAM_PROTO_GetShiftState done [13:43:36]FM_GetShiftState done [13:43:36]opened in 1727052070 [13:43:36]opened+sec_in_day 1727138470 [13:43:36]quantity*price = 50034 [13:43:36]sum+1 = 50036 [13:43:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 145 23.09.2024 13:43 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115662 ФПД: 71517579385160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T134336&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115662&fm=71517579385160&tin=02508201610067®Number=0000000000091831&sum=50000 [13:43:37]StoreToDocumentArchive [13:43:37]shift 472 fd 115662 [13:43:37]save to /storage/0472/doc_00115662 [13:43:37]save last doc name /storage/0472/doc_00115662 to /storage/kkm_last_doc_name [13:43:37]save OK [13:43:37]Clear old archive folders... [13:43:37]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:43:37]tlvbuf is 017A0E70 [13:43:37]SAM_PROTO_ClearQueue [13:43:37]wFMCommunicate request_size=4 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 09 00 00 [13:43:37]Write to MH i2c: E2 08 00 02 0A 80 09 00 00 00 00 00 00 7E [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 03 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 03 00 02 0A 00 90 00 80 [13:43:37]RAPDU: 90 00 [13:43:37]wFMCommunicate OK [13:43:37]SAM_PROTO_ClearQueue done [13:43:37]KKMCreateOFDPacket [13:43:37]OFDProtocolAddRootSTLVToBuf [13:43:37]FM_MakeSignedData [13:43:37]FM_MakeSignedData [13:43:37]SAM_PROTO_SignData [13:43:37]wFMCommunicate request_size=4 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 0D 01 02 [13:43:37]Write to MH i2c: E2 08 00 03 0A 80 0D 01 02 00 00 00 00 86 [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 03 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 03 00 03 0A 00 90 00 81 [13:43:37]RAPDU: 90 00 [13:43:37]wFMCommunicate OK [13:43:37]wFMCommunicate request_size=253 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 88 70 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CE C3 01 00 35 04 06 00 41 0B 7B EA 19 48 [13:43:37]Write to MH i2c: E2 00 01 04 0A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 88 70 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CE C3 01 00 35 04 06 00 41 0B 7B EA 19 48 00 00 FD [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 03 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 03 00 04 0A 00 90 00 82 [13:43:37]RAPDU: 90 00 [13:43:37]wFMCommunicate OK [13:43:37]wFMCommunicate request_size=4 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 0D 03 02 [13:43:37]Write to MH i2c: E2 08 00 05 0A 80 0D 03 02 00 00 00 00 8A [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 0B 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 0B 00 05 0A 00 01 B3 4B F7 E8 80 31 A6 90 00 C0 [13:43:37]RAPDU: 01 B3 4B F7 E8 80 31 A6 90 00 [13:43:37]wFMCommunicate OK [13:43:37]SAM_PROTO_SignData done [13:43:37]FM_MakeSignedData done [13:43:37]CreateOFDProtocolMessage [13:43:37]wFMCommunicate request_size=4 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 11 00 00 [13:43:37]Write to MH i2c: E2 08 00 06 0A 80 11 00 00 00 00 00 00 8A [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:38]Read from MH i2c: E2 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 17 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 17 00 06 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [13:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:43:38]wFMCommunicate OK [13:43:38]CreateOFDProtocolMessage done [13:43:38]OFDSenderStorePacket 115662 [13:43:38]StoreOFDPacket docnum=115662 [13:43:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 B1 07 00 01 B7 62 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 88 70 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CE C3 01 00 35 04 06 00 41 0B 7B EA 19 48 01 B3 4B F7 E8 80 31 A6 [13:43:38]CheckFolder [13:43:38]dirname=/storage/ofd_packets [13:43:38]CheckFolder done [13:43:38]ProducePacketName [13:43:38]name=ofd_packets/00115662 [13:43:38]NVStorageSaveData ofd_packets/00115662 [13:43:38]File name is /storage/ofd_packets/00115662 [13:43:38]Write 294 bytes [13:43:38]NVStorageSaveData done [13:43:38]OFDSenderStorePacket done [13:43:38]KKMCreateOFDPacket done [13:43:38]NVStorageSaveData kkm_last_timestamp [13:43:38]File name is /storage/kkm_last_timestamp [13:43:38]Write 4 bytes [13:43:38]NVStorageSaveData done [13:43:38]ExternCall_PrintAddStr [13:43:38]wPrintStart [13:43:38]Write to MH i2c: 01 00 00 07 0A 11 [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: 01 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: 01 07 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: 01 07 00 07 0A 00 00 00 00 00 FF 0F 26 [13:43:38]RasterBufferAndPrint [13:43:38]line Счет N : (1)24617695 [13:43:38]line ИНН: 02508201610067 [13:43:38]line Контрольно-Кассовый Чек [13:43:38]line ПРОДАЖА [13:43:38]line ТРК (МРК, ГНК) : 64 [13:43:38]line Товар: 2710124130 [13:43:38]line SU-92 [13:43:38]line 7.220 * 69.30 [13:43:38]line = 500.35 [13:43:38]line НДС 12% НСП 1% [13:43:38]line > о реализуемом товаре [13:43:38]line ОКРУГЛЕНИЕ: -0.35 [13:43:38]line ИТОГО: 500.00 [13:43:38]line Внесено: 500.00 [13:43:38]line СДАЧА: 0.00 [13:43:38]line НСП 1% : 4.43 [13:43:38]line НДС 12% : 53.13 [13:43:38]line Наличными: 500.00 [13:43:38]line Безнал.: 0.00 [13:43:38]line Место: АЗС № 90 "Партнер Нефть" [13:43:38]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:43:38]line СНО: Общий режим [13:43:38]line Чек 145 23.09.2024 13:43 [13:43:38]line Смена: 472 ФФД: 1.0 [13:43:38]line ЗНМ: 0300000120 [13:43:38]line РНМ: 0000000000091831 [13:43:38]line Версия ККМ: 001 [13:43:38]line ФМ: 0000000000871830 [13:43:38]line ФД: 115662 [13:43:38]line ФПД: 71517579385160 [13:43:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T134336&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115662&fm=71517579385160&tin=02508201610067®Number=0000000000091831&sum=50000 [13:43:38]OFD Sender: Processing packet 115662 [packets to send 482, broken 481] [13:43:38]ProducePacketName [13:43:38]name=ofd_packets/00115662 [13:43:38]OFD Sender: To server: pG, [13:43:38]CommunicateWithHost lk.salyk.kg:30040 [13:43:38]ConnectInit lk.salyk.kg [13:43:38]written 0, free lines is 4095 [13:43:38]Connected sock=10 [13:43: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 38 33 30 08 01 00 00 B1 07 00 01 B7 62 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 88 70 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CE C3 01 00 35 04 06 00 41 0B 7B EA 19 48 01 B3 4B F7 E8 80 31 A6 [13:43:38]Write to MH i2c: 01 00 00 31 0A 3B [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: 01 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: 01 07 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: 01 07 00 31 0A 00 00 00 00 00 72 0C C0 [13:43:38]RasterBufferAndPrint [13:43:38]line [13:43:38]line [13:43:38]line [13:43:38]line [13:43:38]line [13:43:38]written 0, free lines is 3189 [13:43:38]MH_Cut [13:43:38]Write to MH i2c: D1 01 00 38 0A 01 14 [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: D1 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: D1 01 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: D1 01 00 38 0A 00 13 [13:43:38]Write to MH i2c: 01 00 00 39 0A 43 [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E9 E5 47 00 95 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CE C3 01 00 F4 03 04 00 CB 15 F1 66 B6 04 01 00 00 4E A6 C1 7A 52 74 AC 89 [13:43:38]CommunicateWithHost err = 0 [13:43:38]CheckOFDResponse [13:43:38]1017 (14) - 77093643461234 [13:43:38]1041 (16) - 0000000000871830 [13:43:38]1040 (4) - 115662 [13:43:38]1012 (4) - 23.09.2024 07:16 [13:43:38]1206 (1) - 0 [13:43:38]OFD Sender: Remove packet 115662 [13:43:38]ProducePacketName [13:43:38]name=ofd_packets/00115662 [13:43:38]NVStorageDeleteData [13:43:39]OFD Sender: No OFD packet to send [13:43:40]*** Cut start [13:43:40]*** Partial cut [13:43:40]*** CUTSNS_PIN = 1 [13:43:40]*** CUTSNS_PIN = 0 [13:43:40]*** Brake cut motor [13:43:40]Read from MH i2c: 01 [13:43:40]MH_I2C_Read... [13:43:40]*** Stop cut motor [13:43:40]*** Cut end [13:43:40]Read from MH i2c: 01 07 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: 01 07 00 39 0A 00 00 00 00 00 FF 0F 58 [13:43:40]process_action close_receipt done [13:43:40]requested_data is exist [13:43:40]produce_requested_data [13:43:40]requested_item fm.sn is exist - process it [13:43:40]wFMCommunicate request_size=4 [13:43:40]MH_SAM_APDU [13:43:40]CAPDU: 80 11 00 00 [13:43:40]Write to MH i2c: E2 08 00 3A 0A 80 11 00 00 00 00 00 00 BE [13:43:40]Write i2c OK [13:43:40]MH_I2C_Read... [13:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:40]Read from MH i2c: E2 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 17 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 17 00 3A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0C [13:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:43:40]wFMCommunicate OK [13:43:40]requested_item fd.num is exist - process it [13:43:40]SAM_PROTO_GetFieldsCounters [13:43:40]wFMCommunicate request_size=4 [13:43:40]MH_SAM_APDU [13:43:40]CAPDU: 80 13 00 00 [13:43:40]Write to MH i2c: E2 08 00 3B 0A 80 13 00 00 00 00 00 00 C1 [13:43:40]Write i2c OK [13:43:40]MH_I2C_Read... [13:43:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:40]Read from MH i2c: E2 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 62 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 62 00 3B 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CE C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [13:43: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CE C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:40]wFMCommunicate OK [13:43:40]SAM_PROTO_GetFieldsCounters done [13:43:40]requested_item shift.num is exist - process it [13:43:40]requested_item shift.opened is exist - process it [13:43:40]req_shift_opened [13:43:40]FM_GetShiftState [13:43:40]SAM_PROTO_GetShiftState [13:43:40]wFMCommunicate request_size=4 [13:43:40]MH_SAM_APDU [13:43:40]CAPDU: 80 13 01 00 [13:43:40]Write to MH i2c: E2 08 00 3C 0A 80 13 01 00 00 00 00 00 C3 [13:43:40]Write i2c OK [13:43:40]MH_I2C_Read... [13:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:40]Read from MH i2c: E2 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 0E 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 0E 00 3C 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 04 [13:43:40]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:43:40]wFMCommunicate OK [13:43:40]SAM_PROTO_GetShiftState done [13:43:40]FM_GetShiftState done [13:43:40]req_shift_opened done [13:43:40]requested_item shift.open_date is exist - process it [13:43:40]req_shift_open_date [13:43:40]req_shift_open_date done [13:43:40]produce_requested_data done [13:43:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115662,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:43:40]process_action_free close_receipt [13:43:40]json_value_free [13:43:40]json_value_free done [13:43:40]process_json_proto returns [13:43:40]Send response to host [13:43:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115662,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:43:40]free response buf [13:43:40]execute_script done [13:43:40]execute_script returns [13:43:40]free content buf [13:43:40]Sock 9.Close socket [13:43:40]Sock 9.Thread stoped [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:27]accept exits with 7 [13:46:27]New connection [13:46:27]New thread 3066879332 created [13:46:27]Thread 3067022692 joined [13:46:27]Waiting for new connection... [13:46:27] Sock 7.Parse request [13:46:27]Sock 7.Check first char [13:46:27]Sock 7.First char is OK [13:46:27]request: POST /json_proto HTTP/1.0 [13:46:27]Method: POST [13:46:27]URL: /json_proto [13:46:27]Method is POST - this is cgi request [13:46:27]url: /json_proto [13:46:27]query_string will be loaded in cgi processing [13:46:27]execute_cgi json_proto POST (null) [13:46:27]execute_cgi path=json_proto method=POST [13:46:27]POST find Content-Length [13:46:27]Host: 172.17.41.136:8080 [13:46:27]Content-Length: 679 [13:46:27]Content-Type: application/json [13:46:27] [13:46:27]POST finish read [13:46:27]Found Content-Length = 679 [13:46:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:27]execute_script... [13: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)24617696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:27]POST & json_proto [13:46:27]process_json_proto [13:46:27]json parsed OK: [13:46:27]protocol is kg_v1.0 [13:46:27]action value=close_receipt [13:46:27]process_action close_receipt [13:46:27]cmd_close_receipt [13:46:27]MH_GetDate [13:46:27]Write to MH i2c: F0 00 00 3D 0A 36 [13:46:27]Write i2c OK [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: F0 [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: F0 09 00 [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: F0 09 00 3D 0A 00 33 71 F1 66 1B D0 5A 64 E3 [13:46:27]GetLastDocTimeStamp 1727099016 [13:46:27]current date 1727099187 [13:46:27]FM_GetShiftState [13:46:27]SAM_PROTO_GetShiftState [13:46:27]wFMCommunicate request_size=4 [13:46:27]MH_SAM_APDU [13:46:27]CAPDU: 80 13 01 00 [13:46:27]Write to MH i2c: E2 08 00 3E 0A 80 13 01 00 00 00 00 00 C5 [13:46:27]Write i2c OK [13:46:27]MH_I2C_Read... [13:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:27]Read from MH i2c: E2 [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: E2 0E 00 [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: E2 0E 00 3E 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 06 [13:46:27]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:46:27]wFMCommunicate OK [13:46:27]SAM_PROTO_GetShiftState done [13:46:27]FM_GetShiftState done [13:46:27]opened in 1727052070 [13:46:27]opened+sec_in_day 1727138470 [13:46:27]quantity*price = 60027 [13:46:27]sum+1 = 60029 [13:46:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 146 23.09.2024 13:46 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115663 ФПД: 184007638806632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T134627&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115663&fm=184007638806632&tin=02508201610067®Number=0000000000091831&sum=60000 [13:46:28]StoreToDocumentArchive [13:46:28]shift 472 fd 115663 [13:46:28]save to /storage/0472/doc_00115663 [13:46:28]save last doc name /storage/0472/doc_00115663 to /storage/kkm_last_doc_name [13:46:28]save OK [13:46:28]Clear old archive folders... [13:46:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:28]tlvbuf is 017CBF40 [13:46:28]SAM_PROTO_ClearQueue [13:46:28]wFMCommunicate request_size=4 [13:46:28]MH_SAM_APDU [13:46:28]CAPDU: 80 09 00 00 [13:46:28]Write to MH i2c: E2 08 00 4B 0A 80 09 00 00 00 00 00 00 C7 [13:46:28]Write i2c OK [13:46:28]MH_I2C_Read... [13:46:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:28]Read from MH i2c: E2 [13:46:28]MH_I2C_Read... [13:46:28]Read from MH i2c: E2 03 00 [13:46:28]MH_I2C_Read... [13:46:28]Read from MH i2c: E2 03 00 4B 0A 00 90 00 C9 [13:46:28]RAPDU: 90 00 [13:46:28]wFMCommunicate OK [13:46:28]SAM_PROTO_ClearQueue done [13:46:28]KKMCreateOFDPacket [13:46:28]OFDProtocolAddRootSTLVToBuf [13:46:28]FM_MakeSignedData [13:46:28]FM_MakeSignedData [13:46:28]SAM_PROTO_SignData [13:46:28]wFMCommunicate request_size=4 [13:46:28]MH_SAM_APDU [13:46:28]CAPDU: 80 0D 01 02 [13:46:28]Write to MH i2c: E2 08 00 4C 0A 80 0D 01 02 00 00 00 00 CF [13:46:28]Write i2c OK [13:46:28]MH_I2C_Read... [13:46:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:28]Read from MH i2c: E2 [13:46:28]MH_I2C_Read... [13:46:28]Read from MH i2c: E2 03 00 [13:46:28]MH_I2C_Read... [13:46:28]Read from MH i2c: E2 03 00 4C 0A 00 90 00 CA [13:46:28]RAPDU: 90 00 [13:46:28]wFMCommunicate OK [13:46:28]wFMCommunicate request_size=255 [13:46:28]MH_SAM_APDU [13: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 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 E7 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 92 00 00 00 F4 03 04 00 33 71 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CF C3 01 00 35 04 06 00 A7 [13:46:28]Write to MH i2c: E2 02 01 4D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 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 E7 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 92 00 00 00 F4 03 04 00 33 71 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CF C3 01 00 35 04 06 00 A7 00 00 54 [13:46:28]Write i2c OK [13:46:28]MH_I2C_Read... [13:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:29]Read from MH i2c: E2 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: E2 03 00 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: E2 03 00 4D 0A 00 90 00 CB [13:46:29]RAPDU: 90 00 [13:46:29]wFMCommunicate OK [13:46:29]wFMCommunicate request_size=10 [13:46:29]MH_SAM_APDU [13:46:29]CAPDU: 80 0D 02 02 05 5A 9D F2 70 68 [13:46:29]Write to MH i2c: E2 0D 00 4E 0A 80 0D 02 02 05 00 5A 9D F2 70 68 00 00 9D [13:46:29]Write i2c OK [13:46:29]MH_I2C_Read... [13:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:29]Read from MH i2c: E2 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: E2 03 00 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: E2 03 00 4E 0A 00 90 00 CC [13:46:29]RAPDU: 90 00 [13:46:29]wFMCommunicate OK [13:46:29]wFMCommunicate request_size=4 [13:46:29]MH_SAM_APDU [13:46:29]CAPDU: 80 0D 03 02 [13:46:29]Write to MH i2c: E2 08 00 4F 0A 80 0D 03 02 00 00 00 00 D4 [13:46:29]Write i2c OK [13:46:29]MH_I2C_Read... [13:46:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:29]Read from MH i2c: E2 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: E2 0B 00 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: E2 0B 00 4F 0A 00 CF DE C4 84 DF 12 F1 50 90 00 FC [13:46:29]RAPDU: CF DE C4 84 DF 12 F1 50 90 00 [13:46:29]wFMCommunicate OK [13:46:29]SAM_PROTO_SignData done [13:46:29]FM_MakeSignedData done [13:46:29]CreateOFDProtocolMessage [13:46:29]wFMCommunicate request_size=4 [13:46:29]MH_SAM_APDU [13:46:29]CAPDU: 80 11 00 00 [13:46:29]Write to MH i2c: E2 08 00 50 0A 80 11 00 00 00 00 00 00 D4 [13:46:29]Write i2c OK [13:46:29]MH_I2C_Read... [13:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:29]Read from MH i2c: E2 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: E2 17 00 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: E2 17 00 50 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 22 [13:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:46:29]wFMCommunicate OK [13:46:29]CreateOFDProtocolMessage done [13:46:29]OFDSenderStorePacket 115663 [13:46:29]StoreOFDPacket docnum=115663 [13:46:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 62 FB 07 01 F5 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 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 E7 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 92 00 00 00 F4 03 04 00 33 71 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CF C3 01 00 35 04 06 00 A7 5A 9D F2 70 68 CF DE C4 84 DF 12 F1 50 [13:46:29]CheckFolder [13:46:29]dirname=/storage/ofd_packets [13:46:29]CheckFolder done [13:46:29]ProducePacketName [13:46:29]name=ofd_packets/00115663 [13:46:29]NVStorageSaveData ofd_packets/00115663 [13:46:29]File name is /storage/ofd_packets/00115663 [13:46:29]Write 301 bytes [13:46:29]NVStorageSaveData done [13:46:29]OFDSenderStorePacket done [13:46:29]KKMCreateOFDPacket done [13:46:29]NVStorageSaveData kkm_last_timestamp [13:46:29]File name is /storage/kkm_last_timestamp [13:46:29]Write 4 bytes [13:46:29]NVStorageSaveData done [13:46:29]ExternCall_PrintAddStr [13:46:29]wPrintStart [13:46:29]Write to MH i2c: 01 00 00 51 0A 5B [13:46:29]OFD Sender: Processing packet 115663 [packets to send 482, broken 481] [13:46:29]ProducePacketName [13:46:29]name=ofd_packets/00115663 [13:46:29]OFD Sender: To server: pG, [13:46:29]CommunicateWithHost lk.salyk.kg:30040 [13:46:29]ConnectInit lk.salyk.kg [13:46:29]Write i2c OK [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: 01 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: 01 07 00 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: 01 07 00 51 0A 00 00 00 00 00 FF 0F 70 [13:46:29]RasterBufferAndPrint [13:46:29]line Счет N : (1)24617696 [13:46:29]line ИНН: 02508201610067 [13:46:29]line Контрольно-Кассовый Чек [13:46:29]line ПРОДАЖА [13:46:29]line ТРК (МРК, ГНК) : 52 [13:46:29]line Товар: 2710124500 [13:46:29]line Аи-95-К-5 [13:46:29]line 8.090 * 74.20 [13:46:29]line = 600.28 [13:46:29]line НДС 12% НСП 1% [13:46:29]line > о реализуемом товаре [13:46:29]line ОКРУГЛЕНИЕ: -0.28 [13:46:29]line ИТОГО: 600.00 [13:46:29]line Внесено: 600.00 [13:46:29]line СДАЧА: 0.00 [13:46:29]line НСП 1% : 5.31 [13:46:29]line НДС 12% : 63.75 [13:46:29]line Наличными: 600.00 [13:46:29]line Безнал.: 0.00 [13:46:29]line Место: АЗС № 90 "Партнер Нефть" [13:46:29]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:46:29]line СНО: Общий режим [13:46:29]line Чек 146 23.09.2024 13:46 [13:46:29]line Смена: 472 ФФД: 1.0 [13:46:29]line ЗНМ: 0300000120 [13:46:29]line РНМ: 0000000000091831 [13:46:29]line Версия ККМ: 001 [13:46:29]line ФМ: 0000000000871830 [13:46:29]line ФД: 115663 [13:46:29]line ФПД: 184007638806632 [13:46:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T134627&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115663&fm=184007638806632&tin=02508201610067®Number=0000000000091831&sum=60000 [13:46:29]written 0, free lines is 4095 [13:46:29]Connected sock=10 [13: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 38 33 30 0F 01 00 00 62 FB 07 01 F5 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 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 E7 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 92 00 00 00 F4 03 04 00 33 71 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CF C3 01 00 35 04 06 00 A7 5A 9D F2 70 68 CF DE C4 84 DF 12 F1 50 [13:46:29]Write to MH i2c: 01 00 00 7B 0A 85 [13:46:29]Write i2c OK [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: 01 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: 01 07 00 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: 01 07 00 7B 0A 00 00 00 00 00 70 0C 08 [13:46:29]RasterBufferAndPrint [13:46:29]line [13:46:29]line [13:46:29]line [13:46:29]line [13:46:29]line [13:46:29]written 0, free lines is 3188 [13:46:29]MH_Cut [13:46:29]Write to MH i2c: D1 01 00 82 0A 01 5E [13:46:29]Write i2c OK [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: D1 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: D1 01 00 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: D1 01 00 82 0A 00 5D [13:46:29]Write to MH i2c: 01 00 00 83 0A 8D [13:46:29]Write i2c OK [13:46:29]MH_I2C_Read... [13:46:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 63 CF 47 00 98 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 38 33 30 10 04 04 00 CF C3 01 00 F4 03 04 00 76 16 F1 66 B6 04 01 00 00 20 00 AE 35 79 85 06 C7 [13:46:29]CommunicateWithHost err = 0 [13:46:29]CheckOFDResponse [13:46:29]1017 (14) - 77093643461234 [13:46:29]1041 (16) - 0000000000871830 [13:46:29]1040 (4) - 115663 [13:46:29]1012 (4) - 23.09.2024 07:19 [13:46:29]1206 (1) - 0 [13:46:29]OFD Sender: Remove packet 115663 [13:46:29]ProducePacketName [13:46:29]name=ofd_packets/00115663 [13:46:29]NVStorageDeleteData [13:46:30]OFD Sender: No OFD packet to send [13:46:31]*** Cut start [13:46:31]*** Partial cut [13:46:31]*** CUTSNS_PIN = 1 [13:46:31]*** CUTSNS_PIN = 0 [13:46:31]*** Brake cut motor [13:46:31]Read from MH i2c: 01 [13:46:31]MH_I2C_Read... [13:46:31]*** Stop cut motor [13:46:31]*** Cut end [13:46:31]Read from MH i2c: 01 07 00 [13:46:31]MH_I2C_Read... [13:46:31]Read from MH i2c: 01 07 00 83 0A 00 00 00 00 00 FF 0F A2 [13:46:31]process_action close_receipt done [13:46:31]requested_data is exist [13:46:31]produce_requested_data [13:46:31]requested_item fm.sn is exist - process it [13:46:31]wFMCommunicate request_size=4 [13:46:31]MH_SAM_APDU [13:46:31]CAPDU: 80 11 00 00 [13:46:31]Write to MH i2c: E2 08 00 84 0A 80 11 00 00 00 00 00 00 08 [13:46:31]Write i2c OK [13:46:31]MH_I2C_Read... [13:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:31]Read from MH i2c: E2 [13:46:31]MH_I2C_Read... [13:46:31]Read from MH i2c: E2 17 00 [13:46:31]MH_I2C_Read... [13:46:31]Read from MH i2c: E2 17 00 84 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 56 [13:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:46:31]wFMCommunicate OK [13:46:31]requested_item fd.num is exist - process it [13:46:31]SAM_PROTO_GetFieldsCounters [13:46:31]wFMCommunicate request_size=4 [13:46:31]MH_SAM_APDU [13:46:31]CAPDU: 80 13 00 00 [13:46:31]Write to MH i2c: E2 08 00 85 0A 80 13 00 00 00 00 00 00 0B [13:46:31]Write i2c OK [13:46:31]MH_I2C_Read... [13:46:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:31]Read from MH i2c: E2 [13:46:31]MH_I2C_Read... [13:46:31]Read from MH i2c: E2 62 00 [13:46:31]MH_I2C_Read... [13:46:31]Read from MH i2c: E2 62 00 85 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CF C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [13: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CF C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:46:31]wFMCommunicate OK [13:46:31]SAM_PROTO_GetFieldsCounters done [13:46:31]requested_item shift.num is exist - process it [13:46:31]requested_item shift.opened is exist - process it [13:46:31]req_shift_opened [13:46:31]FM_GetShiftState [13:46:31]SAM_PROTO_GetShiftState [13:46:31]wFMCommunicate request_size=4 [13:46:31]MH_SAM_APDU [13:46:31]CAPDU: 80 13 01 00 [13:46:31]Write to MH i2c: E2 08 00 86 0A 80 13 01 00 00 00 00 00 0D [13:46:31]Write i2c OK [13:46:31]MH_I2C_Read... [13:46:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:31]Read from MH i2c: E2 [13:46:31]MH_I2C_Read... [13:46:31]Read from MH i2c: E2 0E 00 [13:46:31]MH_I2C_Read... [13:46:31]Read from MH i2c: E2 0E 00 86 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 4E [13:46:31]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:46:31]wFMCommunicate OK [13:46:31]SAM_PROTO_GetShiftState done [13:46:31]FM_GetShiftState done [13:46:31]req_shift_opened done [13:46:31]requested_item shift.open_date is exist - process it [13:46:31]req_shift_open_date [13:46:31]req_shift_open_date done [13:46:31]produce_requested_data done [13:46:31]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115663,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:46:31]process_action_free close_receipt [13:46:31]json_value_free [13:46:31]json_value_free done [13:46:31]process_json_proto returns [13:46:31]Send response to host [13:46:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115663,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:46:31]free response buf [13:46:31]execute_script done [13:46:31]execute_script returns [13:46:31]free content buf [13:46:31]Sock 7.Close socket [13:46:31]Sock 7.Thread stoped [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:55]accept exits with 9 [13:52:55]New connection [13:52:55]New thread 3067022692 created [13:52:55]Thread 3066879332 joined [13:52:55]Waiting for new connection... [13:52:55] Sock 9.Parse request [13:52:55]Sock 9.Check first char [13:52:55]Sock 9.First char is OK [13:52:55]request: POST /json_proto HTTP/1.0 [13:52:55]Method: POST [13:52:55]URL: /json_proto [13:52:55]Method is POST - this is cgi request [13:52:55]url: /json_proto [13:52:55]query_string will be loaded in cgi processing [13:52:55]execute_cgi json_proto POST (null) [13:52:55]execute_cgi path=json_proto method=POST [13:52:55]POST find Content-Length [13:52:55]Host: 172.17.41.136:8080 [13:52:55]Content-Length: 660 [13:52:55]Content-Type: application/json [13:52:55] [13:52:55]POST finish read [13:52:55]Found Content-Length = 660 [13:52:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 8.660, "sum" : 600.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:55]execute_script... [13:52:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 8.660, "sum" : 600.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:55]POST & json_proto [13:52:55]process_json_proto [13:52:55]json parsed OK: [13:52:55]protocol is kg_v1.0 [13:52:55]action value=close_receipt [13:52:55]process_action close_receipt [13:52:55]cmd_close_receipt [13:52:55]MH_GetDate [13:52:55]Write to MH i2c: F0 00 00 87 0A 80 [13:52:55]Write i2c OK [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: F0 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: F0 09 00 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: F0 09 00 87 0A 00 B7 72 F1 66 1B D0 5A 64 B2 [13:52:55]GetLastDocTimeStamp 1727099187 [13:52:55]current date 1727099575 [13:52:55]FM_GetShiftState [13:52:55]SAM_PROTO_GetShiftState [13:52:55]wFMCommunicate request_size=4 [13:52:55]MH_SAM_APDU [13:52:55]CAPDU: 80 13 01 00 [13:52:55]Write to MH i2c: E2 08 00 88 0A 80 13 01 00 00 00 00 00 0F [13:52:55]Write i2c OK [13:52:55]MH_I2C_Read... [13:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:55]Read from MH i2c: E2 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: E2 0E 00 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: E2 0E 00 88 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 50 [13:52:55]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:52:55]wFMCommunicate OK [13:52:55]SAM_PROTO_GetShiftState done [13:52:55]FM_GetShiftState done [13:52:55]opened in 1727052070 [13:52:55]opened+sec_in_day 1727138470 [13:52:55]quantity*price = 60013 [13:52:55]sum+1 = 60015 [13:52:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 147 23.09.2024 13:52 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115664 ФПД: 177403010432139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T135255&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115664&fm=177403010432139&tin=02508201610067®Number=0000000000091831&sum=60000 [13:52:56]StoreToDocumentArchive [13:52:56]shift 472 fd 115664 [13:52:56]save to /storage/0472/doc_00115664 [13:52:56]save last doc name /storage/0472/doc_00115664 to /storage/kkm_last_doc_name [13:52:56]save OK [13:52:56]Clear old archive folders... [13:52:56]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:52:56]tlvbuf is 017A1AA0 [13:52:56]SAM_PROTO_ClearQueue [13:52:56]wFMCommunicate request_size=4 [13:52:56]MH_SAM_APDU [13:52:56]CAPDU: 80 09 00 00 [13:52:56]Write to MH i2c: E2 08 00 95 0A 80 09 00 00 00 00 00 00 11 [13:52:56]Write i2c OK [13:52:56]MH_I2C_Read... [13:52:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:56]Read from MH i2c: E2 [13:52:56]MH_I2C_Read... [13:52:56]Read from MH i2c: E2 03 00 [13:52:56]MH_I2C_Read... [13:52:56]Read from MH i2c: E2 03 00 95 0A 00 90 00 13 [13:52:56]RAPDU: 90 00 [13:52:56]wFMCommunicate OK [13:52:56]SAM_PROTO_ClearQueue done [13:52:56]KKMCreateOFDPacket [13:52:56]OFDProtocolAddRootSTLVToBuf [13:52:56]FM_MakeSignedData [13:52:56]FM_MakeSignedData [13:52:56]SAM_PROTO_SignData [13:52:56]wFMCommunicate request_size=4 [13:52:56]MH_SAM_APDU [13:52:56]CAPDU: 80 0D 01 02 [13:52:56]Write to MH i2c: E2 08 00 96 0A 80 0D 01 02 00 00 00 00 19 [13:52:56]Write i2c OK [13:52:56]MH_I2C_Read... [13:52:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:56]Read from MH i2c: E2 [13:52:56]MH_I2C_Read... [13:52:56]Read from MH i2c: E2 03 00 [13:52:56]MH_I2C_Read... [13:52:56]Read from MH i2c: E2 03 00 96 0A 00 90 00 14 [13:52:56]RAPDU: 90 00 [13:52:56]wFMCommunicate OK [13:52:56]wFMCommunicate request_size=253 [13:52:56]MH_SAM_APDU [13:52:56]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 21 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 6E 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 93 00 00 00 F4 03 04 00 B7 72 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D0 C3 01 00 35 04 06 00 A1 58 DB 6B 3C 8B [13:52:56]Write to MH i2c: E2 00 01 97 0A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 21 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 6E 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 93 00 00 00 F4 03 04 00 B7 72 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D0 C3 01 00 35 04 06 00 A1 58 DB 6B 3C 8B 00 00 6F [13:52:56]Write i2c OK [13:52:56]MH_I2C_Read... [13:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:56]Read from MH i2c: E2 [13:52:56]MH_I2C_Read... [13:52:56]Read from MH i2c: E2 03 00 [13:52:56]MH_I2C_Read... [13:52:56]Read from MH i2c: E2 03 00 97 0A 00 90 00 15 [13:52:56]RAPDU: 90 00 [13:52:56]wFMCommunicate OK [13:52:56]wFMCommunicate request_size=4 [13:52:56]MH_SAM_APDU [13:52:56]CAPDU: 80 0D 03 02 [13:52:56]Write to MH i2c: E2 08 00 98 0A 80 0D 03 02 00 00 00 00 1D [13:52:56]Write i2c OK [13:52:56]MH_I2C_Read... [13:52:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:57]Read from MH i2c: E2 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: E2 0B 00 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: E2 0B 00 98 0A 00 89 DA 6C A6 6C 62 2D 51 90 00 DF [13:52:57]RAPDU: 89 DA 6C A6 6C 62 2D 51 90 00 [13:52:57]wFMCommunicate OK [13:52:57]SAM_PROTO_SignData done [13:52:57]FM_MakeSignedData done [13:52:57]CreateOFDProtocolMessage [13:52:57]wFMCommunicate request_size=4 [13:52:57]MH_SAM_APDU [13:52:57]CAPDU: 80 11 00 00 [13:52:57]Write to MH i2c: E2 08 00 99 0A 80 11 00 00 00 00 00 00 1D [13:52:57]Write i2c OK [13:52:57]MH_I2C_Read... [13:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:57]Read from MH i2c: E2 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: E2 17 00 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: E2 17 00 99 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6B [13:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:52:57]wFMCommunicate OK [13:52:57]CreateOFDProtocolMessage done [13:52:57]OFDSenderStorePacket 115664 [13:52:57]StoreOFDPacket docnum=115664 [13:52:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 B1 B9 00 01 10 8F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 21 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 6E 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 93 00 00 00 F4 03 04 00 B7 72 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D0 C3 01 00 35 04 06 00 A1 58 DB 6B 3C 8B 89 DA 6C A6 6C 62 2D 51 [13:52:57]CheckFolder [13:52:57]dirname=/storage/ofd_packets [13:52:57]CheckFolder done [13:52:57]ProducePacketName [13:52:57]name=ofd_packets/00115664 [13:52:57]NVStorageSaveData ofd_packets/00115664 [13:52:57]File name is /storage/ofd_packets/00115664 [13:52:57]Write 294 bytes [13:52:57]NVStorageSaveData done [13:52:57]OFDSenderStorePacket done [13:52:57]KKMCreateOFDPacket done [13:52:57]NVStorageSaveData kkm_last_timestamp [13:52:57]File name is /storage/kkm_last_timestamp [13:52:57]Write 4 bytes [13:52:57]NVStorageSaveData done [13:52:57]ExternCall_PrintAddStr [13:52:57]wPrintStart [13:52:57]Write to MH i2c: 01 00 00 9A 0A A4 [13:52:57]Write i2c OK [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: 01 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: 01 07 00 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: 01 07 00 9A 0A 00 00 00 00 00 FF 0F B9 [13:52:57]RasterBufferAndPrint [13:52:57]line Счет N : (1)24617700 [13:52:57]line ИНН: 02508201610067 [13:52:57]line Контрольно-Кассовый Чек [13:52:57]line ПРОДАЖА [13:52:57]line ТРК (МРК, ГНК) : 54 [13:52:57]line Товар: 2710124130 [13:52:57]line SU-92 [13:52:57]line 8.660 * 69.30 [13:52:57]line = 600.14 [13:52:57]line НДС 12% НСП 1% [13:52:57]line > о реализуемом товаре [13:52:57]line ОКРУГЛЕНИЕ: -0.14 [13:52:57]line ИТОГО: 600.00 [13:52:57]line Внесено: 600.00 [13:52:57]line СДАЧА: 0.00 [13:52:57]line НСП 1% : 5.31 [13:52:57]line НДС 12% : 63.73 [13:52:57]line Наличными: 600.00 [13:52:57]line Безнал.: 0.00 [13:52:57]line Место: АЗС № 90 "Партнер Нефть" [13:52:57]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:52:57]line СНО: Общий режим [13:52:57]line Чек 147 23.09.2024 13:52 [13:52:57]line Смена: 472 ФФД: 1.0 [13:52:57]line ЗНМ: 0300000120 [13:52:57]line РНМ: 0000000000091831 [13:52:57]line Версия ККМ: 001 [13:52:57]line ФМ: 0000000000871830 [13:52:57]line ФД: 115664 [13:52:57]line ФПД: 177403010432139 [13:52:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T135255&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115664&fm=177403010432139&tin=02508201610067®Number=0000000000091831&sum=60000 [13:52:57]written 0, free lines is 4095 [13:52:57]OFD Sender: Processing packet 115664 [packets to send 482, broken 481] [13:52:57]ProducePacketName [13:52:57]name=ofd_packets/00115664 [13:52:57]OFD Sender: To server: pG, [13:52:57]CommunicateWithHost lk.salyk.kg:30040 [13:52:57]ConnectInit lk.salyk.kg [13:52:57]Connected sock=10 [13:52:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 B1 B9 00 01 10 8F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 21 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 6E 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 93 00 00 00 F4 03 04 00 B7 72 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D0 C3 01 00 35 04 06 00 A1 58 DB 6B 3C 8B 89 DA 6C A6 6C 62 2D 51 [13:52:57]Write to MH i2c: 01 00 00 C4 0A CE [13:52:57]Write i2c OK [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: 01 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: 01 07 00 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: 01 07 00 C4 0A 00 00 00 00 00 58 0C 39 [13:52:57]RasterBufferAndPrint [13:52:57]line [13:52:57]line [13:52:57]line [13:52:57]line [13:52:57]line [13:52:57]written 0, free lines is 3166 [13:52:57]MH_Cut [13:52:57]Write to MH i2c: D1 01 00 CB 0A 01 A7 [13:52:57]Write i2c OK [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: D1 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: D1 01 00 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: D1 01 00 CB 0A 00 A6 [13:52:57]Write to MH i2c: 01 00 00 CC 0A D6 [13:52:57]Write i2c OK [13:52:57]MH_I2C_Read... [13:52:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F6 00 47 00 D6 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 38 33 30 10 04 04 00 D0 C3 01 00 F4 03 04 00 FA 17 F1 66 B6 04 01 00 00 4B F4 25 7F 6A 27 65 81 [13:52:57]CommunicateWithHost err = 0 [13:52:57]CheckOFDResponse [13:52:57]1017 (14) - 77093643461234 [13:52:57]1041 (16) - 0000000000871830 [13:52:57]1040 (4) - 115664 [13:52:57]1012 (4) - 23.09.2024 07:25 [13:52:57]1206 (1) - 0 [13:52:57]OFD Sender: Remove packet 115664 [13:52:57]ProducePacketName [13:52:57]name=ofd_packets/00115664 [13:52:57]NVStorageDeleteData [13:52:58]OFD Sender: No OFD packet to send [13:52:58]*** Cut start [13:52:58]*** Partial cut [13:52:58]*** CUTSNS_PIN = 1 [13:52:58]*** CUTSNS_PIN = 0 [13:52:59]*** Brake cut motor [13:52:59]Read from MH i2c: 01 [13:52:59]MH_I2C_Read... [13:52:59]*** Stop cut motor [13:52:59]*** Cut end [13:52:59]Read from MH i2c: 01 07 00 [13:52:59]MH_I2C_Read... [13:52:59]Read from MH i2c: 01 07 00 CC 0A 00 00 00 00 00 FF 0F EB [13:52:59]process_action close_receipt done [13:52:59]requested_data is exist [13:52:59]produce_requested_data [13:52:59]requested_item fm.sn is exist - process it [13:52:59]wFMCommunicate request_size=4 [13:52:59]MH_SAM_APDU [13:52:59]CAPDU: 80 11 00 00 [13:52:59]Write to MH i2c: E2 08 00 CD 0A 80 11 00 00 00 00 00 00 51 [13:52:59]Write i2c OK [13:52:59]MH_I2C_Read... [13:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:59]Read from MH i2c: E2 [13:52:59]MH_I2C_Read... [13:52:59]Read from MH i2c: E2 17 00 [13:52:59]MH_I2C_Read... [13:52:59]Read from MH i2c: E2 17 00 CD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9F [13:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:52:59]wFMCommunicate OK [13:52:59]requested_item fd.num is exist - process it [13:52:59]SAM_PROTO_GetFieldsCounters [13:52:59]wFMCommunicate request_size=4 [13:52:59]MH_SAM_APDU [13:52:59]CAPDU: 80 13 00 00 [13:52:59]Write to MH i2c: E2 08 00 CE 0A 80 13 00 00 00 00 00 00 54 [13:52:59]Write i2c OK [13:52:59]MH_I2C_Read... [13:52:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:59]Read from MH i2c: E2 [13:52:59]MH_I2C_Read... [13:52:59]Read from MH i2c: E2 62 00 [13:52:59]MH_I2C_Read... [13:52:59]Read from MH i2c: E2 62 00 CE 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D0 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [13:52:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D0 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:59]wFMCommunicate OK [13:52:59]SAM_PROTO_GetFieldsCounters done [13:52:59]requested_item shift.num is exist - process it [13:52:59]requested_item shift.opened is exist - process it [13:52:59]req_shift_opened [13:52:59]FM_GetShiftState [13:52:59]SAM_PROTO_GetShiftState [13:52:59]wFMCommunicate request_size=4 [13:52:59]MH_SAM_APDU [13:52:59]CAPDU: 80 13 01 00 [13:52:59]Write to MH i2c: E2 08 00 CF 0A 80 13 01 00 00 00 00 00 56 [13:52:59]Write i2c OK [13:52:59]MH_I2C_Read... [13:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:59]Read from MH i2c: E2 [13:52:59]MH_I2C_Read... [13:52:59]Read from MH i2c: E2 0E 00 [13:52:59]MH_I2C_Read... [13:52:59]Read from MH i2c: E2 0E 00 CF 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 97 [13:52:59]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:52:59]wFMCommunicate OK [13:52:59]SAM_PROTO_GetShiftState done [13:52:59]FM_GetShiftState done [13:52:59]req_shift_opened done [13:52:59]requested_item shift.open_date is exist - process it [13:52:59]req_shift_open_date [13:52:59]req_shift_open_date done [13:52:59]produce_requested_data done [13:52:59]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115664,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:52:59]process_action_free close_receipt [13:52:59]json_value_free [13:52:59]json_value_free done [13:52:59]process_json_proto returns [13:52:59]Send response to host [13:52:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115664,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:52:59]free response buf [13:52:59]execute_script done [13:52:59]execute_script returns [13:52:59]free content buf [13:52:59]Sock 9.Close socket [13:52:59]Sock 9.Thread stoped [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:33]accept exits with 7 [13:53:33]New connection [13:53:33]New thread 3066879332 created [13:53:33]Thread 3067022692 joined [13:53:33]Waiting for new connection... [13:53:33] Sock 7.Parse request [13:53:33]Sock 7.Check first char [13:53:33]Sock 7.First char is OK [13:53:33]request: POST /json_proto HTTP/1.0 [13:53:33]Method: POST [13:53:33]URL: /json_proto [13:53:33]Method is POST - this is cgi request [13:53:33]url: /json_proto [13:53:33]query_string will be loaded in cgi processing [13:53:33]execute_cgi json_proto POST (null) [13:53:33]execute_cgi path=json_proto method=POST [13:53:33]POST find Content-Length [13:53:33]Host: 172.17.41.136:8080 [13:53:33]Content-Length: 625 [13:53:33]Content-Type: application/json [13:53:33] [13:53:33]POST finish read [13:53:33]Found Content-Length = 625 [13:53:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:33]execute_script... [13:53: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)24617701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.430, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:33]POST & json_proto [13:53:33]process_json_proto [13:53:33]json parsed OK: [13:53:33]protocol is kg_v1.0 [13:53:33]action value=close_receipt [13:53:33]process_action close_receipt [13:53:33]cmd_close_receipt [13:53:33]MH_GetDate [13:53:33]Write to MH i2c: F0 00 00 D0 0A C9 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: F0 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: F0 09 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: F0 09 00 D0 0A 00 DD 72 F1 66 1B D0 5A 64 21 [13:53:33]GetLastDocTimeStamp 1727099575 [13:53:33]current date 1727099613 [13:53:33]FM_GetShiftState [13:53:33]SAM_PROTO_GetShiftState [13:53:33]wFMCommunicate request_size=4 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 13 01 00 [13:53:33]Write to MH i2c: E2 08 00 D1 0A 80 13 01 00 00 00 00 00 58 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 0E 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 0E 00 D1 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 99 [13:53:33]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:53:33]wFMCommunicate OK [13:53:33]SAM_PROTO_GetShiftState done [13:53:33]FM_GetShiftState done [13:53:33]opened in 1727052070 [13:53:33]opened+sec_in_day 1727138470 [13:53:33]quantity*price = 99999 [13:53:33]sum+1 = 100001 [13:53:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 148 23.09.2024 13:53 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115665 ФПД: 176302779687373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T135333&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115665&fm=176302779687373&tin=02508201610067®Number=0000000000091831&sum=100000 [13:53:34]StoreToDocumentArchive [13:53:34]shift 472 fd 115665 [13:53:34]save to /storage/0472/doc_00115665 [13:53:34]save last doc name /storage/0472/doc_00115665 to /storage/kkm_last_doc_name [13:53:34]save OK [13:53:34]Clear old archive folders... [13:53:34]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:53:34]tlvbuf is 017CC950 [13:53:34]SAM_PROTO_ClearQueue [13:53:34]wFMCommunicate request_size=4 [13:53:34]MH_SAM_APDU [13:53:34]CAPDU: 80 09 00 00 [13:53:34]Write to MH i2c: E2 08 00 DE 0A 80 09 00 00 00 00 00 00 5A [13:53:34]Write i2c OK [13:53:34]MH_I2C_Read... [13:53:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:34]Read from MH i2c: E2 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 03 00 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 03 00 DE 0A 00 90 00 5C [13:53:34]RAPDU: 90 00 [13:53:34]wFMCommunicate OK [13:53:34]SAM_PROTO_ClearQueue done [13:53:34]KKMCreateOFDPacket [13:53:34]OFDProtocolAddRootSTLVToBuf [13:53:34]FM_MakeSignedData [13:53:34]FM_MakeSignedData [13:53:34]SAM_PROTO_SignData [13:53:34]wFMCommunicate request_size=4 [13:53:34]MH_SAM_APDU [13:53:34]CAPDU: 80 0D 01 02 [13:53:34]Write to MH i2c: E2 08 00 DF 0A 80 0D 01 02 00 00 00 00 62 [13:53:34]Write i2c OK [13:53:34]MH_I2C_Read... [13:53:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:34]Read from MH i2c: E2 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 03 00 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 03 00 DF 0A 00 90 00 5D [13:53:34]RAPDU: 90 00 [13:53:34]wFMCommunicate OK [13:53:34]wFMCommunicate request_size=253 [13:53:34]MH_SAM_APDU [13:53:34]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 DD 72 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D1 C3 01 00 35 04 06 00 A0 58 B0 8E 61 CD [13:53:34]Write to MH i2c: E2 00 01 E0 0A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 DD 72 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D1 C3 01 00 35 04 06 00 A0 58 B0 8E 61 CD 00 00 72 [13:53:34]Write i2c OK [13:53:34]MH_I2C_Read... [13:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:35]Read from MH i2c: E2 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 03 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 03 00 E0 0A 00 90 00 5E [13:53:35]RAPDU: 90 00 [13:53:35]wFMCommunicate OK [13:53:35]wFMCommunicate request_size=4 [13:53:35]MH_SAM_APDU [13:53:35]CAPDU: 80 0D 03 02 [13:53:35]Write to MH i2c: E2 08 00 E1 0A 80 0D 03 02 00 00 00 00 66 [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:35]Read from MH i2c: E2 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 0B 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 0B 00 E1 0A 00 67 67 C8 73 27 FB 80 BB 90 00 CD [13:53:35]RAPDU: 67 67 C8 73 27 FB 80 BB 90 00 [13:53:35]wFMCommunicate OK [13:53:35]SAM_PROTO_SignData done [13:53:35]FM_MakeSignedData done [13:53:35]CreateOFDProtocolMessage [13:53:35]wFMCommunicate request_size=4 [13:53:35]MH_SAM_APDU [13:53:35]CAPDU: 80 11 00 00 [13:53:35]Write to MH i2c: E2 08 00 E2 0A 80 11 00 00 00 00 00 00 66 [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:35]Read from MH i2c: E2 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 17 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 17 00 E2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B4 [13:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:53:35]wFMCommunicate OK [13:53:35]CreateOFDProtocolMessage done [13:53:35]OFDSenderStorePacket 115665 [13:53:35]StoreOFDPacket docnum=115665 [13:53:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 2E AB 00 01 65 B8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 DD 72 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D1 C3 01 00 35 04 06 00 A0 58 B0 8E 61 CD 67 67 C8 73 27 FB 80 BB [13:53:35]CheckFolder [13:53:35]dirname=/storage/ofd_packets [13:53:35]CheckFolder done [13:53:35]ProducePacketName [13:53:35]name=ofd_packets/00115665 [13:53:35]NVStorageSaveData ofd_packets/00115665 [13:53:35]File name is /storage/ofd_packets/00115665 [13:53:35]Write 294 bytes [13:53:35]NVStorageSaveData done [13:53:35]OFDSenderStorePacket done [13:53:35]KKMCreateOFDPacket done [13:53:35]NVStorageSaveData kkm_last_timestamp [13:53:35]File name is /storage/kkm_last_timestamp [13:53:35]Write 4 bytes [13:53:35]NVStorageSaveData done [13:53:35]ExternCall_PrintAddStr [13:53:35]wPrintStart [13:53:35]Write to MH i2c: 01 00 00 E3 0A ED [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: 01 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: 01 07 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: 01 07 00 E3 0A 00 00 00 00 00 FF 0F 02 [13:53:35]RasterBufferAndPrint [13:53:35]line Счет N : (1)24617701 [13:53:35]line ИНН: 02508201610067 [13:53:35]line Контрольно-Кассовый Чек [13:53:35]line ПРОДАЖА [13:53:35]line ТРК (МРК, ГНК) : 44 [13:53:35]line Товар: 2710124130 [13:53:35]line SU-92 [13:53:35]line 14.430 * 69.30 [13:53:35]line = 1000.00 [13:53:35]line НДС 12% НСП 1% [13:53:35]line > о реализуемом товаре [13:53:35]line ИТОГО: 1000.00 [13:53:35]line НСП 1% : 8.85 [13:53:35]line НДС 12% : 106.19 [13:53:35]line Наличными: 1000.00 [13:53:35]line Безнал.: 0.00 [13:53:35]line Место: АЗС № 90 "Партнер Нефть" [13:53:35]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:53:35]line СНО: Общий режим [13:53:35]line Чек 148 23.09.2024 13:53 [13:53:35]line Смена: 472 ФФД: 1.0 [13:53:35]line ЗНМ: 0300000120 [13:53:35]line РНМ: 0000000000091831 [13:53:35]line Версия ККМ: 001 [13:53:35]line ФМ: 0000000000871830 [13:53:35]line ФД: 115665 [13:53:35]line ФПД: 176302779687373 [13:53:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T135333&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115665&fm=176302779687373&tin=02508201610067®Number=0000000000091831&sum=100000 [13:53:35]OFD Sender: Processing packet 115665 [packets to send 482, broken 481] [13:53:35]ProducePacketName [13:53:35]name=ofd_packets/00115665 [13:53:35]OFD Sender: To server: pG, [13:53:35]CommunicateWithHost lk.salyk.kg:30040 [13:53:35]ConnectInit lk.salyk.kg [13:53:35]written 0, free lines is 4095 [13:53:35]Connected sock=9 [13:53: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 38 33 30 08 01 00 00 2E AB 00 01 65 B8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 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 DD 72 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D1 C3 01 00 35 04 06 00 A0 58 B0 8E 61 CD 67 67 C8 73 27 FB 80 BB [13:53:35]Write to MH i2c: 01 00 00 0A 0B 15 [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: 01 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: 01 07 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: 01 07 00 0A 0B 00 00 00 00 00 A5 0C CD [13:53:35]RasterBufferAndPrint [13:53:35]line [13:53:35]line [13:53:35]line [13:53:35]line [13:53:35]line [13:53:35]written 0, free lines is 3243 [13:53:35]MH_Cut [13:53:35]Write to MH i2c: D1 01 00 11 0B 01 EE [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: D1 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: D1 01 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: D1 01 00 11 0B 00 ED [13:53:35]Write to MH i2c: 01 00 00 12 0B 1D [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 67 BF 47 00 AD BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D1 C3 01 00 F4 03 04 00 20 18 F1 66 B6 04 01 00 00 D7 1A 6F DD 9E E1 57 05 [13:53:35]CommunicateWithHost err = 0 [13:53:35]CheckOFDResponse [13:53:35]1017 (14) - 77093643461234 [13:53:35]1041 (16) - 0000000000871830 [13:53:35]1040 (4) - 115665 [13:53:35]1012 (4) - 23.09.2024 07:26 [13:53:35]1206 (1) - 0 [13:53:35]OFD Sender: Remove packet 115665 [13:53:35]ProducePacketName [13:53:35]name=ofd_packets/00115665 [13:53:35]NVStorageDeleteData [13:53:36]OFD Sender: No OFD packet to send [13:53:36]*** Cut start [13:53:36]*** Partial cut [13:53:36]*** CUTSNS_PIN = 1 [13:53:36]*** CUTSNS_PIN = 0 [13:53:37]*** Brake cut motor [13:53:37]Read from MH i2c: 01 [13:53:37]MH_I2C_Read... [13:53:37]*** Stop cut motor [13:53:37]*** Cut end [13:53:37]Read from MH i2c: 01 07 00 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: 01 07 00 12 0B 00 00 00 00 00 FF 0F 32 [13:53:37]process_action close_receipt done [13:53:37]requested_data is exist [13:53:37]produce_requested_data [13:53:37]requested_item fm.sn is exist - process it [13:53:37]wFMCommunicate request_size=4 [13:53:37]MH_SAM_APDU [13:53:37]CAPDU: 80 11 00 00 [13:53:37]Write to MH i2c: E2 08 00 13 0B 80 11 00 00 00 00 00 00 98 [13:53:37]Write i2c OK [13:53:37]MH_I2C_Read... [13:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:37]Read from MH i2c: E2 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: E2 17 00 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: E2 17 00 13 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E6 [13:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:53:37]wFMCommunicate OK [13:53:37]requested_item fd.num is exist - process it [13:53:37]SAM_PROTO_GetFieldsCounters [13:53:37]wFMCommunicate request_size=4 [13:53:37]MH_SAM_APDU [13:53:37]CAPDU: 80 13 00 00 [13:53:37]Write to MH i2c: E2 08 00 14 0B 80 13 00 00 00 00 00 00 9B [13:53:37]Write i2c OK [13:53:37]MH_I2C_Read... [13:53:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:37]Read from MH i2c: E2 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: E2 62 00 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: E2 62 00 14 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D1 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [13:53: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D1 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:37]wFMCommunicate OK [13:53:37]SAM_PROTO_GetFieldsCounters done [13:53:37]requested_item shift.num is exist - process it [13:53:37]requested_item shift.opened is exist - process it [13:53:37]req_shift_opened [13:53:37]FM_GetShiftState [13:53:37]SAM_PROTO_GetShiftState [13:53:37]wFMCommunicate request_size=4 [13:53:37]MH_SAM_APDU [13:53:37]CAPDU: 80 13 01 00 [13:53:37]Write to MH i2c: E2 08 00 15 0B 80 13 01 00 00 00 00 00 9D [13:53:37]Write i2c OK [13:53:37]MH_I2C_Read... [13:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:37]Read from MH i2c: E2 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: E2 0E 00 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: E2 0E 00 15 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 DE [13:53:37]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [13:53:37]wFMCommunicate OK [13:53:37]SAM_PROTO_GetShiftState done [13:53:37]FM_GetShiftState done [13:53:37]req_shift_opened done [13:53:37]requested_item shift.open_date is exist - process it [13:53:37]req_shift_open_date [13:53:37]req_shift_open_date done [13:53:37]produce_requested_data done [13:53:37]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115665,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [13:53:37]process_action_free close_receipt [13:53:37]json_value_free [13:53:37]json_value_free done [13:53:37]process_json_proto returns [13:53:37]Send response to host [13:53:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115665,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [13:53:37]free response buf [13:53:37]execute_script done [13:53:37]execute_script returns [13:53:37]free content buf [13:53:37]Sock 7.Close socket [13:53:37]Sock 7.Thread stoped [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]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:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:35]accept exits with 10 [14:04:35]New connection [14:04:35]New thread 3067022692 created [14:04:35]Thread 3066879332 joined [14:04:35]Waiting for new connection... [14:04:35] Sock 10.Parse request [14:04:35]Sock 10.Check first char [14:04:35]Sock 10.First char is OK [14:04:35]request: POST /json_proto HTTP/1.0 [14:04:35]Method: POST [14:04:35]URL: /json_proto [14:04:35]Method is POST - this is cgi request [14:04:35]url: /json_proto [14:04:35]query_string will be loaded in cgi processing [14:04:35]execute_cgi json_proto POST (null) [14:04:35]execute_cgi path=json_proto method=POST [14:04:35]POST find Content-Length [14:04:35]Host: 172.17.41.136:8080 [14:04:35]Content-Length: 1398 [14:04:35]Content-Type: application/json [14:04:35] [14:04:35]POST finish read [14:04:35]Found Content-Length = 1398 [14:04:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344021", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 3.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 302.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:35]execute_script... [14:04:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344021", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 3.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 302.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:35]POST & json_proto [14:04:35]process_json_proto [14:04:35]json parsed OK: [14:04:35]protocol is kg_v1.0 [14:04:35]action value=close_receipt [14:04:35]process_action close_receipt [14:04:35]cmd_close_receipt [14:04:35]MH_GetDate [14:04:35]Write to MH i2c: F0 00 00 16 0B 10 [14:04:35]Write i2c OK [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: F0 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: F0 09 00 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: F0 09 00 16 0B 00 73 75 F1 66 1B D0 5A 64 01 [14:04:35]GetLastDocTimeStamp 1727099613 [14:04:35]current date 1727100275 [14:04:35]FM_GetShiftState [14:04:35]SAM_PROTO_GetShiftState [14:04:35]wFMCommunicate request_size=4 [14:04:35]MH_SAM_APDU [14:04:35]CAPDU: 80 13 01 00 [14:04:35]Write to MH i2c: E2 08 00 17 0B 80 13 01 00 00 00 00 00 9F [14:04:35]Write i2c OK [14:04:35]MH_I2C_Read... [14:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:35]Read from MH i2c: E2 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 0E 00 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 0E 00 17 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E0 [14:04:35]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:04:35]wFMCommunicate OK [14:04:35]SAM_PROTO_GetShiftState done [14:04:35]FM_GetShiftState done [14:04:35]opened in 1727052070 [14:04:35]opened+sec_in_day 1727138470 [14:04:35]quantity*price = 11000 [14:04:35]sum+1 = 11001 [14:04:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 1.000 * 42.00 = 42.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032780025 Сосиска в тесте DC 110г 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032800010 Сочник DC творог 75 г 3.000 * 30.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 302.00 НСП 1% : 2.67 НДС 12% : 32.07 Наличными: 302.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 149 23.09.2024 14:04 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115666 ФПД: 198020240227159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T140435&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115666&fm=198020240227159&tin=02508201610067®Number=0000000000091831&sum=30200 0 [14:04:36]StoreToDocumentArchive [14:04:36]shift 472 fd 115666 [14:04:36]save to /storage/0472/doc_00115666 [14:04:36]save last doc name /storage/0472/doc_00115666 to /storage/kkm_last_doc_name [14:04:36]save OK [14:04:36]Clear old archive folders... [14:04:36]ProcessDocumentItem done err = 0, tmpTLVsize=586 [14:04:36]tlvbuf is 018041C0 [14:04:36]SAM_PROTO_ClearQueue [14:04:36]wFMCommunicate request_size=4 [14:04:36]MH_SAM_APDU [14:04:36]CAPDU: 80 09 00 00 [14:04:36]Write to MH i2c: E2 08 00 24 0B 80 09 00 00 00 00 00 00 A1 [14:04:36]Write i2c OK [14:04:36]MH_I2C_Read... [14:04:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:36]Read from MH i2c: E2 [14:04:36]MH_I2C_Read... [14:04:36]Read from MH i2c: E2 03 00 [14:04:36]MH_I2C_Read... [14:04:36]Read from MH i2c: E2 03 00 24 0B 00 90 00 A3 [14:04:36]RAPDU: 90 00 [14:04:36]wFMCommunicate OK [14:04:36]SAM_PROTO_ClearQueue done [14:04:36]KKMCreateOFDPacket [14:04:36]OFDProtocolAddRootSTLVToBuf [14:04:36]FM_MakeSignedData [14:04:36]FM_MakeSignedData [14:04:36]SAM_PROTO_SignData [14:04:36]wFMCommunicate request_size=4 [14:04:36]MH_SAM_APDU [14:04:36]CAPDU: 80 0D 01 02 [14:04:36]Write to MH i2c: E2 08 00 25 0B 80 0D 01 02 00 00 00 00 A9 [14:04:36]Write i2c OK [14:04:36]MH_I2C_Read... [14:04:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:36]Read from MH i2c: E2 [14:04:36]MH_I2C_Read... [14:04:36]Read from MH i2c: E2 03 00 [14:04:36]MH_I2C_Read... [14:04:36]Read from MH i2c: E2 03 00 25 0B 00 90 00 A4 [14:04:36]RAPDU: 90 00 [14:04:36]wFMCommunicate OK [14:04:36]wFMCommunicate request_size=255 [14:04:36]MH_SAM_APDU [14:04:36]CAPDU: 80 0D 02 02 FA 03 00 4A 02 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 [14:04:36]Write to MH i2c: E2 02 01 26 0B 80 0D 02 02 FA 00 03 00 4A 02 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 00 00 98 [14:04:36]Write i2c OK [14:04:36]MH_I2C_Read... [14:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:37]Read from MH i2c: E2 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 03 00 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 03 00 26 0B 00 90 00 A5 [14:04:37]RAPDU: 90 00 [14:04:37]wFMCommunicate OK [14:04:37]wFMCommunicate request_size=255 [14:04:37]MH_SAM_APDU [14:04:37]CAPDU: 80 0D 02 02 FA D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 [14:04:37]Write to MH i2c: E2 02 01 27 0B 80 0D 02 02 FA 00 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 00 A8 [14:04:37]Write i2c OK [14:04:37]MH_I2C_Read... [14:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:37]Read from MH i2c: E2 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 03 00 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 03 00 27 0B 00 90 00 A6 [14:04:37]RAPDU: 90 00 [14:04:37]wFMCommunicate OK [14:04:37]wFMCommunicate request_size=95 [14:04:37]MH_SAM_APDU [14:04:37]CAPDU: 80 0D 02 02 5A 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 73 75 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D2 C3 01 00 35 04 06 00 B4 19 2E 13 BB 57 [14:04:37]Write to MH i2c: E2 62 00 28 0B 80 0D 02 02 5A 00 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 73 75 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D2 C3 01 00 35 04 06 00 B4 19 2E 13 BB 57 00 00 7D [14:04:37]Write i2c OK [14:04:37]MH_I2C_Read... [14:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:37]Read from MH i2c: E2 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 03 00 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 03 00 28 0B 00 90 00 A7 [14:04:37]RAPDU: 90 00 [14:04:37]wFMCommunicate OK [14:04:37]wFMCommunicate request_size=4 [14:04:37]MH_SAM_APDU [14:04:37]CAPDU: 80 0D 03 02 [14:04:37]Write to MH i2c: E2 08 00 29 0B 80 0D 03 02 00 00 00 00 AF [14:04:37]Write i2c OK [14:04:37]MH_I2C_Read... [14:04:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:37]Read from MH i2c: E2 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 0B 00 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 0B 00 29 0B 00 B2 3A B8 1F F8 BD A6 2A 90 00 F8 [14:04:37]RAPDU: B2 3A B8 1F F8 BD A6 2A 90 00 [14:04:37]wFMCommunicate OK [14:04:37]SAM_PROTO_SignData done [14:04:37]FM_MakeSignedData done [14:04:37]CreateOFDProtocolMessage [14:04:37]wFMCommunicate request_size=4 [14:04:37]MH_SAM_APDU [14:04:37]CAPDU: 80 11 00 00 [14:04:37]Write to MH i2c: E2 08 00 2A 0B 80 11 00 00 00 00 00 00 AF [14:04:37]Write i2c OK [14:04:37]MH_I2C_Read... [14:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:37]Read from MH i2c: E2 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 17 00 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: E2 17 00 2A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FD [14:04:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:04:37]wFMCommunicate OK [14:04:37]CreateOFDProtocolMessage done [14:04:37]OFDSenderStorePacket 115666 [14:04:37]StoreOFDPacket docnum=115666 [14:04:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 5E 02 00 00 FE DE 56 02 A7 99 5A 03 01 00 03 00 4A 02 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 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 95 00 00 00 F4 03 04 00 73 75 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D2 C3 01 00 35 04 06 00 B4 19 2E 13 BB 57 B2 3A B8 1F F8 BD A6 2A [14:04:37]CheckFolder [14:04:37]dirname=/storage/ofd_packets [14:04:37]CheckFolder done [14:04:37]ProducePacketName [14:04:37]name=ofd_packets/00115666 [14:04:37]NVStorageSaveData ofd_packets/00115666 [14:04:37]File name is /storage/ofd_packets/00115666 [14:04:37]Write 636 bytes [14:04:37]NVStorageSaveData done [14:04:37]OFDSenderStorePacket done [14:04:37]KKMCreateOFDPacket done [14:04:37]NVStorageSaveData kkm_last_timestamp [14:04:37]File name is /storage/kkm_last_timestamp [14:04:37]Write 4 bytes [14:04:37]NVStorageSaveData done [14:04:37]ExternCall_PrintAddStr [14:04:37]wPrintStart [14:04:37]Write to MH i2c: 01 00 00 2B 0B 36 [14:04:37]Write i2c OK [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: 01 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: 01 07 00 [14:04:37]MH_I2C_Read... [14:04:37]Read from MH i2c: 01 07 00 2B 0B 00 00 00 00 00 FF 0F 4B [14:04:37]RasterBufferAndPrint [14:04:37]line Счет N : (3)344021 [14:04:37]line ИНН: 02508201610067 [14:04:37]line Контрольно-Кассовый Чек [14:04:37]line ПРОДАЖА [14:04:37]line Товар: 4870001570071 [14:04:37]line Напиток Pepsi 1л [14:04:37]line 1.000 * 110.00 [14:04:37]line = 110.00 [14:04:37]line НДС 12% НСП 1% [14:04:37]line > о реализуемом товаре [14:04:37]line Товар: 5449000005489 [14:04:37]line Вода Бонаква 1л б/г [14:04:37]line 1.000 * 42.00 [14:04:37]line = 42.00 [14:04:37]line НДС 12% НСП 1% [14:04:37]line > о реализуемом товаре [14:04:37]line Товар: 2000032780025 [14:04:37]line Сосиска в тесте DC 110г [14:04:37]line 1.000 * 60.00 [14:04:37]line = 60.00 [14:04:37]line НДС 12% НСП 1% [14:04:37]line > о реализуемом товаре [14:04:37]line Товар: 2000032800010 [14:04:37]line Сочник DC творог 75 г [14:04:37]line 3.000 * 30.00 [14:04:37]line = 90.00 [14:04:37]line НДС 12% НСП 1% [14:04:37]line > о реализуемом товаре [14:04:37]line ИТОГО: 302.00 [14:04:37]line НСП 1% : 2.67 [14:04:37]line НДС 12% : 32.07 [14:04:37]line Наличными: 302.00 [14:04:37]line Безнал.: 0.00 [14:04:37]line Место: АЗС № 90 "Партнер Нефть" [14:04:37]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:04:37]line СНО: Общий режим [14:04:37]line Чек 149 23.09.2024 14:04 [14:04:37]line Смена: 472 ФФД: 1.0 [14:04:37]line ЗНМ: 0300000120 [14:04:37]line РНМ: 0000000000091831 [14:04:37]line Версия ККМ: 001 [14:04:37]line ФМ: 0000000000871830 [14:04:37]line ФД: 115666 [14:04:37]line ФПД: 198020240227159 [14:04:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T140435&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115666&fm=198020240227159&tin=02508201610067®Number=0000000000091831&sum=30200 [14:04:37]line 0 [14:04:37]OFD Sender: Processing packet 115666 [packets to send 482, broken 481] [14:04:37]ProducePacketName [14:04:37]name=ofd_packets/00115666 [14:04:37]OFD Sender: To server: pG, [14:04:37]CommunicateWithHost lk.salyk.kg:30040 [14:04:37]ConnectInit lk.salyk.kg [14:04:37]written 0, free lines is 4095 [14:04:38]Connected sock=9 [14:04:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 5E 02 00 00 FE DE 56 02 A7 99 5A 03 01 00 03 00 4A 02 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 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 95 00 00 00 F4 03 04 00 73 75 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D2 C3 01 00 35 04 06 00 B4 19 2E 13 BB 57 B2 3A B8 1F F8 BD A6 2A [14:04:38]Write to MH i2c: 01 00 00 64 0B 6F [14:04:38]Write i2c OK [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: 01 [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: 01 07 00 [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: 01 07 00 64 0B 00 00 00 00 00 0D 0B 8E [14:04:38]RasterBufferAndPrint [14:04:38]line [14:04:38]line [14:04:38]line [14:04:38]line [14:04:38]line [14:04:38]written 0, free lines is 2834 [14:04:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 96 05 47 00 12 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 38 33 30 10 04 04 00 D2 C3 01 00 F4 03 04 00 B6 1A F1 66 B6 04 01 00 00 75 5E C9 62 C8 90 52 2C [14:04:38]CommunicateWithHost err = 0 [14:04:38]CheckOFDResponse [14:04:38]1017 (14) - 77093643461234 [14:04:38]1041 (16) - 0000000000871830 [14:04:38]1040 (4) - 115666 [14:04:38]1012 (4) - 23.09.2024 07:37 [14:04:38]1206 (1) - 0 [14:04:38]OFD Sender: Remove packet 115666 [14:04:38]ProducePacketName [14:04:38]name=ofd_packets/00115666 [14:04:38]NVStorageDeleteData [14:04:38]MH_Cut [14:04:38]Write to MH i2c: D1 01 00 6B 0B 01 48 [14:04:38]Write i2c OK [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: D1 [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: D1 01 00 [14:04:38]MH_I2C_Read... [14:04:38]Read from MH i2c: D1 01 00 6B 0B 00 47 [14:04:38]Write to MH i2c: 01 00 00 6C 0B 77 [14:04:38]Write i2c OK [14:04:38]MH_I2C_Read... [14:04:39]OFD Sender: No OFD packet to send [14:04:40]*** Cut start [14:04:40]*** Partial cut [14:04:40]*** CUTSNS_PIN = 1 [14:04:40]*** CUTSNS_PIN = 0 [14:04:40]*** Brake cut motor [14:04:40]Read from MH i2c: 01 [14:04:40]MH_I2C_Read... [14:04:40]*** Stop cut motor [14:04:40]*** Cut end [14:04:40]Read from MH i2c: 01 07 00 [14:04:40]MH_I2C_Read... [14:04:40]Read from MH i2c: 01 07 00 6C 0B 00 00 00 00 00 FF 0F 8C [14:04:40]process_action close_receipt done [14:04:40]requested_data is exist [14:04:40]produce_requested_data [14:04:40]requested_item fm.sn is exist - process it [14:04:40]wFMCommunicate request_size=4 [14:04:40]MH_SAM_APDU [14:04:40]CAPDU: 80 11 00 00 [14:04:40]Write to MH i2c: E2 08 00 6D 0B 80 11 00 00 00 00 00 00 F2 [14:04:40]Write i2c OK [14:04:40]MH_I2C_Read... [14:04:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:40]Read from MH i2c: E2 [14:04:40]MH_I2C_Read... [14:04:40]Read from MH i2c: E2 17 00 [14:04:40]MH_I2C_Read... [14:04:40]Read from MH i2c: E2 17 00 6D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 40 [14:04:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:04:40]wFMCommunicate OK [14:04:40]requested_item fd.num is exist - process it [14:04:40]SAM_PROTO_GetFieldsCounters [14:04:40]wFMCommunicate request_size=4 [14:04:40]MH_SAM_APDU [14:04:40]CAPDU: 80 13 00 00 [14:04:40]Write to MH i2c: E2 08 00 6E 0B 80 13 00 00 00 00 00 00 F5 [14:04:40]Write i2c OK [14:04:40]MH_I2C_Read... [14:04:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:41]Read from MH i2c: E2 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 62 00 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 62 00 6E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D2 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [14:04: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D2 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:41]wFMCommunicate OK [14:04:41]SAM_PROTO_GetFieldsCounters done [14:04:41]requested_item shift.num is exist - process it [14:04:41]requested_item shift.opened is exist - process it [14:04:41]req_shift_opened [14:04:41]FM_GetShiftState [14:04:41]SAM_PROTO_GetShiftState [14:04:41]wFMCommunicate request_size=4 [14:04:41]MH_SAM_APDU [14:04:41]CAPDU: 80 13 01 00 [14:04:41]Write to MH i2c: E2 08 00 6F 0B 80 13 01 00 00 00 00 00 F7 [14:04:41]Write i2c OK [14:04:41]MH_I2C_Read... [14:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:41]Read from MH i2c: E2 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 0E 00 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 0E 00 6F 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 38 [14:04:41]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:04:41]wFMCommunicate OK [14:04:41]SAM_PROTO_GetShiftState done [14:04:41]FM_GetShiftState done [14:04:41]req_shift_opened done [14:04:41]requested_item shift.open_date is exist - process it [14:04:41]req_shift_open_date [14:04:41]req_shift_open_date done [14:04:41]produce_requested_data done [14:04:41]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115666,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:04:41]process_action_free close_receipt [14:04:41]json_value_free [14:04:41]json_value_free done [14:04:41]process_json_proto returns [14:04:41]Send response to host [14:04:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115666,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:04:41]free response buf [14:04:41]execute_script done [14:04:41]execute_script returns [14:04:41]free content buf [14:04:41]Sock 10.Close socket [14:04:41]Sock 10.Thread stoped [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:26]accept exits with 7 [14:06:26]New connection [14:06:26]New thread 3066879332 created [14:06:26]Thread 3067022692 joined [14:06:26]Waiting for new connection... [14:06:26] Sock 7.Parse request [14:06:26]Sock 7.Check first char [14:06:26]Sock 7.First char is OK [14:06:26]request: POST /json_proto HTTP/1.0 [14:06:26]Method: POST [14:06:26]URL: /json_proto [14:06:26]Method is POST - this is cgi request [14:06:26]url: /json_proto [14:06:26]query_string will be loaded in cgi processing [14:06:26]execute_cgi json_proto POST (null) [14:06:26]execute_cgi path=json_proto method=POST [14:06:26]POST find Content-Length [14:06:26]Host: 172.17.41.136:8080 [14:06:26]Content-Length: 671 [14:06:26]Content-Type: application/json [14:06:26] [14:06:26]POST finish read [14:06:26]Found Content-Length = 671 [14:06:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344022", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:26]execute_script... [14:06: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 : (3)344022", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:26]POST & json_proto [14:06:26]process_json_proto [14:06:26]json parsed OK: [14:06:26]protocol is kg_v1.0 [14:06:26]action value=close_receipt [14:06:26]process_action close_receipt [14:06:26]cmd_close_receipt [14:06:26]MH_GetDate [14:06:26]Write to MH i2c: F0 00 00 70 0B 6A [14:06:26]Write i2c OK [14:06:26]MH_I2C_Read... [14:06:26]Read from MH i2c: F0 [14:06:26]MH_I2C_Read... [14:06:26]Read from MH i2c: F0 09 00 [14:06:26]MH_I2C_Read... [14:06:26]Read from MH i2c: F0 09 00 70 0B 00 E3 75 F1 66 1B D0 5A 64 CB [14:06:26]GetLastDocTimeStamp 1727100275 [14:06:26]current date 1727100387 [14:06:26]FM_GetShiftState [14:06:26]SAM_PROTO_GetShiftState [14:06:26]wFMCommunicate request_size=4 [14:06:26]MH_SAM_APDU [14:06:26]CAPDU: 80 13 01 00 [14:06:26]Write to MH i2c: E2 08 00 71 0B 80 13 01 00 00 00 00 00 F9 [14:06:26]Write i2c OK [14:06:26]MH_I2C_Read... [14:06:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:26]Read from MH i2c: E2 [14:06:26]MH_I2C_Read... [14:06:26]Read from MH i2c: E2 0E 00 [14:06:26]MH_I2C_Read... [14:06:26]Read from MH i2c: E2 0E 00 71 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 3A [14:06:26]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:06:26]wFMCommunicate OK [14:06:26]SAM_PROTO_GetShiftState done [14:06:26]FM_GetShiftState done [14:06:26]opened in 1727052070 [14:06:26]opened+sec_in_day 1727138470 [14:06:26]quantity*price = 13000 [14:06:26]sum+1 = 13001 [14:06:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 150 23.09.2024 14:06 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115667 ФПД: 73280869651051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T140627&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115667&fm=73280869651051&tin=02508201610067®Number=0000000000091831&sum=13000 0 [14:06:27]StoreToDocumentArchive [14:06:27]shift 472 fd 115667 [14:06:27]save to /storage/0472/doc_00115667 [14:06:27]save last doc name /storage/0472/doc_00115667 to /storage/kkm_last_doc_name [14:06:27]save OK [14:06:27]Clear old archive folders... [14:06:27]ProcessDocumentItem done err = 0, tmpTLVsize=284 [14:06:27]tlvbuf is 017A41D0 [14:06:27]SAM_PROTO_ClearQueue [14:06:27]wFMCommunicate request_size=4 [14:06:27]MH_SAM_APDU [14:06:27]CAPDU: 80 09 00 00 [14:06:27]Write to MH i2c: E2 08 00 7E 0B 80 09 00 00 00 00 00 00 FB [14:06:27]Write i2c OK [14:06:27]MH_I2C_Read... [14:06:28]Read from MH i2c: E2 [14:06:28]MH_I2C_Read... [14:06:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:28]Read from MH i2c: E2 03 00 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: E2 03 00 7E 0B 00 90 00 FD [14:06:28]RAPDU: 90 00 [14:06:28]wFMCommunicate OK [14:06:28]SAM_PROTO_ClearQueue done [14:06:28]KKMCreateOFDPacket [14:06:28]OFDProtocolAddRootSTLVToBuf [14:06:28]FM_MakeSignedData [14:06:28]FM_MakeSignedData [14:06:28]SAM_PROTO_SignData [14:06:28]wFMCommunicate request_size=4 [14:06:28]MH_SAM_APDU [14:06:28]CAPDU: 80 0D 01 02 [14:06:28]Write to MH i2c: E2 08 00 7F 0B 80 0D 01 02 00 00 00 00 03 [14:06:28]Write i2c OK [14:06:28]MH_I2C_Read... [14:06:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:28]Read from MH i2c: E2 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: E2 03 00 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: E2 03 00 7F 0B 00 90 00 FE [14:06:28]RAPDU: 90 00 [14:06:28]wFMCommunicate OK [14:06:28]wFMCommunicate request_size=255 [14:06:28]MH_SAM_APDU [14:06:28]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E3 75 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [14:06:28]Write to MH i2c: E2 02 01 80 0B 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E3 75 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 FC [14:06:28]Write i2c OK [14:06:28]MH_I2C_Read... [14:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:28]Read from MH i2c: E2 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: E2 03 00 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: E2 03 00 80 0B 00 90 00 FF [14:06:28]RAPDU: 90 00 [14:06:28]wFMCommunicate OK [14:06:28]wFMCommunicate request_size=43 [14:06:28]MH_SAM_APDU [14:06:28]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D3 C3 01 00 35 04 06 00 42 A6 08 34 52 6B [14:06:28]Write to MH i2c: E2 2E 00 81 0B 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D3 C3 01 00 35 04 06 00 42 A6 08 34 52 6B 00 00 61 [14:06:28]Write i2c OK [14:06:28]MH_I2C_Read... [14:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:28]Read from MH i2c: E2 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: E2 03 00 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [14:06:28]RAPDU: 90 00 [14:06:28]wFMCommunicate OK [14:06:28]wFMCommunicate request_size=4 [14:06:28]MH_SAM_APDU [14:06:28]CAPDU: 80 0D 03 02 [14:06:28]Write to MH i2c: E2 08 00 82 0B 80 0D 03 02 00 00 00 00 08 [14:06:28]Write i2c OK [14:06:28]MH_I2C_Read... [14:06:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:28]Read from MH i2c: E2 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: E2 0B 00 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: E2 0B 00 82 0B 00 4F 33 B5 3B 1C 75 C8 37 90 00 0B [14:06:28]RAPDU: 4F 33 B5 3B 1C 75 C8 37 90 00 [14:06:28]wFMCommunicate OK [14:06:28]SAM_PROTO_SignData done [14:06:28]FM_MakeSignedData done [14:06:28]CreateOFDProtocolMessage [14:06:28]wFMCommunicate request_size=4 [14:06:28]MH_SAM_APDU [14:06:28]CAPDU: 80 11 00 00 [14:06:28]Write to MH i2c: E2 08 00 83 0B 80 11 00 00 00 00 00 00 08 [14:06:28]Write i2c OK [14:06:28]MH_I2C_Read... [14:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:28]Read from MH i2c: E2 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: E2 17 00 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: E2 17 00 83 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 56 [14:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:06:28]wFMCommunicate OK [14:06:28]CreateOFDProtocolMessage done [14:06:28]OFDSenderStorePacket 115667 [14:06:28]StoreOFDPacket docnum=115667 [14:06:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 C8 F7 28 01 A7 DE 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E3 75 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D3 C3 01 00 35 04 06 00 42 A6 08 34 52 6B 4F 33 B5 3B 1C 75 C8 37 [14:06:28]CheckFolder [14:06:28]dirname=/storage/ofd_packets [14:06:28]CheckFolder done [14:06:28]ProducePacketName [14:06:28]name=ofd_packets/00115667 [14:06:28]NVStorageSaveData ofd_packets/00115667 [14:06:28]File name is /storage/ofd_packets/00115667 [14:06:28]Write 334 bytes [14:06:28]NVStorageSaveData done [14:06:28]OFDSenderStorePacket done [14:06:28]KKMCreateOFDPacket done [14:06:28]NVStorageSaveData kkm_last_timestamp [14:06:28]File name is /storage/kkm_last_timestamp [14:06:28]Write 4 bytes [14:06:28]NVStorageSaveData done [14:06:28]ExternCall_PrintAddStr [14:06:28]wPrintStart [14:06:28]Write to MH i2c: 01 00 00 84 0B 8F [14:06:28]Write i2c OK [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: 01 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: 01 07 00 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: 01 07 00 84 0B 00 00 00 00 00 FF 0F A4 [14:06:28]RasterBufferAndPrint [14:06:28]line Счет N : (3)344022 [14:06:28]line ИНН: 02508201610067 [14:06:28]line Контрольно-Кассовый Чек [14:06:28]line ПРОДАЖА [14:06:28]line Товар: 4700040114137 [14:06:28]line Султан чай 1л. зел лимон [14:06:28]line 2.000 * 65.00 [14:06:28]line = 130.00 [14:06:28]line НДС 12% НСП 1% [14:06:28]line > о реализуемом товаре [14:06:28]line ИТОГО: 130.00 [14:06:28]line НСП 1% : 1.15 [14:06:28]line НДС 12% : 13.80 [14:06:28]line Наличными: 130.00 [14:06:28]line Безнал.: 0.00 [14:06:28]line Место: АЗС № 90 "Партнер Нефть" [14:06:28]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:06:28]line СНО: Общий режим [14:06:28]line Чек 150 23.09.2024 14:06 [14:06:28]line Смена: 472 ФФД: 1.0 [14:06:28]line ЗНМ: 0300000120 [14:06:28]line РНМ: 0000000000091831 [14:06:28]line Версия ККМ: 001 [14:06:28]line ФМ: 0000000000871830 [14:06:28]line ФД: 115667 [14:06:28]line ФПД: 73280869651051 [14:06:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T140627&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115667&fm=73280869651051&tin=02508201610067®Number=0000000000091831&sum=13000 [14:06:28]line 0 [14:06:28]OFD Sender: Processing packet 115667 [packets to send 482, broken 481] [14:06:28]ProducePacketName [14:06:28]name=ofd_packets/00115667 [14:06:28]OFD Sender: To server: pG, [14:06:28]CommunicateWithHost lk.salyk.kg:30040 [14:06:28]ConnectInit lk.salyk.kg [14:06:28]written 0, free lines is 4095 [14:06:29]Connected sock=10 [14: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 38 33 30 30 01 00 00 C8 F7 28 01 A7 DE 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E3 75 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D3 C3 01 00 35 04 06 00 42 A6 08 34 52 6B 4F 33 B5 3B 1C 75 C8 37 [14:06:29]Write to MH i2c: 01 00 00 AB 0B B6 [14:06:29]Write i2c OK [14:06:29]MH_I2C_Read... [14:06:29]Read from MH i2c: 01 [14:06:29]MH_I2C_Read... [14:06:29]Read from MH i2c: 01 07 00 [14:06:29]MH_I2C_Read... [14:06:29]Read from MH i2c: 01 07 00 AB 0B 00 00 00 00 00 87 0C 50 [14:06:29]RasterBufferAndPrint [14:06:29]line [14:06:29]line [14:06:29]line [14:06:29]line [14:06:29]line [14:06:29]written 0, free lines is 3211 [14:06:29]MH_Cut [14:06:29]Write to MH i2c: D1 01 00 B2 0B 01 8F [14:06:29]Write i2c OK [14:06:29]MH_I2C_Read... [14:06:29]Read from MH i2c: D1 [14:06:29]MH_I2C_Read... [14:06:29]Read from MH i2c: D1 01 00 [14:06:29]MH_I2C_Read... [14:06:29]Read from MH i2c: D1 01 00 B2 0B 00 8E [14:06:29]Write to MH i2c: 01 00 00 B3 0B BE [14:06:29]Write i2c OK [14:06:29]MH_I2C_Read... [14: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 38 33 30 4F 00 00 00 73 1C 47 00 2C 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 38 33 30 10 04 04 00 D3 C3 01 00 F4 03 04 00 25 1B F1 66 B6 04 01 00 00 6D 6F 17 9F B5 D5 7B CA [14:06:29]CommunicateWithHost err = 0 [14:06:29]CheckOFDResponse [14:06:29]1017 (14) - 77093643461234 [14:06:29]1041 (16) - 0000000000871830 [14:06:29]1040 (4) - 115667 [14:06:29]1012 (4) - 23.09.2024 07:39 [14:06:29]1206 (1) - 0 [14:06:29]OFD Sender: Remove packet 115667 [14:06:29]ProducePacketName [14:06:29]name=ofd_packets/00115667 [14:06:29]NVStorageDeleteData [14:06:29]OFD Sender: No OFD packet to send [14:06:30]*** Cut start [14:06:30]*** Partial cut [14:06:30]*** CUTSNS_PIN = 1 [14:06:30]*** CUTSNS_PIN = 0 [14:06:30]*** Brake cut motor [14:06:31]Read from MH i2c: 01 [14:06:31]MH_I2C_Read... [14:06:31]*** Stop cut motor [14:06:31]*** Cut end [14:06:31]Read from MH i2c: 01 07 00 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: 01 07 00 B3 0B 00 00 00 00 00 FF 0F D3 [14:06:31]process_action close_receipt done [14:06:31]requested_data is exist [14:06:31]produce_requested_data [14:06:31]requested_item fm.sn is exist - process it [14:06:31]wFMCommunicate request_size=4 [14:06:31]MH_SAM_APDU [14:06:31]CAPDU: 80 11 00 00 [14:06:31]Write to MH i2c: E2 08 00 B4 0B 80 11 00 00 00 00 00 00 39 [14:06:31]Write i2c OK [14:06:31]MH_I2C_Read... [14:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:31]Read from MH i2c: E2 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: E2 17 00 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: E2 17 00 B4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 87 [14:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:06:31]wFMCommunicate OK [14:06:31]requested_item fd.num is exist - process it [14:06:31]SAM_PROTO_GetFieldsCounters [14:06:31]wFMCommunicate request_size=4 [14:06:31]MH_SAM_APDU [14:06:31]CAPDU: 80 13 00 00 [14:06:31]Write to MH i2c: E2 08 00 B5 0B 80 13 00 00 00 00 00 00 3C [14:06:31]Write i2c OK [14:06:31]MH_I2C_Read... [14:06:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:31]Read from MH i2c: E2 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: E2 62 00 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: E2 62 00 B5 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D3 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [14: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D3 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:31]wFMCommunicate OK [14:06:31]SAM_PROTO_GetFieldsCounters done [14:06:31]requested_item shift.num is exist - process it [14:06:31]requested_item shift.opened is exist - process it [14:06:31]req_shift_opened [14:06:31]FM_GetShiftState [14:06:31]SAM_PROTO_GetShiftState [14:06:31]wFMCommunicate request_size=4 [14:06:31]MH_SAM_APDU [14:06:31]CAPDU: 80 13 01 00 [14:06:31]Write to MH i2c: E2 08 00 B6 0B 80 13 01 00 00 00 00 00 3E [14:06:31]Write i2c OK [14:06:31]MH_I2C_Read... [14:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:31]Read from MH i2c: E2 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: E2 0E 00 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: E2 0E 00 B6 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7F [14:06:31]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:06:31]wFMCommunicate OK [14:06:31]SAM_PROTO_GetShiftState done [14:06:31]FM_GetShiftState done [14:06:31]req_shift_opened done [14:06:31]requested_item shift.open_date is exist - process it [14:06:31]req_shift_open_date [14:06:31]req_shift_open_date done [14:06:31]produce_requested_data done [14:06:31]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115667,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:06:31]process_action_free close_receipt [14:06:31]json_value_free [14:06:31]json_value_free done [14:06:31]process_json_proto returns [14:06:31]Send response to host [14:06:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115667,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:06:31]free response buf [14:06:31]execute_script done [14:06:31]execute_script returns [14:06:31]free content buf [14:06:31]Sock 7.Close socket [14:06:31]Sock 7.Thread stoped [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07: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:23]accept exits with 9 [14:08:23]New connection [14:08:23]New thread 3067022692 created [14:08:23]Thread 3066879332 joined [14:08:23]Waiting for new connection... [14:08:23] Sock 9.Parse request [14:08:23]Sock 9.Check first char [14:08:23]Sock 9.First char is OK [14:08:23]request: POST /json_proto HTTP/1.0 [14:08:23]Method: POST [14:08:23]URL: /json_proto [14:08:23]Method is POST - this is cgi request [14:08:23]url: /json_proto [14:08:23]query_string will be loaded in cgi processing [14:08:23]execute_cgi json_proto POST (null) [14:08:23]execute_cgi path=json_proto method=POST [14:08:23]POST find Content-Length [14:08:23]Host: 172.17.41.136:8080 [14:08:23]Content-Length: 975 [14:08:23]Content-Type: application/json [14:08:23] [14:08:23]POST finish read [14:08:23]Found Content-Length = 975 [14:08:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344024", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 4.000, "sum" : 308.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 388.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:23]execute_script... [14: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 : (3)344024", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 4.000, "sum" : 308.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 388.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:23]POST & json_proto [14:08:23]process_json_proto [14:08:23]json parsed OK: [14:08:23]protocol is kg_v1.0 [14:08:23]action value=close_receipt [14:08:23]process_action close_receipt [14:08:23]cmd_close_receipt [14:08:23]MH_GetDate [14:08:23]Write to MH i2c: F0 00 00 B7 0B B1 [14:08:23]Write i2c OK [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: F0 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: F0 09 00 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: F0 09 00 B7 0B 00 58 76 F1 66 1B D0 5A 64 88 [14:08:23]GetLastDocTimeStamp 1727100387 [14:08:23]current date 1727100504 [14:08:23]FM_GetShiftState [14:08:23]SAM_PROTO_GetShiftState [14:08:23]wFMCommunicate request_size=4 [14:08:23]MH_SAM_APDU [14:08:23]CAPDU: 80 13 01 00 [14:08:23]Write to MH i2c: E2 08 00 B8 0B 80 13 01 00 00 00 00 00 40 [14:08:23]Write i2c OK [14:08:23]MH_I2C_Read... [14:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:24]Read from MH i2c: E2 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: E2 0E 00 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: E2 0E 00 B8 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 81 [14:08:24]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:08:24]wFMCommunicate OK [14:08:24]SAM_PROTO_GetShiftState done [14:08:24]FM_GetShiftState done [14:08:24]opened in 1727052070 [14:08:24]opened+sec_in_day 1727138470 [14:08:24]quantity*price = 30800 [14:08:24]sum+1 = 30801 [14:08:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010353 Напиток Let`s Go! с/с груша ПЭТ 1л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 388.00 НСП 1% : 3.44 НДС 12% : 41.21 Наличными: 388.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 151 23.09.2024 14:08 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115668 ФПД: 145760484431237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T140824&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115668&fm=145760484431237&tin=02508201610067®Number=0000000000091831&sum=38800 0 [14:08:25]StoreToDocumentArchive [14:08:25]shift 472 fd 115668 [14:08:25]save to /storage/0472/doc_00115668 [14:08:25]save last doc name /storage/0472/doc_00115668 to /storage/kkm_last_doc_name [14:08:25]save OK [14:08:25]Clear old archive folders... [14:08:25]ProcessDocumentItem done err = 0, tmpTLVsize=408 [14:08:25]tlvbuf is 017C5A40 [14:08:25]SAM_PROTO_ClearQueue [14:08:25]wFMCommunicate request_size=4 [14:08:25]MH_SAM_APDU [14:08:25]CAPDU: 80 09 00 00 [14:08:25]Write to MH i2c: E2 08 00 C5 0B 80 09 00 00 00 00 00 00 42 [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:25]Read from MH i2c: E2 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 03 00 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [14:08:25]RAPDU: 90 00 [14:08:25]wFMCommunicate OK [14:08:25]SAM_PROTO_ClearQueue done [14:08:25]KKMCreateOFDPacket [14:08:25]OFDProtocolAddRootSTLVToBuf [14:08:25]FM_MakeSignedData [14:08:25]FM_MakeSignedData [14:08:25]SAM_PROTO_SignData [14:08:25]wFMCommunicate request_size=4 [14:08:25]MH_SAM_APDU [14:08:25]CAPDU: 80 0D 01 02 [14:08:25]Write to MH i2c: E2 08 00 C6 0B 80 0D 01 02 00 00 00 00 4A [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]OFD Sender: No OFD packet to send [14:08:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:25]Read from MH i2c: E2 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 03 00 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 03 00 C6 0B 00 90 00 45 [14:08:25]RAPDU: 90 00 [14:08:25]wFMCommunicate OK [14:08:25]wFMCommunicate request_size=255 [14:08:25]MH_SAM_APDU [14:08:25]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [14:08:25]Write to MH i2c: E2 02 01 C7 0B 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 8D [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 [14:08:25]MH_I2C_Read... [14:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:25]Read from MH i2c: E2 03 00 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 03 00 C7 0B 00 90 00 46 [14:08:25]RAPDU: 90 00 [14:08:25]wFMCommunicate OK [14:08:25]wFMCommunicate request_size=167 [14:08:25]MH_SAM_APDU [14:08:25]CAPDU: 80 0D 02 02 A2 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 10 00 00 00 00 07 04 06 00 90 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 58 76 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D4 C3 01 00 35 04 06 00 84 91 81 E5 95 85 [14:08:25]Write to MH i2c: E2 AA 00 C8 0B 80 0D 02 02 A2 00 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 10 00 00 00 00 07 04 06 00 90 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 58 76 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D4 C3 01 00 35 04 06 00 84 91 81 E5 95 85 00 00 58 [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:25]Read from MH i2c: E2 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 03 00 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 03 00 C8 0B 00 90 00 47 [14:08:25]RAPDU: 90 00 [14:08:25]wFMCommunicate OK [14:08:25]wFMCommunicate request_size=4 [14:08:25]MH_SAM_APDU [14:08:25]CAPDU: 80 0D 03 02 [14:08:25]Write to MH i2c: E2 08 00 C9 0B 80 0D 03 02 00 00 00 00 4F [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:25]Read from MH i2c: E2 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 0B 00 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 0B 00 C9 0B 00 A9 C0 5D CA BE E1 C5 69 90 00 AD [14:08:25]RAPDU: A9 C0 5D CA BE E1 C5 69 90 00 [14:08:25]wFMCommunicate OK [14:08:25]SAM_PROTO_SignData done [14:08:25]FM_MakeSignedData done [14:08:25]CreateOFDProtocolMessage [14:08:25]wFMCommunicate request_size=4 [14:08:25]MH_SAM_APDU [14:08:25]CAPDU: 80 11 00 00 [14:08:25]Write to MH i2c: E2 08 00 CA 0B 80 11 00 00 00 00 00 00 4F [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:25]Read from MH i2c: E2 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 17 00 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 17 00 CA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9D [14:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:08:25]wFMCommunicate OK [14:08:25]CreateOFDProtocolMessage done [14:08:25]OFDSenderStorePacket 115668 [14:08:25]StoreOFDPacket docnum=115668 [14:08:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 AC 01 00 00 B7 77 A4 01 03 33 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 10 00 00 00 00 07 04 06 00 90 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 58 76 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D4 C3 01 00 35 04 06 00 84 91 81 E5 95 85 A9 C0 5D CA BE E1 C5 69 [14:08:25]CheckFolder [14:08:25]dirname=/storage/ofd_packets [14:08:25]CheckFolder done [14:08:25]ProducePacketName [14:08:25]name=ofd_packets/00115668 [14:08:25]NVStorageSaveData ofd_packets/00115668 [14:08:25]File name is /storage/ofd_packets/00115668 [14:08:25]Write 458 bytes [14:08:25]NVStorageSaveData done [14:08:25]OFDSenderStorePacket done [14:08:25]KKMCreateOFDPacket done [14:08:25]NVStorageSaveData kkm_last_timestamp [14:08:25]File name is /storage/kkm_last_timestamp [14:08:25]Write 4 bytes [14:08:25]NVStorageSaveData done [14:08:25]ExternCall_PrintAddStr [14:08:25]wPrintStart [14:08:25]Write to MH i2c: 01 00 00 CB 0B D6 [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: 01 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: 01 07 00 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: 01 07 00 CB 0B 00 00 00 00 00 FF 0F EB [14:08:25]RasterBufferAndPrint [14:08:25]line Счет N : (3)344024 [14:08:25]line ИНН: 02508201610067 [14:08:25]line Контрольно-Кассовый Чек [14:08:25]line ПРОДАЖА [14:08:26]line Товар: 4870233466272 [14:08:26]line Мороженое Пломбир Миша [14:08:26]line 4.000 * 77.00 [14:08:26]line = 308.00 [14:08:26]line НДС 12% НСП 1% [14:08:26]line > о реализуемом товаре [14:08:26]line Товар: 4700003010353 [14:08:26]line Напиток Let`s Go! с/с груша ПЭТ 1л [14:08:26]line 1.000 * 80.00 [14:08:26]line = 80.00 [14:08:26]line НДС 12% НСП 1% [14:08:26]line > о реализуемом товаре [14:08:26]line ИТОГО: 388.00 [14:08:26]line НСП 1% : 3.44 [14:08:26]line НДС 12% : 41.21 [14:08:26]line Наличными: 388.00 [14:08:26]line Безнал.: 0.00 [14:08:26]line Место: АЗС № 90 "Партнер Нефть" [14:08:26]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:08:26]line СНО: Общий режим [14:08:26]line Чек 151 23.09.2024 14:08 [14:08:26]line Смена: 472 ФФД: 1.0 [14:08:26]line ЗНМ: 0300000120 [14:08:26]line РНМ: 0000000000091831 [14:08:26]line Версия ККМ: 001 [14:08:26]line ФМ: 0000000000871830 [14:08:26]line ФД: 115668 [14:08:26]line ФПД: 145760484431237 [14:08:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T140824&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115668&fm=145760484431237&tin=02508201610067®Number=0000000000091831&sum=38800 [14:08:26]line 0 [14:08:26]OFD Sender: Processing packet 115668 [packets to send 482, broken 481] [14:08:26]ProducePacketName [14:08:26]name=ofd_packets/00115668 [14:08:26]OFD Sender: To server: pG, [14:08:26]CommunicateWithHost lk.salyk.kg:30040 [14:08:26]ConnectInit lk.salyk.kg [14:08:26]written 0, free lines is 4095 [14:08:26]Connected sock=10 [14:08: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 38 33 30 AC 01 00 00 B7 77 A4 01 03 33 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 10 00 00 00 00 07 04 06 00 90 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 58 76 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D4 C3 01 00 35 04 06 00 84 91 81 E5 95 85 A9 C0 5D CA BE E1 C5 69 [14:08:26]Write to MH i2c: 01 00 00 F9 0B 04 [14:08:26]Write i2c OK [14:08:26]MH_I2C_Read... [14:08:26]Read from MH i2c: 01 [14:08:26]MH_I2C_Read... [14:08:26]Read from MH i2c: 01 07 00 [14:08:26]MH_I2C_Read... [14:08:26]Read from MH i2c: 01 07 00 F9 0B 00 00 00 00 00 F7 0B 0D [14:08:26]RasterBufferAndPrint [14:08:26]line [14:08:26]line [14:08:26]line [14:08:26]line [14:08:26]line [14:08:26]written 0, free lines is 3066 [14:08:26]MH_Cut [14:08:26]Write to MH i2c: D1 01 00 00 0C 01 DE [14:08:26]Write i2c OK [14:08:26]MH_I2C_Read... [14:08:26]Read from MH i2c: D1 [14:08:26]MH_I2C_Read... [14:08:26]Read from MH i2c: D1 01 00 [14:08:26]MH_I2C_Read... [14:08:26]Read from MH i2c: D1 01 00 00 0C 00 DD [14:08:26]Write to MH i2c: 01 00 00 01 0C 0D [14:08:26]Write i2c OK [14:08:26]MH_I2C_Read... [14:08:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C0 53 47 00 80 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 38 33 30 10 04 04 00 D4 C3 01 00 F4 03 04 00 9B 1B F1 66 B6 04 01 00 00 9C 08 85 69 A5 3A 97 78 [14:08:26]CommunicateWithHost err = 0 [14:08:26]CheckOFDResponse [14:08:26]1017 (14) - 77093643461234 [14:08:26]1041 (16) - 0000000000871830 [14:08:26]1040 (4) - 115668 [14:08:26]1012 (4) - 23.09.2024 07:41 [14:08:26]1206 (1) - 0 [14:08:26]OFD Sender: Remove packet 115668 [14:08:26]ProducePacketName [14:08:26]name=ofd_packets/00115668 [14:08:26]NVStorageDeleteData [14:08:27]OFD Sender: No OFD packet to send [14:08:28]*** Cut start [14:08:28]*** Partial cut [14:08:28]*** CUTSNS_PIN = 1 [14:08:28]*** CUTSNS_PIN = 0 [14:08:28]*** Brake cut motor [14:08:28]Read from MH i2c: 01 [14:08:28]MH_I2C_Read... [14:08:28]*** Stop cut motor [14:08:28]*** Cut end [14:08:28]Read from MH i2c: 01 07 00 [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: 01 07 00 01 0C 00 00 00 00 00 FF 0F 22 [14:08:28]process_action close_receipt done [14:08:28]requested_data is exist [14:08:28]produce_requested_data [14:08:28]requested_item fm.sn is exist - process it [14:08:28]wFMCommunicate request_size=4 [14:08:28]MH_SAM_APDU [14:08:28]CAPDU: 80 11 00 00 [14:08:28]Write to MH i2c: E2 08 00 02 0C 80 11 00 00 00 00 00 00 88 [14:08:28]Write i2c OK [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: E2 [14:08:28]MH_I2C_Read... [14:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:28]Read from MH i2c: E2 17 00 [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: E2 17 00 02 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D6 [14:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:08:28]wFMCommunicate OK [14:08:28]requested_item fd.num is exist - process it [14:08:28]SAM_PROTO_GetFieldsCounters [14:08:28]wFMCommunicate request_size=4 [14:08:28]MH_SAM_APDU [14:08:28]CAPDU: 80 13 00 00 [14:08:28]Write to MH i2c: E2 08 00 03 0C 80 13 00 00 00 00 00 00 8B [14:08:28]Write i2c OK [14:08:28]MH_I2C_Read... [14:08:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:28]Read from MH i2c: E2 [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: E2 62 00 [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: E2 62 00 03 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D4 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [14:08: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D4 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:28]wFMCommunicate OK [14:08:28]SAM_PROTO_GetFieldsCounters done [14:08:28]requested_item shift.num is exist - process it [14:08:28]requested_item shift.opened is exist - process it [14:08:28]req_shift_opened [14:08:28]FM_GetShiftState [14:08:28]SAM_PROTO_GetShiftState [14:08:28]wFMCommunicate request_size=4 [14:08:28]MH_SAM_APDU [14:08:28]CAPDU: 80 13 01 00 [14:08:28]Write to MH i2c: E2 08 00 04 0C 80 13 01 00 00 00 00 00 8D [14:08:28]Write i2c OK [14:08:28]MH_I2C_Read... [14:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:28]Read from MH i2c: E2 [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: E2 0E 00 [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: E2 0E 00 04 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CE [14:08:28]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:08:28]wFMCommunicate OK [14:08:28]SAM_PROTO_GetShiftState done [14:08:28]FM_GetShiftState done [14:08:28]req_shift_opened done [14:08:28]requested_item shift.open_date is exist - process it [14:08:28]req_shift_open_date [14:08:28]req_shift_open_date done [14:08:28]produce_requested_data done [14:08:28]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115668,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:08:28]process_action_free close_receipt [14:08:28]json_value_free [14:08:28]json_value_free done [14:08:28]process_json_proto returns [14:08:28]Send response to host [14:08:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115668,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:08:28]free response buf [14:08:28]execute_script done [14:08:28]execute_script returns [14:08:28]free content buf [14:08:28]Sock 9.Close socket [14:08:28]Sock 9.Thread stoped [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:36]accept exits with 7 [14:10:36]New connection [14:10:36]New thread 3066879332 created [14:10:36]Thread 3067022692 joined [14:10:36]Waiting for new connection... [14:10:36] Sock 7.Parse request [14:10:36]Sock 7.Check first char [14:10:36]Sock 7.First char is OK [14:10:36]request: POST /json_proto HTTP/1.0 [14:10:36]Method: POST [14:10:36]URL: /json_proto [14:10:36]Method is POST - this is cgi request [14:10:36]url: /json_proto [14:10:36]query_string will be loaded in cgi processing [14:10:36]execute_cgi json_proto POST (null) [14:10:36]execute_cgi path=json_proto method=POST [14:10:36]POST find Content-Length [14:10:36]Host: 172.17.41.136:8080 [14:10:36]Content-Length: 786 [14:10:36]Content-Type: application/json [14:10:36] [14:10:36]POST finish read [14:10:36]Found Content-Length = 786 [14:10:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.440, "sum" : 1000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:36]execute_script... [14:10: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)24617715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 14.440, "sum" : 1000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:36]POST & json_proto [14:10:36]process_json_proto [14:10:36]json parsed OK: [14:10:36]protocol is kg_v1.0 [14:10:36]action value=close_receipt [14:10:36]process_action close_receipt [14:10:36]cmd_close_receipt [14:10:36]MH_GetDate [14:10:36]Write to MH i2c: F0 00 00 05 0C 00 [14:10:36]Write i2c OK [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: F0 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: F0 09 00 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: F0 09 00 05 0C 00 DC 76 F1 66 1B D0 5A 64 5B [14:10:36]GetLastDocTimeStamp 1727100504 [14:10:36]current date 1727100636 [14:10:36]FM_GetShiftState [14:10:36]SAM_PROTO_GetShiftState [14:10:36]wFMCommunicate request_size=4 [14:10:36]MH_SAM_APDU [14:10:36]CAPDU: 80 13 01 00 [14:10:36]Write to MH i2c: E2 08 00 06 0C 80 13 01 00 00 00 00 00 8F [14:10:36]Write i2c OK [14:10:36]MH_I2C_Read... [14:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:36]Read from MH i2c: E2 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 0E 00 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 0E 00 06 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D0 [14:10:36]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:10:36]wFMCommunicate OK [14:10:36]SAM_PROTO_GetShiftState done [14:10:36]FM_GetShiftState done [14:10:36]opened in 1727052070 [14:10:36]opened+sec_in_day 1727138470 [14:10:36]quantity*price = 100069 [14:10:36]sum+1 = 100070 [14:10:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.69 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 0.00 Безнал.: 1000.69 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 152 23.09.2024 14:10 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115669 ФПД: 34922059402859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T141036&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115669&fm=34922059402859&tin=02508201610067®Number=0000000000091831&sum=100069 [14:10:37]StoreToDocumentArchive [14:10:37]shift 472 fd 115669 [14:10:37]save to /storage/0472/doc_00115669 [14:10:37]save last doc name /storage/0472/doc_00115669 to /storage/kkm_last_doc_name [14:10:37]save OK [14:10:37]Clear old archive folders... [14:10:37]OFD Sender: No OFD packet to send [14:10:37]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:10:37]tlvbuf is 01785C00 [14:10:37]SAM_PROTO_ClearQueue [14:10:37]wFMCommunicate request_size=4 [14:10:37]MH_SAM_APDU [14:10:37]CAPDU: 80 09 00 00 [14:10:37]Write to MH i2c: E2 08 00 13 0C 80 09 00 00 00 00 00 00 91 [14:10:37]Write i2c OK [14:10:37]MH_I2C_Read... [14:10:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:37]Read from MH i2c: E2 [14:10:37]MH_I2C_Read... [14:10:37]Read from MH i2c: E2 03 00 [14:10:37]MH_I2C_Read... [14:10:37]Read from MH i2c: E2 03 00 13 0C 00 90 00 93 [14:10:37]RAPDU: 90 00 [14:10:37]wFMCommunicate OK [14:10:37]SAM_PROTO_ClearQueue done [14:10:37]KKMCreateOFDPacket [14:10:37]OFDProtocolAddRootSTLVToBuf [14:10:37]FM_MakeSignedData [14:10:37]FM_MakeSignedData [14:10:37]SAM_PROTO_SignData [14:10:37]wFMCommunicate request_size=4 [14:10:37]MH_SAM_APDU [14:10:37]CAPDU: 80 0D 01 02 [14:10:37]Write to MH i2c: E2 08 00 14 0C 80 0D 01 02 00 00 00 00 99 [14:10:37]Write i2c OK [14:10:37]MH_I2C_Read... [14:10:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:37]Read from MH i2c: E2 [14:10:37]MH_I2C_Read... [14:10:37]Read from MH i2c: E2 03 00 [14:10:37]MH_I2C_Read... [14:10:37]Read from MH i2c: E2 03 00 14 0C 00 90 00 94 [14:10:37]RAPDU: 90 00 [14:10:37]wFMCommunicate OK [14:10:37]wFMCommunicate request_size=253 [14:10:37]MH_SAM_APDU [14:10:37]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 E5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 DC 76 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D5 C3 01 00 35 04 06 00 1F C2 EC F2 0E 6B [14:10:37]Write to MH i2c: E2 00 01 15 0C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 E5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 DC 76 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D5 C3 01 00 35 04 06 00 1F C2 EC F2 0E 6B 00 00 6A [14:10:37]Write i2c OK [14:10:37]MH_I2C_Read... [14:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:38]Read from MH i2c: E2 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: E2 03 00 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: E2 03 00 15 0C 00 90 00 95 [14:10:38]RAPDU: 90 00 [14:10:38]wFMCommunicate OK [14:10:38]wFMCommunicate request_size=4 [14:10:38]MH_SAM_APDU [14:10:38]CAPDU: 80 0D 03 02 [14:10:38]Write to MH i2c: E2 08 00 16 0C 80 0D 03 02 00 00 00 00 9D [14:10:38]Write i2c OK [14:10:38]MH_I2C_Read... [14:10:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:38]Read from MH i2c: E2 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: E2 0B 00 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: E2 0B 00 16 0C 00 92 51 93 37 0F D9 E2 57 90 00 6C [14:10:38]RAPDU: 92 51 93 37 0F D9 E2 57 90 00 [14:10:38]wFMCommunicate OK [14:10:38]SAM_PROTO_SignData done [14:10:38]FM_MakeSignedData done [14:10:38]CreateOFDProtocolMessage [14:10:38]wFMCommunicate request_size=4 [14:10:38]MH_SAM_APDU [14:10:38]CAPDU: 80 11 00 00 [14:10:38]Write to MH i2c: E2 08 00 17 0C 80 11 00 00 00 00 00 00 9D [14:10:38]Write i2c OK [14:10:38]MH_I2C_Read... [14:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:38]Read from MH i2c: E2 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: E2 17 00 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: E2 17 00 17 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EB [14:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:10:38]wFMCommunicate OK [14:10:38]CreateOFDProtocolMessage done [14:10:38]OFDSenderStorePacket 115669 [14:10:38]StoreOFDPacket docnum=115669 [14:10:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 E0 6C 00 01 77 96 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 E5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 DC 76 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D5 C3 01 00 35 04 06 00 1F C2 EC F2 0E 6B 92 51 93 37 0F D9 E2 57 [14:10:38]CheckFolder [14:10:38]dirname=/storage/ofd_packets [14:10:38]CheckFolder done [14:10:38]ProducePacketName [14:10:38]name=ofd_packets/00115669 [14:10:38]NVStorageSaveData ofd_packets/00115669 [14:10:38]File name is /storage/ofd_packets/00115669 [14:10:38]Write 294 bytes [14:10:38]NVStorageSaveData done [14:10:38]OFDSenderStorePacket done [14:10:38]KKMCreateOFDPacket done [14:10:38]NVStorageSaveData kkm_last_timestamp [14:10:38]File name is /storage/kkm_last_timestamp [14:10:38]Write 4 bytes [14:10:38]NVStorageSaveData done [14:10:38]ExternCall_PrintAddStr [14:10:38]wPrintStart [14:10:38]Write to MH i2c: 01 00 00 18 0C 24 [14:10:38]Write i2c OK [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: 01 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: 01 07 00 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: 01 07 00 18 0C 00 00 00 00 00 FF 0F 39 [14:10:38]RasterBufferAndPrint [14:10:38]line Счет N : (1)24617715 [14:10:38]line ИНН: 02508201610067 [14:10:38]line Контрольно-Кассовый Чек [14:10:38]line ПРОДАЖА [14:10:38]line ТРК (МРК, ГНК) : 54 [14:10:38]line Товар: 2710124130 [14:10:38]line SU-92 [14:10:38]line 14.440 * 69.30 [14:10:38]line = 1000.69 [14:10:38]line НДС 12% НСП 1% [14:10:38]line > о реализуемом товаре [14:10:38]line ИТОГО: 1000.69 [14:10:38]line НСП 1% : 8.86 [14:10:38]line НДС 12% : 106.27 [14:10:38]line Наличными: 0.00 [14:10:38]line Безнал.: 1000.69 [14:10:38]line Место: АЗС № 90 "Партнер Нефть" [14:10:38]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:10:38]line СНО: Общий режим [14:10:38]line Чек 152 23.09.2024 14:10 [14:10:38]line Смена: 472 ФФД: 1.0 [14:10:38]line ЗНМ: 0300000120 [14:10:38]line РНМ: 0000000000091831 [14:10:38]line Версия ККМ: 001 [14:10:38]line Платежная система: O! деньги [14:10:38]line ФМ: 0000000000871830 [14:10:38]line ФД: 115669 [14:10:38]line ФПД: 34922059402859 [14:10:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T141036&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115669&fm=34922059402859&tin=02508201610067®Number=0000000000091831&sum=100069 [14:10:38]written 0, free lines is 4095 [14:10:38]OFD Sender: Processing packet 115669 [packets to send 482, broken 481] [14:10:38]ProducePacketName [14:10:38]name=ofd_packets/00115669 [14:10:38]OFD Sender: To server: pG, [14:10:38]CommunicateWithHost lk.salyk.kg:30040 [14:10:38]ConnectInit lk.salyk.kg [14:10:38]Connected sock=10 [14:10: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 38 33 30 08 01 00 00 E0 6C 00 01 77 96 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 E5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 DC 76 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D5 C3 01 00 35 04 06 00 1F C2 EC F2 0E 6B 92 51 93 37 0F D9 E2 57 [14:10:38]Write to MH i2c: 01 00 00 41 0C 4D [14:10:38]Write i2c OK [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: 01 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: 01 07 00 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: 01 07 00 41 0C 00 00 00 00 00 6F 0C CF [14:10:38]RasterBufferAndPrint [14:10:38]line [14:10:38]line [14:10:38]line [14:10:38]line [14:10:38]line [14:10:38]written 0, free lines is 3187 [14:10:38]MH_Cut [14:10:38]Write to MH i2c: D1 01 00 48 0C 01 26 [14:10:38]Write i2c OK [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: D1 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: D1 01 00 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: D1 01 00 48 0C 00 25 [14:10:38]Write to MH i2c: 01 00 00 49 0C 55 [14:10:38]Write i2c OK [14:10:38]MH_I2C_Read... [14:10:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B8 B4 47 00 97 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 38 33 30 10 04 04 00 D5 C3 01 00 F4 03 04 00 1F 1C F1 66 B6 04 01 00 00 C1 A0 B5 A1 62 EF BF 7D [14:10:38]CommunicateWithHost err = 0 [14:10:38]CheckOFDResponse [14:10:38]1017 (14) - 77093643461234 [14:10:38]1041 (16) - 0000000000871830 [14:10:38]1040 (4) - 115669 [14:10:38]1012 (4) - 23.09.2024 07:43 [14:10:38]1206 (1) - 0 [14:10:38]OFD Sender: Remove packet 115669 [14:10:38]ProducePacketName [14:10:38]name=ofd_packets/00115669 [14:10:38]NVStorageDeleteData [14:10:39]OFD Sender: No OFD packet to send [14:10:39]*** Cut start [14:10:39]*** Partial cut [14:10:39]*** CUTSNS_PIN = 1 [14:10:39]*** CUTSNS_PIN = 0 [14:10:40]*** Brake cut motor [14:10:40]Read from MH i2c: 01 [14:10:40]MH_I2C_Read... [14:10:40]*** Stop cut motor [14:10:40]*** Cut end [14:10:40]Read from MH i2c: 01 07 00 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: 01 07 00 49 0C 00 00 00 00 00 FF 0F 6A [14:10:40]process_action close_receipt done [14:10:40]requested_data is exist [14:10:40]produce_requested_data [14:10:40]requested_item fm.sn is exist - process it [14:10:40]wFMCommunicate request_size=4 [14:10:40]MH_SAM_APDU [14:10:40]CAPDU: 80 11 00 00 [14:10:40]Write to MH i2c: E2 08 00 4A 0C 80 11 00 00 00 00 00 00 D0 [14:10:40]Write i2c OK [14:10:40]MH_I2C_Read... [14:10:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:40]Read from MH i2c: E2 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: E2 17 00 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: E2 17 00 4A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1E [14:10:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:10:40]wFMCommunicate OK [14:10:40]requested_item fd.num is exist - process it [14:10:40]SAM_PROTO_GetFieldsCounters [14:10:40]wFMCommunicate request_size=4 [14:10:40]MH_SAM_APDU [14:10:40]CAPDU: 80 13 00 00 [14:10:40]Write to MH i2c: E2 08 00 4B 0C 80 13 00 00 00 00 00 00 D3 [14:10:40]Write i2c OK [14:10:40]MH_I2C_Read... [14:10:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:40]Read from MH i2c: E2 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: E2 62 00 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: E2 62 00 4B 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D5 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [14:10: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D5 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:40]wFMCommunicate OK [14:10:40]SAM_PROTO_GetFieldsCounters done [14:10:40]requested_item shift.num is exist - process it [14:10:40]requested_item shift.opened is exist - process it [14:10:40]req_shift_opened [14:10:40]FM_GetShiftState [14:10:40]SAM_PROTO_GetShiftState [14:10:40]wFMCommunicate request_size=4 [14:10:40]MH_SAM_APDU [14:10:40]CAPDU: 80 13 01 00 [14:10:40]Write to MH i2c: E2 08 00 4C 0C 80 13 01 00 00 00 00 00 D5 [14:10:40]Write i2c OK [14:10:40]MH_I2C_Read... [14:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:40]Read from MH i2c: E2 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: E2 0E 00 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: E2 0E 00 4C 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 16 [14:10:40]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:10:40]wFMCommunicate OK [14:10:40]SAM_PROTO_GetShiftState done [14:10:40]FM_GetShiftState done [14:10:40]req_shift_opened done [14:10:40]requested_item shift.open_date is exist - process it [14:10:40]req_shift_open_date [14:10:40]req_shift_open_date done [14:10:40]produce_requested_data done [14:10:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115669,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:10:40]process_action_free close_receipt [14:10:40]json_value_free [14:10:40]json_value_free done [14:10:40]process_json_proto returns [14:10:40]Send response to host [14:10:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115669,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:10:40]free response buf [14:10:40]execute_script done [14:10:40]execute_script returns [14:10:40]free content buf [14:10:40]Sock 7.Close socket [14:10:40]Sock 7.Thread stoped [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:55]accept exits with 9 [14:10:55]New connection [14:10:55]New thread 3067022692 created [14:10:55]Thread 3066879332 joined [14:10:55]Waiting for new connection... [14:10:55] Sock 9.Parse request [14:10:55]Sock 9.Check first char [14:10:55]Sock 9.First char is OK [14:10:55]request: POST /json_proto HTTP/1.0 [14:10:55]Method: POST [14:10:55]URL: /json_proto [14:10:55]Method is POST - this is cgi request [14:10:55]url: /json_proto [14:10:55]query_string will be loaded in cgi processing [14:10:55]execute_cgi json_proto POST (null) [14:10:55]execute_cgi path=json_proto method=POST [14:10:55]POST find Content-Length [14:10:55]Host: 172.17.41.136:8080 [14:10:55]Content-Length: 786 [14:10:55]Content-Type: application/json [14:10:55] [14:10:55]POST finish read [14:10:55]Found Content-Length = 786 [14:10:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 46.180, "sum" : 3200.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3200.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:55]execute_script... [14: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)24617713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 46.180, "sum" : 3200.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3200.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:55]POST & json_proto [14:10:55]process_json_proto [14:10:55]json parsed OK: [14:10:55]protocol is kg_v1.0 [14:10:55]action value=close_receipt [14:10:55]process_action close_receipt [14:10:55]cmd_close_receipt [14:10:55]MH_GetDate [14:10:55]Write to MH i2c: F0 00 00 4D 0C 48 [14:10:55]Write i2c OK [14:10:55]MH_I2C_Read... [14:10:55]Read from MH i2c: F0 [14:10:55]MH_I2C_Read... [14:10:56]Read from MH i2c: F0 09 00 [14:10:56]MH_I2C_Read... [14:10:56]Read from MH i2c: F0 09 00 4D 0C 00 F0 76 F1 66 1B D0 5A 64 B7 [14:10:56]GetLastDocTimeStamp 1727100636 [14:10:56]current date 1727100656 [14:10:56]FM_GetShiftState [14:10:56]SAM_PROTO_GetShiftState [14:10:56]wFMCommunicate request_size=4 [14:10:56]MH_SAM_APDU [14:10:56]CAPDU: 80 13 01 00 [14:10:56]Write to MH i2c: E2 08 00 4E 0C 80 13 01 00 00 00 00 00 D7 [14:10:56]Write i2c OK [14:10:56]MH_I2C_Read... [14:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:56]Read from MH i2c: E2 [14:10:56]MH_I2C_Read... [14:10:56]Read from MH i2c: E2 0E 00 [14:10:56]MH_I2C_Read... [14:10:56]Read from MH i2c: E2 0E 00 4E 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 18 [14:10:56]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:10:56]wFMCommunicate OK [14:10:56]SAM_PROTO_GetShiftState done [14:10:56]FM_GetShiftState done [14:10:56]opened in 1727052070 [14:10:56]opened+sec_in_day 1727138470 [14:10:56]quantity*price = 320027 [14:10:56]sum+1 = 320028 [14:10:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3200.27 НСП 1% : 28.32 НДС 12% : 339.85 Наличными: 0.00 Безнал.: 3200.27 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 153 23.09.2024 14:10 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115670 ФПД: 126825449727247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T141056&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115670&fm=126825449727247&tin=02508201610067®Number=0000000000091831&sum=320027 [14:10:57]StoreToDocumentArchive [14:10:57]shift 472 fd 115670 [14:10:57]save to /storage/0472/doc_00115670 [14:10:57]save last doc name /storage/0472/doc_00115670 to /storage/kkm_last_doc_name [14:10:57]save OK [14:10:57]Clear old archive folders... [14:10:57]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:10:57]tlvbuf is 017C5940 [14:10:57]SAM_PROTO_ClearQueue [14:10:57]wFMCommunicate request_size=4 [14:10:57]MH_SAM_APDU [14:10:57]CAPDU: 80 09 00 00 [14:10:57]Write to MH i2c: E2 08 00 5B 0C 80 09 00 00 00 00 00 00 D9 [14:10:57]Write i2c OK [14:10:57]MH_I2C_Read... [14:10:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:57]Read from MH i2c: E2 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: E2 03 00 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: E2 03 00 5B 0C 00 90 00 DB [14:10:57]RAPDU: 90 00 [14:10:57]wFMCommunicate OK [14:10:57]SAM_PROTO_ClearQueue done [14:10:57]KKMCreateOFDPacket [14:10:57]OFDProtocolAddRootSTLVToBuf [14:10:57]FM_MakeSignedData [14:10:57]FM_MakeSignedData [14:10:57]SAM_PROTO_SignData [14:10:57]wFMCommunicate request_size=4 [14:10:57]MH_SAM_APDU [14:10:57]CAPDU: 80 0D 01 02 [14:10:57]Write to MH i2c: E2 08 00 5C 0C 80 0D 01 02 00 00 00 00 E1 [14:10:57]Write i2c OK [14:10:57]MH_I2C_Read... [14:10:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:57]Read from MH i2c: E2 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: E2 03 00 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: E2 03 00 5C 0C 00 90 00 DC [14:10:57]RAPDU: 90 00 [14:10:57]wFMCommunicate OK [14:10:57]wFMCommunicate request_size=253 [14:10:57]MH_SAM_APDU [14:10:57]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 64 B4 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 1B E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 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 C1 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 F0 76 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D6 C3 01 00 35 04 06 00 73 58 D9 E1 25 0F [14:10:57]Write to MH i2c: E2 00 01 5D 0C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 64 B4 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 1B E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 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 C1 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 F0 76 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D6 C3 01 00 35 04 06 00 73 58 D9 E1 25 0F 00 00 BB [14:10:57]Write i2c OK [14:10:57]MH_I2C_Read... [14:10:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:57]Read from MH i2c: E2 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: E2 03 00 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: E2 03 00 5D 0C 00 90 00 DD [14:10:57]RAPDU: 90 00 [14:10:57]wFMCommunicate OK [14:10:57]wFMCommunicate request_size=4 [14:10:57]MH_SAM_APDU [14:10:57]CAPDU: 80 0D 03 02 [14:10:57]Write to MH i2c: E2 08 00 5E 0C 80 0D 03 02 00 00 00 00 E5 [14:10:57]Write i2c OK [14:10:57]MH_I2C_Read... [14:10:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:57]Read from MH i2c: E2 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: E2 0B 00 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: E2 0B 00 5E 0C 00 17 52 6C FE A2 F1 EB 26 90 00 5D [14:10:57]RAPDU: 17 52 6C FE A2 F1 EB 26 90 00 [14:10:57]wFMCommunicate OK [14:10:57]SAM_PROTO_SignData done [14:10:57]FM_MakeSignedData done [14:10:57]CreateOFDProtocolMessage [14:10:57]wFMCommunicate request_size=4 [14:10:57]MH_SAM_APDU [14:10:57]CAPDU: 80 11 00 00 [14:10:57]Write to MH i2c: E2 08 00 5F 0C 80 11 00 00 00 00 00 00 E5 [14:10:57]Write i2c OK [14:10:57]MH_I2C_Read... [14:10:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:57]Read from MH i2c: E2 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: E2 17 00 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: E2 17 00 5F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 33 [14:10:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:10:57]wFMCommunicate OK [14:10:57]CreateOFDProtocolMessage done [14:10:57]OFDSenderStorePacket 115670 [14:10:57]StoreOFDPacket docnum=115670 [14:10:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 ED 98 00 01 93 68 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 64 B4 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 1B E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 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 C1 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 F0 76 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D6 C3 01 00 35 04 06 00 73 58 D9 E1 25 0F 17 52 6C FE A2 F1 EB 26 [14:10:57]CheckFolder [14:10:57]dirname=/storage/ofd_packets [14:10:57]CheckFolder done [14:10:57]ProducePacketName [14:10:57]name=ofd_packets/00115670 [14:10:57]NVStorageSaveData ofd_packets/00115670 [14:10:57]File name is /storage/ofd_packets/00115670 [14:10:57]Write 294 bytes [14:10:57]NVStorageSaveData done [14:10:57]OFDSenderStorePacket done [14:10:57]KKMCreateOFDPacket done [14:10:57]NVStorageSaveData kkm_last_timestamp [14:10:57]File name is /storage/kkm_last_timestamp [14:10:57]Write 4 bytes [14:10:57]NVStorageSaveData done [14:10:57]ExternCall_PrintAddStr [14:10:57]wPrintStart [14:10:57]Write to MH i2c: 01 00 00 60 0C 6C [14:10:57]Write i2c OK [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: 01 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: 01 07 00 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: 01 07 00 60 0C 00 00 00 00 00 FF 0F 81 [14:10:57]RasterBufferAndPrint [14:10:57]line Счет N : (1)24617713 [14:10:57]line ИНН: 02508201610067 [14:10:57]line Контрольно-Кассовый Чек [14:10:57]line ПРОДАЖА [14:10:57]line ТРК (МРК, ГНК) : 64 [14:10:57]line Товар: 2710124130 [14:10:57]line SU-92 [14:10:57]line 46.180 * 69.30 [14:10:57]line = 3200.27 [14:10:57]line НДС 12% НСП 1% [14:10:57]line > о реализуемом товаре [14:10:57]line ИТОГО: 3200.27 [14:10:57]line НСП 1% : 28.32 [14:10:57]line НДС 12% : 339.85 [14:10:57]line Наличными: 0.00 [14:10:57]line Безнал.: 3200.27 [14:10:57]line Место: АЗС № 90 "Партнер Нефть" [14:10:57]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:10:57]line СНО: Общий режим [14:10:57]line Чек 153 23.09.2024 14:10 [14:10:57]line Смена: 472 ФФД: 1.0 [14:10:57]line ЗНМ: 0300000120 [14:10:57]line РНМ: 0000000000091831 [14:10:57]line Версия ККМ: 001 [14:10:57]line Платежная система: O! деньги [14:10:57]line ФМ: 0000000000871830 [14:10:57]line ФД: 115670 [14:10:57]line ФПД: 126825449727247 [14:10:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T141056&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115670&fm=126825449727247&tin=02508201610067®Number=0000000000091831&sum=320027 [14:10:57]OFD Sender: Processing packet 115670 [packets to send 482, broken 481] [14:10:57]ProducePacketName [14:10:57]name=ofd_packets/00115670 [14:10:57]OFD Sender: To server: pG, [14:10:57]CommunicateWithHost lk.salyk.kg:30040 [14:10:57]ConnectInit lk.salyk.kg [14:10:57]written 0, free lines is 4095 [14:10:58]Connected sock=10 [14: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 38 33 30 08 01 00 00 ED 98 00 01 93 68 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 64 B4 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 1B E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 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 C1 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 F0 76 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D6 C3 01 00 35 04 06 00 73 58 D9 E1 25 0F 17 52 6C FE A2 F1 EB 26 [14:10:58]Write to MH i2c: 01 00 00 89 0C 95 [14:10:58]Write i2c OK [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: 01 [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: 01 07 00 [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: 01 07 00 89 0C 00 00 00 00 00 83 0C 2B [14:10:58]RasterBufferAndPrint [14:10:58]line [14:10:58]line [14:10:58]line [14:10:58]line [14:10:58]line [14:10:58]written 0, free lines is 3207 [14:10:58]MH_Cut [14:10:58]Write to MH i2c: D1 01 00 90 0C 01 6E [14:10:58]Write i2c OK [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: D1 [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: D1 01 00 [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: D1 01 00 90 0C 00 6D [14:10:58]Write to MH i2c: 01 00 00 91 0C 9D [14:10:58]Write i2c OK [14:10:58]MH_I2C_Read... [14: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 38 33 30 4F 00 00 00 E7 95 47 00 79 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 38 33 30 10 04 04 00 D6 C3 01 00 F4 03 04 00 32 1C F1 66 B6 04 01 00 00 83 EE 9D 83 49 39 20 4B [14:10:58]CommunicateWithHost err = 0 [14:10:58]CheckOFDResponse [14:10:58]1017 (14) - 77093643461234 [14:10:58]1041 (16) - 0000000000871830 [14:10:58]1040 (4) - 115670 [14:10:58]1012 (4) - 23.09.2024 07:43 [14:10:58]1206 (1) - 0 [14:10:58]OFD Sender: Remove packet 115670 [14:10:58]ProducePacketName [14:10:58]name=ofd_packets/00115670 [14:10:58]NVStorageDeleteData [14:10:59]OFD Sender: No OFD packet to send [14:10:59]*** Cut start [14:10:59]*** Partial cut [14:10:59]*** CUTSNS_PIN = 1 [14:10:59]*** CUTSNS_PIN = 0 [14:10:59]*** Brake cut motor [14:11:00]Read from MH i2c: 01 [14:11:00]MH_I2C_Read... [14:11:00]*** Stop cut motor [14:11:00]*** Cut end [14:11:00]Read from MH i2c: 01 07 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: 01 07 00 91 0C 00 00 00 00 00 FF 0F B2 [14:11:00]process_action close_receipt done [14:11:00]requested_data is exist [14:11:00]produce_requested_data [14:11:00]requested_item fm.sn is exist - process it [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 11 00 00 [14:11:00]Write to MH i2c: E2 08 00 92 0C 80 11 00 00 00 00 00 00 18 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 17 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 17 00 92 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 66 [14:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:11:00]wFMCommunicate OK [14:11:00]requested_item fd.num is exist - process it [14:11:00]SAM_PROTO_GetFieldsCounters [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 13 00 00 [14:11:00]Write to MH i2c: E2 08 00 93 0C 80 13 00 00 00 00 00 00 1B [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 62 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 62 00 93 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D6 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [14: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D6 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:00]wFMCommunicate OK [14:11:00]SAM_PROTO_GetFieldsCounters done [14:11:00]requested_item shift.num is exist - process it [14:11:00]requested_item shift.opened is exist - process it [14:11:00]req_shift_opened [14:11:00]FM_GetShiftState [14:11:00]SAM_PROTO_GetShiftState [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 13 01 00 [14:11:00]Write to MH i2c: E2 08 00 94 0C 80 13 01 00 00 00 00 00 1D [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 0E 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 0E 00 94 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5E [14:11:00]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:11:00]wFMCommunicate OK [14:11:00]SAM_PROTO_GetShiftState done [14:11:00]FM_GetShiftState done [14:11:00]req_shift_opened done [14:11:00]requested_item shift.open_date is exist - process it [14:11:00]req_shift_open_date [14:11:00]req_shift_open_date done [14:11:00]produce_requested_data done [14:11:00]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115670,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:11:00]process_action_free close_receipt [14:11:00]json_value_free [14:11:00]json_value_free done [14:11:00]process_json_proto returns [14:11:00]Send response to host [14:11:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115670,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:11:00]free response buf [14:11:00]execute_script done [14:11:00]execute_script returns [14:11:00]free content buf [14:11:00]Sock 9.Close socket [14:11:00]Sock 9.Thread stoped [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]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:17]accept exits with 7 [14:16:17]New connection [14:16:17]New thread 3066879332 created [14:16:17]Thread 3067022692 joined [14:16:17]Waiting for new connection... [14:16:17] Sock 7.Parse request [14:16:17]Sock 7.Check first char [14:16:17]Sock 7.First char is OK [14:16:17]request: POST /json_proto HTTP/1.0 [14:16:17]Method: POST [14:16:17]URL: /json_proto [14:16:17]Method is POST - this is cgi request [14:16:17]url: /json_proto [14:16:17]query_string will be loaded in cgi processing [14:16:17]execute_cgi json_proto POST (null) [14:16:17]execute_cgi path=json_proto method=POST [14:16:17]POST find Content-Length [14:16:17]Host: 172.17.41.136:8080 [14:16:17]Content-Length: 815 [14:16:17]Content-Type: application/json [14:16:17] [14:16:17]POST finish read [14:16:17]Found Content-Length = 815 [14:16:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344026", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:17]execute_script... [14:16:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344026", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:17]POST & json_proto [14:16:17]process_json_proto [14:16:17]json parsed OK: [14:16:17]protocol is kg_v1.0 [14:16:17]action value=close_receipt [14:16:17]process_action close_receipt [14:16:17]cmd_close_receipt [14:16:17]MH_GetDate [14:16:17]Write to MH i2c: F0 00 00 95 0C 90 [14:16:17]Write i2c OK [14:16:17]MH_I2C_Read... [14:16:17]Read from MH i2c: F0 [14:16:17]MH_I2C_Read... [14:16:17]Read from MH i2c: F0 09 00 [14:16:17]MH_I2C_Read... [14:16:17]Read from MH i2c: F0 09 00 95 0C 00 32 78 F1 66 1B D0 5A 64 43 [14:16:17]GetLastDocTimeStamp 1727100656 [14:16:17]current date 1727100978 [14:16:17]FM_GetShiftState [14:16:17]SAM_PROTO_GetShiftState [14:16:17]wFMCommunicate request_size=4 [14:16:17]MH_SAM_APDU [14:16:17]CAPDU: 80 13 01 00 [14:16:17]Write to MH i2c: E2 08 00 96 0C 80 13 01 00 00 00 00 00 1F [14:16:17]Write i2c OK [14:16:17]MH_I2C_Read... [14:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:17]Read from MH i2c: E2 [14:16:17]MH_I2C_Read... [14:16:17]Read from MH i2c: E2 0E 00 [14:16:17]MH_I2C_Read... [14:16:17]Read from MH i2c: E2 0E 00 96 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 60 [14:16:17]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:16:17]wFMCommunicate OK [14:16:17]SAM_PROTO_GetShiftState done [14:16:17]FM_GetShiftState done [14:16:17]opened in 1727052070 [14:16:17]opened+sec_in_day 1727138470 [14:16:17]quantity*price = 7700 [14:16:17]sum+1 = 7701 [14:16:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 0.00 Безнал.: 77.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 154 23.09.2024 14:16 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115671 ФПД: 1951742072656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T141618&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115671&fm=1951742072656&tin=02508201610067®Number=0000000000091831&sum=7700 0 [14:16:18]StoreToDocumentArchive [14:16:18]shift 472 fd 115671 [14:16:18]save to /storage/0472/doc_00115671 [14:16:18]save last doc name /storage/0472/doc_00115671 to /storage/kkm_last_doc_name [14:16:18]save OK [14:16:18]Clear old archive folders... [14:16:18]ProcessDocumentItem done err = 0, tmpTLVsize=293 [14:16:18]tlvbuf is 017A1CC0 [14:16:18]SAM_PROTO_ClearQueue [14:16:18]wFMCommunicate request_size=4 [14:16:18]MH_SAM_APDU [14:16:18]CAPDU: 80 09 00 00 [14:16:18]Write to MH i2c: E2 08 00 A3 0C 80 09 00 00 00 00 00 00 21 [14:16:18]Write i2c OK [14:16:18]MH_I2C_Read... [14:16:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:18]Read from MH i2c: E2 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 A3 0C 00 90 00 23 [14:16:18]RAPDU: 90 00 [14:16:18]wFMCommunicate OK [14:16:18]SAM_PROTO_ClearQueue done [14:16:18]KKMCreateOFDPacket [14:16:18]OFDProtocolAddRootSTLVToBuf [14:16:18]FM_MakeSignedData [14:16:18]FM_MakeSignedData [14:16:18]SAM_PROTO_SignData [14:16:18]wFMCommunicate request_size=4 [14:16:18]MH_SAM_APDU [14:16:18]CAPDU: 80 0D 01 02 [14:16:18]Write to MH i2c: E2 08 00 A4 0C 80 0D 01 02 00 00 00 00 29 [14:16:18]Write i2c OK [14:16:18]MH_I2C_Read... [14:16:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:18]Read from MH i2c: E2 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 A4 0C 00 90 00 24 [14:16:18]RAPDU: 90 00 [14:16:18]wFMCommunicate OK [14:16:18]wFMCommunicate request_size=255 [14:16:18]MH_SAM_APDU [14:16:18]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 32 78 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [14:16:18]Write to MH i2c: E2 02 01 A5 0C 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 32 78 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 32 [14:16:18]Write i2c OK [14:16:18]MH_I2C_Read... [14:16:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:19]Read from MH i2c: E2 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 03 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 03 00 A5 0C 00 90 00 25 [14:16:19]RAPDU: 90 00 [14:16:19]wFMCommunicate OK [14:16:19]wFMCommunicate request_size=52 [14:16:19]MH_SAM_APDU [14:16:19]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D7 C3 01 00 35 04 06 00 01 C6 6C E4 97 50 [14:16:19]Write to MH i2c: E2 37 00 A6 0C 80 0D 02 02 2F 00 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D7 C3 01 00 35 04 06 00 01 C6 6C E4 97 50 00 00 80 [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:19]Read from MH i2c: E2 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 03 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 03 00 A6 0C 00 90 00 26 [14:16:19]RAPDU: 90 00 [14:16:19]wFMCommunicate OK [14:16:19]wFMCommunicate request_size=4 [14:16:19]MH_SAM_APDU [14:16:19]CAPDU: 80 0D 03 02 [14:16:19]Write to MH i2c: E2 08 00 A7 0C 80 0D 03 02 00 00 00 00 2E [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:19]Read from MH i2c: E2 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 0B 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 0B 00 A7 0C 00 D1 BE AF 0A B4 DF DD 09 90 00 F0 [14:16:19]RAPDU: D1 BE AF 0A B4 DF DD 09 90 00 [14:16:19]wFMCommunicate OK [14:16:19]SAM_PROTO_SignData done [14:16:19]FM_MakeSignedData done [14:16:19]CreateOFDProtocolMessage [14:16:19]wFMCommunicate request_size=4 [14:16:19]MH_SAM_APDU [14:16:19]CAPDU: 80 11 00 00 [14:16:19]Write to MH i2c: E2 08 00 A8 0C 80 11 00 00 00 00 00 00 2E [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:19]Read from MH i2c: E2 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 17 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 17 00 A8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7C [14:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:16:19]wFMCommunicate OK [14:16:19]CreateOFDProtocolMessage done [14:16:19]OFDSenderStorePacket 115671 [14:16:19]StoreOFDPacket docnum=115671 [14:16:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 39 01 00 00 AE D9 31 01 7A 3E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 32 78 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D7 C3 01 00 35 04 06 00 01 C6 6C E4 97 50 D1 BE AF 0A B4 DF DD 09 [14:16:19]CheckFolder [14:16:19]dirname=/storage/ofd_packets [14:16:19]CheckFolder done [14:16:19]ProducePacketName [14:16:19]name=ofd_packets/00115671 [14:16:19]NVStorageSaveData ofd_packets/00115671 [14:16:19]File name is /storage/ofd_packets/00115671 [14:16:19]Write 343 bytes [14:16:19]NVStorageSaveData done [14:16:19]OFDSenderStorePacket done [14:16:19]KKMCreateOFDPacket done [14:16:19]NVStorageSaveData kkm_last_timestamp [14:16:19]File name is /storage/kkm_last_timestamp [14:16:19]Write 4 bytes [14:16:19]NVStorageSaveData done [14:16:19]ExternCall_PrintAddStr [14:16:19]wPrintStart [14:16:19]Write to MH i2c: 01 00 00 A9 0C B5 [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: 01 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: 01 07 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: 01 07 00 A9 0C 00 00 00 00 00 FF 0F CA [14:16:19]RasterBufferAndPrint [14:16:19]line Счет N : (3)344026 [14:16:19]line ИНН: 02508201610067 [14:16:19]line Контрольно-Кассовый Чек [14:16:19]line ПРОДАЖА [14:16:19]line Товар: 4700000480050 [14:16:19]line Напиток Nitro Energy эн green ж/б 0,45л [14:16:19]line 1.000 * 77.00 [14:16:19]line = 77.00 [14:16:19]line НДС 12% НСП 1% [14:16:19]line > о реализуемом товаре [14:16:19]line ИТОГО: 77.00 [14:16:19]line НСП 1% : 0.68 [14:16:19]line НДС 12% : 8.18 [14:16:19]line Наличными: 0.00 [14:16:19]line Безнал.: 77.00 [14:16:19]line Место: АЗС № 90 "Партнер Нефть" [14:16:19]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:16:19]line СНО: Общий режим [14:16:19]line Чек 154 23.09.2024 14:16 [14:16:19]line Смена: 472 ФФД: 1.0 [14:16:19]line ЗНМ: 0300000120 [14:16:19]line РНМ: 0000000000091831 [14:16:19]line Версия ККМ: 001 [14:16:19]line Платежная система: O! деньги [14:16:19]line ФМ: 0000000000871830 [14:16:19]line ФД: 115671 [14:16:19]line ФПД: 1951742072656 [14:16:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T141618&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115671&fm=1951742072656&tin=02508201610067®Number=0000000000091831&sum=7700 [14:16:19]line 0 [14:16:19]written 0, free lines is 4095 [14:16:19]OFD Sender: Processing packet 115671 [packets to send 482, broken 481] [14:16:19]ProducePacketName [14:16:19]name=ofd_packets/00115671 [14:16:19]OFD Sender: To server: pG, [14:16:19]CommunicateWithHost lk.salyk.kg:30040 [14:16:19]ConnectInit lk.salyk.kg [14:16:19]Connected sock=10 [14:16:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 39 01 00 00 AE D9 31 01 7A 3E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 32 78 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D7 C3 01 00 35 04 06 00 01 C6 6C E4 97 50 D1 BE AF 0A B4 DF DD 09 [14:16:19]Write to MH i2c: 01 00 00 D3 0C DF [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: 01 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: 01 07 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: 01 07 00 D3 0C 00 00 00 00 00 32 0C 24 [14:16:19]RasterBufferAndPrint [14:16:19]line [14:16:19]line [14:16:19]line [14:16:19]line [14:16:19]line [14:16:19]written 0, free lines is 3127 [14:16:19]MH_Cut [14:16:19]Write to MH i2c: D1 01 00 DA 0C 01 B8 [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: D1 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: D1 01 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: D1 01 00 DA 0C 00 B7 [14:16:19]Write to MH i2c: 01 00 00 DB 0C E7 [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9F 2E 47 00 C1 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 38 33 30 10 04 04 00 D7 C3 01 00 F4 03 04 00 74 1D F1 66 B6 04 01 00 00 A0 33 57 DA 12 B2 9C 8D [14:16:20]CommunicateWithHost err = 0 [14:16:20]CheckOFDResponse [14:16:20]1017 (14) - 77093643461234 [14:16:20]1041 (16) - 0000000000871830 [14:16:20]1040 (4) - 115671 [14:16:20]1012 (4) - 23.09.2024 07:49 [14:16:20]1206 (1) - 0 [14:16:20]OFD Sender: Remove packet 115671 [14:16:20]ProducePacketName [14:16:20]name=ofd_packets/00115671 [14:16:20]NVStorageDeleteData [14:16:20]OFD Sender: No OFD packet to send [14:16:21]*** Cut start [14:16:21]*** Partial cut [14:16:21]*** CUTSNS_PIN = 1 [14:16:21]*** CUTSNS_PIN = 0 [14:16:21]*** Brake cut motor [14:16:21]Read from MH i2c: 01 [14:16:21]MH_I2C_Read... [14:16:21]*** Stop cut motor [14:16:21]*** Cut end [14:16:21]Read from MH i2c: 01 07 00 [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: 01 07 00 DB 0C 00 00 00 00 00 FF 0F FC [14:16:21]process_action close_receipt done [14:16:21]requested_data is exist [14:16:21]produce_requested_data [14:16:21]requested_item fm.sn is exist - process it [14:16:21]wFMCommunicate request_size=4 [14:16:21]MH_SAM_APDU [14:16:21]CAPDU: 80 11 00 00 [14:16:21]Write to MH i2c: E2 08 00 DC 0C 80 11 00 00 00 00 00 00 62 [14:16:21]Write i2c OK [14:16:21]MH_I2C_Read... [14:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:21]Read from MH i2c: E2 [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: E2 17 00 [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: E2 17 00 DC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B0 [14:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:16:21]wFMCommunicate OK [14:16:21]requested_item fd.num is exist - process it [14:16:21]SAM_PROTO_GetFieldsCounters [14:16:21]wFMCommunicate request_size=4 [14:16:21]MH_SAM_APDU [14:16:21]CAPDU: 80 13 00 00 [14:16:21]Write to MH i2c: E2 08 00 DD 0C 80 13 00 00 00 00 00 00 65 [14:16:21]Write i2c OK [14:16:21]MH_I2C_Read... [14:16:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:22]Read from MH i2c: E2 [14:16:22]MH_I2C_Read... [14:16:22]Read from MH i2c: E2 62 00 [14:16:22]MH_I2C_Read... [14:16:22]Read from MH i2c: E2 62 00 DD 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D7 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [14:16: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D7 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:22]wFMCommunicate OK [14:16:22]SAM_PROTO_GetFieldsCounters done [14:16:22]requested_item shift.num is exist - process it [14:16:22]requested_item shift.opened is exist - process it [14:16:22]req_shift_opened [14:16:22]FM_GetShiftState [14:16:22]SAM_PROTO_GetShiftState [14:16:22]wFMCommunicate request_size=4 [14:16:22]MH_SAM_APDU [14:16:22]CAPDU: 80 13 01 00 [14:16:22]Write to MH i2c: E2 08 00 DE 0C 80 13 01 00 00 00 00 00 67 [14:16:22]Write i2c OK [14:16:22]MH_I2C_Read... [14:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:22]Read from MH i2c: E2 [14:16:22]MH_I2C_Read... [14:16:22]Read from MH i2c: E2 0E 00 [14:16:22]MH_I2C_Read... [14:16:22]Read from MH i2c: E2 0E 00 DE 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A8 [14:16:22]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:16:22]wFMCommunicate OK [14:16:22]SAM_PROTO_GetShiftState done [14:16:22]FM_GetShiftState done [14:16:22]req_shift_opened done [14:16:22]requested_item shift.open_date is exist - process it [14:16:22]req_shift_open_date [14:16:22]req_shift_open_date done [14:16:22]produce_requested_data done [14:16:22]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115671,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:16:22]process_action_free close_receipt [14:16:22]json_value_free [14:16:22]json_value_free done [14:16:22]process_json_proto returns [14:16:22]Send response to host [14:16:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115671,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:16:22]free response buf [14:16:22]execute_script done [14:16:22]execute_script returns [14:16:22]free content buf [14:16:22]Sock 7.Close socket [14:16:22]Sock 7.Thread stoped [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [14:16:45]accept exits with 9 [14:16:45]New connection [14:16:45]New thread 3067022692 created [14:16:45]Thread 3066879332 joined [14:16:45]Waiting for new connection... [14:16:45] Sock 9.Parse request [14:16:45]Sock 9.Check first char [14:16:45]Sock 9.First char is OK [14:16:45]request: POST /json_proto HTTP/1.0 [14:16:45]Method: POST [14:16:45]URL: /json_proto [14:16:45]Method is POST - this is cgi request [14:16:45]url: /json_proto [14:16:45]query_string will be loaded in cgi processing [14:16:45]execute_cgi json_proto POST (null) [14:16:45]execute_cgi path=json_proto method=POST [14:16:45]POST find Content-Length [14:16:45]Host: 172.17.41.136:8080 [14:16:45]Content-Length: 1257 [14:16:45]Content-Type: application/json [14:16:45] [14:16:45]POST finish read [14:16:45]Found Content-Length = 1257 [14:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344027", "tax_sys" : 0, "items" : [ { "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:45]execute_script... [14:16: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 : (3)344027", "tax_sys" : 0, "items" : [ { "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:45]POST & json_proto [14:16:45]process_json_proto [14:16:45]json parsed OK: [14:16:45]protocol is kg_v1.0 [14:16:45]action value=close_receipt [14:16:45]process_action close_receipt [14:16:45]cmd_close_receipt [14:16:45]MH_GetDate [14:16:45]Write to MH i2c: F0 00 00 DF 0C DA [14:16:45]Write i2c OK [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: F0 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: F0 09 00 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: F0 09 00 DF 0C 00 4D 78 F1 66 1B D0 5A 64 A8 [14:16:45]GetLastDocTimeStamp 1727100978 [14:16:45]current date 1727101005 [14:16:45]FM_GetShiftState [14:16:45]SAM_PROTO_GetShiftState [14:16:45]wFMCommunicate request_size=4 [14:16:45]MH_SAM_APDU [14:16:45]CAPDU: 80 13 01 00 [14:16:45]Write to MH i2c: E2 08 00 E0 0C 80 13 01 00 00 00 00 00 69 [14:16:45]Write i2c OK [14:16:45]MH_I2C_Read... [14:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:45]Read from MH i2c: E2 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: E2 0E 00 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: E2 0E 00 E0 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 AA [14:16:45]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:16:45]wFMCommunicate OK [14:16:45]SAM_PROTO_GetShiftState done [14:16:45]FM_GetShiftState done [14:16:45]opened in 1727052070 [14:16:45]opened+sec_in_day 1727138470 [14:16:45]quantity*price = 6500 [14:16:45]sum+1 = 6501 [14:16:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571535 Вода ASU пит н.газ персик ПЭТ 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.20 НДС 12% : 26.54 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 155 23.09.2024 14:16 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115672 ФПД: 132924869689441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T141645&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115672&fm=132924869689441&tin=02508201610067®Number=0000000000091831&sum=25000 0 [14:16:46]StoreToDocumentArchive [14:16:46]shift 472 fd 115672 [14:16:46]save to /storage/0472/doc_00115672 [14:16:46]save last doc name /storage/0472/doc_00115672 to /storage/kkm_last_doc_name [14:16:46]save OK [14:16:46]Clear old archive folders... [14:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=526 [14:16:46]tlvbuf is 01822A00 [14:16:46]SAM_PROTO_ClearQueue [14:16:46]wFMCommunicate request_size=4 [14:16:46]MH_SAM_APDU [14:16:46]CAPDU: 80 09 00 00 [14:16:46]Write to MH i2c: E2 08 00 ED 0C 80 09 00 00 00 00 00 00 6B [14:16:46]Write i2c OK [14:16:46]MH_I2C_Read... [14:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:46]Read from MH i2c: E2 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 03 00 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 03 00 ED 0C 00 90 00 6D [14:16:46]RAPDU: 90 00 [14:16:46]wFMCommunicate OK [14:16:46]SAM_PROTO_ClearQueue done [14:16:46]KKMCreateOFDPacket [14:16:46]OFDProtocolAddRootSTLVToBuf [14:16:46]FM_MakeSignedData [14:16:46]FM_MakeSignedData [14:16:46]SAM_PROTO_SignData [14:16:46]wFMCommunicate request_size=4 [14:16:46]MH_SAM_APDU [14:16:46]CAPDU: 80 0D 01 02 [14:16:46]Write to MH i2c: E2 08 00 EE 0C 80 0D 01 02 00 00 00 00 73 [14:16:46]Write i2c OK [14:16:46]MH_I2C_Read... [14:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:46]Read from MH i2c: E2 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 03 00 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 03 00 EE 0C 00 90 00 6E [14:16:46]RAPDU: 90 00 [14:16:46]wFMCommunicate OK [14:16:46]wFMCommunicate request_size=255 [14:16:46]MH_SAM_APDU [14:16:46]CAPDU: 80 0D 02 02 FA 03 00 0E 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 [14:16:46]Write to MH i2c: E2 02 01 EF 0C 80 0D 02 02 FA 00 03 00 0E 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 00 00 22 [14:16:46]Write i2c OK [14:16:46]MH_I2C_Read... [14:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:47]Read from MH i2c: E2 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 03 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 03 00 EF 0C 00 90 00 6F [14:16:47]RAPDU: 90 00 [14:16:47]wFMCommunicate OK [14:16:47]wFMCommunicate request_size=255 [14:16:47]MH_SAM_APDU [14:16:47]CAPDU: 80 0D 02 02 FA 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 4D 78 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 [14:16:47]Write to MH i2c: E2 02 01 F0 0C 80 0D 02 02 FA 00 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 4D 78 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 00 00 CE [14:16:47]Write i2c OK [14:16:47]MH_I2C_Read... [14:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:47]Read from MH i2c: E2 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 03 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 03 00 F0 0C 00 90 00 70 [14:16:47]RAPDU: 90 00 [14:16:47]wFMCommunicate OK [14:16:47]wFMCommunicate request_size=35 [14:16:47]MH_SAM_APDU [14:16:47]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D8 C3 01 00 35 04 06 00 78 E4 FB A3 C0 61 [14:16:47]Write to MH i2c: E2 26 00 F1 0C 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D8 C3 01 00 35 04 06 00 78 E4 FB A3 C0 61 00 00 1C [14:16:47]Write i2c OK [14:16:47]MH_I2C_Read... [14:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:47]Read from MH i2c: E2 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 03 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 03 00 F1 0C 00 90 00 71 [14:16:47]RAPDU: 90 00 [14:16:47]wFMCommunicate OK [14:16:47]wFMCommunicate request_size=4 [14:16:47]MH_SAM_APDU [14:16:47]CAPDU: 80 0D 03 02 [14:16:47]Write to MH i2c: E2 08 00 F2 0C 80 0D 03 02 00 00 00 00 79 [14:16:47]Write i2c OK [14:16:47]MH_I2C_Read... [14:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:47]Read from MH i2c: E2 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 0B 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 0B 00 F2 0C 00 D8 B6 2F 66 7F 6C B3 91 90 00 CC [14:16:47]RAPDU: D8 B6 2F 66 7F 6C B3 91 90 00 [14:16:47]wFMCommunicate OK [14:16:47]SAM_PROTO_SignData done [14:16:47]FM_MakeSignedData done [14:16:47]CreateOFDProtocolMessage [14:16:47]wFMCommunicate request_size=4 [14:16:47]MH_SAM_APDU [14:16:47]CAPDU: 80 11 00 00 [14:16:47]Write to MH i2c: E2 08 00 F3 0C 80 11 00 00 00 00 00 00 79 [14:16:47]Write i2c OK [14:16:47]MH_I2C_Read... [14:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:47]Read from MH i2c: E2 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 17 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 17 00 F3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C7 [14:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:16:47]wFMCommunicate OK [14:16:47]CreateOFDProtocolMessage done [14:16:47]OFDSenderStorePacket 115672 [14:16:47]StoreOFDPacket docnum=115672 [14:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 22 02 00 00 87 1D 1A 02 66 77 5A 03 01 00 03 00 0E 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 4D 78 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D8 C3 01 00 35 04 06 00 78 E4 FB A3 C0 61 D8 B6 2F 66 7F 6C B3 91 [14:16:47]CheckFolder [14:16:47]dirname=/storage/ofd_packets [14:16:47]CheckFolder done [14:16:47]ProducePacketName [14:16:47]name=ofd_packets/00115672 [14:16:47]NVStorageSaveData ofd_packets/00115672 [14:16:47]File name is /storage/ofd_packets/00115672 [14:16:47]Write 576 bytes [14:16:47]NVStorageSaveData done [14:16:47]OFDSenderStorePacket done [14:16:47]KKMCreateOFDPacket done [14:16:47]NVStorageSaveData kkm_last_timestamp [14:16:47]File name is /storage/kkm_last_timestamp [14:16:47]Write 4 bytes [14:16:47]NVStorageSaveData done [14:16:47]ExternCall_PrintAddStr [14:16:47]wPrintStart [14:16:47]Write to MH i2c: 01 00 00 F4 0C 00 [14:16:47]Write i2c OK [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: 01 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: 01 07 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: 01 07 00 F4 0C 00 00 00 00 00 FF 0F 15 [14:16:47]RasterBufferAndPrint [14:16:47]line Счет N : (3)344027 [14:16:47]line ИНН: 02508201610067 [14:16:47]line Контрольно-Кассовый Чек [14:16:47]line ПРОДАЖА [14:16:47]line Товар: 4870002328404 [14:16:47]line Вода ASU пит н.газ мята ПЭТ 0,5л [14:16:47]line 1.000 * 65.00 [14:16:47]line = 65.00 [14:16:47]line НДС 12% НСП 1% [14:16:47]line > о реализуемом товаре [14:16:47]line Товар: 4870001571535 [14:16:47]line Вода ASU пит н.газ персик ПЭТ 0,5л [14:16:47]line 1.000 * 65.00 [14:16:47]line = 65.00 [14:16:47]line НДС 12% НСП 1% [14:16:47]line > о реализуемом товаре [14:16:47]line Товар: 4700000310043 [14:16:47]line Вода Жалалабат 27 1л [14:16:47]line 2.000 * 60.00 [14:16:47]line = 120.00 [14:16:47]line НДС 12% НСП 1% [14:16:47]line > о реализуемом товаре [14:16:47]line ИТОГО: 250.00 [14:16:47]line НСП 1% : 2.20 [14:16:47]line НДС 12% : 26.54 [14:16:47]line Наличными: 250.00 [14:16:47]line Безнал.: 0.00 [14:16:47]line Место: АЗС № 90 "Партнер Нефть" [14:16:47]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:16:47]line СНО: Общий режим [14:16:47]line Чек 155 23.09.2024 14:16 [14:16:47]line Смена: 472 ФФД: 1.0 [14:16:47]line ЗНМ: 0300000120 [14:16:47]line РНМ: 0000000000091831 [14:16:47]line Версия ККМ: 001 [14:16:47]line ФМ: 0000000000871830 [14:16:47]line ФД: 115672 [14:16:47]line ФПД: 132924869689441 [14:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T141645&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115672&fm=132924869689441&tin=02508201610067®Number=0000000000091831&sum=25000 [14:16:47]OFD Sender: Processing packet 115672 [packets to send 482, broken 481] [14:16:47]ProducePacketName [14:16:47]name=ofd_packets/00115672 [14:16:47]OFD Sender: To server: pG, [14:16:47]CommunicateWithHost lk.salyk.kg:30040 [14:16:47]ConnectInit lk.salyk.kg [14:16:47]line 0 [14:16:47]written 0, free lines is 4095 [14:16:48]Connected sock=10 [14: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 38 33 30 22 02 00 00 87 1D 1A 02 66 77 5A 03 01 00 03 00 0E 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 4D 78 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D8 C3 01 00 35 04 06 00 78 E4 FB A3 C0 61 D8 B6 2F 66 7F 6C B3 91 [14:16:48]Write to MH i2c: 01 00 00 29 0D 36 [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 29 0D 00 00 00 00 00 54 0B 9C [14:16:48]RasterBufferAndPrint [14:16:48]line [14:16:48]line [14:16:48]line [14:16:48]line [14:16:48]line [14:16:48]written 0, free lines is 2904 [14: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 38 33 30 4F 00 00 00 D5 A1 47 00 85 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 38 33 30 10 04 04 00 D8 C3 01 00 F4 03 04 00 90 1D F1 66 B6 04 01 00 00 86 16 6A DD 7D 5F E7 F1 [14:16:48]CommunicateWithHost err = 0 [14:16:48]CheckOFDResponse [14:16:48]1017 (14) - 77093643461234 [14:16:48]1041 (16) - 0000000000871830 [14:16:48]1040 (4) - 115672 [14:16:48]1012 (4) - 23.09.2024 07:49 [14:16:48]1206 (1) - 0 [14:16:48]OFD Sender: Remove packet 115672 [14:16:48]ProducePacketName [14:16:48]name=ofd_packets/00115672 [14:16:48]NVStorageDeleteData [14:16:48]MH_Cut [14:16:48]Write to MH i2c: D1 01 00 30 0D 01 0F [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: D1 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: D1 01 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: D1 01 00 30 0D 00 0E [14:16:48]Write to MH i2c: 01 00 00 31 0D 3E [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]OFD Sender: No OFD packet to send [14:16:50]*** Cut start [14:16:50]*** Partial cut [14:16:50]*** CUTSNS_PIN = 1 [14:16:50]*** CUTSNS_PIN = 0 [14:16:50]*** Brake cut motor [14:16:50]Read from MH i2c: 01 [14:16:50]MH_I2C_Read... [14:16:50]*** Stop cut motor [14:16:50]*** Cut end [14:16:50]Read from MH i2c: 01 07 00 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: 01 07 00 31 0D 00 00 00 00 00 FF 0F 53 [14:16:50]process_action close_receipt done [14:16:50]requested_data is exist [14:16:50]produce_requested_data [14:16:50]requested_item fm.sn is exist - process it [14:16:50]wFMCommunicate request_size=4 [14:16:50]MH_SAM_APDU [14:16:50]CAPDU: 80 11 00 00 [14:16:50]Write to MH i2c: E2 08 00 32 0D 80 11 00 00 00 00 00 00 B9 [14:16:50]Write i2c OK [14:16:50]MH_I2C_Read... [14:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:50]Read from MH i2c: E2 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: E2 17 00 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: E2 17 00 32 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 07 [14:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:16:50]wFMCommunicate OK [14:16:50]requested_item fd.num is exist - process it [14:16:50]SAM_PROTO_GetFieldsCounters [14:16:50]wFMCommunicate request_size=4 [14:16:50]MH_SAM_APDU [14:16:50]CAPDU: 80 13 00 00 [14:16:50]Write to MH i2c: E2 08 00 33 0D 80 13 00 00 00 00 00 00 BC [14:16:50]Write i2c OK [14:16:50]MH_I2C_Read... [14:16:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:50]Read from MH i2c: E2 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: E2 62 00 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: E2 62 00 33 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D8 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [14: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D8 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:50]wFMCommunicate OK [14:16:50]SAM_PROTO_GetFieldsCounters done [14:16:50]requested_item shift.num is exist - process it [14:16:50]requested_item shift.opened is exist - process it [14:16:50]req_shift_opened [14:16:50]FM_GetShiftState [14:16:50]SAM_PROTO_GetShiftState [14:16:50]wFMCommunicate request_size=4 [14:16:50]MH_SAM_APDU [14:16:50]CAPDU: 80 13 01 00 [14:16:50]Write to MH i2c: E2 08 00 34 0D 80 13 01 00 00 00 00 00 BE [14:16:50]Write i2c OK [14:16:50]MH_I2C_Read... [14:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:50]Read from MH i2c: E2 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: E2 0E 00 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: E2 0E 00 34 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 FF [14:16:50]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:16:50]wFMCommunicate OK [14:16:50]SAM_PROTO_GetShiftState done [14:16:50]FM_GetShiftState done [14:16:50]req_shift_opened done [14:16:50]requested_item shift.open_date is exist - process it [14:16:50]req_shift_open_date [14:16:50]req_shift_open_date done [14:16:50]produce_requested_data done [14:16:50]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115672,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:16:50]process_action_free close_receipt [14:16:50]json_value_free [14:16:50]json_value_free done [14:16:50]process_json_proto returns [14:16:50]Send response to host [14:16:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115672,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:16:50]free response buf [14:16:50]execute_script done [14:16:50]execute_script returns [14:16:50]free content buf [14:16:50]Sock 9.Close socket [14:16:50]Sock 9.Thread stoped [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]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:54]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:37]accept exits with 7 [14:25:37]New connection [14:25:37]New thread 3066879332 created [14:25:37]Thread 3067022692 joined [14:25:37]Waiting for new connection... [14:25:37] Sock 7.Parse request [14:25:37]Sock 7.Check first char [14:25:37]Sock 7.First char is OK [14:25:37]request: POST /json_proto HTTP/1.0 [14:25:37]Method: POST [14:25:37]URL: /json_proto [14:25:37]Method is POST - this is cgi request [14:25:37]url: /json_proto [14:25:37]query_string will be loaded in cgi processing [14:25:37]execute_cgi json_proto POST (null) [14:25:37]execute_cgi path=json_proto method=POST [14:25:37]POST find Content-Length [14:25:37]Host: 172.17.41.136:8080 [14:25:37]Content-Length: 660 [14:25:37]Content-Type: application/json [14:25:37] [14:25:37]POST finish read [14:25:37]Found Content-Length = 660 [14:25:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:37]execute_script... [14:25: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)24617721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:37]POST & json_proto [14:25:37]process_json_proto [14:25:37]json parsed OK: [14:25:37]protocol is kg_v1.0 [14:25:37]action value=close_receipt [14:25:37]process_action close_receipt [14:25:37]cmd_close_receipt [14:25:37]MH_GetDate [14:25:37]Write to MH i2c: F0 00 00 35 0D 31 [14:25:37]Write i2c OK [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: F0 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: F0 09 00 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: F0 09 00 35 0D 00 61 7A F1 66 1B D0 5A 64 15 [14:25:37]GetLastDocTimeStamp 1727101005 [14:25:37]current date 1727101537 [14:25:37]FM_GetShiftState [14:25:37]SAM_PROTO_GetShiftState [14:25:37]wFMCommunicate request_size=4 [14:25:37]MH_SAM_APDU [14:25:37]CAPDU: 80 13 01 00 [14:25:37]Write to MH i2c: E2 08 00 36 0D 80 13 01 00 00 00 00 00 C0 [14:25:37]Write i2c OK [14:25:37]MH_I2C_Read... [14:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:37]Read from MH i2c: E2 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 0E 00 [14:25:37]MH_I2C_Read... [14:25:37]Read from MH i2c: E2 0E 00 36 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 01 [14:25:37]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:25:37]wFMCommunicate OK [14:25:37]SAM_PROTO_GetShiftState done [14:25:37]FM_GetShiftState done [14:25:37]opened in 1727052070 [14:25:37]opened+sec_in_day 1727138470 [14:25:37]quantity*price = 50034 [14:25:37]sum+1 = 50036 [14:25:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 156 23.09.2024 14:25 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115673 ФПД: 274926779625307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T142537&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115673&fm=274926779625307&tin=02508201610067®Number=0000000000091831&sum=50000 [14:25:38]StoreToDocumentArchive [14:25:38]shift 472 fd 115673 [14:25:38]save to /storage/0472/doc_00115673 [14:25:38]save last doc name /storage/0472/doc_00115673 to /storage/kkm_last_doc_name [14:25:38]save OK [14:25:38]Clear old archive folders... [14:25:38]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:25:38]tlvbuf is 018214A0 [14:25:38]SAM_PROTO_ClearQueue [14:25:38]wFMCommunicate request_size=4 [14:25:38]MH_SAM_APDU [14:25:38]CAPDU: 80 09 00 00 [14:25:38]Write to MH i2c: E2 08 00 43 0D 80 09 00 00 00 00 00 00 C2 [14:25:38]Write i2c OK [14:25:38]MH_I2C_Read... [14:25:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:38]Read from MH i2c: E2 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: E2 03 00 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [14:25:38]RAPDU: 90 00 [14:25:38]wFMCommunicate OK [14:25:38]SAM_PROTO_ClearQueue done [14:25:38]KKMCreateOFDPacket [14:25:38]OFDProtocolAddRootSTLVToBuf [14:25:38]FM_MakeSignedData [14:25:38]FM_MakeSignedData [14:25:38]SAM_PROTO_SignData [14:25:38]wFMCommunicate request_size=4 [14:25:38]MH_SAM_APDU [14:25:38]CAPDU: 80 0D 01 02 [14:25:38]Write to MH i2c: E2 08 00 44 0D 80 0D 01 02 00 00 00 00 CA [14:25:38]Write i2c OK [14:25:38]MH_I2C_Read... [14:25:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:38]Read from MH i2c: E2 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: E2 03 00 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: E2 03 00 44 0D 00 90 00 C5 [14:25:38]RAPDU: 90 00 [14:25:38]wFMCommunicate OK [14:25:38]wFMCommunicate request_size=253 [14:25:38]MH_SAM_APDU [14:25:38]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 61 7A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D9 C3 01 00 35 04 06 00 FA 0B 61 09 EF 5B [14:25:38]Write to MH i2c: E2 00 01 45 0D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 61 7A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D9 C3 01 00 35 04 06 00 FA 0B 61 09 EF 5B 00 00 E1 [14:25:38]Write i2c OK [14:25:38]MH_I2C_Read... [14:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:38]Read from MH i2c: E2 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: E2 03 00 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [14:25:38]RAPDU: 90 00 [14:25:38]wFMCommunicate OK [14:25:38]wFMCommunicate request_size=4 [14:25:38]MH_SAM_APDU [14:25:38]CAPDU: 80 0D 03 02 [14:25:38]Write to MH i2c: E2 08 00 46 0D 80 0D 03 02 00 00 00 00 CE [14:25:38]Write i2c OK [14:25:38]MH_I2C_Read... [14:25:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:38]Read from MH i2c: E2 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: E2 0B 00 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: E2 0B 00 46 0D 00 17 AE D9 55 43 42 73 0D 90 00 C7 [14:25:38]RAPDU: 17 AE D9 55 43 42 73 0D 90 00 [14:25:38]wFMCommunicate OK [14:25:38]SAM_PROTO_SignData done [14:25:38]FM_MakeSignedData done [14:25:38]CreateOFDProtocolMessage [14:25:38]wFMCommunicate request_size=4 [14:25:38]MH_SAM_APDU [14:25:38]CAPDU: 80 11 00 00 [14:25:38]Write to MH i2c: E2 08 00 47 0D 80 11 00 00 00 00 00 00 CE [14:25:38]Write i2c OK [14:25:38]MH_I2C_Read... [14:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:38]Read from MH i2c: E2 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: E2 17 00 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: E2 17 00 47 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1C [14:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:25:38]wFMCommunicate OK [14:25:38]CreateOFDProtocolMessage done [14:25:38]OFDSenderStorePacket 115673 [14:25:38]StoreOFDPacket docnum=115673 [14:25:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 3E D1 00 01 B2 1B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 61 7A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D9 C3 01 00 35 04 06 00 FA 0B 61 09 EF 5B 17 AE D9 55 43 42 73 0D [14:25:38]CheckFolder [14:25:38]dirname=/storage/ofd_packets [14:25:38]CheckFolder done [14:25:38]ProducePacketName [14:25:38]name=ofd_packets/00115673 [14:25:38]NVStorageSaveData ofd_packets/00115673 [14:25:38]File name is /storage/ofd_packets/00115673 [14:25:38]Write 294 bytes [14:25:38]NVStorageSaveData done [14:25:38]OFDSenderStorePacket done [14:25:38]KKMCreateOFDPacket done [14:25:38]NVStorageSaveData kkm_last_timestamp [14:25:38]File name is /storage/kkm_last_timestamp [14:25:38]Write 4 bytes [14:25:38]NVStorageSaveData done [14:25:38]ExternCall_PrintAddStr [14:25:38]wPrintStart [14:25:38]Write to MH i2c: 01 00 00 48 0D 55 [14:25:38]Write i2c OK [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: 01 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: 01 07 00 [14:25:38]MH_I2C_Read... [14:25:38]Read from MH i2c: 01 07 00 48 0D 00 00 00 00 00 FF 0F 6A [14:25:38]RasterBufferAndPrint [14:25:38]line Счет N : (1)24617721 [14:25:38]line ИНН: 02508201610067 [14:25:38]line Контрольно-Кассовый Чек [14:25:38]line ПРОДАЖА [14:25:38]line ТРК (МРК, ГНК) : 64 [14:25:38]line Товар: 2710124130 [14:25:38]line SU-92 [14:25:38]line 7.220 * 69.30 [14:25:38]line = 500.35 [14:25:38]line НДС 12% НСП 1% [14:25:38]line > о реализуемом товаре [14:25:38]line ОКРУГЛЕНИЕ: -0.35 [14:25:38]line ИТОГО: 500.00 [14:25:38]line Внесено: 500.00 [14:25:38]line СДАЧА: 0.00 [14:25:38]line НСП 1% : 4.43 [14:25:38]line НДС 12% : 53.13 [14:25:38]line Наличными: 500.00 [14:25:38]line Безнал.: 0.00 [14:25:38]line Место: АЗС № 90 "Партнер Нефть" [14:25:38]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:25:38]line СНО: Общий режим [14:25:38]line Чек 156 23.09.2024 14:25 [14:25:38]line Смена: 472 ФФД: 1.0 [14:25:38]line ЗНМ: 0300000120 [14:25:38]line РНМ: 0000000000091831 [14:25:38]line Версия ККМ: 001 [14:25:38]line ФМ: 0000000000871830 [14:25:38]line ФД: 115673 [14:25:38]line ФПД: 274926779625307 [14:25:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T142537&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115673&fm=274926779625307&tin=02508201610067®Number=0000000000091831&sum=50000 [14:25:39]OFD Sender: Processing packet 115673 [packets to send 482, broken 481] [14:25:39]ProducePacketName [14:25:39]name=ofd_packets/00115673 [14:25:39]OFD Sender: To server: pG, [14:25:39]CommunicateWithHost lk.salyk.kg:30040 [14:25:39]ConnectInit lk.salyk.kg [14:25:39]written 0, free lines is 4095 [14:25:39]Connected sock=10 [14:25: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 38 33 30 08 01 00 00 3E D1 00 01 B2 1B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 61 7A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D9 C3 01 00 35 04 06 00 FA 0B 61 09 EF 5B 17 AE D9 55 43 42 73 0D [14:25:39]Write to MH i2c: 01 00 00 72 0D 7F [14:25:39]Write i2c OK [14:25:39]MH_I2C_Read... [14:25:39]Read from MH i2c: 01 [14:25:39]MH_I2C_Read... [14:25:39]Read from MH i2c: 01 07 00 [14:25:39]MH_I2C_Read... [14:25:39]Read from MH i2c: 01 07 00 72 0D 00 00 00 00 00 5C 0C EE [14:25:39]RasterBufferAndPrint [14:25:39]line [14:25:39]line [14:25:39]line [14:25:39]line [14:25:39]line [14:25:39]written 0, free lines is 3169 [14:25:39]MH_Cut [14:25:39]Write to MH i2c: D1 01 00 79 0D 01 58 [14:25:39]Write i2c OK [14:25:39]MH_I2C_Read... [14:25:39]Read from MH i2c: D1 [14:25:39]MH_I2C_Read... [14:25:39]Read from MH i2c: D1 01 00 [14:25:39]MH_I2C_Read... [14:25:39]Read from MH i2c: D1 01 00 79 0D 00 57 [14:25:39]Write to MH i2c: 01 00 00 7A 0D 87 [14:25:39]Write i2c OK [14:25:39]MH_I2C_Read... [14:25:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B5 F7 47 00 64 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D9 C3 01 00 F4 03 04 00 A4 1F F1 66 B6 04 01 00 00 19 BE 58 44 26 8E D1 FA [14:25:39]CommunicateWithHost err = 0 [14:25:39]CheckOFDResponse [14:25:39]1017 (14) - 77093643461234 [14:25:39]1041 (16) - 0000000000871830 [14:25:39]1040 (4) - 115673 [14:25:39]1012 (4) - 23.09.2024 07:58 [14:25:39]1206 (1) - 0 [14:25:39]OFD Sender: Remove packet 115673 [14:25:39]ProducePacketName [14:25:39]name=ofd_packets/00115673 [14:25:39]NVStorageDeleteData [14:25:40]OFD Sender: No OFD packet to send [14:25:41]*** Cut start [14:25:41]*** Partial cut [14:25:41]*** CUTSNS_PIN = 1 [14:25:41]*** CUTSNS_PIN = 0 [14:25:41]*** Brake cut motor [14:25:41]Read from MH i2c: 01 [14:25:41]MH_I2C_Read... [14:25:41]*** Stop cut motor [14:25:41]*** Cut end [14:25:41]Read from MH i2c: 01 07 00 [14:25:41]MH_I2C_Read... [14:25:41]Read from MH i2c: 01 07 00 7A 0D 00 00 00 00 00 FF 0F 9C [14:25:41]process_action close_receipt done [14:25:41]requested_data is exist [14:25:41]produce_requested_data [14:25:41]requested_item fm.sn is exist - process it [14:25:41]wFMCommunicate request_size=4 [14:25:41]MH_SAM_APDU [14:25:41]CAPDU: 80 11 00 00 [14:25:41]Write to MH i2c: E2 08 00 7B 0D 80 11 00 00 00 00 00 00 02 [14:25:41]Write i2c OK [14:25:41]MH_I2C_Read... [14:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:41]Read from MH i2c: E2 [14:25:41]MH_I2C_Read... [14:25:41]Read from MH i2c: E2 17 00 [14:25:41]MH_I2C_Read... [14:25:41]Read from MH i2c: E2 17 00 7B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 50 [14:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:25:41]wFMCommunicate OK [14:25:41]requested_item fd.num is exist - process it [14:25:41]SAM_PROTO_GetFieldsCounters [14:25:41]wFMCommunicate request_size=4 [14:25:41]MH_SAM_APDU [14:25:41]CAPDU: 80 13 00 00 [14:25:41]Write to MH i2c: E2 08 00 7C 0D 80 13 00 00 00 00 00 00 05 [14:25:41]Write i2c OK [14:25:41]MH_I2C_Read... [14:25:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:41]Read from MH i2c: E2 [14:25:41]MH_I2C_Read... [14:25:41]Read from MH i2c: E2 62 00 [14:25:41]MH_I2C_Read... [14:25:41]Read from MH i2c: E2 62 00 7C 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D9 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [14:25:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D9 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:41]wFMCommunicate OK [14:25:41]SAM_PROTO_GetFieldsCounters done [14:25:41]requested_item shift.num is exist - process it [14:25:41]requested_item shift.opened is exist - process it [14:25:41]req_shift_opened [14:25:41]FM_GetShiftState [14:25:41]SAM_PROTO_GetShiftState [14:25:41]wFMCommunicate request_size=4 [14:25:41]MH_SAM_APDU [14:25:41]CAPDU: 80 13 01 00 [14:25:41]Write to MH i2c: E2 08 00 7D 0D 80 13 01 00 00 00 00 00 07 [14:25:41]Write i2c OK [14:25:41]MH_I2C_Read... [14:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:41]Read from MH i2c: E2 [14:25:41]MH_I2C_Read... [14:25:41]Read from MH i2c: E2 0E 00 [14:25:41]MH_I2C_Read... [14:25:41]Read from MH i2c: E2 0E 00 7D 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 48 [14:25:41]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:25:41]wFMCommunicate OK [14:25:41]SAM_PROTO_GetShiftState done [14:25:41]FM_GetShiftState done [14:25:41]req_shift_opened done [14:25:41]requested_item shift.open_date is exist - process it [14:25:41]req_shift_open_date [14:25:41]req_shift_open_date done [14:25:41]produce_requested_data done [14:25:41]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115673,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:25:41]process_action_free close_receipt [14:25:41]json_value_free [14:25:41]json_value_free done [14:25:41]process_json_proto returns [14:25:41]Send response to host [14:25:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115673,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:25:41]free response buf [14:25:41]execute_script done [14:25:41]execute_script returns [14:25:41]free content buf [14:25:41]Sock 7.Close socket [14:25:41]Sock 7.Thread stoped [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:12]accept exits with 9 [14:26:12]New connection [14:26:12]New thread 3067022692 created [14:26:12]Thread 3066879332 joined [14:26:12]Waiting for new connection... [14:26:12] Sock 9.Parse request [14:26:12]Sock 9.Check first char [14:26:12]Sock 9.First char is OK [14:26:12]request: POST /json_proto HTTP/1.0 [14:26:12]Method: POST [14:26:12]URL: /json_proto [14:26:12]Method is POST - this is cgi request [14:26:12]url: /json_proto [14:26:12]query_string will be loaded in cgi processing [14:26:12]execute_cgi json_proto POST (null) [14:26:12]execute_cgi path=json_proto method=POST [14:26:12]POST find Content-Length [14:26:12]Host: 172.17.41.136:8080 [14:26:12]Content-Length: 660 [14:26:12]Content-Type: application/json [14:26:12] [14:26:12]POST finish read [14:26:12]Found Content-Length = 660 [14:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:12]execute_script... [14:26: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)24617722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:12]POST & json_proto [14:26:12]process_json_proto [14:26:12]json parsed OK: [14:26:12]protocol is kg_v1.0 [14:26:12]action value=close_receipt [14:26:12]process_action close_receipt [14:26:12]cmd_close_receipt [14:26:12]MH_GetDate [14:26:12]Write to MH i2c: F0 00 00 7E 0D 7A [14:26:12]Write i2c OK [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: F0 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: F0 09 00 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: F0 09 00 7E 0D 00 85 7A F1 66 1B D0 5A 64 82 [14:26:12]GetLastDocTimeStamp 1727101537 [14:26:12]current date 1727101573 [14:26:12]FM_GetShiftState [14:26:12]SAM_PROTO_GetShiftState [14:26:12]wFMCommunicate request_size=4 [14:26:12]MH_SAM_APDU [14:26:12]CAPDU: 80 13 01 00 [14:26:12]Write to MH i2c: E2 08 00 7F 0D 80 13 01 00 00 00 00 00 09 [14:26:12]Write i2c OK [14:26:12]MH_I2C_Read... [14:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:12]Read from MH i2c: E2 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: E2 0E 00 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: E2 0E 00 7F 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 4A [14:26:12]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:26:12]wFMCommunicate OK [14:26:12]SAM_PROTO_GetShiftState done [14:26:12]FM_GetShiftState done [14:26:12]opened in 1727052070 [14:26:12]opened+sec_in_day 1727138470 [14:26:12]quantity*price = 50034 [14:26:12]sum+1 = 50036 [14:26:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 157 23.09.2024 14:26 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115674 ФПД: 54314380852120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T142613&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115674&fm=54314380852120&tin=02508201610067®Number=0000000000091831&sum=50000 [14:26:13]StoreToDocumentArchive [14:26:13]shift 472 fd 115674 [14:26:13]save to /storage/0472/doc_00115674 [14:26:13]save last doc name /storage/0472/doc_00115674 to /storage/kkm_last_doc_name [14:26:13]save OK [14:26:13]Clear old archive folders... [14:26:13]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:26:13]tlvbuf is 017CCA20 [14:26:13]SAM_PROTO_ClearQueue [14:26:13]wFMCommunicate request_size=4 [14:26:13]MH_SAM_APDU [14:26:13]CAPDU: 80 09 00 00 [14:26:13]Write to MH i2c: E2 08 00 8C 0D 80 09 00 00 00 00 00 00 0B [14:26:13]Write i2c OK [14:26:13]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 8C 0D 00 90 00 0D [14:26:14]RAPDU: 90 00 [14:26:14]wFMCommunicate OK [14:26:14]SAM_PROTO_ClearQueue done [14:26:14]KKMCreateOFDPacket [14:26:14]OFDProtocolAddRootSTLVToBuf [14:26:14]FM_MakeSignedData [14:26:14]FM_MakeSignedData [14:26:14]SAM_PROTO_SignData [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 0D 01 02 [14:26:14]Write to MH i2c: E2 08 00 8D 0D 80 0D 01 02 00 00 00 00 13 [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [14:26:14]RAPDU: 90 00 [14:26:14]wFMCommunicate OK [14:26:14]wFMCommunicate request_size=253 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 85 7A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DA C3 01 00 35 04 06 00 31 66 0D 60 7B 98 [14:26:14]Write to MH i2c: E2 00 01 8E 0D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 85 7A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DA C3 01 00 35 04 06 00 31 66 0D 60 7B 98 00 00 AE [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [14:26:14]RAPDU: 90 00 [14:26:14]wFMCommunicate OK [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 0D 03 02 [14:26:14]Write to MH i2c: E2 08 00 8F 0D 80 0D 03 02 00 00 00 00 17 [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 0B 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 0B 00 8F 0D 00 5E AA 47 2B F9 C5 43 7F 90 00 12 [14:26:14]RAPDU: 5E AA 47 2B F9 C5 43 7F 90 00 [14:26:14]wFMCommunicate OK [14:26:14]SAM_PROTO_SignData done [14:26:14]FM_MakeSignedData done [14:26:14]CreateOFDProtocolMessage [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 11 00 00 [14:26:14]Write to MH i2c: E2 08 00 90 0D 80 11 00 00 00 00 00 00 17 [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 17 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 17 00 90 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 65 [14:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:26:14]wFMCommunicate OK [14:26:14]CreateOFDProtocolMessage done [14:26:14]OFDSenderStorePacket 115674 [14:26:14]StoreOFDPacket docnum=115674 [14:26:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 CC BF 00 01 EC D0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 85 7A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DA C3 01 00 35 04 06 00 31 66 0D 60 7B 98 5E AA 47 2B F9 C5 43 7F [14:26:14]CheckFolder [14:26:14]dirname=/storage/ofd_packets [14:26:14]CheckFolder done [14:26:14]ProducePacketName [14:26:14]name=ofd_packets/00115674 [14:26:14]NVStorageSaveData ofd_packets/00115674 [14:26:14]File name is /storage/ofd_packets/00115674 [14:26:14]Write 294 bytes [14:26:14]NVStorageSaveData done [14:26:14]OFDSenderStorePacket done [14:26:14]KKMCreateOFDPacket done [14:26:14]NVStorageSaveData kkm_last_timestamp [14:26:14]File name is /storage/kkm_last_timestamp [14:26:14]Write 4 bytes [14:26:14]NVStorageSaveData done [14:26:14]ExternCall_PrintAddStr [14:26:14]wPrintStart [14:26:14]Write to MH i2c: 01 00 00 91 0D 9E [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: 01 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: 01 07 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: 01 07 00 91 0D 00 00 00 00 00 FF 0F B3 [14:26:14]RasterBufferAndPrint [14:26:14]line Счет N : (1)24617722 [14:26:14]line ИНН: 02508201610067 [14:26:14]line Контрольно-Кассовый Чек [14:26:14]line ПРОДАЖА [14:26:14]line ТРК (МРК, ГНК) : 54 [14:26:14]line Товар: 2710124130 [14:26:14]line SU-92 [14:26:14]line 7.220 * 69.30 [14:26:14]line = 500.35 [14:26:14]line НДС 12% НСП 1% [14:26:14]line > о реализуемом товаре [14:26:14]line ОКРУГЛЕНИЕ: -0.35 [14:26:14]line ИТОГО: 500.00 [14:26:14]line Внесено: 500.00 [14:26:14]line СДАЧА: 0.00 [14:26:14]line НСП 1% : 4.43 [14:26:14]line НДС 12% : 53.13 [14:26:14]line Наличными: 500.00 [14:26:14]line Безнал.: 0.00 [14:26:14]line Место: АЗС № 90 "Партнер Нефть" [14:26:14]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:26:14]line СНО: Общий режим [14:26:14]line Чек 157 23.09.2024 14:26 [14:26:14]line Смена: 472 ФФД: 1.0 [14:26:14]line ЗНМ: 0300000120 [14:26:14]line РНМ: 0000000000091831 [14:26:14]line Версия ККМ: 001 [14:26:14]line ФМ: 0000000000871830 [14:26:14]line ФД: 115674 [14:26:14]line ФПД: 54314380852120 [14:26:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T142613&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115674&fm=54314380852120&tin=02508201610067®Number=0000000000091831&sum=50000 [14:26:14]OFD Sender: Processing packet 115674 [packets to send 482, broken 481] [14:26:14]ProducePacketName [14:26:14]name=ofd_packets/00115674 [14:26:14]OFD Sender: To server: pG, [14:26:14]CommunicateWithHost lk.salyk.kg:30040 [14:26:14]ConnectInit lk.salyk.kg [14:26:14]written 0, free lines is 4095 [14:26:15]Connected sock=11 [14:26: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 38 33 30 08 01 00 00 CC BF 00 01 EC D0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 85 7A F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DA C3 01 00 35 04 06 00 31 66 0D 60 7B 98 5E AA 47 2B F9 C5 43 7F [14:26:15]Write to MH i2c: 01 00 00 BB 0D C8 [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 07 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 07 00 BB 0D 00 00 00 00 00 56 0C 31 [14:26:15]RasterBufferAndPrint [14:26:15]line [14:26:15]line [14:26:15]line [14:26:15]line [14:26:15]line [14:26:15]written 0, free lines is 3162 [14:26:15]MH_Cut [14:26:15]Write to MH i2c: D1 01 00 C2 0D 01 A1 [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: D1 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: D1 01 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: D1 01 00 C2 0D 00 A0 [14:26:15]Write to MH i2c: 01 00 00 C3 0D D0 [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 4B A6 47 00 B6 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DA C3 01 00 F4 03 04 00 C7 1F F1 66 B6 04 01 00 00 C2 2F BC 2B F6 76 89 80 [14:26:15]CommunicateWithHost err = 0 [14:26:15]CheckOFDResponse [14:26:15]1017 (14) - 77093643461234 [14:26:15]1041 (16) - 0000000000871830 [14:26:15]1040 (4) - 115674 [14:26:15]1012 (4) - 23.09.2024 07:59 [14:26:15]1206 (1) - 0 [14:26:15]OFD Sender: Remove packet 115674 [14:26:15]ProducePacketName [14:26:15]name=ofd_packets/00115674 [14:26:15]NVStorageDeleteData [14:26:15]OFD Sender: No OFD packet to send [14:26:16]*** Cut start [14:26:16]*** Partial cut [14:26:16]*** CUTSNS_PIN = 1 [14:26:16]*** CUTSNS_PIN = 0 [14:26:16]*** Brake cut motor [14:26:17]Read from MH i2c: 01 [14:26:17]MH_I2C_Read... [14:26:17]*** Stop cut motor [14:26:17]*** Cut end [14:26:17]Read from MH i2c: 01 07 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: 01 07 00 C3 0D 00 00 00 00 00 FF 0F E5 [14:26:17]process_action close_receipt done [14:26:17]requested_data is exist [14:26:17]produce_requested_data [14:26:17]requested_item fm.sn is exist - process it [14:26:17]wFMCommunicate request_size=4 [14:26:17]MH_SAM_APDU [14:26:17]CAPDU: 80 11 00 00 [14:26:17]Write to MH i2c: E2 08 00 C4 0D 80 11 00 00 00 00 00 00 4B [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 17 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 17 00 C4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 99 [14:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:26:17]wFMCommunicate OK [14:26:17]requested_item fd.num is exist - process it [14:26:17]SAM_PROTO_GetFieldsCounters [14:26:17]wFMCommunicate request_size=4 [14:26:17]MH_SAM_APDU [14:26:17]CAPDU: 80 13 00 00 [14:26:17]Write to MH i2c: E2 08 00 C5 0D 80 13 00 00 00 00 00 00 4E [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 62 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 62 00 C5 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DA C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [14:26: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DA C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:17]wFMCommunicate OK [14:26:17]SAM_PROTO_GetFieldsCounters done [14:26:17]requested_item shift.num is exist - process it [14:26:17]requested_item shift.opened is exist - process it [14:26:17]req_shift_opened [14:26:17]FM_GetShiftState [14:26:17]SAM_PROTO_GetShiftState [14:26:17]wFMCommunicate request_size=4 [14:26:17]MH_SAM_APDU [14:26:17]CAPDU: 80 13 01 00 [14:26:17]Write to MH i2c: E2 08 00 C6 0D 80 13 01 00 00 00 00 00 50 [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 0E 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 0E 00 C6 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 91 [14:26:17]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:26:17]wFMCommunicate OK [14:26:17]SAM_PROTO_GetShiftState done [14:26:17]FM_GetShiftState done [14:26:17]req_shift_opened done [14:26:17]requested_item shift.open_date is exist - process it [14:26:17]req_shift_open_date [14:26:17]req_shift_open_date done [14:26:17]produce_requested_data done [14:26:17]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115674,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:26:17]process_action_free close_receipt [14:26:17]json_value_free [14:26:17]json_value_free done [14:26:17]process_json_proto returns [14:26:17]Send response to host [14:26:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115674,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:26:17]free response buf [14:26:17]execute_script done [14:26:17]execute_script returns [14:26:17]free content buf [14:26:17]Sock 9.Close socket [14:26:17]Sock 9.Thread stoped [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:28]accept exits with 7 [14:31:28]New connection [14:31:28]New thread 3066879332 created [14:31:28]Thread 3067022692 joined [14:31:28]Waiting for new connection... [14:31:28] Sock 7.Parse request [14:31:28]Sock 7.Check first char [14:31:28]Sock 7.First char is OK [14:31:28]request: POST /json_proto HTTP/1.0 [14:31:28]Method: POST [14:31:28]URL: /json_proto [14:31:28]Method is POST - this is cgi request [14:31:28]url: /json_proto [14:31:28]query_string will be loaded in cgi processing [14:31:28]execute_cgi json_proto POST (null) [14:31:28]execute_cgi path=json_proto method=POST [14:31:28]POST find Content-Length [14:31:28]Host: 172.17.41.136:8080 [14:31:28]Content-Length: 649 [14:31:28]Content-Type: application/json [14:31:28] [14:31:28]POST finish read [14:31:28]Found Content-Length = 649 [14:31:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344028", "tax_sys" : 0, "items" : [ { "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:28]execute_script... [14:31:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344028", "tax_sys" : 0, "items" : [ { "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:28]POST & json_proto [14:31:28]process_json_proto [14:31:28]json parsed OK: [14:31:28]protocol is kg_v1.0 [14:31:28]action value=close_receipt [14:31:28]process_action close_receipt [14:31:28]cmd_close_receipt [14:31:28]MH_GetDate [14:31:28]Write to MH i2c: F0 00 00 C7 0D C3 [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: F0 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: F0 09 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: F0 09 00 C7 0D 00 C1 7B F1 66 1B D0 5A 64 08 [14:31:28]GetLastDocTimeStamp 1727101573 [14:31:28]current date 1727101889 [14:31:28]FM_GetShiftState [14:31:28]SAM_PROTO_GetShiftState [14:31:28]wFMCommunicate request_size=4 [14:31:28]MH_SAM_APDU [14:31:28]CAPDU: 80 13 01 00 [14:31:28]Write to MH i2c: E2 08 00 C8 0D 80 13 01 00 00 00 00 00 52 [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 0E 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 0E 00 C8 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 93 [14:31:28]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:31:28]wFMCommunicate OK [14:31:28]SAM_PROTO_GetShiftState done [14:31:28]FM_GetShiftState done [14:31:28]opened in 1727052070 [14:31:28]opened+sec_in_day 1727138470 [14:31:28]quantity*price = 7000 [14:31:28]sum+1 = 7001 [14:31:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 158 23.09.2024 14:31 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115675 ФПД: 239142786413936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143129&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115675&fm=239142786413936&tin=02508201610067®Number=0000000000091831&sum=7000 0 [14:31:29]StoreToDocumentArchive [14:31:29]shift 472 fd 115675 [14:31:29]save to /storage/0472/doc_00115675 [14:31:29]save last doc name /storage/0472/doc_00115675 to /storage/kkm_last_doc_name [14:31:29]save OK [14:31:29]Clear old archive folders... [14:31:29]ProcessDocumentItem done err = 0, tmpTLVsize=279 [14:31:29]tlvbuf is 017CC9D0 [14:31:29]SAM_PROTO_ClearQueue [14:31:29]wFMCommunicate request_size=4 [14:31:29]MH_SAM_APDU [14:31:29]CAPDU: 80 09 00 00 [14:31:29]Write to MH i2c: E2 08 00 D5 0D 80 09 00 00 00 00 00 00 54 [14:31:29]Write i2c OK [14:31:29]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 D5 0D 00 90 00 56 [14:31:30]RAPDU: 90 00 [14:31:30]wFMCommunicate OK [14:31:30]SAM_PROTO_ClearQueue done [14:31:30]KKMCreateOFDPacket [14:31:30]OFDProtocolAddRootSTLVToBuf [14:31:30]FM_MakeSignedData [14:31:30]FM_MakeSignedData [14:31:30]SAM_PROTO_SignData [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 0D 01 02 [14:31:30]Write to MH i2c: E2 08 00 D6 0D 80 0D 01 02 00 00 00 00 5C [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 D6 0D 00 90 00 57 [14:31:30]RAPDU: 90 00 [14:31:30]wFMCommunicate OK [14:31:30]wFMCommunicate request_size=255 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 C1 7B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 [14:31:30]Write to MH i2c: E2 02 01 D7 0D 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 C1 7B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 00 00 03 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [14:31:30]RAPDU: 90 00 [14:31:30]wFMCommunicate OK [14:31:30]wFMCommunicate request_size=38 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DB C3 01 00 35 04 06 00 D9 7F C4 D5 B5 70 [14:31:30]Write to MH i2c: E2 29 00 D8 0D 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DB C3 01 00 35 04 06 00 D9 7F C4 D5 B5 70 00 00 98 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 D8 0D 00 90 00 59 [14:31:30]RAPDU: 90 00 [14:31:30]wFMCommunicate OK [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 0D 03 02 [14:31:30]Write to MH i2c: E2 08 00 D9 0D 80 0D 03 02 00 00 00 00 61 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 0B 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 0B 00 D9 0D 00 F5 C2 8D A8 88 28 B4 AB 90 00 5D [14:31:30]RAPDU: F5 C2 8D A8 88 28 B4 AB 90 00 [14:31:30]wFMCommunicate OK [14:31:30]SAM_PROTO_SignData done [14:31:30]FM_MakeSignedData done [14:31:30]CreateOFDProtocolMessage [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 11 00 00 [14:31:30]Write to MH i2c: E2 08 00 DA 0D 80 11 00 00 00 00 00 00 61 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 17 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 17 00 DA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AF [14:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:31:30]wFMCommunicate OK [14:31:30]CreateOFDProtocolMessage done [14:31:30]OFDSenderStorePacket 115675 [14:31:30]StoreOFDPacket docnum=115675 [14:31:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2B 01 00 00 47 EE 23 01 C7 DD 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 C1 7B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DB C3 01 00 35 04 06 00 D9 7F C4 D5 B5 70 F5 C2 8D A8 88 28 B4 AB [14:31:30]CheckFolder [14:31:30]dirname=/storage/ofd_packets [14:31:30]CheckFolder done [14:31:30]ProducePacketName [14:31:30]name=ofd_packets/00115675 [14:31:30]NVStorageSaveData ofd_packets/00115675 [14:31:30]File name is /storage/ofd_packets/00115675 [14:31:30]Write 329 bytes [14:31:30]NVStorageSaveData done [14:31:30]OFDSenderStorePacket done [14:31:30]KKMCreateOFDPacket done [14:31:30]NVStorageSaveData kkm_last_timestamp [14:31:30]File name is /storage/kkm_last_timestamp [14:31:30]Write 4 bytes [14:31:30]NVStorageSaveData done [14:31:30]ExternCall_PrintAddStr [14:31:30]wPrintStart [14:31:30]Write to MH i2c: 01 00 00 DB 0D E8 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: 01 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: 01 07 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: 01 07 00 DB 0D 00 00 00 00 00 FF 0F FD [14:31:30]RasterBufferAndPrint [14:31:30]line Счет N : (3)344028 [14:31:30]line ИНН: 02508201610067 [14:31:30]line Контрольно-Кассовый Чек [14:31:30]line ПРОДАЖА [14:31:30]line Товар: 4607065000790 [14:31:30]line Шок M&M`s с арахисом 45г [14:31:30]line 1.000 * 70.00 [14:31:30]line = 70.00 [14:31:30]line НДС 12% НСП 1% [14:31:30]line > о реализуемом товаре [14:31:30]line ИТОГО: 70.00 [14:31:30]line НСП 1% : 0.62 [14:31:30]line НДС 12% : 7.43 [14:31:30]line Наличными: 70.00 [14:31:30]line Безнал.: 0.00 [14:31:30]line Место: АЗС № 90 "Партнер Нефть" [14:31:30]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:31:30]line СНО: Общий режим [14:31:30]line Чек 158 23.09.2024 14:31 [14:31:30]line Смена: 472 ФФД: 1.0 [14:31:30]line ЗНМ: 0300000120 [14:31:30]line РНМ: 0000000000091831 [14:31:30]line Версия ККМ: 001 [14:31:30]line ФМ: 0000000000871830 [14:31:30]line ФД: 115675 [14:31:30]line ФПД: 239142786413936 [14:31:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143129&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115675&fm=239142786413936&tin=02508201610067®Number=0000000000091831&sum=7000 [14:31:30]line 0 [14:31:30]written 0, free lines is 4095 [14:31:30]OFD Sender: Processing packet 115675 [packets to send 482, broken 481] [14:31:30]ProducePacketName [14:31:30]name=ofd_packets/00115675 [14:31:30]OFD Sender: To server: pG, [14:31:30]CommunicateWithHost lk.salyk.kg:30040 [14:31:30]ConnectInit lk.salyk.kg [14:31:30]Write to MH i2c: 01 00 00 02 0E 10 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: 01 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: 01 07 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: 01 07 00 02 0E 00 00 00 00 00 75 0C 98 [14:31:30]RasterBufferAndPrint [14:31:30]line [14:31:30]line [14:31:30]line [14:31:30]line [14:31:30]line [14:31:30]written 0, free lines is 3193 [14:31:30]MH_Cut [14:31:30]Write to MH i2c: D1 01 00 09 0E 01 E9 [14:31:31]Write i2c OK [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: D1 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: D1 01 00 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: D1 01 00 09 0E 00 E8 [14:31:31]Write to MH i2c: 01 00 00 0A 0E 18 [14:31:31]Write i2c OK [14:31:31]MH_I2C_Read... [14:31:31]Connected sock=10 [14:31: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 38 33 30 2B 01 00 00 47 EE 23 01 C7 DD 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 C1 7B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DB C3 01 00 35 04 06 00 D9 7F C4 D5 B5 70 F5 C2 8D A8 88 28 B4 AB [14:31:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 8C 57 47 00 69 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DB C3 01 00 F4 03 04 00 04 21 F1 66 B6 04 01 00 00 2E FA 00 4A 25 39 EA 9F [14:31:31]CommunicateWithHost err = 0 [14:31:31]CheckOFDResponse [14:31:31]1017 (14) - 77093643461234 [14:31:31]1041 (16) - 0000000000871830 [14:31:31]1040 (4) - 115675 [14:31:31]1012 (4) - 23.09.2024 08:04 [14:31:31]1206 (1) - 0 [14:31:31]OFD Sender: Remove packet 115675 [14:31:31]ProducePacketName [14:31:31]name=ofd_packets/00115675 [14:31:31]NVStorageDeleteData [14:31:32]OFD Sender: No OFD packet to send [14:31:32]*** Cut start [14:31:32]*** Partial cut [14:31:32]*** CUTSNS_PIN = 1 [14:31:32]*** CUTSNS_PIN = 0 [14:31:32]*** Brake cut motor [14:31:32]Read from MH i2c: 01 [14:31:32]MH_I2C_Read... [14:31:32]*** Stop cut motor [14:31:32]*** Cut end [14:31:32]Read from MH i2c: 01 07 00 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: 01 07 00 0A 0E 00 00 00 00 00 FF 0F 2D [14:31:32]process_action close_receipt done [14:31:32]requested_data is exist [14:31:32]produce_requested_data [14:31:32]requested_item fm.sn is exist - process it [14:31:32]wFMCommunicate request_size=4 [14:31:32]MH_SAM_APDU [14:31:32]CAPDU: 80 11 00 00 [14:31:32]Write to MH i2c: E2 08 00 0B 0E 80 11 00 00 00 00 00 00 93 [14:31:32]Write i2c OK [14:31:32]MH_I2C_Read... [14:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:32]Read from MH i2c: E2 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 17 00 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 17 00 0B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E1 [14:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:31:32]wFMCommunicate OK [14:31:32]requested_item fd.num is exist - process it [14:31:32]SAM_PROTO_GetFieldsCounters [14:31:32]wFMCommunicate request_size=4 [14:31:32]MH_SAM_APDU [14:31:32]CAPDU: 80 13 00 00 [14:31:32]Write to MH i2c: E2 08 00 0C 0E 80 13 00 00 00 00 00 00 96 [14:31:32]Write i2c OK [14:31:32]MH_I2C_Read... [14:31:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:33]Read from MH i2c: E2 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 62 00 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 62 00 0C 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DB C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [14:31: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DB C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:33]wFMCommunicate OK [14:31:33]SAM_PROTO_GetFieldsCounters done [14:31:33]requested_item shift.num is exist - process it [14:31:33]requested_item shift.opened is exist - process it [14:31:33]req_shift_opened [14:31:33]FM_GetShiftState [14:31:33]SAM_PROTO_GetShiftState [14:31:33]wFMCommunicate request_size=4 [14:31:33]MH_SAM_APDU [14:31:33]CAPDU: 80 13 01 00 [14:31:33]Write to MH i2c: E2 08 00 0D 0E 80 13 01 00 00 00 00 00 98 [14:31:33]Write i2c OK [14:31:33]MH_I2C_Read... [14:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:33]Read from MH i2c: E2 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 0E 00 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 0E 00 0D 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D9 [14:31:33]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:31:33]wFMCommunicate OK [14:31:33]SAM_PROTO_GetShiftState done [14:31:33]FM_GetShiftState done [14:31:33]req_shift_opened done [14:31:33]requested_item shift.open_date is exist - process it [14:31:33]req_shift_open_date [14:31:33]req_shift_open_date done [14:31:33]produce_requested_data done [14:31:33]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115675,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:31:33]process_action_free close_receipt [14:31:33]json_value_free [14:31:33]json_value_free done [14:31:33]process_json_proto returns [14:31:33]Send response to host [14:31:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115675,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:31:33]free response buf [14:31:33]execute_script done [14:31:33]execute_script returns [14:31:33]free content buf [14:31:33]Sock 7.Close socket [14:31:33]Sock 7.Thread stoped [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:01]accept exits with 9 [14:32:01]New connection [14:32:01]New thread 3067022692 created [14:32:01]Thread 3066879332 joined [14:32:01]Waiting for new connection... [14:32:01] Sock 9.Parse request [14:32:01]Sock 9.Check first char [14:32:01]Sock 9.First char is OK [14:32:01]request: POST /json_proto HTTP/1.0 [14:32:01]Method: POST [14:32:01]URL: /json_proto [14:32:01]Method is POST - this is cgi request [14:32:01]url: /json_proto [14:32:01]query_string will be loaded in cgi processing [14:32:01]execute_cgi json_proto POST (null) [14:32:01]execute_cgi path=json_proto method=POST [14:32:01]POST find Content-Length [14:32:01]Host: 172.17.41.136:8080 [14:32:01]Content-Length: 1215 [14:32:01]Content-Type: application/json [14:32:01] [14:32:01]POST finish read [14:32:01]Found Content-Length = 1215 [14:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344029", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:01]execute_script... [14:32:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344029", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:01]POST & json_proto [14:32:01]process_json_proto [14:32:01]json parsed OK: [14:32:01]protocol is kg_v1.0 [14:32:01]action value=close_receipt [14:32:01]process_action close_receipt [14:32:01]cmd_close_receipt [14:32:01]MH_GetDate [14:32:01]Write to MH i2c: F0 00 00 0E 0E 0B [14:32:01]Write i2c OK [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: F0 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: F0 09 00 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: F0 09 00 0E 0E 00 E1 7B F1 66 1B D0 5A 64 70 [14:32:01]GetLastDocTimeStamp 1727101889 [14:32:01]current date 1727101921 [14:32:01]FM_GetShiftState [14:32:01]SAM_PROTO_GetShiftState [14:32:01]wFMCommunicate request_size=4 [14:32:01]MH_SAM_APDU [14:32:01]CAPDU: 80 13 01 00 [14:32:01]Write to MH i2c: E2 08 00 0F 0E 80 13 01 00 00 00 00 00 9A [14:32:01]Write i2c OK [14:32:01]MH_I2C_Read... [14:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:01]Read from MH i2c: E2 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: E2 0E 00 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: E2 0E 00 0F 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 DB [14:32:01]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:32:01]wFMCommunicate OK [14:32:01]SAM_PROTO_GetShiftState done [14:32:01]FM_GetShiftState done [14:32:01]opened in 1727052070 [14:32:01]opened+sec_in_day 1727138470 [14:32:01]quantity*price = 11000 [14:32:01]sum+1 = 11001 [14:32:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521216 Напиток MAXI чай 1,2 зел.лимон (новый) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.01 НДС 12% : 36.10 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 159 23.09.2024 14:32 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115676 ФПД: 213714256350230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143201&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115676&fm=213714256350230&tin=02508201610067®Number=0000000000091831&sum=34000 0 [14:32:02]StoreToDocumentArchive [14:32:02]shift 472 fd 115676 [14:32:02]save to /storage/0472/doc_00115676 [14:32:02]save last doc name /storage/0472/doc_00115676 to /storage/kkm_last_doc_name [14:32:02]save OK [14:32:02]Clear old archive folders... [14:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=507 [14:32:02]tlvbuf is 017A1EB0 [14:32:02]SAM_PROTO_ClearQueue [14:32:02]wFMCommunicate request_size=4 [14:32:02]MH_SAM_APDU [14:32:02]CAPDU: 80 09 00 00 [14:32:02]Write to MH i2c: E2 08 00 1C 0E 80 09 00 00 00 00 00 00 9C [14:32:02]Write i2c OK [14:32:02]MH_I2C_Read... [14:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:02]Read from MH i2c: E2 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 03 00 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 03 00 1C 0E 00 90 00 9E [14:32:02]RAPDU: 90 00 [14:32:02]wFMCommunicate OK [14:32:02]SAM_PROTO_ClearQueue done [14:32:02]KKMCreateOFDPacket [14:32:02]OFDProtocolAddRootSTLVToBuf [14:32:02]FM_MakeSignedData [14:32:02]FM_MakeSignedData [14:32:02]SAM_PROTO_SignData [14:32:02]wFMCommunicate request_size=4 [14:32:02]MH_SAM_APDU [14:32:02]CAPDU: 80 0D 01 02 [14:32:02]Write to MH i2c: E2 08 00 1D 0E 80 0D 01 02 00 00 00 00 A4 [14:32:02]Write i2c OK [14:32:02]MH_I2C_Read... [14:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:02]Read from MH i2c: E2 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 03 00 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 03 00 1D 0E 00 90 00 9F [14:32:02]RAPDU: 90 00 [14:32:02]wFMCommunicate OK [14:32:02]wFMCommunicate request_size=255 [14:32:02]MH_SAM_APDU [14:32:02]CAPDU: 80 0D 02 02 FA 03 00 FB 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 [14:32:02]Write to MH i2c: E2 02 01 1E 0E 80 0D 02 02 FA 00 03 00 FB 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 00 00 04 [14:32:02]Write i2c OK [14:32:02]MH_I2C_Read... [14:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:03]Read from MH i2c: E2 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 1E 0E 00 90 00 A0 [14:32:03]RAPDU: 90 00 [14:32:03]wFMCommunicate OK [14:32:03]wFMCommunicate request_size=255 [14:32:03]MH_SAM_APDU [14:32:03]CAPDU: 80 0D 02 02 FA 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 E1 7B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DC C3 01 [14:32:03]Write to MH i2c: E2 02 01 1F 0E 80 0D 02 02 FA 00 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 E1 7B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DC C3 01 00 00 53 [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:03]Read from MH i2c: E2 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 1F 0E 00 90 00 A1 [14:32:03]RAPDU: 90 00 [14:32:03]wFMCommunicate OK [14:32:03]wFMCommunicate request_size=16 [14:32:03]MH_SAM_APDU [14:32:03]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C2 5F 3A 55 4C 16 [14:32:03]Write to MH i2c: E2 13 00 20 0E 80 0D 02 02 0B 00 00 35 04 06 00 C2 5F 3A 55 4C 16 00 00 0F [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:03]Read from MH i2c: E2 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 20 0E 00 90 00 A2 [14:32:03]RAPDU: 90 00 [14:32:03]wFMCommunicate OK [14:32:03]wFMCommunicate request_size=4 [14:32:03]MH_SAM_APDU [14:32:03]CAPDU: 80 0D 03 02 [14:32:03]Write to MH i2c: E2 08 00 21 0E 80 0D 03 02 00 00 00 00 AA [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:03]Read from MH i2c: E2 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 0B 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 0B 00 21 0E 00 64 5C 03 05 0D AD FF 5A 90 00 86 [14:32:03]RAPDU: 64 5C 03 05 0D AD FF 5A 90 00 [14:32:03]wFMCommunicate OK [14:32:03]SAM_PROTO_SignData done [14:32:03]FM_MakeSignedData done [14:32:03]CreateOFDProtocolMessage [14:32:03]wFMCommunicate request_size=4 [14:32:03]MH_SAM_APDU [14:32:03]CAPDU: 80 11 00 00 [14:32:03]Write to MH i2c: E2 08 00 22 0E 80 11 00 00 00 00 00 00 AA [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:03]Read from MH i2c: E2 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 17 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 17 00 22 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F8 [14:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:32:03]wFMCommunicate OK [14:32:03]CreateOFDProtocolMessage done [14:32:03]OFDSenderStorePacket 115676 [14:32:03]StoreOFDPacket docnum=115676 [14:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 02 00 00 70 7A 07 02 DA 57 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 E1 7B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DC C3 01 00 35 04 06 00 C2 5F 3A 55 4C 16 64 5C 03 05 0D AD FF 5A [14:32:03]CheckFolder [14:32:03]dirname=/storage/ofd_packets [14:32:03]CheckFolder done [14:32:03]ProducePacketName [14:32:03]name=ofd_packets/00115676 [14:32:03]NVStorageSaveData ofd_packets/00115676 [14:32:03]File name is /storage/ofd_packets/00115676 [14:32:03]Write 557 bytes [14:32:03]NVStorageSaveData done [14:32:03]OFDSenderStorePacket done [14:32:03]KKMCreateOFDPacket done [14:32:03]NVStorageSaveData kkm_last_timestamp [14:32:03]File name is /storage/kkm_last_timestamp [14:32:03]Write 4 bytes [14:32:03]NVStorageSaveData done [14:32:03]ExternCall_PrintAddStr [14:32:03]wPrintStart [14:32:03]Write to MH i2c: 01 00 00 23 0E 31 [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: 01 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: 01 07 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: 01 07 00 23 0E 00 00 00 00 00 FF 0F 46 [14:32:03]RasterBufferAndPrint [14:32:03]line Счет N : (3)344029 [14:32:03]line ИНН: 02508201610067 [14:32:03]line Контрольно-Кассовый Чек [14:32:03]line ПРОДАЖА [14:32:03]line Товар: 4870001570071 [14:32:03]line Напиток Pepsi 1л [14:32:03]line 1.000 * 110.00 [14:32:03]line = 110.00 [14:32:03]line НДС 12% НСП 1% [14:32:03]line > о реализуемом товаре [14:32:03]line Товар: 4870202521216 [14:32:03]line Напиток MAXI чай 1,2 зел.лимон (новый) [14:32:03]line 1.000 * 125.00 [14:32:03]line = 125.00 [14:32:03]line НДС 12% НСП 1% [14:32:03]line > о реализуемом товаре [14:32:03]line Товар: 5449000054227 [14:32:03]line Напиток Кока-Кола 1л [14:32:03]line 1.000 * 105.00 [14:32:03]line = 105.00 [14:32:03]line НДС 12% НСП 1% [14:32:03]line > о реализуемом товаре [14:32:03]line ИТОГО: 340.00 [14:32:03]line НСП 1% : 3.01 [14:32:03]line НДС 12% : 36.10 [14:32:03]line Наличными: 340.00 [14:32:03]line Безнал.: 0.00 [14:32:03]line Место: АЗС № 90 "Партнер Нефть" [14:32:03]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:32:03]line СНО: Общий режим [14:32:03]line Чек 159 23.09.2024 14:32 [14:32:03]line Смена: 472 ФФД: 1.0 [14:32:03]line ЗНМ: 0300000120 [14:32:03]line РНМ: 0000000000091831 [14:32:03]line Версия ККМ: 001 [14:32:03]line ФМ: 0000000000871830 [14:32:03]line ФД: 115676 [14:32:03]line ФПД: 213714256350230 [14:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143201&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115676&fm=213714256350230&tin=02508201610067®Number=0000000000091831&sum=34000 [14:32:03]line 0 [14:32:03]written 0, free lines is 4095 [14:32:03]OFD Sender: Processing packet 115676 [packets to send 482, broken 481] [14:32:03]ProducePacketName [14:32:03]name=ofd_packets/00115676 [14:32:03]OFD Sender: To server: pG, [14:32:03]CommunicateWithHost lk.salyk.kg:30040 [14:32:03]ConnectInit lk.salyk.kg [14:32:03]Connected sock=7 [14:32: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 38 33 30 0F 02 00 00 70 7A 07 02 DA 57 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 E1 7B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DC C3 01 00 35 04 06 00 C2 5F 3A 55 4C 16 64 5C 03 05 0D AD FF 5A [14:32:04]Write to MH i2c: 01 00 00 57 0E 65 [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: 01 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: 01 07 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 74 0B EB [14:32:04]RasterBufferAndPrint [14:32:04]line [14:32:04]line [14:32:04]line [14:32:04]line [14:32:04]line [14:32:04]written 0, free lines is 2935 [14:32:04]MH_Cut [14:32:04]Write to MH i2c: D1 01 00 5E 0E 01 3E [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: D1 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: D1 01 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: D1 01 00 5E 0E 00 3D [14:32:04]Write to MH i2c: 01 00 00 5F 0E 6D [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C7 CD 47 00 13 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 38 33 30 10 04 04 00 DC C3 01 00 F4 03 04 00 24 21 F1 66 B6 04 01 00 00 22 E5 02 52 BF 7B 7C 05 [14:32:04]CommunicateWithHost err = 0 [14:32:04]CheckOFDResponse [14:32:04]1017 (14) - 77093643461234 [14:32:04]1041 (16) - 0000000000871830 [14:32:04]1040 (4) - 115676 [14:32:04]1012 (4) - 23.09.2024 08:04 [14:32:04]1206 (1) - 0 [14:32:04]OFD Sender: Remove packet 115676 [14:32:04]ProducePacketName [14:32:04]name=ofd_packets/00115676 [14:32:04]NVStorageDeleteData [14:32:04]OFD Sender: No OFD packet to send [14:32:05]*** Cut start [14:32:05]*** Partial cut [14:32:05]*** CUTSNS_PIN = 1 [14:32:05]*** CUTSNS_PIN = 0 [14:32:05]*** Brake cut motor [14:32:06]Read from MH i2c: 01 [14:32:06]MH_I2C_Read... [14:32:06]*** Stop cut motor [14:32:06]*** Cut end [14:32:06]Read from MH i2c: 01 07 00 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: 01 07 00 5F 0E 00 00 00 00 00 FF 0F 82 [14:32:06]process_action close_receipt done [14:32:06]requested_data is exist [14:32:06]produce_requested_data [14:32:06]requested_item fm.sn is exist - process it [14:32:06]wFMCommunicate request_size=4 [14:32:06]MH_SAM_APDU [14:32:06]CAPDU: 80 11 00 00 [14:32:06]Write to MH i2c: E2 08 00 60 0E 80 11 00 00 00 00 00 00 E8 [14:32:06]Write i2c OK [14:32:06]MH_I2C_Read... [14:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:06]Read from MH i2c: E2 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 17 00 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 17 00 60 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 36 [14:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:32:06]wFMCommunicate OK [14:32:06]requested_item fd.num is exist - process it [14:32:06]SAM_PROTO_GetFieldsCounters [14:32:06]wFMCommunicate request_size=4 [14:32:06]MH_SAM_APDU [14:32:06]CAPDU: 80 13 00 00 [14:32:06]Write to MH i2c: E2 08 00 61 0E 80 13 00 00 00 00 00 00 EB [14:32:06]Write i2c OK [14:32:06]MH_I2C_Read... [14:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:06]Read from MH i2c: E2 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 62 00 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 62 00 61 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DC C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [14:32:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DC C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:06]wFMCommunicate OK [14:32:06]SAM_PROTO_GetFieldsCounters done [14:32:06]requested_item shift.num is exist - process it [14:32:06]requested_item shift.opened is exist - process it [14:32:06]req_shift_opened [14:32:06]FM_GetShiftState [14:32:06]SAM_PROTO_GetShiftState [14:32:06]wFMCommunicate request_size=4 [14:32:06]MH_SAM_APDU [14:32:06]CAPDU: 80 13 01 00 [14:32:06]Write to MH i2c: E2 08 00 62 0E 80 13 01 00 00 00 00 00 ED [14:32:06]Write i2c OK [14:32:06]MH_I2C_Read... [14:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:06]Read from MH i2c: E2 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 0E 00 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 0E 00 62 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 2E [14:32:06]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:32:06]wFMCommunicate OK [14:32:06]SAM_PROTO_GetShiftState done [14:32:06]FM_GetShiftState done [14:32:06]req_shift_opened done [14:32:06]requested_item shift.open_date is exist - process it [14:32:06]req_shift_open_date [14:32:06]req_shift_open_date done [14:32:06]produce_requested_data done [14:32:06]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115676,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:32:06]process_action_free close_receipt [14:32:06]json_value_free [14:32:06]json_value_free done [14:32:06]process_json_proto returns [14:32:06]Send response to host [14:32:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115676,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:32:06]free response buf [14:32:06]execute_script done [14:32:06]execute_script returns [14:32:06]free content buf [14:32:06]Sock 9.Close socket [14:32:06]Sock 9.Thread stoped [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:31]accept exits with 10 [14:33:31]New connection [14:33:31]New thread 3066879332 created [14:33:31]Thread 3067022692 joined [14:33:31]Waiting for new connection... [14:33:31] Sock 10.Parse request [14:33:31]Sock 10.Check first char [14:33:31]Sock 10.First char is OK [14:33:31]request: POST /json_proto HTTP/1.0 [14:33:31]Method: POST [14:33:31]URL: /json_proto [14:33:31]Method is POST - this is cgi request [14:33:31]url: /json_proto [14:33:31]query_string will be loaded in cgi processing [14:33:31]execute_cgi json_proto POST (null) [14:33:31]execute_cgi path=json_proto method=POST [14:33:31]POST find Content-Length [14:33:31]Host: 172.17.41.136:8080 [14:33:31]Content-Length: 1100 [14:33:31]Content-Type: application/json [14:33:31] [14:33:31]POST finish read [14:33:31]Found Content-Length = 1100 [14:33:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344030", "tax_sys" : 0, "items" : [ { "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:31]execute_script... [14:33:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344030", "tax_sys" : 0, "items" : [ { "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:31]POST & json_proto [14:33:31]process_json_proto [14:33:31]json parsed OK: [14:33:31]protocol is kg_v1.0 [14:33:31]action value=close_receipt [14:33:31]process_action close_receipt [14:33:31]cmd_close_receipt [14:33:31]MH_GetDate [14:33:31]Write to MH i2c: F0 00 00 63 0E 60 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: F0 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: F0 09 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: F0 09 00 63 0E 00 3B 7C F1 66 1B D0 5A 64 20 [14:33:31]GetLastDocTimeStamp 1727101921 [14:33:31]current date 1727102011 [14:33:31]FM_GetShiftState [14:33:31]SAM_PROTO_GetShiftState [14:33:31]wFMCommunicate request_size=4 [14:33:31]MH_SAM_APDU [14:33:31]CAPDU: 80 13 01 00 [14:33:31]Write to MH i2c: E2 08 00 64 0E 80 13 01 00 00 00 00 00 EF [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:31]Read from MH i2c: E2 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 0E 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 0E 00 64 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 30 [14:33:31]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:33:31]wFMCommunicate OK [14:33:31]SAM_PROTO_GetShiftState done [14:33:31]FM_GetShiftState done [14:33:31]opened in 1727052070 [14:33:31]opened+sec_in_day 1727138470 [14:33:31]quantity*price = 6000 [14:33:31]sum+1 = 6001 [14:33:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 0.00 Безнал.: 175.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 160 23.09.2024 14:33 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115677 ФПД: 49342853853317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143331&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115677&fm=49342853853317&tin=02508201610067®Number=0000000000091831&sum=17500 0 [14:33:32]StoreToDocumentArchive [14:33:32]shift 472 fd 115677 [14:33:32]save to /storage/0472/doc_00115677 [14:33:32]save last doc name /storage/0472/doc_00115677 to /storage/kkm_last_doc_name [14:33:32]save OK [14:33:32]Clear old archive folders... [14:33:32]ProcessDocumentItem done err = 0, tmpTLVsize=391 [14:33:32]tlvbuf is 017AB3A0 [14:33:32]SAM_PROTO_ClearQueue [14:33:32]wFMCommunicate request_size=4 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 09 00 00 [14:33:32]Write to MH i2c: E2 08 00 71 0E 80 09 00 00 00 00 00 00 F1 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [14:33:32]RAPDU: 90 00 [14:33:32]wFMCommunicate OK [14:33:32]SAM_PROTO_ClearQueue done [14:33:32]KKMCreateOFDPacket [14:33:32]OFDProtocolAddRootSTLVToBuf [14:33:32]FM_MakeSignedData [14:33:32]FM_MakeSignedData [14:33:32]SAM_PROTO_SignData [14:33:32]wFMCommunicate request_size=4 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 0D 01 02 [14:33:32]Write to MH i2c: E2 08 00 72 0E 80 0D 01 02 00 00 00 00 F9 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [14:33:32]RAPDU: 90 00 [14:33:32]wFMCommunicate OK [14:33:32]wFMCommunicate request_size=255 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [14:33:32]Write to MH i2c: E2 02 01 73 0E 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 33 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 73 0E 00 90 00 F5 [14:33:32]RAPDU: 90 00 [14:33:32]wFMCommunicate OK [14:33:32]wFMCommunicate request_size=150 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 3B 7C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DD C3 01 00 35 04 06 00 2C E0 87 46 B0 85 [14:33:32]Write to MH i2c: E2 99 00 74 0E 80 0D 02 02 91 00 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 3B 7C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DD C3 01 00 35 04 06 00 2C E0 87 46 B0 85 00 00 FF [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 03 00 74 0E 00 90 00 F6 [14:33:32]RAPDU: 90 00 [14:33:32]wFMCommunicate OK [14:33:32]wFMCommunicate request_size=4 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 0D 03 02 [14:33:32]Write to MH i2c: E2 08 00 75 0E 80 0D 03 02 00 00 00 00 FE [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 0B 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 0B 00 75 0E 00 FF AC BF F4 BE A4 8C BC 90 00 07 [14:33:32]RAPDU: FF AC BF F4 BE A4 8C BC 90 00 [14:33:32]wFMCommunicate OK [14:33:32]SAM_PROTO_SignData done [14:33:32]FM_MakeSignedData done [14:33:32]CreateOFDProtocolMessage [14:33:32]wFMCommunicate request_size=4 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 11 00 00 [14:33:32]Write to MH i2c: E2 08 00 76 0E 80 11 00 00 00 00 00 00 FE [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 17 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 17 00 76 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4C [14:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:33:32]wFMCommunicate OK [14:33:32]CreateOFDProtocolMessage done [14:33:32]OFDSenderStorePacket 115677 [14:33:32]StoreOFDPacket docnum=115677 [14:33:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9B 01 00 00 B1 AB 93 01 D1 AB 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 3B 7C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DD C3 01 00 35 04 06 00 2C E0 87 46 B0 85 FF AC BF F4 BE A4 8C BC [14:33:32]CheckFolder [14:33:32]dirname=/storage/ofd_packets [14:33:32]CheckFolder done [14:33:32]ProducePacketName [14:33:32]name=ofd_packets/00115677 [14:33:32]NVStorageSaveData ofd_packets/00115677 [14:33:32]File name is /storage/ofd_packets/00115677 [14:33:32]Write 441 bytes [14:33:32]NVStorageSaveData done [14:33:32]OFDSenderStorePacket done [14:33:32]KKMCreateOFDPacket done [14:33:32]NVStorageSaveData kkm_last_timestamp [14:33:32]File name is /storage/kkm_last_timestamp [14:33:33]Write 4 bytes [14:33:33]NVStorageSaveData done [14:33:33]OFD Sender: Processing packet 115677 [packets to send 482, broken 481] [14:33:33]ProducePacketName [14:33:33]name=ofd_packets/00115677 [14:33:33]OFD Sender: To server: pG, [14:33:33]CommunicateWithHost lk.salyk.kg:30040 [14:33:33]ConnectInit lk.salyk.kg [14:33:33]ExternCall_PrintAddStr [14:33:33]wPrintStart [14:33:33]Write to MH i2c: 01 00 00 77 0E 85 [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: 01 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: 01 07 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: 01 07 00 77 0E 00 00 00 00 00 FF 0F 9A [14:33:33]RasterBufferAndPrint [14:33:33]line Счет N : (3)344030 [14:33:33]line ИНН: 02508201610067 [14:33:33]line Контрольно-Кассовый Чек [14:33:33]line ПРОДАЖА [14:33:33]line Товар: 4011100977952 [14:33:33]line Шок Батончик Твикс 55г [14:33:33]line 1.000 * 60.00 [14:33:33]line = 60.00 [14:33:33]line НДС 12% НСП 1% [14:33:33]line > о реализуемом товаре [14:33:33]line Товар: 2000036210013 [14:33:33]line Кофе Капучино (GABB TRADE) [14:33:33]line 1.000 * 115.00 [14:33:33]line = 115.00 [14:33:33]line НДС 12% НСП 1% [14:33:33]line > о реализуемом товаре [14:33:33]line ИТОГО: 175.00 [14:33:33]line НСП 1% : 1.55 [14:33:33]line НДС 12% : 18.58 [14:33:33]line Наличными: 0.00 [14:33:33]line Безнал.: 175.00 [14:33:33]line Место: АЗС № 90 "Партнер Нефть" [14:33:33]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:33:33]line СНО: Общий режим [14:33:33]line Чек 160 23.09.2024 14:33 [14:33:33]line Смена: 472 ФФД: 1.0 [14:33:33]line ЗНМ: 0300000120 [14:33:33]line РНМ: 0000000000091831 [14:33:33]line Версия ККМ: 001 [14:33:33]line Платежная система: Бакай Банк [14:33:33]line ФМ: 0000000000871830 [14:33:33]line ФД: 115677 [14:33:33]line ФПД: 49342853853317 [14:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143331&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115677&fm=49342853853317&tin=02508201610067®Number=0000000000091831&sum=17500 [14:33:33]line 0 [14:33:33]written 0, free lines is 4095 [14:33:33]Connected sock=11 [14: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 38 33 30 9B 01 00 00 B1 AB 93 01 D1 AB 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 3B 7C F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DD C3 01 00 35 04 06 00 2C E0 87 46 B0 85 FF AC BF F4 BE A4 8C BC [14:33:33]Write to MH i2c: 01 00 00 A6 0E B4 [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: 01 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: 01 07 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: 01 07 00 A6 0E 00 00 00 00 00 E8 0B AE [14:33:33]RasterBufferAndPrint [14:33:33]line [14:33:33]line [14:33:33]line [14:33:33]line [14:33:33]line [14:33:33]written 0, free lines is 3051 [14:33:33]MH_Cut [14:33:33]Write to MH i2c: D1 01 00 AD 0E 01 8D [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: D1 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: D1 01 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: D1 01 00 AD 0E 00 8C [14:33:33]Write to MH i2c: 01 00 00 AE 0E BC [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 81 33 47 00 69 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 38 33 30 10 04 04 00 DD C3 01 00 F4 03 04 00 7E 21 F1 66 B6 04 01 00 00 AB 9A 80 BA AD 16 DD 67 [14:33:33]CommunicateWithHost err = 0 [14:33:33]CheckOFDResponse [14:33:33]1017 (14) - 77093643461234 [14:33:33]1041 (16) - 0000000000871830 [14:33:33]1040 (4) - 115677 [14:33:33]1012 (4) - 23.09.2024 08:06 [14:33:33]1206 (1) - 0 [14:33:33]OFD Sender: Remove packet 115677 [14:33:33]ProducePacketName [14:33:33]name=ofd_packets/00115677 [14:33:33]NVStorageDeleteData [14:33:34]OFD Sender: No OFD packet to send [14:33:35]*** Cut start [14:33:35]*** Partial cut [14:33:35]*** CUTSNS_PIN = 1 [14:33:35]*** CUTSNS_PIN = 0 [14:33:35]*** Brake cut motor [14:33:35]Read from MH i2c: *** Stop cut motor [14:33:35]*** Cut end [14:33:35]01 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: 01 07 00 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: 01 07 00 AE 0E 00 00 00 00 00 FF 0F D1 [14:33:35]process_action close_receipt done [14:33:35]requested_data is exist [14:33:35]produce_requested_data [14:33:35]requested_item fm.sn is exist - process it [14:33:35]wFMCommunicate request_size=4 [14:33:35]MH_SAM_APDU [14:33:35]CAPDU: 80 11 00 00 [14:33:35]Write to MH i2c: E2 08 00 AF 0E 80 11 00 00 00 00 00 00 37 [14:33:35]Write i2c OK [14:33:35]MH_I2C_Read... [14:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:35]Read from MH i2c: E2 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: E2 17 00 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: E2 17 00 AF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 85 [14:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:33:35]wFMCommunicate OK [14:33:35]requested_item fd.num is exist - process it [14:33:35]SAM_PROTO_GetFieldsCounters [14:33:35]wFMCommunicate request_size=4 [14:33:35]MH_SAM_APDU [14:33:35]CAPDU: 80 13 00 00 [14:33:35]Write to MH i2c: E2 08 00 B0 0E 80 13 00 00 00 00 00 00 3A [14:33:35]Write i2c OK [14:33:35]MH_I2C_Read... [14:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:35]Read from MH i2c: E2 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: E2 62 00 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: E2 62 00 B0 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DD C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [14:33: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DD C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:35]wFMCommunicate OK [14:33:35]SAM_PROTO_GetFieldsCounters done [14:33:35]requested_item shift.num is exist - process it [14:33:35]requested_item shift.opened is exist - process it [14:33:35]req_shift_opened [14:33:35]FM_GetShiftState [14:33:35]SAM_PROTO_GetShiftState [14:33:35]wFMCommunicate request_size=4 [14:33:35]MH_SAM_APDU [14:33:35]CAPDU: 80 13 01 00 [14:33:35]Write to MH i2c: E2 08 00 B1 0E 80 13 01 00 00 00 00 00 3C [14:33:35]Write i2c OK [14:33:35]MH_I2C_Read... [14:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:36]Read from MH i2c: E2 [14:33:36]MH_I2C_Read... [14:33:36]Read from MH i2c: E2 0E 00 [14:33:36]MH_I2C_Read... [14:33:36]Read from MH i2c: E2 0E 00 B1 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7D [14:33:36]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:33:36]wFMCommunicate OK [14:33:36]SAM_PROTO_GetShiftState done [14:33:36]FM_GetShiftState done [14:33:36]req_shift_opened done [14:33:36]requested_item shift.open_date is exist - process it [14:33:36]req_shift_open_date [14:33:36]req_shift_open_date done [14:33:36]produce_requested_data done [14:33:36]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115677,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:33:36]process_action_free close_receipt [14:33:36]json_value_free [14:33:36]json_value_free done [14:33:36]process_json_proto returns [14:33:36]Send response to host [14:33:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115677,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:33:36]free response buf [14:33:36]execute_script done [14:33:36]execute_script returns [14:33:36]free content buf [14:33:36]Sock 10.Close socket [14:33:36]Sock 10.Thread stoped [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]accept exits with 7 [14:38:14]New connection [14:38:14]New thread 3067022692 created [14:38:14]Thread 3066879332 joined [14:38:14]Waiting for new connection... [14:38:14] Sock 7.Parse request [14:38:14]Sock 7.Check first char [14:38:14]Sock 7.First char is OK [14:38:14]request: POST /json_proto HTTP/1.0 [14:38:14]Method: POST [14:38:14]URL: /json_proto [14:38:14]Method is POST - this is cgi request [14:38:14]url: /json_proto [14:38:14]query_string will be loaded in cgi processing [14:38:14]execute_cgi json_proto POST (null) [14:38:14]execute_cgi path=json_proto method=POST [14:38:14]POST find Content-Length [14:38:14]Host: 172.17.41.136:8080 [14:38:14]Content-Length: 940 [14:38:14]Content-Type: application/json [14:38:14] [14:38:14]POST finish read [14:38:14]Found Content-Length = 940 [14:38:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344031", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:14]execute_script... [14:38: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 : (3)344031", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:14]POST & json_proto [14:38:14]process_json_proto [14:38:14]json parsed OK: [14:38:14]protocol is kg_v1.0 [14:38:14]action value=close_receipt [14:38:14]process_action close_receipt [14:38:14]cmd_close_receipt [14:38:14]MH_GetDate [14:38:14]Write to MH i2c: F0 00 00 B2 0E AF [14:38:14]Write i2c OK [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: F0 [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: F0 09 00 [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: F0 09 00 B2 0E 00 57 7D F1 66 1B D0 5A 64 8C [14:38:14]GetLastDocTimeStamp 1727102011 [14:38:14]current date 1727102295 [14:38:14]FM_GetShiftState [14:38:14]SAM_PROTO_GetShiftState [14:38:14]wFMCommunicate request_size=4 [14:38:14]MH_SAM_APDU [14:38:14]CAPDU: 80 13 01 00 [14:38:14]Write to MH i2c: E2 08 00 B3 0E 80 13 01 00 00 00 00 00 3E [14:38:14]Write i2c OK [14:38:14]MH_I2C_Read... [14:38:14]OFD Sender: No OFD packet to send [14:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:14]Read from MH i2c: E2 [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: E2 0E 00 [14:38:14]MH_I2C_Read... [14:38:14]Read from MH i2c: E2 0E 00 B3 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7F [14:38:14]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:38:14]wFMCommunicate OK [14:38:14]SAM_PROTO_GetShiftState done [14:38:14]FM_GetShiftState done [14:38:14]opened in 1727052070 [14:38:14]opened+sec_in_day 1727138470 [14:38:14]quantity*price = 11000 [14:38:14]sum+1 = 11001 [14:38:14]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001346 Вода Боржоми 0,5л ст 1.000 * 160.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 161 23.09.2024 14:38 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115678 ФПД: 118853698197036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143815&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115678&fm=118853698197036&tin=02508201610067®Number=0000000000091831&sum=27000 0 [14:38:16]StoreToDocumentArchive [14:38:16]shift 472 fd 115678 [14:38:16]save to /storage/0472/doc_00115678 [14:38:16]save last doc name /storage/0472/doc_00115678 to /storage/kkm_last_doc_name [14:38:16]save OK [14:38:16]Clear old archive folders... [14:38:16]ProcessDocumentItem done err = 0, tmpTLVsize=390 [14:38:16]tlvbuf is 017CD570 [14:38:16]SAM_PROTO_ClearQueue [14:38:16]wFMCommunicate request_size=4 [14:38:16]MH_SAM_APDU [14:38:16]CAPDU: 80 09 00 00 [14:38:16]Write to MH i2c: E2 08 00 C0 0E 80 09 00 00 00 00 00 00 40 [14:38:16]Write i2c OK [14:38:16]MH_I2C_Read... [14:38:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:16]Read from MH i2c: E2 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: E2 03 00 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: E2 03 00 C0 0E 00 90 00 42 [14:38:16]RAPDU: 90 00 [14:38:16]wFMCommunicate OK [14:38:16]SAM_PROTO_ClearQueue done [14:38:16]KKMCreateOFDPacket [14:38:16]OFDProtocolAddRootSTLVToBuf [14:38:16]FM_MakeSignedData [14:38:16]FM_MakeSignedData [14:38:16]SAM_PROTO_SignData [14:38:16]wFMCommunicate request_size=4 [14:38:16]MH_SAM_APDU [14:38:16]CAPDU: 80 0D 01 02 [14:38:16]Write to MH i2c: E2 08 00 C1 0E 80 0D 01 02 00 00 00 00 48 [14:38:16]Write i2c OK [14:38:16]MH_I2C_Read... [14:38:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:16]Read from MH i2c: E2 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: E2 03 00 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: E2 03 00 C1 0E 00 90 00 43 [14:38:16]RAPDU: 90 00 [14:38:16]wFMCommunicate OK [14:38:16]wFMCommunicate request_size=255 [14:38:16]MH_SAM_APDU [14:38:16]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [14:38:16]Write to MH i2c: E2 02 01 C2 0E 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 C0 [14:38:16]Write i2c OK [14:38:16]MH_I2C_Read... [14:38:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:16]Read from MH i2c: E2 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: E2 03 00 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: E2 03 00 C2 0E 00 90 00 44 [14:38:16]RAPDU: 90 00 [14:38:16]wFMCommunicate OK [14:38:16]wFMCommunicate request_size=149 [14:38:16]MH_SAM_APDU [14:38:16]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 57 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DE C3 01 00 35 04 06 00 6C 18 C8 76 16 2C [14:38:16]Write to MH i2c: E2 98 00 C3 0E 80 0D 02 02 90 00 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 57 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DE C3 01 00 35 04 06 00 6C 18 C8 76 16 2C 00 00 EA [14:38:16]Write i2c OK [14:38:16]MH_I2C_Read... [14:38:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:16]Read from MH i2c: E2 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: E2 03 00 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: E2 03 00 C3 0E 00 90 00 45 [14:38:16]RAPDU: 90 00 [14:38:16]wFMCommunicate OK [14:38:16]wFMCommunicate request_size=4 [14:38:16]MH_SAM_APDU [14:38:16]CAPDU: 80 0D 03 02 [14:38:16]Write to MH i2c: E2 08 00 C4 0E 80 0D 03 02 00 00 00 00 4D [14:38:16]Write i2c OK [14:38:16]MH_I2C_Read... [14:38:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:16]Read from MH i2c: E2 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: E2 0B 00 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: E2 0B 00 C4 0E 00 A1 96 F6 8B 1C B9 68 EC 90 00 2F [14:38:16]RAPDU: A1 96 F6 8B 1C B9 68 EC 90 00 [14:38:16]wFMCommunicate OK [14:38:16]SAM_PROTO_SignData done [14:38:16]FM_MakeSignedData done [14:38:16]CreateOFDProtocolMessage [14:38:16]wFMCommunicate request_size=4 [14:38:16]MH_SAM_APDU [14:38:16]CAPDU: 80 11 00 00 [14:38:16]Write to MH i2c: E2 08 00 C5 0E 80 11 00 00 00 00 00 00 4D [14:38:16]Write i2c OK [14:38:16]MH_I2C_Read... [14:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:16]Read from MH i2c: E2 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: E2 17 00 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: E2 17 00 C5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9B [14:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:38:16]wFMCommunicate OK [14:38:16]CreateOFDProtocolMessage done [14:38:16]OFDSenderStorePacket 115678 [14:38:16]StoreOFDPacket docnum=115678 [14:38:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9A 01 00 00 76 2A 92 01 94 70 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 57 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DE C3 01 00 35 04 06 00 6C 18 C8 76 16 2C A1 96 F6 8B 1C B9 68 EC [14:38:16]CheckFolder [14:38:16]dirname=/storage/ofd_packets [14:38:16]CheckFolder done [14:38:16]ProducePacketName [14:38:16]name=ofd_packets/00115678 [14:38:16]NVStorageSaveData ofd_packets/00115678 [14:38:16]File name is /storage/ofd_packets/00115678 [14:38:16]Write 440 bytes [14:38:16]NVStorageSaveData done [14:38:16]OFDSenderStorePacket done [14:38:16]KKMCreateOFDPacket done [14:38:16]NVStorageSaveData kkm_last_timestamp [14:38:16]File name is /storage/kkm_last_timestamp [14:38:16]Write 4 bytes [14:38:16]NVStorageSaveData done [14:38:16]ExternCall_PrintAddStr [14:38:16]wPrintStart [14:38:16]Write to MH i2c: 01 00 00 C6 0E D4 [14:38:16]Write i2c OK [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: 01 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: 01 07 00 [14:38:16]MH_I2C_Read... [14:38:16]Read from MH i2c: 01 07 00 C6 0E 00 00 00 00 00 FF 0F E9 [14:38:16]RasterBufferAndPrint [14:38:16]line Счет N : (3)344031 [14:38:16]line ИНН: 02508201610067 [14:38:16]line Контрольно-Кассовый Чек [14:38:16]line ПРОДАЖА [14:38:16]line Товар: 4700003241276 [14:38:16]line Напиток Молочный ТАН 1л [14:38:17]line 1.000 * 110.00 [14:38:17]line = 110.00 [14:38:17]line НДС 12% НСП 1% [14:38:17]line > о реализуемом товаре [14:38:17]line Товар: 4860019001346 [14:38:17]line Вода Боржоми 0,5л ст [14:38:17]line 1.000 * 160.00 [14:38:17]line = 160.00 [14:38:17]line НДС 12% НСП 1% [14:38:17]line > о реализуемом товаре [14:38:17]line ИТОГО: 270.00 [14:38:17]line НСП 1% : 2.39 [14:38:17]line НДС 12% : 28.67 [14:38:17]line Наличными: 270.00 [14:38:17]line Безнал.: 0.00 [14:38:17]line Место: АЗС № 90 "Партнер Нефть" [14:38:17]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:38:17]line СНО: Общий режим [14:38:17]line Чек 161 23.09.2024 14:38 [14:38:17]line Смена: 472 ФФД: 1.0 [14:38:17]line ЗНМ: 0300000120 [14:38:17]line РНМ: 0000000000091831 [14:38:17]line Версия ККМ: 001 [14:38:17]line ФМ: 0000000000871830 [14:38:17]line ФД: 115678 [14:38:17]line ФПД: 118853698197036 [14:38:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143815&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115678&fm=118853698197036&tin=02508201610067®Number=0000000000091831&sum=27000 [14:38:17]line 0 [14:38:17]OFD Sender: Processing packet 115678 [packets to send 482, broken 481] [14:38:17]ProducePacketName [14:38:17]name=ofd_packets/00115678 [14:38:17]OFD Sender: To server: pG, [14:38:17]CommunicateWithHost lk.salyk.kg:30040 [14:38:17]ConnectInit lk.salyk.kg [14:38:17]written 0, free lines is 4095 [14:38:17]Connected sock=9 [14:38: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 38 33 30 9A 01 00 00 76 2A 92 01 94 70 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 57 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DE C3 01 00 35 04 06 00 6C 18 C8 76 16 2C A1 96 F6 8B 1C B9 68 EC [14:38:17]Write to MH i2c: 01 00 00 F3 0E 01 [14:38:17]Write i2c OK [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: 01 [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: 01 07 00 [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: 01 07 00 F3 0E 00 00 00 00 00 16 0C 2A [14:38:17]RasterBufferAndPrint [14:38:17]line [14:38:17]line [14:38:17]line [14:38:17]line [14:38:17]line [14:38:17]written 0, free lines is 3097 [14:38:17]MH_Cut [14:38:17]Write to MH i2c: D1 01 00 FA 0E 01 DA [14:38:17]Write i2c OK [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: D1 [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: D1 01 00 [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: D1 01 00 FA 0E 00 D9 [14:38:17]Write to MH i2c: 01 00 00 FB 0E 09 [14:38:17]Write i2c OK [14:38:17]MH_I2C_Read... [14:38:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 58 02 47 00 84 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 38 33 30 10 04 04 00 DE C3 01 00 F4 03 04 00 9A 22 F1 66 B6 04 01 00 00 62 6C 41 C6 B1 9B C4 DB [14:38:17]CommunicateWithHost err = 0 [14:38:17]CheckOFDResponse [14:38:17]1017 (14) - 77093643461234 [14:38:17]1041 (16) - 0000000000871830 [14:38:17]1040 (4) - 115678 [14:38:17]1012 (4) - 23.09.2024 08:11 [14:38:17]1206 (1) - 0 [14:38:17]OFD Sender: Remove packet 115678 [14:38:17]ProducePacketName [14:38:17]name=ofd_packets/00115678 [14:38:17]NVStorageDeleteData [14:38:18]OFD Sender: No OFD packet to send [14:38:19]*** Cut start [14:38:19]*** Partial cut [14:38:19]*** CUTSNS_PIN = 1 [14:38:19]*** CUTSNS_PIN = 0 [14:38:19]*** Brake cut motor [14:38:19]Read from MH i2c: 01 [14:38:19]MH_I2C_Read... [14:38:19]*** Stop cut motor [14:38:19]*** Cut end [14:38:19]Read from MH i2c: 01 07 00 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: 01 07 00 FB 0E 00 00 00 00 00 FF 0F 1E [14:38:19]process_action close_receipt done [14:38:19]requested_data is exist [14:38:19]produce_requested_data [14:38:19]requested_item fm.sn is exist - process it [14:38:19]wFMCommunicate request_size=4 [14:38:19]MH_SAM_APDU [14:38:19]CAPDU: 80 11 00 00 [14:38:19]Write to MH i2c: E2 08 00 FC 0E 80 11 00 00 00 00 00 00 84 [14:38:19]Write i2c OK [14:38:19]MH_I2C_Read... [14:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:19]Read from MH i2c: E2 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: E2 17 00 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: E2 17 00 FC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [14:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:38:19]wFMCommunicate OK [14:38:19]requested_item fd.num is exist - process it [14:38:19]SAM_PROTO_GetFieldsCounters [14:38:19]wFMCommunicate request_size=4 [14:38:19]MH_SAM_APDU [14:38:19]CAPDU: 80 13 00 00 [14:38:19]Write to MH i2c: E2 08 00 FD 0E 80 13 00 00 00 00 00 00 87 [14:38:19]Write i2c OK [14:38:19]MH_I2C_Read... [14:38:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:19]Read from MH i2c: E2 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: E2 62 00 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: E2 62 00 FD 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DE C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [14:38: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DE C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:19]wFMCommunicate OK [14:38:19]SAM_PROTO_GetFieldsCounters done [14:38:19]requested_item shift.num is exist - process it [14:38:19]requested_item shift.opened is exist - process it [14:38:19]req_shift_opened [14:38:19]FM_GetShiftState [14:38:19]SAM_PROTO_GetShiftState [14:38:19]wFMCommunicate request_size=4 [14:38:19]MH_SAM_APDU [14:38:19]CAPDU: 80 13 01 00 [14:38:19]Write to MH i2c: E2 08 00 FE 0E 80 13 01 00 00 00 00 00 89 [14:38:19]Write i2c OK [14:38:19]MH_I2C_Read... [14:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:19]Read from MH i2c: E2 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: E2 0E 00 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: E2 0E 00 FE 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CA [14:38:19]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:38:19]wFMCommunicate OK [14:38:19]SAM_PROTO_GetShiftState done [14:38:19]FM_GetShiftState done [14:38:19]req_shift_opened done [14:38:19]requested_item shift.open_date is exist - process it [14:38:19]req_shift_open_date [14:38:19]req_shift_open_date done [14:38:19]produce_requested_data done [14:38:19]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115678,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:38:19]process_action_free close_receipt [14:38:19]json_value_free [14:38:19]json_value_free done [14:38:19]process_json_proto returns [14:38:19]Send response to host [14:38:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115678,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:38:19]free response buf [14:38:19]execute_script done [14:38:19]execute_script returns [14:38:19]free content buf [14:38:19]Sock 7.Close socket [14:38:19]Sock 7.Thread stoped [14:38:23]OFD Sender: No OFD packet to send [14:38:28]OFD Sender: No OFD packet to send [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:43]OFD Sender: No OFD packet to send [14:38:48]OFD Sender: No OFD packet to send [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:10]accept exits with 10 [14:39:10]New connection [14:39:10]New thread 3066879332 created [14:39:10]Thread 3067022692 joined [14:39:10]Waiting for new connection... [14:39:10] Sock 10.Parse request [14:39:10]Sock 10.Check first char [14:39:10]Sock 10.First char is OK [14:39:10]request: POST /json_proto HTTP/1.0 [14:39:10]Method: POST [14:39:10]URL: /json_proto [14:39:10]Method is POST - this is cgi request [14:39:10]url: /json_proto [14:39:10]query_string will be loaded in cgi processing [14:39:10]execute_cgi json_proto POST (null) [14:39:10]execute_cgi path=json_proto method=POST [14:39:10]POST find Content-Length [14:39:10]Host: 172.17.41.136:8080 [14:39:10]Content-Length: 874 [14:39:10]Content-Type: application/json [14:39:10] [14:39:10]POST finish read [14:39:10]Found Content-Length = 874 [14:39:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344032", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 2.000, "sum" : 308.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 348.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:10]execute_script... [14:39:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344032", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 2.000, "sum" : 308.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 348.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:10]POST & json_proto [14:39:10]process_json_proto [14:39:10]json parsed OK: [14:39:10]protocol is kg_v1.0 [14:39:10]action value=close_receipt [14:39:10]process_action close_receipt [14:39:10]cmd_close_receipt [14:39:10]MH_GetDate [14:39:10]Write to MH i2c: F0 00 00 FF 0E FC [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: F0 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: F0 09 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: F0 09 00 FF 0E 00 8F 7D F1 66 1B D0 5A 64 11 [14:39:10]GetLastDocTimeStamp 1727102295 [14:39:10]current date 1727102351 [14:39:10]FM_GetShiftState [14:39:10]SAM_PROTO_GetShiftState [14:39:10]wFMCommunicate request_size=4 [14:39:10]MH_SAM_APDU [14:39:10]CAPDU: 80 13 01 00 [14:39:10]Write to MH i2c: E2 08 00 00 0F 80 13 01 00 00 00 00 00 8C [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:11]Read from MH i2c: E2 [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: E2 0E 00 [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: E2 0E 00 00 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CD [14:39:11]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:39:11]wFMCommunicate OK [14:39:11]SAM_PROTO_GetShiftState done [14:39:11]FM_GetShiftState done [14:39:11]opened in 1727052070 [14:39:11]opened+sec_in_day 1727138470 [14:39:11]quantity*price = 30800 [14:39:11]sum+1 = 30801 [14:39:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 348.00 НСП 1% : 3.08 НДС 12% : 36.96 Наличными: 348.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 162 23.09.2024 14:39 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115679 ФПД: 17874043525995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143911&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115679&fm=17874043525995&tin=02508201610067®Number=0000000000091831&sum=34800 0 [14:39:12]StoreToDocumentArchive [14:39:12]shift 472 fd 115679 [14:39:12]save to /storage/0472/doc_00115679 [14:39:12]save last doc name /storage/0472/doc_00115679 to /storage/kkm_last_doc_name [14:39:12]save OK [14:39:12]Clear old archive folders... [14:39:12]ProcessDocumentItem done err = 0, tmpTLVsize=378 [14:39:12]tlvbuf is 01784840 [14:39:12]SAM_PROTO_ClearQueue [14:39:12]wFMCommunicate request_size=4 [14:39:12]MH_SAM_APDU [14:39:12]CAPDU: 80 09 00 00 [14:39:12]Write to MH i2c: E2 08 00 0D 0F 80 09 00 00 00 00 00 00 8E [14:39:12]Write i2c OK [14:39:12]MH_I2C_Read... [14:39:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:12]Read from MH i2c: E2 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 03 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 03 00 0D 0F 00 90 00 90 [14:39:12]RAPDU: 90 00 [14:39:12]wFMCommunicate OK [14:39:12]SAM_PROTO_ClearQueue done [14:39:12]KKMCreateOFDPacket [14:39:12]OFDProtocolAddRootSTLVToBuf [14:39:12]FM_MakeSignedData [14:39:12]FM_MakeSignedData [14:39:12]SAM_PROTO_SignData [14:39:12]wFMCommunicate request_size=4 [14:39:12]MH_SAM_APDU [14:39:12]CAPDU: 80 0D 01 02 [14:39:12]Write to MH i2c: E2 08 00 0E 0F 80 0D 01 02 00 00 00 00 96 [14:39:12]Write i2c OK [14:39:12]MH_I2C_Read... [14:39:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:12]Read from MH i2c: E2 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 03 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 03 00 0E 0F 00 90 00 91 [14:39:12]RAPDU: 90 00 [14:39:12]wFMCommunicate OK [14:39:12]wFMCommunicate request_size=255 [14:39:12]MH_SAM_APDU [14:39:12]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 [14:39:12]Write to MH i2c: E2 02 01 0F 0F 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 00 00 66 [14:39:12]Write i2c OK [14:39:12]MH_I2C_Read... [14:39:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:12]Read from MH i2c: E2 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 03 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 03 00 0F 0F 00 90 00 92 [14:39:12]RAPDU: 90 00 [14:39:12]wFMCommunicate OK [14:39:12]wFMCommunicate request_size=137 [14:39:12]MH_SAM_APDU [14:39:12]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 0E 00 00 00 00 07 04 06 00 F0 87 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 8F 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DF C3 01 00 35 04 06 00 10 41 A0 03 DB 6B [14:39:12]Write to MH i2c: E2 8C 00 10 0F 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 0E 00 00 00 00 07 04 06 00 F0 87 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 8F 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DF C3 01 00 35 04 06 00 10 41 A0 03 DB 6B 00 00 76 [14:39:12]Write i2c OK [14:39:12]MH_I2C_Read... [14:39:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:12]Read from MH i2c: E2 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 03 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 03 00 10 0F 00 90 00 93 [14:39:12]RAPDU: 90 00 [14:39:12]wFMCommunicate OK [14:39:12]wFMCommunicate request_size=4 [14:39:12]MH_SAM_APDU [14:39:12]CAPDU: 80 0D 03 02 [14:39:12]Write to MH i2c: E2 08 00 11 0F 80 0D 03 02 00 00 00 00 9B [14:39:12]Write i2c OK [14:39:12]MH_I2C_Read... [14:39:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:12]Read from MH i2c: E2 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 0B 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 0B 00 11 0F 00 61 A4 E0 A7 5C 6C 3E B4 90 00 E2 [14:39:12]RAPDU: 61 A4 E0 A7 5C 6C 3E B4 90 00 [14:39:12]wFMCommunicate OK [14:39:12]SAM_PROTO_SignData done [14:39:12]FM_MakeSignedData done [14:39:12]CreateOFDProtocolMessage [14:39:12]wFMCommunicate request_size=4 [14:39:12]MH_SAM_APDU [14:39:12]CAPDU: 80 11 00 00 [14:39:12]Write to MH i2c: E2 08 00 12 0F 80 11 00 00 00 00 00 00 9B [14:39:12]Write i2c OK [14:39:12]MH_I2C_Read... [14:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:12]Read from MH i2c: E2 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 17 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 17 00 12 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E9 [14:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:39:12]wFMCommunicate OK [14:39:12]CreateOFDProtocolMessage done [14:39:12]OFDSenderStorePacket 115679 [14:39:12]StoreOFDPacket docnum=115679 [14:39:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8E 01 00 00 B5 32 86 01 DE CD 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 0E 00 00 00 00 07 04 06 00 F0 87 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 8F 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DF C3 01 00 35 04 06 00 10 41 A0 03 DB 6B 61 A4 E0 A7 5C 6C 3E B4 [14:39:12]CheckFolder [14:39:12]dirname=/storage/ofd_packets [14:39:12]CheckFolder done [14:39:12]ProducePacketName [14:39:12]name=ofd_packets/00115679 [14:39:12]NVStorageSaveData ofd_packets/00115679 [14:39:12]File name is /storage/ofd_packets/00115679 [14:39:12]Write 428 bytes [14:39:12]NVStorageSaveData done [14:39:12]OFDSenderStorePacket done [14:39:12]KKMCreateOFDPacket done [14:39:12]NVStorageSaveData kkm_last_timestamp [14:39:12]File name is /storage/kkm_last_timestamp [14:39:12]Write 4 bytes [14:39:12]NVStorageSaveData done [14:39:12]ExternCall_PrintAddStr [14:39:12]wPrintStart [14:39:12]Write to MH i2c: 01 00 00 13 0F 22 [14:39:12]Write i2c OK [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: 01 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: 01 07 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: 01 07 00 13 0F 00 00 00 00 00 FF 0F 37 [14:39:12]RasterBufferAndPrint [14:39:12]line Счет N : (3)344032 [14:39:12]line ИНН: 02508201610067 [14:39:12]line Контрольно-Кассовый Чек [14:39:12]line ПРОДАЖА [14:39:12]line Товар: 46230607 [14:39:12]line Сигареты Richmond Bronze Edition [14:39:12]line 2.000 * 154.00 [14:39:12]line = 308.00 [14:39:12]line НДС 12% НСП 1% [14:39:13]line > о реализуемом товаре [14:39:13]line Товар: 4700000160211 [14:39:13]line Вода Легенда 0,5л [14:39:13]line 1.000 * 40.00 [14:39:13]line = 40.00 [14:39:13]line НДС 12% НСП 1% [14:39:13]line > о реализуемом товаре [14:39:13]line ИТОГО: 348.00 [14:39:13]line НСП 1% : 3.08 [14:39:13]line НДС 12% : 36.96 [14:39:13]line Наличными: 348.00 [14:39:13]line Безнал.: 0.00 [14:39:13]line Место: АЗС № 90 "Партнер Нефть" [14:39:13]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:39:13]line СНО: Общий режим [14:39:13]line Чек 162 23.09.2024 14:39 [14:39:13]line Смена: 472 ФФД: 1.0 [14:39:13]line ЗНМ: 0300000120 [14:39:13]line РНМ: 0000000000091831 [14:39:13]line Версия ККМ: 001 [14:39:13]line ФМ: 0000000000871830 [14:39:13]line ФД: 115679 [14:39:13]line ФПД: 17874043525995 [14:39:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143911&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115679&fm=17874043525995&tin=02508201610067®Number=0000000000091831&sum=34800 [14:39:13]OFD Sender: Processing packet 115679 [packets to send 482, broken 481] [14:39:13]ProducePacketName [14:39:13]name=ofd_packets/00115679 [14:39:13]OFD Sender: To server: pG, [14:39:13]CommunicateWithHost lk.salyk.kg:30040 [14:39:13]ConnectInit lk.salyk.kg [14:39:13]line 0 [14:39:13]written 0, free lines is 4095 [14:39:13]Connected sock=9 [14:39:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8E 01 00 00 B5 32 86 01 DE CD 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 0E 00 00 00 00 07 04 06 00 F0 87 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 8F 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DF C3 01 00 35 04 06 00 10 41 A0 03 DB 6B 61 A4 E0 A7 5C 6C 3E B4 [14:39:13]Write to MH i2c: 01 00 00 41 0F 50 [14:39:13]Write i2c OK [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: 01 [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: 01 07 00 [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: 01 07 00 41 0F 00 00 00 00 00 F7 0B 59 [14:39:13]RasterBufferAndPrint [14:39:13]line [14:39:13]line [14:39:13]line [14:39:13]line [14:39:13]line [14:39:13]written 0, free lines is 3068 [14:39:13]MH_Cut [14:39:13]Write to MH i2c: D1 01 00 48 0F 01 29 [14:39:13]Write i2c OK [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: D1 [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: D1 01 00 [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: D1 01 00 48 0F 00 28 [14:39:13]Write to MH i2c: 01 00 00 49 0F 58 [14:39:13]Write i2c OK [14:39:13]MH_I2C_Read... [14:39:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 95 1E 47 00 11 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 38 33 30 10 04 04 00 DF C3 01 00 F4 03 04 00 D2 22 F1 66 B6 04 01 00 00 8F A9 C5 D0 FC D9 3F B5 [14:39:13]CommunicateWithHost err = 0 [14:39:13]CheckOFDResponse [14:39:13]1017 (14) - 77093643461234 [14:39:13]1041 (16) - 0000000000871830 [14:39:13]1040 (4) - 115679 [14:39:13]1012 (4) - 23.09.2024 08:12 [14:39:13]1206 (1) - 0 [14:39:13]OFD Sender: Remove packet 115679 [14:39:13]ProducePacketName [14:39:13]name=ofd_packets/00115679 [14:39:13]NVStorageDeleteData [14:39:14]OFD Sender: No OFD packet to send [14:39:15]*** Cut start [14:39:15]*** Partial cut [14:39:15]*** CUTSNS_PIN = 1 [14:39:15]*** CUTSNS_PIN = 0 [14:39:15]*** Brake cut motor [14:39:15]Read from MH i2c: 01 [14:39:15]MH_I2C_Read... [14:39:15]*** Stop cut motor [14:39:15]*** Cut end [14:39:15]Read from MH i2c: 01 07 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: 01 07 00 49 0F 00 00 00 00 00 FF 0F 6D [14:39:15]process_action close_receipt done [14:39:15]requested_data is exist [14:39:15]produce_requested_data [14:39:15]requested_item fm.sn is exist - process it [14:39:15]wFMCommunicate request_size=4 [14:39:15]MH_SAM_APDU [14:39:15]CAPDU: 80 11 00 00 [14:39:15]Write to MH i2c: E2 08 00 4A 0F 80 11 00 00 00 00 00 00 D3 [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:15]Read from MH i2c: E2 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 17 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 17 00 4A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 21 [14:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:39:15]wFMCommunicate OK [14:39:15]requested_item fd.num is exist - process it [14:39:15]SAM_PROTO_GetFieldsCounters [14:39:15]wFMCommunicate request_size=4 [14:39:15]MH_SAM_APDU [14:39:15]CAPDU: 80 13 00 00 [14:39:15]Write to MH i2c: E2 08 00 4B 0F 80 13 00 00 00 00 00 00 D6 [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:15]Read from MH i2c: E2 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 62 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 62 00 4B 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DF C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [14:39:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DF C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:15]wFMCommunicate OK [14:39:15]SAM_PROTO_GetFieldsCounters done [14:39:15]requested_item shift.num is exist - process it [14:39:15]requested_item shift.opened is exist - process it [14:39:15]req_shift_opened [14:39:15]FM_GetShiftState [14:39:15]SAM_PROTO_GetShiftState [14:39:15]wFMCommunicate request_size=4 [14:39:15]MH_SAM_APDU [14:39:15]CAPDU: 80 13 01 00 [14:39:15]Write to MH i2c: E2 08 00 4C 0F 80 13 01 00 00 00 00 00 D8 [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:15]Read from MH i2c: E2 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 0E 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 0E 00 4C 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 19 [14:39:15]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:39:15]wFMCommunicate OK [14:39:15]SAM_PROTO_GetShiftState done [14:39:15]FM_GetShiftState done [14:39:15]req_shift_opened done [14:39:15]requested_item shift.open_date is exist - process it [14:39:15]req_shift_open_date [14:39:15]req_shift_open_date done [14:39:15]produce_requested_data done [14:39:15]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115679,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:39:15]process_action_free close_receipt [14:39:15]json_value_free [14:39:15]json_value_free done [14:39:15]process_json_proto returns [14:39:15]Send response to host [14:39:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115679,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:39:15]free response buf [14:39:15]execute_script done [14:39:15]execute_script returns [14:39:15]free content buf [14:39:15]Sock 10.Close socket [14:39:15]Sock 10.Thread stoped [14:39:16]accept exits with 7 [14:39:16]New connection [14:39:16]New thread 3067022692 created [14:39:16]Thread 3066879332 joined [14:39:16]Waiting for new connection... [14:39:16] Sock 7.Parse request [14:39:16]Sock 7.Check first char [14:39:16]Sock 7.First char is OK [14:39:16]request: POST /json_proto HTTP/1.0 [14:39:16]Method: POST [14:39:16]URL: /json_proto [14:39:16]Method is POST - this is cgi request [14:39:16]url: /json_proto [14:39:16]query_string will be loaded in cgi processing [14:39:16]execute_cgi json_proto POST (null) [14:39:16]execute_cgi path=json_proto method=POST [14:39:16]POST find Content-Length [14:39:16]Host: 172.17.41.136:8080 [14:39:16]Content-Length: 684 [14:39:16]Content-Type: application/json [14:39:16] [14:39:16]POST finish read [14:39:16]Found Content-Length = 684 [14:39:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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" ] } } [14:39:16]execute_script... [14:39: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)24617734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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" ] } } [14:39:16]POST & json_proto [14:39:16]process_json_proto [14:39:16]json parsed OK: [14:39:16]protocol is kg_v1.0 [14:39:16]action value=close_receipt [14:39:16]process_action close_receipt [14:39:16]cmd_close_receipt [14:39:16]MH_GetDate [14:39:16]Write to MH i2c: F0 00 00 4D 0F 4B [14:39:16]Write i2c OK [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: F0 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: F0 09 00 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: F0 09 00 4D 0F 00 95 7D F1 66 1B D0 5A 64 66 [14:39:16]GetLastDocTimeStamp 1727102351 [14:39:16]current date 1727102357 [14:39:16]FM_GetShiftState [14:39:16]SAM_PROTO_GetShiftState [14:39:16]wFMCommunicate request_size=4 [14:39:16]MH_SAM_APDU [14:39:16]CAPDU: 80 13 01 00 [14:39:16]Write to MH i2c: E2 08 00 4E 0F 80 13 01 00 00 00 00 00 DA [14:39:16]Write i2c OK [14:39:16]MH_I2C_Read... [14:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:16]Read from MH i2c: E2 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 0E 00 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 0E 00 4E 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1B [14:39:16]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:39:16]wFMCommunicate OK [14:39:16]SAM_PROTO_GetShiftState done [14:39:16]FM_GetShiftState done [14:39:16]opened in 1727052070 [14:39:16]opened+sec_in_day 1727138470 [14:39:16]quantity*price = 300064 [14:39:16]sum+1 = 300066 [14:39:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 163 23.09.2024 14:39 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115680 ФПД: 126381568678253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143917&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115680&fm=126381568678253&tin=02508201610067®Number=0000000000091831&sum=300000 [14:39:17]StoreToDocumentArchive [14:39:17]shift 472 fd 115680 [14:39:17]save to /storage/0472/doc_00115680 [14:39:17]save last doc name /storage/0472/doc_00115680 to /storage/kkm_last_doc_name [14:39:17]save OK [14:39:17]Clear old archive folders... [14:39:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:17]tlvbuf is 018498F0 [14:39:17]SAM_PROTO_ClearQueue [14:39:17]wFMCommunicate request_size=4 [14:39:17]MH_SAM_APDU [14:39:17]CAPDU: 80 09 00 00 [14:39:17]Write to MH i2c: E2 08 00 5B 0F 80 09 00 00 00 00 00 00 DC [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:17]Read from MH i2c: E2 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: E2 03 00 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: E2 03 00 5B 0F 00 90 00 DE [14:39:17]RAPDU: 90 00 [14:39:17]wFMCommunicate OK [14:39:17]SAM_PROTO_ClearQueue done [14:39:17]KKMCreateOFDPacket [14:39:17]OFDProtocolAddRootSTLVToBuf [14:39:17]FM_MakeSignedData [14:39:17]FM_MakeSignedData [14:39:17]SAM_PROTO_SignData [14:39:17]wFMCommunicate request_size=4 [14:39:17]MH_SAM_APDU [14:39:17]CAPDU: 80 0D 01 02 [14:39:17]Write to MH i2c: E2 08 00 5C 0F 80 0D 01 02 00 00 00 00 E4 [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:18]Read from MH i2c: E2 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: E2 03 00 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: E2 03 00 5C 0F 00 90 00 DF [14:39:18]RAPDU: 90 00 [14:39:18]wFMCommunicate OK [14:39:18]wFMCommunicate request_size=255 [14:39:18]MH_SAM_APDU [14:39:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 A3 00 00 00 F4 03 04 00 95 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E0 C3 01 00 35 04 06 00 72 [14:39:18]Write to MH i2c: E2 02 01 5D 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 35 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 A3 00 00 00 F4 03 04 00 95 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E0 C3 01 00 35 04 06 00 72 00 00 97 [14:39:18]Write i2c OK [14:39:18]MH_I2C_Read... [14:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:18]Read from MH i2c: E2 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: E2 03 00 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: E2 03 00 5D 0F 00 90 00 E0 [14:39:18]RAPDU: 90 00 [14:39:18]wFMCommunicate OK [14:39:18]wFMCommunicate request_size=10 [14:39:18]MH_SAM_APDU [14:39:18]CAPDU: 80 0D 02 02 05 F1 80 81 D9 6D [14:39:18]Write to MH i2c: E2 0D 00 5E 0F 80 0D 02 02 05 00 F1 80 81 D9 6D 00 00 29 [14:39:18]Write i2c OK [14:39:18]MH_I2C_Read... [14:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:18]Read from MH i2c: E2 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: E2 03 00 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: E2 03 00 5E 0F 00 90 00 E1 [14:39:18]RAPDU: 90 00 [14:39:18]wFMCommunicate OK [14:39:18]wFMCommunicate request_size=4 [14:39:18]MH_SAM_APDU [14:39:18]CAPDU: 80 0D 03 02 [14:39:18]Write to MH i2c: E2 08 00 5F 0F 80 0D 03 02 00 00 00 00 E9 [14:39:18]Write i2c OK [14:39:18]MH_I2C_Read... [14:39:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:18]Read from MH i2c: E2 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: E2 0B 00 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: E2 0B 00 5F 0F 00 25 B0 F5 3A EC 27 C1 90 90 00 52 [14:39:18]RAPDU: 25 B0 F5 3A EC 27 C1 90 90 00 [14:39:18]wFMCommunicate OK [14:39:18]SAM_PROTO_SignData done [14:39:18]FM_MakeSignedData done [14:39:18]CreateOFDProtocolMessage [14:39:18]wFMCommunicate request_size=4 [14:39:18]MH_SAM_APDU [14:39:18]CAPDU: 80 11 00 00 [14:39:18]Write to MH i2c: E2 08 00 60 0F 80 11 00 00 00 00 00 00 E9 [14:39:18]Write i2c OK [14:39:18]MH_I2C_Read... [14:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:18]Read from MH i2c: E2 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: E2 17 00 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: E2 17 00 60 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 37 [14:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:39:18]wFMCommunicate OK [14:39:18]CreateOFDProtocolMessage done [14:39:18]OFDSenderStorePacket 115680 [14:39:18]StoreOFDPacket docnum=115680 [14:39:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 8E E2 07 01 02 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 A3 00 00 00 F4 03 04 00 95 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E0 C3 01 00 35 04 06 00 72 F1 80 81 D9 6D 25 B0 F5 3A EC 27 C1 90 [14:39:18]CheckFolder [14:39:18]dirname=/storage/ofd_packets [14:39:18]CheckFolder done [14:39:18]ProducePacketName [14:39:18]name=ofd_packets/00115680 [14:39:18]NVStorageSaveData ofd_packets/00115680 [14:39:18]File name is /storage/ofd_packets/00115680 [14:39:18]Write 301 bytes [14:39:18]NVStorageSaveData done [14:39:18]OFDSenderStorePacket done [14:39:18]KKMCreateOFDPacket done [14:39:18]NVStorageSaveData kkm_last_timestamp [14:39:18]File name is /storage/kkm_last_timestamp [14:39:18]Write 4 bytes [14:39:18]NVStorageSaveData done [14:39:18]ExternCall_PrintAddStr [14:39:18]wPrintStart [14:39:18]Write to MH i2c: 01 00 00 61 0F 70 [14:39:18]Write i2c OK [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: 01 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: 01 07 00 [14:39:18]MH_I2C_Read... [14:39:18]Read from MH i2c: 01 07 00 61 0F 00 00 00 00 00 FF 0F 85 [14:39:18]RasterBufferAndPrint [14:39:18]line Счет N : (1)24617734 [14:39:18]line ИНН: 02508201610067 [14:39:18]line Контрольно-Кассовый Чек [14:39:18]line ПРОДАЖА [14:39:18]line ТРК (МРК, ГНК) : 32 [14:39:18]line Товар: 2710124500 [14:39:18]line Аи-95-К-5 [14:39:18]line 40.440 * 74.20 [14:39:18]line = 3000.65 [14:39:18]line НДС 12% НСП 1% [14:39:18]line > о реализуемом товаре [14:39:18]line ОКРУГЛЕНИЕ: -0.65 [14:39:18]line ИТОГО: 3000.00 [14:39:18]line Внесено: 3000.00 [14:39:18]line СДАЧА: 0.00 [14:39:18]line НСП 1% : 26.55 [14:39:18]line НДС 12% : 318.65 [14:39:18]line Наличными: 3000.00 [14:39:18]line Безнал.: 0.00 [14:39:18]line Место: АЗС № 90 "Партнер Нефть" [14:39:18]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:39:18]line СНО: Общий режим [14:39:18]line Чек 163 23.09.2024 14:39 [14:39:18]line Смена: 472 ФФД: 1.0 [14:39:18]line ЗНМ: 0300000120 [14:39:19]line РНМ: 0000000000091831 [14:39:19]line Версия ККМ: 001 [14:39:19]line ФМ: 0000000000871830 [14:39:19]line ФД: 115680 [14:39:19]line ФПД: 126381568678253 [14:39:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143917&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115680&fm=126381568678253&tin=02508201610067®Number=0000000000091831&sum=300000 [14:39:19]OFD Sender: Processing packet 115680 [packets to send 482, broken 481] [14:39:19]ProducePacketName [14:39:19]name=ofd_packets/00115680 [14:39:19]OFD Sender: To server: pG, [14:39:19]CommunicateWithHost lk.salyk.kg:30040 [14:39:19]ConnectInit lk.salyk.kg [14:39:19]written 0, free lines is 4095 [14:39:19]Connected sock=10 [14:39: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 38 33 30 0F 01 00 00 8E E2 07 01 02 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 A3 00 00 00 F4 03 04 00 95 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E0 C3 01 00 35 04 06 00 72 F1 80 81 D9 6D 25 B0 F5 3A EC 27 C1 90 [14:39:19]Write to MH i2c: 01 00 00 8B 0F 9A [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: 01 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: 01 07 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: 01 07 00 8B 0F 00 00 00 00 00 6B 0C 18 [14:39:19]RasterBufferAndPrint [14:39:19]line [14:39:19]line [14:39:19]line [14:39:19]line [14:39:19]line [14:39:19]written 0, free lines is 3189 [14:39:19]MH_Cut [14:39:19]Write to MH i2c: D1 01 00 92 0F 01 73 [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: D1 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: D1 01 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: D1 01 00 92 0F 00 72 [14:39:19]Write to MH i2c: 01 00 00 93 0F A2 [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1B B2 47 00 1D 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 38 33 30 10 04 04 00 E0 C3 01 00 F4 03 04 00 D8 22 F1 66 B6 04 01 00 00 08 5B 08 05 D4 A6 AB D7 [14:39:19]CommunicateWithHost err = 0 [14:39:19]CheckOFDResponse [14:39:19]1017 (14) - 77093643461234 [14:39:19]1041 (16) - 0000000000871830 [14:39:19]1040 (4) - 115680 [14:39:19]1012 (4) - 23.09.2024 08:12 [14:39:19]1206 (1) - 0 [14:39:19]OFD Sender: Remove packet 115680 [14:39:19]ProducePacketName [14:39:19]name=ofd_packets/00115680 [14:39:19]NVStorageDeleteData [14:39:20]OFD Sender: No OFD packet to send [14:39:20]*** Cut start [14:39:20]*** Partial cut [14:39:20]*** CUTSNS_PIN = 1 [14:39:20]*** CUTSNS_PIN = 0 [14:39:21]*** Brake cut motor [14:39:21]Read from MH i2c: 01 *** Stop cut motor [14:39:21] [14:39:21]*** Cut end [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: 01 07 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: 01 07 00 93 0F 00 00 00 00 00 FF 0F B7 [14:39:21]process_action close_receipt done [14:39:21]requested_data is exist [14:39:21]produce_requested_data [14:39:21]requested_item fm.sn is exist - process it [14:39:21]wFMCommunicate request_size=4 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 11 00 00 [14:39:21]Write to MH i2c: E2 08 00 94 0F 80 11 00 00 00 00 00 00 1D [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 17 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 17 00 94 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6B [14:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:39:21]wFMCommunicate OK [14:39:21]requested_item fd.num is exist - process it [14:39:21]SAM_PROTO_GetFieldsCounters [14:39:21]wFMCommunicate request_size=4 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 13 00 00 [14:39:21]Write to MH i2c: E2 08 00 95 0F 80 13 00 00 00 00 00 00 20 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 62 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 62 00 95 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E0 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [14:39:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E0 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:21]wFMCommunicate OK [14:39:21]SAM_PROTO_GetFieldsCounters done [14:39:21]requested_item shift.num is exist - process it [14:39:21]requested_item shift.opened is exist - process it [14:39:21]req_shift_opened [14:39:21]FM_GetShiftState [14:39:21]SAM_PROTO_GetShiftState [14:39:21]wFMCommunicate request_size=4 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 13 01 00 [14:39:21]Write to MH i2c: E2 08 00 96 0F 80 13 01 00 00 00 00 00 22 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 0E 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 0E 00 96 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 63 [14:39:21]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:39:21]wFMCommunicate OK [14:39:21]SAM_PROTO_GetShiftState done [14:39:21]FM_GetShiftState done [14:39:21]req_shift_opened done [14:39:21]requested_item shift.open_date is exist - process it [14:39:21]req_shift_open_date [14:39:21]req_shift_open_date done [14:39:21]produce_requested_data done [14:39:21]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115680,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:39:21]process_action_free close_receipt [14:39:21]json_value_free [14:39:21]json_value_free done [14:39:21]process_json_proto returns [14:39:21]Send response to host [14:39:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115680,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:39:21]free response buf [14:39:21]execute_script done [14:39:21]execute_script returns [14:39:21]free content buf [14:39:21]Sock 7.Close socket [14:39:21]Sock 7.Thread stoped [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [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:15]accept exits with 9 [14:40:15]New connection [14:40:15]New thread 3066879332 created [14:40:15]Thread 3067022692 joined [14:40:15]Waiting for new connection... [14:40:15] Sock 9.Parse request [14:40:15]Sock 9.Check first char [14:40:15]Sock 9.First char is OK [14:40:15]request: POST /json_proto HTTP/1.0 [14:40:15]Method: POST [14:40:15]URL: /json_proto [14:40:15]Method is POST - this is cgi request [14:40:15]url: /json_proto [14:40:15]query_string will be loaded in cgi processing [14:40:15]execute_cgi json_proto POST (null) [14:40:15]execute_cgi path=json_proto method=POST [14:40:15]POST find Content-Length [14:40:15]Host: 172.17.41.136:8080 [14:40:15]Content-Length: 741 [14:40:15]Content-Type: application/json [14:40:15] [14:40:15]POST finish read [14:40:15]Found Content-Length = 741 [14:40:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 115680, "base_FM": "0000000000871830", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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" ] } } [14:40:15]execute_script... [14:40:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 115680, "base_FM": "0000000000871830", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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" ] } } [14:40:15]POST & json_proto [14:40:15]process_json_proto [14:40:15]json parsed OK: [14:40:15]protocol is kg_v1.0 [14:40:15]action value=close_receipt [14:40:15]process_action close_receipt [14:40:15]cmd_close_receipt [14:40:15]MH_GetDate [14:40:15]Write to MH i2c: F0 00 00 97 0F 95 [14:40:15]Write i2c OK [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: F0 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: F0 09 00 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: F0 09 00 97 0F 00 CF 7D F1 66 1B D0 5A 64 EA [14:40:15]GetLastDocTimeStamp 1727102357 [14:40:15]current date 1727102415 [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 98 0F 80 13 01 00 00 00 00 00 24 [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 98 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 65 [14:40:15]RAPDU: 09 00 01 26 B9 F0 66 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]opened in 1727052070 [14:40:15]opened+sec_in_day 1727138470 [14:40:15]quantity*price = 300064 [14:40:15]sum+1 = 300066 [14:40:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 164 23.09.2024 14:40 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФД осн.: 115680 ФМ осн.: 0000000000871830 ФМ: 0000000000871830 ФД: 115681 ФПД: 225894331531124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T144015&type=2&operation_type=1&fn_number=0000000000871830&fd_number=115681&fm=225894331531124&tin=02508201610067®Number=0000000000091831&sum=300000 [14:40:16]StoreToDocumentArchive [14:40:16]shift 472 fd 115681 [14:40:16]save to /storage/0472/doc_00115681 [14:40:16]save last doc name /storage/0472/doc_00115681 to /storage/kkm_last_doc_name [14:40:16]save OK [14:40:16]Clear old archive folders... [14:40:16]ProcessDocumentItem done err = 0, tmpTLVsize=279 [14:40:16]tlvbuf is 01804900 [14:40:16]SAM_PROTO_ClearQueue [14:40:16]wFMCommunicate request_size=4 [14:40:16]MH_SAM_APDU [14:40:16]CAPDU: 80 09 00 00 [14:40:16]Write to MH i2c: E2 08 00 A7 0F 80 09 00 00 00 00 00 00 28 [14:40:16]Write i2c OK [14:40:16]MH_I2C_Read... [14:40:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:16]Read from MH i2c: E2 [14:40:16]MH_I2C_Read... [14:40:16]Read from MH i2c: E2 03 00 [14:40:16]MH_I2C_Read... [14:40:16]Read from MH i2c: E2 03 00 A7 0F 00 90 00 2A [14:40:16]RAPDU: 90 00 [14:40:16]wFMCommunicate OK [14:40:16]SAM_PROTO_ClearQueue done [14:40:16]KKMCreateOFDPacket [14:40:16]OFDProtocolAddRootSTLVToBuf [14:40:16]FM_MakeSignedData [14:40:16]FM_MakeSignedData [14:40:16]SAM_PROTO_SignData [14:40:16]wFMCommunicate request_size=4 [14:40:16]MH_SAM_APDU [14:40:16]CAPDU: 80 0D 01 02 [14:40:16]Write to MH i2c: E2 08 00 A8 0F 80 0D 01 02 00 00 00 00 30 [14:40:16]Write i2c OK [14:40:16]MH_I2C_Read... [14:40:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:16]Read from MH i2c: E2 [14:40:16]MH_I2C_Read... [14:40:16]Read from MH i2c: E2 03 00 [14:40:16]MH_I2C_Read... [14:40:16]Read from MH i2c: E2 03 00 A8 0F 00 90 00 2B [14:40:16]RAPDU: 90 00 [14:40:16]wFMCommunicate OK [14:40:16]wFMCommunicate request_size=255 [14:40:16]MH_SAM_APDU [14:40:16]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A4 00 00 00 F4 03 04 00 CF 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 27 04 04 00 E0 C3 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 11 04 10 00 30 [14:40:16]Write to MH i2c: E2 02 01 A9 0F 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A4 00 00 00 F4 03 04 00 CF 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 27 04 04 00 E0 C3 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 11 04 10 00 30 00 00 0E [14:40:16]Write i2c OK [14:40:16]MH_I2C_Read... [14:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:16]Read from MH i2c: E2 [14:40:16]MH_I2C_Read... [14:40:16]Read from MH i2c: E2 03 00 [14:40:16]MH_I2C_Read... [14:40:16]Read from MH i2c: E2 03 00 A9 0F 00 90 00 2C [14:40:16]RAPDU: 90 00 [14:40:16]wFMCommunicate OK [14:40:16]wFMCommunicate request_size=38 [14:40:16]MH_SAM_APDU [14:40:16]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E1 C3 01 00 35 04 06 00 CD 73 1F 63 3F 74 [14:40:16]Write to MH i2c: E2 29 00 AA 0F 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E1 C3 01 00 35 04 06 00 CD 73 1F 63 3F 74 00 00 D1 [14:40:16]Write i2c OK [14:40:16]MH_I2C_Read... [14:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:16]Read from MH i2c: E2 [14:40:16]MH_I2C_Read... [14:40:16]Read from MH i2c: E2 03 00 [14:40:16]MH_I2C_Read... [14:40:16]Read from MH i2c: E2 03 00 AA 0F 00 90 00 2D [14:40:16]RAPDU: 90 00 [14:40:16]wFMCommunicate OK [14:40:16]wFMCommunicate request_size=4 [14:40:16]MH_SAM_APDU [14:40:16]CAPDU: 80 0D 03 02 [14:40:16]Write to MH i2c: E2 08 00 AB 0F 80 0D 03 02 00 00 00 00 35 [14:40:16]Write i2c OK [14:40:16]MH_I2C_Read... [14:40:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:17]Read from MH i2c: E2 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: E2 0B 00 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: E2 0B 00 AB 0F 00 1C 98 03 BA 6B 9E A2 C7 90 00 19 [14:40:17]RAPDU: 1C 98 03 BA 6B 9E A2 C7 90 00 [14:40:17]wFMCommunicate OK [14:40:17]SAM_PROTO_SignData done [14:40:17]FM_MakeSignedData done [14:40:17]CreateOFDProtocolMessage [14:40:17]wFMCommunicate request_size=4 [14:40:17]MH_SAM_APDU [14:40:17]CAPDU: 80 11 00 00 [14:40:17]Write to MH i2c: E2 08 00 AC 0F 80 11 00 00 00 00 00 00 35 [14:40:17]Write i2c OK [14:40:17]MH_I2C_Read... [14:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:17]Read from MH i2c: E2 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: E2 17 00 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: E2 17 00 AC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 83 [14:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:40:17]wFMCommunicate OK [14:40:17]CreateOFDProtocolMessage done [14:40:17]OFDSenderStorePacket 115681 [14:40:17]StoreOFDPacket docnum=115681 [14:40:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2B 01 00 00 A2 D5 23 01 59 D7 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A4 00 00 00 F4 03 04 00 CF 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 27 04 04 00 E0 C3 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E1 C3 01 00 35 04 06 00 CD 73 1F 63 3F 74 1C 98 03 BA 6B 9E A2 C7 [14:40:17]CheckFolder [14:40:17]dirname=/storage/ofd_packets [14:40:17]CheckFolder done [14:40:17]ProducePacketName [14:40:17]name=ofd_packets/00115681 [14:40:17]NVStorageSaveData ofd_packets/00115681 [14:40:17]File name is /storage/ofd_packets/00115681 [14:40:17]Write 329 bytes [14:40:17]NVStorageSaveData done [14:40:17]OFDSenderStorePacket done [14:40:17]KKMCreateOFDPacket done [14:40:17]NVStorageSaveData kkm_last_timestamp [14:40:17]File name is /storage/kkm_last_timestamp [14:40:17]Write 4 bytes [14:40:17]NVStorageSaveData done [14:40:17]ExternCall_PrintAddStr [14:40:17]wPrintStart [14:40:17]Write to MH i2c: 01 00 00 AD 0F BC [14:40:17]OFD Sender: Processing packet 115681 [packets to send 482, broken 481] [14:40:17]ProducePacketName [14:40:17]name=ofd_packets/00115681 [14:40:17]OFD Sender: To server: pG, [14:40:17]CommunicateWithHost lk.salyk.kg:30040 [14:40:17]ConnectInit lk.salyk.kg [14:40:17]Write i2c OK [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: 01 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: 01 07 00 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: 01 07 00 AD 0F 00 00 00 00 00 FF 0F D1 [14:40:17]RasterBufferAndPrint [14:40:17]line Счет N : (1)24617734 [14:40:17]line ИНН: 02508201610067 [14:40:17]line Контрольно-Кассовый Чек [14:40:17]line ВОЗВРАТ ПРОДАЖИ [14:40:17]line ТРК (МРК, ГНК) : 32 [14:40:17]line Товар: 2710124500 [14:40:17]line Аи-95-К-5 [14:40:17]line 40.440 * 74.20 [14:40:17]line = 3000.65 [14:40:17]line НДС 12% НСП 1% [14:40:17]line > о реализуемом товаре [14:40:17]line ОКРУГЛЕНИЕ: -0.65 [14:40:17]line ИТОГО: 3000.00 [14:40:17]line НСП 1% : 26.55 [14:40:17]line НДС 12% : 318.65 [14:40:17]line Наличными: 3000.00 [14:40:17]line Безнал.: 0.00 [14:40:17]line Место: АЗС № 90 "Партнер Нефть" [14:40:17]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:40:17]line СНО: Общий режим [14:40:17]line Чек 164 23.09.2024 14:40 [14:40:17]line Смена: 472 ФФД: 1.0 [14:40:17]line ЗНМ: 0300000120 [14:40:17]line РНМ: 0000000000091831 [14:40:17]line Версия ККМ: 001 [14:40:17]line ФД осн.: 115680 [14:40:17]line ФМ осн.: 0000000000871830 [14:40:17]line ФМ: 0000000000871830 [14:40:17]line ФД: 115681 [14:40:17]line ФПД: 225894331531124 [14:40:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T144015&type=2&operation_type=1&fn_number=0000000000871830&fd_number=115681&fm=225894331531124&tin=02508201610067®Number=0000000000091831&sum=300000 [14:40:17]written 0, free lines is 4095 [14:40:17]Write to MH i2c: 01 00 00 D7 0F E6 [14:40:17]Write i2c OK [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: 01 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: 01 07 00 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: 01 07 00 D7 0F 00 00 00 00 00 68 0C 61 [14:40:17]RasterBufferAndPrint [14:40:17]line [14:40:17]line [14:40:17]line [14:40:17]line [14:40:17]line [14:40:17]written 0, free lines is 3180 [14:40:17]MH_Cut [14:40:17]Write to MH i2c: D1 01 00 DE 0F 01 BF [14:40:17]Write i2c OK [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: D1 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: D1 01 00 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: D1 01 00 DE 0F 00 BE [14:40:17]Write to MH i2c: 01 00 00 DF 0F EE [14:40:17]Write i2c OK [14:40:17]MH_I2C_Read... [14:40:19]*** Cut start [14:40:19]*** Partial cut [14:40:19]*** CUTSNS_PIN = 1 [14:40:19]*** CUTSNS_PIN = 0 [14:40:19]*** Brake cut motor [14:40:19]Read from MH i2c: 01 [14:40:19]MH_I2C_Read... [14:40:19]*** Stop cut motor [14:40:19]*** Cut end [14:40:19]Read from MH i2c: 01 07 00 [14:40:19]MH_I2C_Read... [14:40:19]Read from MH i2c: 01 07 00 DF 0F 00 00 00 00 00 FF 0F 03 [14:40:19]process_action close_receipt done [14:40:19]requested_data is exist [14:40:19]produce_requested_data [14:40:19]requested_item fm.sn is exist - process it [14:40:19]wFMCommunicate request_size=4 [14:40:19]MH_SAM_APDU [14:40:19]CAPDU: 80 11 00 00 [14:40:19]Write to MH i2c: E2 08 00 E0 0F 80 11 00 00 00 00 00 00 69 [14:40:19]Write i2c OK [14:40:19]MH_I2C_Read... [14:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:19]Read from MH i2c: E2 [14:40:19]MH_I2C_Read... [14:40:19]Read from MH i2c: E2 17 00 [14:40:19]MH_I2C_Read... [14:40:19]Read from MH i2c: E2 17 00 E0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B7 [14:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:40:19]wFMCommunicate OK [14:40:19]requested_item fd.num is exist - process it [14:40:19]SAM_PROTO_GetFieldsCounters [14:40:19]wFMCommunicate request_size=4 [14:40:19]MH_SAM_APDU [14:40:19]CAPDU: 80 13 00 00 [14:40:19]Write to MH i2c: E2 08 00 E1 0F 80 13 00 00 00 00 00 00 6C [14:40:19]Write i2c OK [14:40:19]MH_I2C_Read... [14:40:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:20]Read from MH i2c: E2 [14:40:20]MH_I2C_Read... [14:40:20]Read from MH i2c: E2 62 00 [14:40:20]MH_I2C_Read... [14:40:20]Read from MH i2c: E2 62 00 E1 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E1 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [14:40: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E1 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:20]wFMCommunicate OK [14:40:20]SAM_PROTO_GetFieldsCounters done [14:40:20]requested_item shift.num is exist - process it [14:40:20]requested_item shift.opened is exist - process it [14:40:20]req_shift_opened [14:40:20]FM_GetShiftState [14:40:20]SAM_PROTO_GetShiftState [14:40:20]wFMCommunicate request_size=4 [14:40:20]MH_SAM_APDU [14:40:20]CAPDU: 80 13 01 00 [14:40:20]Write to MH i2c: E2 08 00 E2 0F 80 13 01 00 00 00 00 00 6E [14:40:20]Write i2c OK [14:40:20]MH_I2C_Read... [14:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:20]Read from MH i2c: E2 [14:40:20]MH_I2C_Read... [14:40:20]Read from MH i2c: E2 0E 00 [14:40:20]MH_I2C_Read... [14:40:20]Read from MH i2c: E2 0E 00 E2 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 AF [14:40:20]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:40:20]wFMCommunicate OK [14:40:20]SAM_PROTO_GetShiftState done [14:40:20]FM_GetShiftState done [14:40:20]req_shift_opened done [14:40:20]requested_item shift.open_date is exist - process it [14:40:20]req_shift_open_date [14:40:20]req_shift_open_date done [14:40:20]produce_requested_data done [14:40:20]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115681,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:40:20]process_action_free close_receipt [14:40:20]json_value_free [14:40:20]json_value_free done [14:40:20]process_json_proto returns [14:40:20]Send response to host [14:40:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115681,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:40:20]free response buf [14:40:20]execute_script done [14:40:20]execute_script returns [14:40:20]free content buf [14:40:20]Sock 9.Close socket [14:40:20]Sock 9.Thread stoped [14:42:30]ConnectInit Can't connect to host [14:42:30]CommunicateWithHost connect error [14:42:30]CommunicateWithHost err = -1 [14:42:30]OFD Sender: Server communicate error [14:42:35]OFD Sender: Processing packet 115681 [packets to send 482, broken 481] [14:42:35]ProducePacketName [14:42:35]name=ofd_packets/00115681 [14:42:35]OFD Sender: To server: pG, [14:42:35]CommunicateWithHost lk.salyk.kg:30040 [14:42:35]ConnectInit lk.salyk.kg [14:42:36]Connected sock=9 [14: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 38 33 30 2B 01 00 00 A2 D5 23 01 59 D7 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A4 00 00 00 F4 03 04 00 CF 7D F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 27 04 04 00 E0 C3 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E1 C3 01 00 35 04 06 00 CD 73 1F 63 3F 74 1C 98 03 BA 6B 9E A2 C7 [14: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 38 33 30 4F 00 00 00 CA 0F 47 00 D5 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 38 33 30 10 04 04 00 E1 C3 01 00 F4 03 04 00 9D 23 F1 66 B6 04 01 00 00 D3 09 47 FC FC 28 09 45 [14:42:36]CommunicateWithHost err = 0 [14:42:36]CheckOFDResponse [14:42:36]1017 (14) - 77093643461234 [14:42:36]1041 (16) - 0000000000871830 [14:42:36]1040 (4) - 115681 [14:42:36]1012 (4) - 23.09.2024 08:15 [14:42:36]1206 (1) - 0 [14:42:36]OFD Sender: Remove packet 115681 [14:42:36]ProducePacketName [14:42:36]name=ofd_packets/00115681 [14:42:36]NVStorageDeleteData [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:49]accept exits with 7 [14:51:49]New connection [14:51:49]New thread 3067022692 created [14:51:49]Thread 3066879332 joined [14:51:49]Waiting for new connection... [14:51:49] Sock 7.Parse request [14:51:49]Sock 7.Check first char [14:51:49]Sock 7.First char is OK [14:51:49]request: POST /json_proto HTTP/1.0 [14:51:49]Method: POST [14:51:49]URL: /json_proto [14:51:49]Method is POST - this is cgi request [14:51:49]url: /json_proto [14:51:49]query_string will be loaded in cgi processing [14:51:49]execute_cgi json_proto POST (null) [14:51:49]execute_cgi path=json_proto method=POST [14:51:49]POST find Content-Length [14:51:49]Host: 172.17.41.136:8080 [14:51:49]Content-Length: 1155 [14:51:49]Content-Type: application/json [14:51:49] [14:51:49]POST finish read [14:51:49]Found Content-Length = 1155 [14:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344033", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 178.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:49]execute_script... [14:51:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344033", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 178.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:49]POST & json_proto [14:51:49]process_json_proto [14:51:49]json parsed OK: [14:51:49]protocol is kg_v1.0 [14:51:49]action value=close_receipt [14:51:49]process_action close_receipt [14:51:49]cmd_close_receipt [14:51:49]MH_GetDate [14:51:49]Write to MH i2c: F0 00 00 E3 0F E1 [14:51:49]Write i2c OK [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: F0 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: F0 09 00 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: F0 09 00 E3 0F 00 85 80 F1 66 1B D0 5A 64 EF [14:51:49]GetLastDocTimeStamp 1727102415 [14:51:49]current date 1727103109 [14:51:49]FM_GetShiftState [14:51:49]SAM_PROTO_GetShiftState [14:51:49]wFMCommunicate request_size=4 [14:51:49]MH_SAM_APDU [14:51:49]CAPDU: 80 13 01 00 [14:51:49]Write to MH i2c: E2 08 00 E4 0F 80 13 01 00 00 00 00 00 70 [14:51:49]Write i2c OK [14:51:49]MH_I2C_Read... [14:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:49]Read from MH i2c: E2 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: E2 0E 00 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: E2 0E 00 E4 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B1 [14:51:49]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:51:49]wFMCommunicate OK [14:51:49]SAM_PROTO_GetShiftState done [14:51:49]FM_GetShiftState done [14:51:49]opened in 1727052070 [14:51:49]opened+sec_in_day 1727138470 [14:51:49]quantity*price = 4000 [14:51:49]sum+1 = 4001 [14:51:49]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 4.000 * 7.00 = 28.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 178.00 НСП 1% : 1.57 НДС 12% : 18.90 Наличными: 178.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 165 23.09.2024 14:51 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115682 ФПД: 143879841128129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T145149&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115682&fm=143879841128129&tin=02508201610067®Number=0000000000091831&sum=17800 0 [14:51:50]StoreToDocumentArchive [14:51:50]shift 472 fd 115682 [14:51:50]save to /storage/0472/doc_00115682 [14:51:50]save last doc name /storage/0472/doc_00115682 to /storage/kkm_last_doc_name [14:51:50]save OK [14:51:50]Clear old archive folders... [14:51:50]ProcessDocumentItem done err = 0, tmpTLVsize=484 [14:51:50]tlvbuf is 018044C0 [14:51:50]SAM_PROTO_ClearQueue [14:51:50]wFMCommunicate request_size=4 [14:51:50]MH_SAM_APDU [14:51:50]CAPDU: 80 09 00 00 [14:51:50]Write to MH i2c: E2 08 00 F1 0F 80 09 00 00 00 00 00 00 72 [14:51:50]Write i2c OK [14:51:50]MH_I2C_Read... [14:51:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:50]Read from MH i2c: E2 [14:51:50]MH_I2C_Read... [14:51:50]Read from MH i2c: E2 03 00 [14:51:50]MH_I2C_Read... [14:51:50]Read from MH i2c: E2 03 00 F1 0F 00 90 00 74 [14:51:50]RAPDU: 90 00 [14:51:50]wFMCommunicate OK [14:51:50]SAM_PROTO_ClearQueue done [14:51:50]KKMCreateOFDPacket [14:51:50]OFDProtocolAddRootSTLVToBuf [14:51:50]FM_MakeSignedData [14:51:50]FM_MakeSignedData [14:51:50]SAM_PROTO_SignData [14:51:50]wFMCommunicate request_size=4 [14:51:50]MH_SAM_APDU [14:51:50]CAPDU: 80 0D 01 02 [14:51:50]Write to MH i2c: E2 08 00 F2 0F 80 0D 01 02 00 00 00 00 7A [14:51:50]Write i2c OK [14:51:50]MH_I2C_Read... [14:51:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:50]Read from MH i2c: E2 [14:51:50]MH_I2C_Read... [14:51:50]Read from MH i2c: E2 03 00 [14:51:50]MH_I2C_Read... [14:51:50]Read from MH i2c: E2 03 00 F2 0F 00 90 00 75 [14:51:50]RAPDU: 90 00 [14:51:50]wFMCommunicate OK [14:51:50]wFMCommunicate request_size=255 [14:51:50]MH_SAM_APDU [14:51:50]CAPDU: 80 0D 02 02 FA 03 00 E4 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 [14:51:50]Write to MH i2c: E2 02 01 F3 0F 80 0D 02 02 FA 00 03 00 E4 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 00 00 33 [14:51:50]Write i2c OK [14:51:50]MH_I2C_Read... [14:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:50]Read from MH i2c: E2 [14:51:50]MH_I2C_Read... [14:51:50]Read from MH i2c: E2 03 00 [14:51:50]MH_I2C_Read... [14:51:50]Read from MH i2c: E2 03 00 F3 0F 00 90 00 76 [14:51:50]RAPDU: 90 00 [14:51:50]wFMCommunicate OK [14:51:50]wFMCommunicate request_size=243 [14:51:50]MH_SAM_APDU [14:51:50]CAPDU: 80 0D 02 02 EE D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 85 80 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E2 C3 01 00 35 04 06 00 82 DB A2 D2 1E C1 [14:51:50]Write to MH i2c: E2 F6 00 F4 0F 80 0D 02 02 EE 00 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 85 80 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E2 C3 01 00 35 04 06 00 82 DB A2 D2 1E C1 00 00 7A [14:51:50]Write i2c OK [14:51:50]MH_I2C_Read... [14:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:51]Read from MH i2c: E2 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: E2 03 00 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: E2 03 00 F4 0F 00 90 00 77 [14:51:51]RAPDU: 90 00 [14:51:51]wFMCommunicate OK [14:51:51]wFMCommunicate request_size=4 [14:51:51]MH_SAM_APDU [14:51:51]CAPDU: 80 0D 03 02 [14:51:51]Write to MH i2c: E2 08 00 F5 0F 80 0D 03 02 00 00 00 00 7F [14:51:51]Write i2c OK [14:51:51]MH_I2C_Read... [14:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:51]Read from MH i2c: E2 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: E2 0B 00 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: E2 0B 00 F5 0F 00 96 29 08 EE AB 44 68 55 90 00 E1 [14:51:51]RAPDU: 96 29 08 EE AB 44 68 55 90 00 [14:51:51]wFMCommunicate OK [14:51:51]SAM_PROTO_SignData done [14:51:51]FM_MakeSignedData done [14:51:51]CreateOFDProtocolMessage [14:51:51]wFMCommunicate request_size=4 [14:51:51]MH_SAM_APDU [14:51:51]CAPDU: 80 11 00 00 [14:51:51]Write to MH i2c: E2 08 00 F6 0F 80 11 00 00 00 00 00 00 7F [14:51:51]Write i2c OK [14:51:51]MH_I2C_Read... [14:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:51]Read from MH i2c: E2 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: E2 17 00 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: E2 17 00 F6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CD [14:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:51:51]wFMCommunicate OK [14:51:51]CreateOFDProtocolMessage done [14:51:51]OFDSenderStorePacket 115682 [14:51:51]StoreOFDPacket docnum=115682 [14:51:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F8 01 00 00 C6 F8 F0 01 0B F4 5A 03 01 00 03 00 E4 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 85 80 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E2 C3 01 00 35 04 06 00 82 DB A2 D2 1E C1 96 29 08 EE AB 44 68 55 [14:51:51]CheckFolder [14:51:51]dirname=/storage/ofd_packets [14:51:51]CheckFolder done [14:51:51]ProducePacketName [14:51:51]name=ofd_packets/00115682 [14:51:51]NVStorageSaveData ofd_packets/00115682 [14:51:51]File name is /storage/ofd_packets/00115682 [14:51:51]Write 534 bytes [14:51:51]NVStorageSaveData done [14:51:51]OFDSenderStorePacket done [14:51:51]KKMCreateOFDPacket done [14:51:51]NVStorageSaveData kkm_last_timestamp [14:51:51]File name is /storage/kkm_last_timestamp [14:51:51]Write 4 bytes [14:51:51]NVStorageSaveData done [14:51:51]ExternCall_PrintAddStr [14:51:51]wPrintStart [14:51:51]Write to MH i2c: 01 00 00 F7 0F 06 [14:51:51]OFD Sender: Processing packet 115682 [packets to send 482, broken 481] [14:51:51]ProducePacketName [14:51:51]name=ofd_packets/00115682 [14:51:51]OFD Sender: To server: pG, [14:51:51]CommunicateWithHost lk.salyk.kg:30040 [14:51:51]ConnectInit lk.salyk.kg [14:51:51]Write i2c OK [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: 01 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: 01 07 00 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: 01 07 00 F7 0F 00 00 00 00 00 FF 0F 1B [14:51:51]RasterBufferAndPrint [14:51:51]line Счет N : (3)344033 [14:51:51]line ИНН: 02508201610067 [14:51:51]line Контрольно-Кассовый Чек [14:51:51]line ПРОДАЖА [14:51:51]line Товар: 4700000160211 [14:51:51]line Вода Легенда 0,5л [14:51:51]line 1.000 * 40.00 [14:51:51]line = 40.00 [14:51:51]line НДС 12% НСП 1% [14:51:51]line > о реализуемом товаре [14:51:51]line Товар: 4870001570071 [14:51:51]line Напиток Pepsi 1л [14:51:51]line 1.000 * 110.00 [14:51:51]line = 110.00 [14:51:51]line НДС 12% НСП 1% [14:51:51]line > о реализуемом товаре [14:51:51]line Товар: 2000053020015 [14:51:51]line Бумажные стаканы 250мл 1шт [14:51:51]line 4.000 * 7.00 [14:51:51]line = 28.00 [14:51:51]line НДС 12% НСП 1% [14:51:51]line > о реализуемом товаре [14:51:51]line ИТОГО: 178.00 [14:51:51]line НСП 1% : 1.57 [14:51:51]line НДС 12% : 18.90 [14:51:51]line Наличными: 178.00 [14:51:51]line Безнал.: 0.00 [14:51:51]line Место: АЗС № 90 "Партнер Нефть" [14:51:51]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:51:51]line СНО: Общий режим [14:51:51]line Чек 165 23.09.2024 14:51 [14:51:51]line Смена: 472 ФФД: 1.0 [14:51:51]line ЗНМ: 0300000120 [14:51:51]line РНМ: 0000000000091831 [14:51:51]line Версия ККМ: 001 [14:51:51]line ФМ: 0000000000871830 [14:51:51]line ФД: 115682 [14:51:51]line ФПД: 143879841128129 [14:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T145149&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115682&fm=143879841128129&tin=02508201610067®Number=0000000000091831&sum=17800 [14:51:51]line 0 [14:51:51]written 0, free lines is 4095 [14:51:51]Connected sock=10 [14:51: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 38 33 30 F8 01 00 00 C6 F8 F0 01 0B F4 5A 03 01 00 03 00 E4 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 85 80 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E2 C3 01 00 35 04 06 00 82 DB A2 D2 1E C1 96 29 08 EE AB 44 68 55 [14:51:51]Write to MH i2c: 01 00 00 2B 10 3B [14:51:51]Write i2c OK [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: 01 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: 01 07 00 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: 01 07 00 2B 10 00 00 00 00 00 6E 0B BB [14:51:51]RasterBufferAndPrint [14:51:51]line [14:51:51]line [14:51:51]line [14:51:51]line [14:51:51]line [14:51:51]written 0, free lines is 2929 [14:51:51]MH_Cut [14:51:51]Write to MH i2c: D1 01 00 32 10 01 14 [14:51:51]Write i2c OK [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: D1 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: D1 01 00 [14:51:51]MH_I2C_Read... [14:51:51]Read from MH i2c: D1 01 00 32 10 00 13 [14:51:51]Write to MH i2c: 01 00 00 33 10 43 [14:51:51]Write i2c OK [14:51:51]MH_I2C_Read... [14:51:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E8 3A 47 00 E8 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E2 C3 01 00 F4 03 04 00 C8 25 F1 66 B6 04 01 00 00 85 5E F9 7B 8B 06 FB F0 [14:51:51]CommunicateWithHost err = 0 [14:51:51]CheckOFDResponse [14:51:51]1017 (14) - 77093643461234 [14:51:51]1041 (16) - 0000000000871830 [14:51:51]1040 (4) - 115682 [14:51:51]1012 (4) - 23.09.2024 08:24 [14:51:51]1206 (1) - 0 [14:51:51]OFD Sender: Remove packet 115682 [14:51:51]ProducePacketName [14:51:51]name=ofd_packets/00115682 [14:51:51]NVStorageDeleteData [14:51:52]OFD Sender: No OFD packet to send [14:51:53]*** Cut start [14:51:53]*** Partial cut [14:51:53]*** CUTSNS_PIN = 1 [14:51:53]*** CUTSNS_PIN = 0 [14:51:53]*** Brake cut motor [14:51:54]Read from MH i2c: 01 [14:51:54]MH_I2C_Read... [14:51:54]*** Stop cut motor [14:51:54]*** Cut end [14:51:54]Read from MH i2c: 01 07 00 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: 01 07 00 33 10 00 00 00 00 00 FF 0F 58 [14:51:54]process_action close_receipt done [14:51:54]requested_data is exist [14:51:54]produce_requested_data [14:51:54]requested_item fm.sn is exist - process it [14:51:54]wFMCommunicate request_size=4 [14:51:54]MH_SAM_APDU [14:51:54]CAPDU: 80 11 00 00 [14:51:54]Write to MH i2c: E2 08 00 34 10 80 11 00 00 00 00 00 00 BE [14:51:54]Write i2c OK [14:51:54]MH_I2C_Read... [14:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:54]Read from MH i2c: E2 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 17 00 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 17 00 34 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0C [14:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:51:54]wFMCommunicate OK [14:51:54]requested_item fd.num is exist - process it [14:51:54]SAM_PROTO_GetFieldsCounters [14:51:54]wFMCommunicate request_size=4 [14:51:54]MH_SAM_APDU [14:51:54]CAPDU: 80 13 00 00 [14:51:54]Write to MH i2c: E2 08 00 35 10 80 13 00 00 00 00 00 00 C1 [14:51:54]Write i2c OK [14:51:54]MH_I2C_Read... [14:51:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:54]Read from MH i2c: E2 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 62 00 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 62 00 35 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E2 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [14:51: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E2 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:54]wFMCommunicate OK [14:51:54]SAM_PROTO_GetFieldsCounters done [14:51:54]requested_item shift.num is exist - process it [14:51:54]requested_item shift.opened is exist - process it [14:51:54]req_shift_opened [14:51:54]FM_GetShiftState [14:51:54]SAM_PROTO_GetShiftState [14:51:54]wFMCommunicate request_size=4 [14:51:54]MH_SAM_APDU [14:51:54]CAPDU: 80 13 01 00 [14:51:54]Write to MH i2c: E2 08 00 36 10 80 13 01 00 00 00 00 00 C3 [14:51:54]Write i2c OK [14:51:54]MH_I2C_Read... [14:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:54]Read from MH i2c: E2 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 0E 00 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 0E 00 36 10 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 04 [14:51:54]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:51:54]wFMCommunicate OK [14:51:54]SAM_PROTO_GetShiftState done [14:51:54]FM_GetShiftState done [14:51:54]req_shift_opened done [14:51:54]requested_item shift.open_date is exist - process it [14:51:54]req_shift_open_date [14:51:54]req_shift_open_date done [14:51:54]produce_requested_data done [14:51:54]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115682,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:51:54]process_action_free close_receipt [14:51:54]json_value_free [14:51:54]json_value_free done [14:51:54]process_json_proto returns [14:51:54]Send response to host [14:51:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115682,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:51:54]free response buf [14:51:54]execute_script done [14:51:54]execute_script returns [14:51:54]free content buf [14:51:54]Sock 7.Close socket [14:51:54]Sock 7.Thread stoped [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:01]accept exits with 9 [14:55:01]New connection [14:55:01]New thread 3066879332 created [14:55:01]Thread 3067022692 joined [14:55:01]Waiting for new connection... [14:55:01] Sock 9.Parse request [14:55:01]Sock 9.Check first char [14:55:01]Sock 9.First char is OK [14:55:01]request: POST /json_proto HTTP/1.0 [14:55:01]Method: POST [14:55:01]URL: /json_proto [14:55:01]Method is POST - this is cgi request [14:55:01]url: /json_proto [14:55:01]query_string will be loaded in cgi processing [14:55:01]execute_cgi json_proto POST (null) [14:55:01]execute_cgi path=json_proto method=POST [14:55:01]POST find Content-Length [14:55:01]Host: 172.17.41.136:8080 [14:55:01]Content-Length: 815 [14:55:01]Content-Type: application/json [14:55:01] [14:55:01]POST finish read [14:55:01]Found Content-Length = 815 [14:55:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344034", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:01]execute_script... [14:55:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344034", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:01]POST & json_proto [14:55:01]process_json_proto [14:55:01]json parsed OK: [14:55:01]protocol is kg_v1.0 [14:55:01]action value=close_receipt [14:55:01]process_action close_receipt [14:55:01]cmd_close_receipt [14:55:01]MH_GetDate [14:55:01]Write to MH i2c: F0 00 00 37 10 36 [14:55:01]Write i2c OK [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: F0 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: F0 09 00 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: F0 09 00 37 10 00 46 81 F1 66 1B D0 5A 64 06 [14:55:01]GetLastDocTimeStamp 1727103109 [14:55:01]current date 1727103302 [14:55:01]FM_GetShiftState [14:55:01]SAM_PROTO_GetShiftState [14:55:01]wFMCommunicate request_size=4 [14:55:01]MH_SAM_APDU [14:55:01]CAPDU: 80 13 01 00 [14:55:01]Write to MH i2c: E2 08 00 38 10 80 13 01 00 00 00 00 00 C5 [14:55:01]Write i2c OK [14:55:01]MH_I2C_Read... [14:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:01]Read from MH i2c: E2 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 0E 00 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 0E 00 38 10 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 06 [14:55:01]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:55:01]wFMCommunicate OK [14:55:01]SAM_PROTO_GetShiftState done [14:55:01]FM_GetShiftState done [14:55:01]opened in 1727052070 [14:55:01]opened+sec_in_day 1727138470 [14:55:01]quantity*price = 7700 [14:55:01]sum+1 = 7701 [14:55:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 0.00 Безнал.: 77.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 166 23.09.2024 14:55 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115683 ФПД: 40351767422358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T145502&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115683&fm=40351767422358&tin=02508201610067®Number=0000000000091831&sum=7700 0 [14:55:02]StoreToDocumentArchive [14:55:02]shift 472 fd 115683 [14:55:02]save to /storage/0472/doc_00115683 [14:55:02]save last doc name /storage/0472/doc_00115683 to /storage/kkm_last_doc_name [14:55:02]save OK [14:55:02]Clear old archive folders... [14:55:02]ProcessDocumentItem done err = 0, tmpTLVsize=293 [14:55:02]tlvbuf is 01829090 [14:55:02]SAM_PROTO_ClearQueue [14:55:02]wFMCommunicate request_size=4 [14:55:02]MH_SAM_APDU [14:55:02]CAPDU: 80 09 00 00 [14:55:02]Write to MH i2c: E2 08 00 45 10 80 09 00 00 00 00 00 00 C7 [14:55:02]Write i2c OK [14:55:02]MH_I2C_Read... [14:55:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:02]Read from MH i2c: E2 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: E2 03 00 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: E2 03 00 45 10 00 90 00 C9 [14:55:02]RAPDU: 90 00 [14:55:02]wFMCommunicate OK [14:55:02]SAM_PROTO_ClearQueue done [14:55:02]KKMCreateOFDPacket [14:55:02]OFDProtocolAddRootSTLVToBuf [14:55:02]FM_MakeSignedData [14:55:02]FM_MakeSignedData [14:55:02]SAM_PROTO_SignData [14:55:02]wFMCommunicate request_size=4 [14:55:02]MH_SAM_APDU [14:55:02]CAPDU: 80 0D 01 02 [14:55:02]Write to MH i2c: E2 08 00 46 10 80 0D 01 02 00 00 00 00 CF [14:55:02]Write i2c OK [14:55:02]MH_I2C_Read... [14:55:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:02]Read from MH i2c: E2 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: E2 03 00 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: E2 03 00 46 10 00 90 00 CA [14:55:02]RAPDU: 90 00 [14:55:02]wFMCommunicate OK [14:55:02]wFMCommunicate request_size=255 [14:55:02]MH_SAM_APDU [14:55:02]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 46 81 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [14:55:02]Write to MH i2c: E2 02 01 47 10 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 46 81 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 01 [14:55:02]Write i2c OK [14:55:02]MH_I2C_Read... [14:55:02]OFD Sender: No OFD packet to send [14:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:03]Read from MH i2c: E2 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 03 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 03 00 47 10 00 90 00 CB [14:55:03]RAPDU: 90 00 [14:55:03]wFMCommunicate OK [14:55:03]wFMCommunicate request_size=52 [14:55:03]MH_SAM_APDU [14:55:03]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E3 C3 01 00 35 04 06 00 24 B3 20 C3 65 96 [14:55:03]Write to MH i2c: E2 37 00 48 10 80 0D 02 02 2F 00 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E3 C3 01 00 35 04 06 00 24 B3 20 C3 65 96 00 00 E9 [14:55:03]Write i2c OK [14:55:03]MH_I2C_Read... [14:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:03]Read from MH i2c: E2 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 03 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 03 00 48 10 00 90 00 CC [14:55:03]RAPDU: 90 00 [14:55:03]wFMCommunicate OK [14:55:03]wFMCommunicate request_size=4 [14:55:03]MH_SAM_APDU [14:55:03]CAPDU: 80 0D 03 02 [14:55:03]Write to MH i2c: E2 08 00 49 10 80 0D 03 02 00 00 00 00 D4 [14:55:03]Write i2c OK [14:55:03]MH_I2C_Read... [14:55:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:03]Read from MH i2c: E2 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 0B 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 0B 00 49 10 00 F7 A9 BE 12 77 D4 E1 3D 90 00 AE [14:55:03]RAPDU: F7 A9 BE 12 77 D4 E1 3D 90 00 [14:55:03]wFMCommunicate OK [14:55:03]SAM_PROTO_SignData done [14:55:03]FM_MakeSignedData done [14:55:03]CreateOFDProtocolMessage [14:55:03]wFMCommunicate request_size=4 [14:55:03]MH_SAM_APDU [14:55:03]CAPDU: 80 11 00 00 [14:55:03]Write to MH i2c: E2 08 00 4A 10 80 11 00 00 00 00 00 00 D4 [14:55:03]Write i2c OK [14:55:03]MH_I2C_Read... [14:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:03]Read from MH i2c: E2 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 17 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 17 00 4A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 22 [14:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:55:03]wFMCommunicate OK [14:55:03]CreateOFDProtocolMessage done [14:55:03]OFDSenderStorePacket 115683 [14:55:03]StoreOFDPacket docnum=115683 [14:55:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 39 01 00 00 A4 3E 31 01 BC A2 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 46 81 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E3 C3 01 00 35 04 06 00 24 B3 20 C3 65 96 F7 A9 BE 12 77 D4 E1 3D [14:55:03]CheckFolder [14:55:03]dirname=/storage/ofd_packets [14:55:03]CheckFolder done [14:55:03]ProducePacketName [14:55:03]name=ofd_packets/00115683 [14:55:03]NVStorageSaveData ofd_packets/00115683 [14:55:03]File name is /storage/ofd_packets/00115683 [14:55:03]Write 343 bytes [14:55:03]NVStorageSaveData done [14:55:03]OFDSenderStorePacket done [14:55:03]KKMCreateOFDPacket done [14:55:03]NVStorageSaveData kkm_last_timestamp [14:55:03]File name is /storage/kkm_last_timestamp [14:55:03]Write 4 bytes [14:55:03]NVStorageSaveData done [14:55:03]ExternCall_PrintAddStr [14:55:03]wPrintStart [14:55:03]Write to MH i2c: 01 00 00 4B 10 5B [14:55:03]Write i2c OK [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: 01 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: 01 07 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: 01 07 00 4B 10 00 00 00 00 00 FF 0F 70 [14:55:03]RasterBufferAndPrint [14:55:03]line Счет N : (3)344034 [14:55:03]line ИНН: 02508201610067 [14:55:03]line Контрольно-Кассовый Чек [14:55:03]line ПРОДАЖА [14:55:03]line Товар: 4700000480050 [14:55:03]line Напиток Nitro Energy эн green ж/б 0,45л [14:55:03]line 1.000 * 77.00 [14:55:03]line = 77.00 [14:55:03]line НДС 12% НСП 1% [14:55:03]line > о реализуемом товаре [14:55:03]line ИТОГО: 77.00 [14:55:03]line НСП 1% : 0.68 [14:55:03]line НДС 12% : 8.18 [14:55:03]line Наличными: 0.00 [14:55:03]line Безнал.: 77.00 [14:55:03]line Место: АЗС № 90 "Партнер Нефть" [14:55:03]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:55:03]line СНО: Общий режим [14:55:03]line Чек 166 23.09.2024 14:55 [14:55:03]line Смена: 472 ФФД: 1.0 [14:55:03]line ЗНМ: 0300000120 [14:55:03]line РНМ: 0000000000091831 [14:55:03]line Версия ККМ: 001 [14:55:03]line Платежная система: O! деньги [14:55:03]line ФМ: 0000000000871830 [14:55:03]line ФД: 115683 [14:55:03]line ФПД: 40351767422358 [14:55:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T145502&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115683&fm=40351767422358&tin=02508201610067®Number=0000000000091831&sum=7700 [14:55:03]line 0 [14:55:03]written 0, free lines is 4095 [14:55:03]OFD Sender: Processing packet 115683 [packets to send 482, broken 481] [14:55:03]ProducePacketName [14:55:03]name=ofd_packets/00115683 [14:55:03]OFD Sender: To server: pG, [14:55:03]CommunicateWithHost lk.salyk.kg:30040 [14:55:03]ConnectInit lk.salyk.kg [14:55:03]Connected sock=10 [14:55: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 38 33 30 39 01 00 00 A4 3E 31 01 BC A2 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 46 81 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E3 C3 01 00 35 04 06 00 24 B3 20 C3 65 96 F7 A9 BE 12 77 D4 E1 3D [14:55:04]Write to MH i2c: 01 00 00 75 10 85 [14:55:04]Write i2c OK [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: 01 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: 01 07 00 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: 01 07 00 75 10 00 00 00 00 00 31 0C C9 [14:55:04]RasterBufferAndPrint [14:55:04]line [14:55:04]line [14:55:04]line [14:55:04]line [14:55:04]line [14:55:04]written 0, free lines is 3125 [14:55:04]MH_Cut [14:55:04]Write to MH i2c: D1 01 00 7C 10 01 5E [14:55:04]Write i2c OK [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: D1 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: D1 01 00 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: D1 01 00 7C 10 00 5D [14:55:04]Write to MH i2c: 01 00 00 7D 10 8D [14:55:04]Write i2c OK [14:55:04]MH_I2C_Read... [14:55:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 AE 62 47 00 12 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 38 33 30 10 04 04 00 E3 C3 01 00 F4 03 04 00 88 26 F1 66 B6 04 01 00 00 AD 31 74 73 7E EE B2 B0 [14:55:04]CommunicateWithHost err = 0 [14:55:04]CheckOFDResponse [14:55:04]1017 (14) - 77093643461234 [14:55:04]1041 (16) - 0000000000871830 [14:55:04]1040 (4) - 115683 [14:55:04]1012 (4) - 23.09.2024 08:27 [14:55:04]1206 (1) - 0 [14:55:04]OFD Sender: Remove packet 115683 [14:55:04]ProducePacketName [14:55:04]name=ofd_packets/00115683 [14:55:04]NVStorageDeleteData [14:55:04]OFD Sender: No OFD packet to send [14:55:05]*** Cut start [14:55:05]*** Partial cut [14:55:05]*** CUTSNS_PIN = 1 [14:55:05]*** CUTSNS_PIN = 0 [14:55:05]*** Brake cut motor [14:55:06]Read from MH i2c: 01 [14:55:06]MH_I2C_Read... [14:55:06]*** Stop cut motor [14:55:06]*** Cut end [14:55:06]Read from MH i2c: 01 07 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: 01 07 00 7D 10 00 00 00 00 00 FF 0F A2 [14:55:06]process_action close_receipt done [14:55:06]requested_data is exist [14:55:06]produce_requested_data [14:55:06]requested_item fm.sn is exist - process it [14:55:06]wFMCommunicate request_size=4 [14:55:06]MH_SAM_APDU [14:55:06]CAPDU: 80 11 00 00 [14:55:06]Write to MH i2c: E2 08 00 7E 10 80 11 00 00 00 00 00 00 08 [14:55:06]Write i2c OK [14:55:06]MH_I2C_Read... [14:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:06]Read from MH i2c: E2 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 17 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 17 00 7E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 56 [14:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:55:06]wFMCommunicate OK [14:55:06]requested_item fd.num is exist - process it [14:55:06]SAM_PROTO_GetFieldsCounters [14:55:06]wFMCommunicate request_size=4 [14:55:06]MH_SAM_APDU [14:55:06]CAPDU: 80 13 00 00 [14:55:06]Write to MH i2c: E2 08 00 7F 10 80 13 00 00 00 00 00 00 0B [14:55:06]Write i2c OK [14:55:06]MH_I2C_Read... [14:55:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:06]Read from MH i2c: E2 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 62 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 62 00 7F 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E3 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [14:55: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E3 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:06]wFMCommunicate OK [14:55:06]SAM_PROTO_GetFieldsCounters done [14:55:06]requested_item shift.num is exist - process it [14:55:06]requested_item shift.opened is exist - process it [14:55:06]req_shift_opened [14:55:06]FM_GetShiftState [14:55:06]SAM_PROTO_GetShiftState [14:55:06]wFMCommunicate request_size=4 [14:55:06]MH_SAM_APDU [14:55:06]CAPDU: 80 13 01 00 [14:55:06]Write to MH i2c: E2 08 00 80 10 80 13 01 00 00 00 00 00 0D [14:55:06]Write i2c OK [14:55:06]MH_I2C_Read... [14:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:06]Read from MH i2c: E2 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 0E 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 0E 00 80 10 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 4E [14:55:06]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:55:06]wFMCommunicate OK [14:55:06]SAM_PROTO_GetShiftState done [14:55:06]FM_GetShiftState done [14:55:06]req_shift_opened done [14:55:06]requested_item shift.open_date is exist - process it [14:55:06]req_shift_open_date [14:55:06]req_shift_open_date done [14:55:06]produce_requested_data done [14:55:06]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115683,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:55:06]process_action_free close_receipt [14:55:06]json_value_free [14:55:06]json_value_free done [14:55:06]process_json_proto returns [14:55:06]Send response to host [14:55:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115683,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:55:06]free response buf [14:55:06]execute_script done [14:55:06]execute_script returns [14:55:06]free content buf [14:55:06]Sock 9.Close socket [14:55:06]Sock 9.Thread stoped [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:49]accept exits with 7 [14:57:49]New connection [14:57:49]New thread 3067022692 created [14:57:49]Thread 3066879332 joined [14:57:49]Waiting for new connection... [14:57:49] Sock 7.Parse request [14:57:49]Sock 7.Check first char [14:57:49]Sock 7.First char is OK [14:57:49]request: POST /json_proto HTTP/1.0 [14:57:49]Method: POST [14:57:49]URL: /json_proto [14:57:49]Method is POST - this is cgi request [14:57:49]url: /json_proto [14:57:49]query_string will be loaded in cgi processing [14:57:49]execute_cgi json_proto POST (null) [14:57:49]execute_cgi path=json_proto method=POST [14:57:49]POST find Content-Length [14:57:49]Host: 172.17.41.136:8080 [14:57:49]Content-Length: 616 [14:57:49]Content-Type: application/json [14:57:49] [14:57:49]POST finish read [14:57:49]Found Content-Length = 616 [14:57:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344035", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:49]execute_script... [14:57:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344035", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:49]POST & json_proto [14:57:49]process_json_proto [14:57:49]json parsed OK: [14:57:49]protocol is kg_v1.0 [14:57:49]action value=close_receipt [14:57:49]process_action close_receipt [14:57:49]cmd_close_receipt [14:57:49]MH_GetDate [14:57:49]Write to MH i2c: F0 00 00 81 10 80 [14:57:49]Write i2c OK [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: F0 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: F0 09 00 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: F0 09 00 81 10 00 EE 81 F1 66 1B D0 5A 64 F8 [14:57:49]GetLastDocTimeStamp 1727103302 [14:57:49]current date 1727103470 [14:57:49]FM_GetShiftState [14:57:49]SAM_PROTO_GetShiftState [14:57:49]wFMCommunicate request_size=4 [14:57:49]MH_SAM_APDU [14:57:49]CAPDU: 80 13 01 00 [14:57:49]Write to MH i2c: E2 08 00 82 10 80 13 01 00 00 00 00 00 0F [14:57:49]Write i2c OK [14:57:49]MH_I2C_Read... [14:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:49]Read from MH i2c: E2 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 0E 00 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 0E 00 82 10 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 50 [14:57:49]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:57:49]wFMCommunicate OK [14:57:49]SAM_PROTO_GetShiftState done [14:57:49]FM_GetShiftState done [14:57:49]opened in 1727052070 [14:57:49]opened+sec_in_day 1727138470 [14:57:49]quantity*price = 17500 [14:57:49]sum+1 = 17501 [14:57:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 167 23.09.2024 14:57 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115684 ФПД: 268286493776640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T145750&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115684&fm=268286493776640&tin=02508201610067®Number=0000000000091831&sum=17500 0 [14:57:50]StoreToDocumentArchive [14:57:50]shift 472 fd 115684 [14:57:50]save to /storage/0472/doc_00115684 [14:57:50]save last doc name /storage/0472/doc_00115684 to /storage/kkm_last_doc_name [14:57:50]save OK [14:57:50]Clear old archive folders... [14:57:50]ProcessDocumentItem done err = 0, tmpTLVsize=268 [14:57:50]tlvbuf is 017C8250 [14:57:50]SAM_PROTO_ClearQueue [14:57:50]wFMCommunicate request_size=4 [14:57:50]MH_SAM_APDU [14:57:50]CAPDU: 80 09 00 00 [14:57:50]Write to MH i2c: E2 08 00 8F 10 80 09 00 00 00 00 00 00 11 [14:57:50]Write i2c OK [14:57:50]MH_I2C_Read... [14:57:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:50]Read from MH i2c: E2 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: E2 03 00 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: E2 03 00 8F 10 00 90 00 13 [14:57:50]RAPDU: 90 00 [14:57:50]wFMCommunicate OK [14:57:50]SAM_PROTO_ClearQueue done [14:57:50]KKMCreateOFDPacket [14:57:50]OFDProtocolAddRootSTLVToBuf [14:57:50]FM_MakeSignedData [14:57:50]FM_MakeSignedData [14:57:50]SAM_PROTO_SignData [14:57:50]wFMCommunicate request_size=4 [14:57:50]MH_SAM_APDU [14:57:50]CAPDU: 80 0D 01 02 [14:57:50]Write to MH i2c: E2 08 00 90 10 80 0D 01 02 00 00 00 00 19 [14:57:50]Write i2c OK [14:57:50]MH_I2C_Read... [14:57:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:50]Read from MH i2c: E2 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: E2 03 00 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: E2 03 00 90 10 00 90 00 14 [14:57:50]RAPDU: 90 00 [14:57:50]wFMCommunicate OK [14:57:50]wFMCommunicate request_size=255 [14:57:50]MH_SAM_APDU [14:57:50]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 EE 81 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [14:57:50]Write to MH i2c: E2 02 01 91 10 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 EE 81 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 C6 [14:57:50]Write i2c OK [14:57:50]MH_I2C_Read... [14:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:51]Read from MH i2c: E2 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 03 00 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 03 00 91 10 00 90 00 15 [14:57:51]RAPDU: 90 00 [14:57:51]wFMCommunicate OK [14:57:51]wFMCommunicate request_size=27 [14:57:51]MH_SAM_APDU [14:57:51]CAPDU: 80 0D 02 02 16 31 38 33 30 10 04 04 00 E4 C3 01 00 35 04 06 00 F4 01 51 28 DB 00 [14:57:51]Write to MH i2c: E2 1E 00 92 10 80 0D 02 02 16 00 31 38 33 30 10 04 04 00 E4 C3 01 00 35 04 06 00 F4 01 51 28 DB 00 00 00 5C [14:57:51]Write i2c OK [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 [14:57:51]MH_I2C_Read... [14:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:51]Read from MH i2c: E2 03 00 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 03 00 92 10 00 90 00 16 [14:57:51]RAPDU: 90 00 [14:57:51]wFMCommunicate OK [14:57:51]wFMCommunicate request_size=4 [14:57:51]MH_SAM_APDU [14:57:51]CAPDU: 80 0D 03 02 [14:57:51]Write to MH i2c: E2 08 00 93 10 80 0D 03 02 00 00 00 00 1E [14:57:51]Write i2c OK [14:57:51]MH_I2C_Read... [14:57:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:51]Read from MH i2c: E2 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 0B 00 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 0B 00 93 10 00 2A EB 2C C8 D9 CF 5B C5 90 00 F0 [14:57:51]RAPDU: 2A EB 2C C8 D9 CF 5B C5 90 00 [14:57:51]wFMCommunicate OK [14:57:51]SAM_PROTO_SignData done [14:57:51]FM_MakeSignedData done [14:57:51]CreateOFDProtocolMessage [14:57:51]wFMCommunicate request_size=4 [14:57:51]MH_SAM_APDU [14:57:51]CAPDU: 80 11 00 00 [14:57:51]Write to MH i2c: E2 08 00 94 10 80 11 00 00 00 00 00 00 1E [14:57:51]Write i2c OK [14:57:51]MH_I2C_Read... [14:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:51]Read from MH i2c: E2 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 17 00 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 17 00 94 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6C [14:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:57:51]wFMCommunicate OK [14:57:51]CreateOFDProtocolMessage done [14:57:51]OFDSenderStorePacket 115684 [14:57:51]StoreOFDPacket docnum=115684 [14:57:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 20 01 00 00 44 02 18 01 C4 99 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 EE 81 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E4 C3 01 00 35 04 06 00 F4 01 51 28 DB 00 2A EB 2C C8 D9 CF 5B C5 [14:57:51]CheckFolder [14:57:51]dirname=/storage/ofd_packets [14:57:51]CheckFolder done [14:57:51]ProducePacketName [14:57:51]name=ofd_packets/00115684 [14:57:51]NVStorageSaveData ofd_packets/00115684 [14:57:51]File name is /storage/ofd_packets/00115684 [14:57:51]Write 318 bytes [14:57:51]NVStorageSaveData done [14:57:51]OFDSenderStorePacket done [14:57:51]KKMCreateOFDPacket done [14:57:51]NVStorageSaveData kkm_last_timestamp [14:57:51]File name is /storage/kkm_last_timestamp [14:57:51]Write 4 bytes [14:57:51]NVStorageSaveData done [14:57:51]ExternCall_PrintAddStr [14:57:51]wPrintStart [14:57:51]Write to MH i2c: 01 00 00 95 10 A5 [14:57:51]Write i2c OK [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: 01 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: 01 07 00 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: 01 07 00 95 10 00 00 00 00 00 FF 0F BA [14:57:51]RasterBufferAndPrint [14:57:51]line Счет N : (3)344035 [14:57:51]line ИНН: 02508201610067 [14:57:51]line Контрольно-Кассовый Чек [14:57:51]line ПРОДАЖА [14:57:51]line Товар: 4870002329487 [14:57:51]line Напиток Pepsi 1,5л [14:57:51]line 1.000 * 175.00 [14:57:51]line = 175.00 [14:57:51]line НДС 12% НСП 1% [14:57:51]line > о реализуемом товаре [14:57:51]line ИТОГО: 175.00 [14:57:51]line НСП 1% : 1.55 [14:57:51]line НДС 12% : 18.58 [14:57:51]line Наличными: 175.00 [14:57:51]line Безнал.: 0.00 [14:57:51]line Место: АЗС № 90 "Партнер Нефть" [14:57:51]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [14:57:51]line СНО: Общий режим [14:57:51]line Чек 167 23.09.2024 14:57 [14:57:51]line Смена: 472 ФФД: 1.0 [14:57:51]line ЗНМ: 0300000120 [14:57:51]line РНМ: 0000000000091831 [14:57:51]line Версия ККМ: 001 [14:57:51]line ФМ: 0000000000871830 [14:57:51]line ФД: 115684 [14:57:51]line ФПД: 268286493776640 [14:57:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T145750&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115684&fm=268286493776640&tin=02508201610067®Number=0000000000091831&sum=17500 [14:57:51]line 0 [14:57:51]written 0, free lines is 4095 [14:57:51]OFD Sender: Processing packet 115684 [packets to send 482, broken 481] [14:57:51]ProducePacketName [14:57:51]name=ofd_packets/00115684 [14:57:51]OFD Sender: To server: pG, [14:57:51]CommunicateWithHost lk.salyk.kg:30040 [14:57:51]ConnectInit lk.salyk.kg [14:57:51]Connected sock=10 [14:57: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 38 33 30 20 01 00 00 44 02 18 01 C4 99 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 EE 81 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E4 C3 01 00 35 04 06 00 F4 01 51 28 DB 00 2A EB 2C C8 D9 CF 5B C5 [14:57:51]Write to MH i2c: 01 00 00 BC 10 CC [14:57:51]Write i2c OK [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: 01 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: 01 07 00 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: 01 07 00 BC 10 00 00 00 00 00 88 0C 67 [14:57:51]RasterBufferAndPrint [14:57:51]line [14:57:51]line [14:57:51]line [14:57:51]line [14:57:51]line [14:57:51]written 0, free lines is 3214 [14:57:51]MH_Cut [14:57:51]Write to MH i2c: D1 01 00 C3 10 01 A5 [14:57:51]Write i2c OK [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: D1 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: D1 01 00 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: D1 01 00 C3 10 00 A4 [14:57:51]Write to MH i2c: 01 00 00 C4 10 D4 [14:57:51]Write i2c OK [14:57:51]MH_I2C_Read... [14:57:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 21 55 47 00 BC 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E4 C3 01 00 F4 03 04 00 30 27 F1 66 B6 04 01 00 00 F8 FC 5A 8B 76 17 D1 6D [14:57:51]CommunicateWithHost err = 0 [14:57:51]CheckOFDResponse [14:57:51]1017 (14) - 77093643461234 [14:57:51]1041 (16) - 0000000000871830 [14:57:51]1040 (4) - 115684 [14:57:51]1012 (4) - 23.09.2024 08:30 [14:57:51]1206 (1) - 0 [14:57:51]OFD Sender: Remove packet 115684 [14:57:51]ProducePacketName [14:57:51]name=ofd_packets/00115684 [14:57:51]NVStorageDeleteData [14:57:52]OFD Sender: No OFD packet to send [14:57:52]*** Cut start [14:57:52]*** Partial cut [14:57:52]*** CUTSNS_PIN = 1 [14:57:53]*** CUTSNS_PIN = 0 [14:57:53]*** Brake cut motor [14:57:53]Read from MH i2c: 01 [14:57:53]MH_I2C_Read... [14:57:53]*** Stop cut motor [14:57:53]*** Cut end [14:57:53]Read from MH i2c: 01 07 00 [14:57:53]MH_I2C_Read... [14:57:53]Read from MH i2c: 01 07 00 C4 10 00 00 00 00 00 FF 0F E9 [14:57:53]process_action close_receipt done [14:57:53]requested_data is exist [14:57:53]produce_requested_data [14:57:53]requested_item fm.sn is exist - process it [14:57:53]wFMCommunicate request_size=4 [14:57:53]MH_SAM_APDU [14:57:53]CAPDU: 80 11 00 00 [14:57:53]Write to MH i2c: E2 08 00 C5 10 80 11 00 00 00 00 00 00 4F [14:57:53]Write i2c OK [14:57:53]MH_I2C_Read... [14:57:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:53]Read from MH i2c: E2 [14:57:53]MH_I2C_Read... [14:57:53]Read from MH i2c: E2 17 00 [14:57:53]MH_I2C_Read... [14:57:53]Read from MH i2c: E2 17 00 C5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9D [14:57:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [14:57:53]wFMCommunicate OK [14:57:53]requested_item fd.num is exist - process it [14:57:53]SAM_PROTO_GetFieldsCounters [14:57:53]wFMCommunicate request_size=4 [14:57:53]MH_SAM_APDU [14:57:53]CAPDU: 80 13 00 00 [14:57:53]Write to MH i2c: E2 08 00 C6 10 80 13 00 00 00 00 00 00 52 [14:57:53]Write i2c OK [14:57:53]MH_I2C_Read... [14:57:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:53]Read from MH i2c: E2 [14:57:53]MH_I2C_Read... [14:57:53]Read from MH i2c: E2 62 00 [14:57:53]MH_I2C_Read... [14:57:53]Read from MH i2c: E2 62 00 C6 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E4 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [14:57: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E4 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:53]wFMCommunicate OK [14:57:53]SAM_PROTO_GetFieldsCounters done [14:57:53]requested_item shift.num is exist - process it [14:57:53]requested_item shift.opened is exist - process it [14:57:53]req_shift_opened [14:57:53]FM_GetShiftState [14:57:53]SAM_PROTO_GetShiftState [14:57:53]wFMCommunicate request_size=4 [14:57:53]MH_SAM_APDU [14:57:53]CAPDU: 80 13 01 00 [14:57:53]Write to MH i2c: E2 08 00 C7 10 80 13 01 00 00 00 00 00 54 [14:57:53]Write i2c OK [14:57:53]MH_I2C_Read... [14:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:53]Read from MH i2c: E2 [14:57:53]MH_I2C_Read... [14:57:53]Read from MH i2c: E2 0E 00 [14:57:53]MH_I2C_Read... [14:57:53]Read from MH i2c: E2 0E 00 C7 10 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 95 [14:57:53]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [14:57:53]wFMCommunicate OK [14:57:53]SAM_PROTO_GetShiftState done [14:57:53]FM_GetShiftState done [14:57:53]req_shift_opened done [14:57:53]requested_item shift.open_date is exist - process it [14:57:53]req_shift_open_date [14:57:53]req_shift_open_date done [14:57:53]produce_requested_data done [14:57:53]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115684,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [14:57:53]process_action_free close_receipt [14:57:53]json_value_free [14:57:53]json_value_free done [14:57:53]process_json_proto returns [14:57:53]Send response to host [14:57:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115684,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [14:57:53]free response buf [14:57:53]execute_script done [14:57:53]execute_script returns [14:57:53]free content buf [14:57:53]Sock 7.Close socket [14:57:53]Sock 7.Thread stoped [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:22]accept exits with 9 [15:09:22]New connection [15:09:22]New thread 3066879332 created [15:09:22]Thread 3067022692 joined [15:09:22]Waiting for new connection... [15:09:22] Sock 9.Parse request [15:09:22]Sock 9.Check first char [15:09:22]Sock 9.First char is OK [15:09:22]request: POST /json_proto HTTP/1.0 [15:09:22]Method: POST [15:09:22]URL: /json_proto [15:09:22]Method is POST - this is cgi request [15:09:22]url: /json_proto [15:09:22]query_string will be loaded in cgi processing [15:09:22]execute_cgi json_proto POST (null) [15:09:22]execute_cgi path=json_proto method=POST [15:09:22]POST find Content-Length [15:09:22]Host: 172.17.41.136:8080 [15:09:22]Content-Length: 1174 [15:09:22]Content-Type: application/json [15:09:22] [15:09:22]POST finish read [15:09:22]Found Content-Length = 1174 [15:09:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344036", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 244.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:22]execute_script... [15:09:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344036", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 244.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:22]POST & json_proto [15:09:22]process_json_proto [15:09:22]json parsed OK: [15:09:22]protocol is kg_v1.0 [15:09:22]action value=close_receipt [15:09:22]process_action close_receipt [15:09:22]cmd_close_receipt [15:09:22]MH_GetDate [15:09:22]Write to MH i2c: F0 00 00 C8 10 C7 [15:09:22]Write i2c OK [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: F0 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: F0 09 00 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: F0 09 00 C8 10 00 A3 84 F1 66 1B D0 5A 64 F7 [15:09:22]GetLastDocTimeStamp 1727103470 [15:09:22]current date 1727104163 [15:09:22]FM_GetShiftState [15:09:22]SAM_PROTO_GetShiftState [15:09:22]wFMCommunicate request_size=4 [15:09:22]MH_SAM_APDU [15:09:22]CAPDU: 80 13 01 00 [15:09:22]Write to MH i2c: E2 08 00 C9 10 80 13 01 00 00 00 00 00 56 [15:09:22]Write i2c OK [15:09:22]MH_I2C_Read... [15:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:23]Read from MH i2c: E2 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 0E 00 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 0E 00 C9 10 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 97 [15:09:23]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:09:23]wFMCommunicate OK [15:09:23]SAM_PROTO_GetShiftState done [15:09:23]FM_GetShiftState done [15:09:23]opened in 1727052070 [15:09:23]opened+sec_in_day 1727138470 [15:09:23]quantity*price = 6000 [15:09:23]sum+1 = 6001 [15:09:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521292 Напиток Сок березы 1,2л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 244.00 НСП 1% : 2.16 НДС 12% : 25.90 Наличными: 244.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 168 23.09.2024 15:09 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115685 ФПД: 57238379979539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T150923&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115685&fm=57238379979539&tin=02508201610067®Number=0000000000091831&sum=24400 0 [15:09:24]StoreToDocumentArchive [15:09:24]shift 472 fd 115685 [15:09:24]save to /storage/0472/doc_00115685 [15:09:24]save last doc name /storage/0472/doc_00115685 to /storage/kkm_last_doc_name [15:09:24]save OK [15:09:24]Clear old archive folders... [15:09:24]ProcessDocumentItem done err = 0, tmpTLVsize=494 [15:09:24]tlvbuf is 017ADDD0 [15:09:24]SAM_PROTO_ClearQueue [15:09:24]wFMCommunicate request_size=4 [15:09:24]MH_SAM_APDU [15:09:24]CAPDU: 80 09 00 00 [15:09:24]Write to MH i2c: E2 08 00 D6 10 80 09 00 00 00 00 00 00 58 [15:09:24]Write i2c OK [15:09:24]MH_I2C_Read... [15:09:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:24]Read from MH i2c: E2 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 03 00 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 03 00 D6 10 00 90 00 5A [15:09:24]RAPDU: 90 00 [15:09:24]wFMCommunicate OK [15:09:24]SAM_PROTO_ClearQueue done [15:09:24]KKMCreateOFDPacket [15:09:24]OFDProtocolAddRootSTLVToBuf [15:09:24]FM_MakeSignedData [15:09:24]FM_MakeSignedData [15:09:24]SAM_PROTO_SignData [15:09:24]wFMCommunicate request_size=4 [15:09:24]MH_SAM_APDU [15:09:24]CAPDU: 80 0D 01 02 [15:09:24]Write to MH i2c: E2 08 00 D7 10 80 0D 01 02 00 00 00 00 60 [15:09:24]Write i2c OK [15:09:24]MH_I2C_Read... [15:09:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:24]Read from MH i2c: E2 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 03 00 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 03 00 D7 10 00 90 00 5B [15:09:24]RAPDU: 90 00 [15:09:24]wFMCommunicate OK [15:09:24]wFMCommunicate request_size=255 [15:09:24]MH_SAM_APDU [15:09:24]CAPDU: 80 0D 02 02 FA 03 00 EE 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 [15:09:24]Write to MH i2c: E2 02 01 D8 10 80 0D 02 02 FA 00 03 00 EE 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 00 00 B0 [15:09:24]Write i2c OK [15:09:24]MH_I2C_Read... [15:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:24]Read from MH i2c: E2 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 03 00 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 03 00 D8 10 00 90 00 5C [15:09:24]RAPDU: 90 00 [15:09:24]wFMCommunicate OK [15:09:24]wFMCommunicate request_size=253 [15:09:24]MH_SAM_APDU [15:09:24]CAPDU: 80 0D 02 02 F8 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0A 00 00 00 00 07 04 06 00 50 5F 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 A3 84 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E5 C3 01 00 35 04 06 00 34 0E D9 4E 63 13 [15:09:24]Write to MH i2c: E2 00 01 D9 10 80 0D 02 02 F8 00 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0A 00 00 00 00 07 04 06 00 50 5F 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 A3 84 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E5 C3 01 00 35 04 06 00 34 0E D9 4E 63 13 00 00 CF [15:09:24]Write i2c OK [15:09:24]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 D9 10 00 90 00 5D [15:09:25]RAPDU: 90 00 [15:09:25]wFMCommunicate OK [15:09:25]wFMCommunicate request_size=4 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 0D 03 02 [15:09:25]Write to MH i2c: E2 08 00 DA 10 80 0D 03 02 00 00 00 00 65 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 0B 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 0B 00 DA 10 00 CB AA CA E7 00 95 7E 4A 90 00 E9 [15:09:25]RAPDU: CB AA CA E7 00 95 7E 4A 90 00 [15:09:25]wFMCommunicate OK [15:09:25]SAM_PROTO_SignData done [15:09:25]FM_MakeSignedData done [15:09:25]CreateOFDProtocolMessage [15:09:25]wFMCommunicate request_size=4 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 11 00 00 [15:09:25]Write to MH i2c: E2 08 00 DB 10 80 11 00 00 00 00 00 00 65 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:25]Read from MH i2c: E2 17 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 17 00 DB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B3 [15:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:09:25]wFMCommunicate OK [15:09:25]CreateOFDProtocolMessage done [15:09:25]OFDSenderStorePacket 115685 [15:09:25]StoreOFDPacket docnum=115685 [15:09:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 02 02 00 00 5C B9 FA 01 09 96 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0A 00 00 00 00 07 04 06 00 50 5F 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 A3 84 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E5 C3 01 00 35 04 06 00 34 0E D9 4E 63 13 CB AA CA E7 00 95 7E 4A [15:09:25]CheckFolder [15:09:25]dirname=/storage/ofd_packets [15:09:25]CheckFolder done [15:09:25]ProducePacketName [15:09:25]name=ofd_packets/00115685 [15:09:25]NVStorageSaveData ofd_packets/00115685 [15:09:25]File name is /storage/ofd_packets/00115685 [15:09:25]Write 544 bytes [15:09:25]NVStorageSaveData done [15:09:25]OFDSenderStorePacket done [15:09:25]KKMCreateOFDPacket done [15:09:25]NVStorageSaveData kkm_last_timestamp [15:09:25]File name is /storage/kkm_last_timestamp [15:09:25]Write 4 bytes [15:09:25]NVStorageSaveData done [15:09:25]ExternCall_PrintAddStr [15:09:25]wPrintStart [15:09:25]Write to MH i2c: 01 00 00 DC 10 EC [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: 01 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: 01 07 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: 01 07 00 DC 10 00 00 00 00 00 FF 0F 01 [15:09:25]RasterBufferAndPrint [15:09:25]line Счет N : (3)344036 [15:09:25]line ИНН: 02508201610067 [15:09:25]line Контрольно-Кассовый Чек [15:09:25]line ПРОДАЖА [15:09:25]line Товар: 4700000160204 [15:09:25]line Вода Легенда 1,5л [15:09:25]line 1.000 * 60.00 [15:09:25]line = 60.00 [15:09:25]line НДС 12% НСП 1% [15:09:25]line > о реализуемом товаре [15:09:25]line Товар: 4870202521292 [15:09:25]line Напиток Сок березы 1,2л [15:09:25]line 1.000 * 125.00 [15:09:25]line = 125.00 [15:09:25]line НДС 12% НСП 1% [15:09:25]line > о реализуемом товаре [15:09:25]line Товар: 4607065001445 [15:09:25]line Шок батончик Snickers 50,5г [15:09:25]line 1.000 * 59.00 [15:09:25]line = 59.00 [15:09:25]line НДС 12% НСП 1% [15:09:25]line > о реализуемом товаре [15:09:25]line ИТОГО: 244.00 [15:09:25]line НСП 1% : 2.16 [15:09:25]line НДС 12% : 25.90 [15:09:25]line Наличными: 244.00 [15:09:25]line Безнал.: 0.00 [15:09:25]line Место: АЗС № 90 "Партнер Нефть" [15:09:25]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:09:25]line СНО: Общий режим [15:09:25]line Чек 168 23.09.2024 15:09 [15:09:25]line Смена: 472 ФФД: 1.0 [15:09:25]line ЗНМ: 0300000120 [15:09:25]line РНМ: 0000000000091831 [15:09:25]line Версия ККМ: 001 [15:09:25]line ФМ: 0000000000871830 [15:09:25]line ФД: 115685 [15:09:25]line ФПД: 57238379979539 [15:09:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T150923&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115685&fm=57238379979539&tin=02508201610067®Number=0000000000091831&sum=24400 [15:09:25]line 0 [15:09:25]written 0, free lines is 4095 [15:09:25]OFD Sender: Processing packet 115685 [packets to send 482, broken 481] [15:09:25]ProducePacketName [15:09:25]name=ofd_packets/00115685 [15:09:25]OFD Sender: To server: pG, [15:09:25]CommunicateWithHost lk.salyk.kg:30040 [15:09:25]ConnectInit lk.salyk.kg [15:09:25]Connected sock=10 [15:09: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 38 33 30 02 02 00 00 5C B9 FA 01 09 96 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0A 00 00 00 00 07 04 06 00 50 5F 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 A3 84 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E5 C3 01 00 35 04 06 00 34 0E D9 4E 63 13 CB AA CA E7 00 95 7E 4A [15:09:25]Write to MH i2c: 01 00 00 0F 11 20 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: 01 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: 01 07 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: 01 07 00 0F 11 00 00 00 00 00 85 0B B7 [15:09:25]RasterBufferAndPrint [15:09:25]line [15:09:25]line [15:09:25]line [15:09:25]line [15:09:25]line [15:09:25]written 0, free lines is 2952 [15:09:25]MH_Cut [15:09:25]Write to MH i2c: D1 01 00 16 11 01 F9 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: D1 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: D1 01 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: D1 01 00 16 11 00 F8 [15:09:25]Write to MH i2c: 01 00 00 17 11 28 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 FB 4C 47 00 AF 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E5 C3 01 00 F4 03 04 00 E6 29 F1 66 B6 04 01 00 00 27 54 F1 45 EF 49 B5 AF [15:09:26]CommunicateWithHost err = 0 [15:09:26]CheckOFDResponse [15:09:26]1017 (14) - 77093643461234 [15:09:26]1041 (16) - 0000000000871830 [15:09:26]1040 (4) - 115685 [15:09:26]1012 (4) - 23.09.2024 08:42 [15:09:26]1206 (1) - 0 [15:09:26]OFD Sender: Remove packet 115685 [15:09:26]ProducePacketName [15:09:26]name=ofd_packets/00115685 [15:09:26]NVStorageDeleteData [15:09:26]OFD Sender: No OFD packet to send [15:09:27]*** Cut start [15:09:27]*** Partial cut [15:09:27]*** CUTSNS_PIN = 1 [15:09:27]*** CUTSNS_PIN = 0 [15:09:27]*** Brake cut motor [15:09:28]Read from MH i2c: 01 [15:09:28]MH_I2C_Read... [15:09:28]*** Stop cut motor [15:09:28]*** Cut end [15:09:28]Read from MH i2c: 01 07 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: 01 07 00 17 11 00 00 00 00 00 FF 0F 3D [15:09:28]process_action close_receipt done [15:09:28]requested_data is exist [15:09:28]produce_requested_data [15:09:28]requested_item fm.sn is exist - process it [15:09:28]wFMCommunicate request_size=4 [15:09:28]MH_SAM_APDU [15:09:28]CAPDU: 80 11 00 00 [15:09:28]Write to MH i2c: E2 08 00 18 11 80 11 00 00 00 00 00 00 A3 [15:09:28]Write i2c OK [15:09:28]MH_I2C_Read... [15:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:28]Read from MH i2c: E2 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 17 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 17 00 18 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F1 [15:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:09:28]wFMCommunicate OK [15:09:28]requested_item fd.num is exist - process it [15:09:28]SAM_PROTO_GetFieldsCounters [15:09:28]wFMCommunicate request_size=4 [15:09:28]MH_SAM_APDU [15:09:28]CAPDU: 80 13 00 00 [15:09:28]Write to MH i2c: E2 08 00 19 11 80 13 00 00 00 00 00 00 A6 [15:09:28]Write i2c OK [15:09:28]MH_I2C_Read... [15:09:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:28]Read from MH i2c: E2 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 62 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 62 00 19 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E5 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [15:09: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E5 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:28]wFMCommunicate OK [15:09:28]SAM_PROTO_GetFieldsCounters done [15:09:28]requested_item shift.num is exist - process it [15:09:28]requested_item shift.opened is exist - process it [15:09:28]req_shift_opened [15:09:28]FM_GetShiftState [15:09:28]SAM_PROTO_GetShiftState [15:09:28]wFMCommunicate request_size=4 [15:09:28]MH_SAM_APDU [15:09:28]CAPDU: 80 13 01 00 [15:09:28]Write to MH i2c: E2 08 00 1A 11 80 13 01 00 00 00 00 00 A8 [15:09:28]Write i2c OK [15:09:28]MH_I2C_Read... [15:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:28]Read from MH i2c: E2 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 0E 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 0E 00 1A 11 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E9 [15:09:28]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:09:28]wFMCommunicate OK [15:09:28]SAM_PROTO_GetShiftState done [15:09:28]FM_GetShiftState done [15:09:28]req_shift_opened done [15:09:28]requested_item shift.open_date is exist - process it [15:09:28]req_shift_open_date [15:09:28]req_shift_open_date done [15:09:28]produce_requested_data done [15:09:28]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115685,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [15:09:28]process_action_free close_receipt [15:09:28]json_value_free [15:09:28]json_value_free done [15:09:28]process_json_proto returns [15:09:28]Send response to host [15:09:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115685,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [15:09:28]free response buf [15:09:28]execute_script done [15:09:28]execute_script returns [15:09:28]free content buf [15:09:28]Sock 9.Close socket [15:09:28]Sock 9.Thread stoped [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:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:16]accept exits with 7 [15:14:16]New connection [15:14:16]New thread 3067022692 created [15:14:16]Thread 3066879332 joined [15:14:16]Waiting for new connection... [15:14:16] Sock 7.Parse request [15:14:16]Sock 7.Check first char [15:14:16]Sock 7.First char is OK [15:14:16]request: POST /json_proto HTTP/1.0 [15:14:16]Method: POST [15:14:16]URL: /json_proto [15:14:16]Method is POST - this is cgi request [15:14:16]url: /json_proto [15:14:16]query_string will be loaded in cgi processing [15:14:16]execute_cgi json_proto POST (null) [15:14:16]execute_cgi path=json_proto method=POST [15:14:16]POST find Content-Length [15:14:16]Host: 172.17.41.136:8080 [15:14:16]Content-Length: 1144 [15:14:16]Content-Type: application/json [15:14:16] [15:14:16]POST finish read [15:14:16]Found Content-Length = 1144 [15:14:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344037", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 2.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 413.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:16]execute_script... [15:14:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344037", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 2.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 413.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:16]POST & json_proto [15:14:16]process_json_proto [15:14:16]json parsed OK: [15:14:16]protocol is kg_v1.0 [15:14:16]action value=close_receipt [15:14:16]process_action close_receipt [15:14:16]cmd_close_receipt [15:14:16]MH_GetDate [15:14:16]Write to MH i2c: F0 00 00 1B 11 1B [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: F0 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: F0 09 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: F0 09 00 1B 11 00 C9 85 F1 66 1B D0 5A 64 72 [15:14:16]GetLastDocTimeStamp 1727104163 [15:14:16]current date 1727104457 [15:14:16]FM_GetShiftState [15:14:16]SAM_PROTO_GetShiftState [15:14:16]wFMCommunicate request_size=4 [15:14:16]MH_SAM_APDU [15:14:16]CAPDU: 80 13 01 00 [15:14:16]Write to MH i2c: E2 08 00 1C 11 80 13 01 00 00 00 00 00 AA [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:16]Read from MH i2c: E2 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 0E 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 0E 00 1C 11 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 EB [15:14:16]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:14:16]wFMCommunicate OK [15:14:16]SAM_PROTO_GetShiftState done [15:14:16]FM_GetShiftState done [15:14:16]opened in 1727052070 [15:14:16]opened+sec_in_day 1727138470 [15:14:16]quantity*price = 18500 [15:14:16]sum+1 = 18501 [15:14:16]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 2.000 * 42.00 = 84.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48747066 Сигареты Winston True Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 413.00 НСП 1% : 3.65 НДС 12% : 43.86 Наличными: 413.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 169 23.09.2024 15:14 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115686 ФПД: 108354784432744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T151417&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115686&fm=108354784432744&tin=02508201610067®Number=0000000000091831&sum=41300 0 [15:14:18]StoreToDocumentArchive [15:14:18]shift 472 fd 115686 [15:14:18]save to /storage/0472/doc_00115686 [15:14:18]save last doc name /storage/0472/doc_00115686 to /storage/kkm_last_doc_name [15:14:18]save OK [15:14:18]Clear old archive folders... [15:14:18]ProcessDocumentItem done err = 0, tmpTLVsize=486 [15:14:18]tlvbuf is 017AABA0 [15:14:18]SAM_PROTO_ClearQueue [15:14:18]wFMCommunicate request_size=4 [15:14:18]MH_SAM_APDU [15:14:18]CAPDU: 80 09 00 00 [15:14:18]Write to MH i2c: E2 08 00 29 11 80 09 00 00 00 00 00 00 AC [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:18]Read from MH i2c: E2 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 29 11 00 90 00 AE [15:14:18]RAPDU: 90 00 [15:14:18]wFMCommunicate OK [15:14:18]SAM_PROTO_ClearQueue done [15:14:18]KKMCreateOFDPacket [15:14:18]OFDProtocolAddRootSTLVToBuf [15:14:18]FM_MakeSignedData [15:14:18]FM_MakeSignedData [15:14:18]SAM_PROTO_SignData [15:14:18]wFMCommunicate request_size=4 [15:14:18]MH_SAM_APDU [15:14:18]CAPDU: 80 0D 01 02 [15:14:18]Write to MH i2c: E2 08 00 2A 11 80 0D 01 02 00 00 00 00 B4 [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:18]Read from MH i2c: E2 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 2A 11 00 90 00 AF [15:14:18]RAPDU: 90 00 [15:14:18]wFMCommunicate OK [15:14:18]wFMCommunicate request_size=255 [15:14:18]MH_SAM_APDU [15:14:18]CAPDU: 80 0D 02 02 FA 03 00 E6 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 [15:14:18]Write to MH i2c: E2 02 01 2B 11 80 0D 02 02 FA 00 03 00 E6 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 00 00 66 [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:18]Read from MH i2c: E2 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 2B 11 00 90 00 B0 [15:14:18]RAPDU: 90 00 [15:14:18]wFMCommunicate OK [15:14:18]wFMCommunicate request_size=245 [15:14:18]MH_SAM_APDU [15:14:18]CAPDU: 80 0D 02 02 F0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 11 00 00 00 00 07 04 06 00 54 A1 00 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 C9 85 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E6 C3 01 00 35 04 06 00 62 8C 50 6F 92 68 [15:14:18]Write to MH i2c: E2 F8 00 2C 11 80 0D 02 02 F0 00 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 11 00 00 00 00 07 04 06 00 54 A1 00 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 C9 85 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E6 C3 01 00 35 04 06 00 62 8C 50 6F 92 68 00 00 BA [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:19]Read from MH i2c: E2 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 03 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 03 00 2C 11 00 90 00 B1 [15:14:19]RAPDU: 90 00 [15:14:19]wFMCommunicate OK [15:14:19]wFMCommunicate request_size=4 [15:14:19]MH_SAM_APDU [15:14:19]CAPDU: 80 0D 03 02 [15:14:19]Write to MH i2c: E2 08 00 2D 11 80 0D 03 02 00 00 00 00 B9 [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:19]Read from MH i2c: E2 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 0B 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 0B 00 2D 11 00 30 06 7D 0D C5 A3 A1 C1 90 00 44 [15:14:19]RAPDU: 30 06 7D 0D C5 A3 A1 C1 90 00 [15:14:19]wFMCommunicate OK [15:14:19]SAM_PROTO_SignData done [15:14:19]FM_MakeSignedData done [15:14:19]CreateOFDProtocolMessage [15:14:19]wFMCommunicate request_size=4 [15:14:19]MH_SAM_APDU [15:14:19]CAPDU: 80 11 00 00 [15:14:19]Write to MH i2c: E2 08 00 2E 11 80 11 00 00 00 00 00 00 B9 [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:19]Read from MH i2c: E2 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 17 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 17 00 2E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 07 [15:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:14:19]wFMCommunicate OK [15:14:19]CreateOFDProtocolMessage done [15:14:19]OFDSenderStorePacket 115686 [15:14:19]StoreOFDPacket docnum=115686 [15:14:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 FA 01 00 00 95 ED F2 01 BC 94 5A 03 01 00 03 00 E6 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 11 00 00 00 00 07 04 06 00 54 A1 00 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 C9 85 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E6 C3 01 00 35 04 06 00 62 8C 50 6F 92 68 30 06 7D 0D C5 A3 A1 C1 [15:14:19]CheckFolder [15:14:19]dirname=/storage/ofd_packets [15:14:19]CheckFolder done [15:14:19]ProducePacketName [15:14:19]name=ofd_packets/00115686 [15:14:19]NVStorageSaveData ofd_packets/00115686 [15:14:19]File name is /storage/ofd_packets/00115686 [15:14:19]Write 536 bytes [15:14:19]NVStorageSaveData done [15:14:19]OFDSenderStorePacket done [15:14:19]KKMCreateOFDPacket done [15:14:19]NVStorageSaveData kkm_last_timestamp [15:14:19]File name is /storage/kkm_last_timestamp [15:14:19]Write 4 bytes [15:14:19]NVStorageSaveData done [15:14:19]ExternCall_PrintAddStr [15:14:19]wPrintStart [15:14:19]Write to MH i2c: 01 00 00 2F 11 40 [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 07 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 07 00 2F 11 00 00 00 00 00 FF 0F 55 [15:14:19]RasterBufferAndPrint [15:14:19]line Счет N : (3)344037 [15:14:19]line ИНН: 02508201610067 [15:14:19]line Контрольно-Кассовый Чек [15:14:19]line ПРОДАЖА [15:14:19]line Товар: 90162602 [15:14:19]line Энерг напиток Red bull 0,25л [15:14:19]line 1.000 * 185.00 [15:14:19]line = 185.00 [15:14:19]line НДС 12% НСП 1% [15:14:19]line > о реализуемом товаре [15:14:19]line Товар: 5449000005489 [15:14:19]line Вода Бонаква 1л б/г [15:14:19]line 2.000 * 42.00 [15:14:19]line = 84.00 [15:14:19]line НДС 12% НСП 1% [15:14:19]line > о реализуемом товаре [15:14:19]line Товар: 48747066 [15:14:19]line Сигареты Winston True Silver [15:14:19]line 1.000 * 144.00 [15:14:19]line = 144.00 [15:14:19]line НДС 12% НСП 1% [15:14:19]line > о реализуемом товаре [15:14:19]line ИТОГО: 413.00 [15:14:19]line НСП 1% : 3.65 [15:14:19]line НДС 12% : 43.86 [15:14:19]line Наличными: 413.00 [15:14:19]line Безнал.: 0.00 [15:14:19]line Место: АЗС № 90 "Партнер Нефть" [15:14:19]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:14:19]line СНО: Общий режим [15:14:19]line Чек 169 23.09.2024 15:14 [15:14:19]line Смена: 472 ФФД: 1.0 [15:14:19]line ЗНМ: 0300000120 [15:14:19]line РНМ: 0000000000091831 [15:14:19]line Версия ККМ: 001 [15:14:19]line ФМ: 0000000000871830 [15:14:19]line ФД: 115686 [15:14:19]line ФПД: 108354784432744 [15:14:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T151417&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115686&fm=108354784432744&tin=02508201610067®Number=0000000000091831&sum=41300 [15:14:19]line 0 [15:14:19]written 0, free lines is 4095 [15:14:19]OFD Sender: Processing packet 115686 [packets to send 482, broken 481] [15:14:19]ProducePacketName [15:14:19]name=ofd_packets/00115686 [15:14:19]OFD Sender: To server: pG, [15:14:19]CommunicateWithHost lk.salyk.kg:30040 [15:14:19]ConnectInit lk.salyk.kg [15:14:19]Connected sock=10 [15:14: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 38 33 30 FA 01 00 00 95 ED F2 01 BC 94 5A 03 01 00 03 00 E6 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 11 00 00 00 00 07 04 06 00 54 A1 00 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 C9 85 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E6 C3 01 00 35 04 06 00 62 8C 50 6F 92 68 30 06 7D 0D C5 A3 A1 C1 [15:14:19]Write to MH i2c: 01 00 00 62 11 73 [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 07 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 07 00 62 11 00 00 00 00 00 79 0B FE [15:14:19]RasterBufferAndPrint [15:14:19]line [15:14:19]line [15:14:19]line [15:14:19]line [15:14:19]line [15:14:19]written 0, free lines is 2941 [15:14:19]MH_Cut [15:14:19]Write to MH i2c: D1 01 00 69 11 01 4C [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: D1 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: D1 01 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: D1 01 00 69 11 00 4B [15:14:19]Write to MH i2c: 01 00 00 6A 11 7B [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 80 3D 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 38 33 30 10 04 04 00 E6 C3 01 00 F4 03 04 00 0C 2B F1 66 B6 04 01 00 00 2D 09 E6 B3 35 2E A9 A0 [15:14:20]CommunicateWithHost err = 0 [15:14:20]CheckOFDResponse [15:14:20]1017 (14) - 77093643461234 [15:14:20]1041 (16) - 0000000000871830 [15:14:20]1040 (4) - 115686 [15:14:20]1012 (4) - 23.09.2024 08:47 [15:14:20]1206 (1) - 0 [15:14:20]OFD Sender: Remove packet 115686 [15:14:20]ProducePacketName [15:14:20]name=ofd_packets/00115686 [15:14:20]NVStorageDeleteData [15:14:20]OFD Sender: No OFD packet to send [15:14:21]*** Cut start [15:14:21]*** Partial cut [15:14:21]*** CUTSNS_PIN = 1 [15:14:21]*** CUTSNS_PIN = 0 [15:14:21]*** Brake cut motor [15:14:21]Read from MH i2c: 01 [15:14:21]MH_I2C_Read... [15:14:21]*** Stop cut motor [15:14:21]*** Cut end [15:14:21]Read from MH i2c: 01 07 00 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: 01 07 00 6A 11 00 00 00 00 00 FF 0F 90 [15:14:21]process_action close_receipt done [15:14:21]requested_data is exist [15:14:21]produce_requested_data [15:14:21]requested_item fm.sn is exist - process it [15:14:21]wFMCommunicate request_size=4 [15:14:21]MH_SAM_APDU [15:14:21]CAPDU: 80 11 00 00 [15:14:21]Write to MH i2c: E2 08 00 6B 11 80 11 00 00 00 00 00 00 F6 [15:14:22]Write i2c OK [15:14:22]MH_I2C_Read... [15:14:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:22]Read from MH i2c: E2 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 17 00 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 17 00 6B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 44 [15:14:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:14:22]wFMCommunicate OK [15:14:22]requested_item fd.num is exist - process it [15:14:22]SAM_PROTO_GetFieldsCounters [15:14:22]wFMCommunicate request_size=4 [15:14:22]MH_SAM_APDU [15:14:22]CAPDU: 80 13 00 00 [15:14:22]Write to MH i2c: E2 08 00 6C 11 80 13 00 00 00 00 00 00 F9 [15:14:22]Write i2c OK [15:14:22]MH_I2C_Read... [15:14:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:22]Read from MH i2c: E2 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 62 00 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 62 00 6C 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E6 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [15:14: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E6 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:22]wFMCommunicate OK [15:14:22]SAM_PROTO_GetFieldsCounters done [15:14:22]requested_item shift.num is exist - process it [15:14:22]requested_item shift.opened is exist - process it [15:14:22]req_shift_opened [15:14:22]FM_GetShiftState [15:14:22]SAM_PROTO_GetShiftState [15:14:22]wFMCommunicate request_size=4 [15:14:22]MH_SAM_APDU [15:14:22]CAPDU: 80 13 01 00 [15:14:22]Write to MH i2c: E2 08 00 6D 11 80 13 01 00 00 00 00 00 FB [15:14:22]Write i2c OK [15:14:22]MH_I2C_Read... [15:14:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:22]Read from MH i2c: E2 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 0E 00 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 0E 00 6D 11 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 3C [15:14:22]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:14:22]wFMCommunicate OK [15:14:22]SAM_PROTO_GetShiftState done [15:14:22]FM_GetShiftState done [15:14:22]req_shift_opened done [15:14:22]requested_item shift.open_date is exist - process it [15:14:22]req_shift_open_date [15:14:22]req_shift_open_date done [15:14:22]produce_requested_data done [15:14:22]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115686,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [15:14:22]process_action_free close_receipt [15:14:22]json_value_free [15:14:22]json_value_free done [15:14:22]process_json_proto returns [15:14:22]Send response to host [15:14:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115686,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [15:14:22]free response buf [15:14:22]execute_script done [15:14:22]execute_script returns [15:14:22]free content buf [15:14:22]Sock 7.Close socket [15:14:22]Sock 7.Thread stoped [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:28]accept exits with 9 [15:15:28]New connection [15:15:28]New thread 3066879332 created [15:15:28]Thread 3067022692 joined [15:15:28]Waiting for new connection... [15:15:28] Sock 9.Parse request [15:15:28]Sock 9.Check first char [15:15:28]Sock 9.First char is OK [15:15:28]request: POST /json_proto HTTP/1.0 [15:15:28]Method: POST [15:15:28]URL: /json_proto [15:15:28]Method is POST - this is cgi request [15:15:28]url: /json_proto [15:15:28]query_string will be loaded in cgi processing [15:15:28]execute_cgi json_proto POST (null) [15:15:28]execute_cgi path=json_proto method=POST [15:15:28]POST find Content-Length [15:15:28]Host: 172.17.41.136:8080 [15:15:28]Content-Length: 1661 [15:15:28]Content-Type: application/json [15:15:28] [15:15:28]POST finish read [15:15:28]Found Content-Length = 1661 [15:15:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344038", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 3.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 411.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:28]execute_script... [15:15:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344038", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 3.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 411.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:28]POST & json_proto [15:15:28]process_json_proto [15:15:28]json parsed OK: [15:15:28]protocol is kg_v1.0 [15:15:28]action value=close_receipt [15:15:28]process_action close_receipt [15:15:28]cmd_close_receipt [15:15:28]MH_GetDate [15:15:28]Write to MH i2c: F0 00 00 6E 11 6E [15:15:28]Write i2c OK [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: F0 [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: F0 09 00 [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: F0 09 00 6E 11 00 11 86 F1 66 1B D0 5A 64 0E [15:15:28]GetLastDocTimeStamp 1727104457 [15:15:28]current date 1727104529 [15:15:28]FM_GetShiftState [15:15:28]SAM_PROTO_GetShiftState [15:15:28]wFMCommunicate request_size=4 [15:15:28]MH_SAM_APDU [15:15:28]CAPDU: 80 13 01 00 [15:15:28]Write to MH i2c: E2 08 00 6F 11 80 13 01 00 00 00 00 00 FD [15:15:28]Write i2c OK [15:15:28]MH_I2C_Read... [15:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:28]Read from MH i2c: E2 [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: E2 0E 00 [15:15:28]MH_I2C_Read... [15:15:28]Read from MH i2c: E2 0E 00 6F 11 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 3E [15:15:28]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:15:28]wFMCommunicate OK [15:15:28]SAM_PROTO_GetShiftState done [15:15:28]FM_GetShiftState done [15:15:28]opened in 1727052070 [15:15:28]opened+sec_in_day 1727138470 [15:15:28]quantity*price = 7500 [15:15:28]sum+1 = 7501 [15:15:28]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032800010 Сочник DC творог 75 г 3.000 * 30.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 156.00 = 156.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 411.00 НСП 1% : 3.63 НДС 12% : 43.65 Наличными: 411.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 170 23.09.2024 15:15 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115687 ФПД: 111246391236850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T151529&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115687&fm=111246391236850&tin=02508201610067®Number=0000000000091831&sum=41100 0 [15:15:30]StoreToDocumentArchive [15:15:30]shift 472 fd 115687 [15:15:30]save to /storage/0472/doc_00115687 [15:15:30]save last doc name /storage/0472/doc_00115687 to /storage/kkm_last_doc_name [15:15:30]save OK [15:15:30]Clear old archive folders... [15:15:30]ProcessDocumentItem done err = 0, tmpTLVsize=697 [15:15:30]tlvbuf is 018115E0 [15:15:30]SAM_PROTO_ClearQueue [15:15:30]wFMCommunicate request_size=4 [15:15:30]MH_SAM_APDU [15:15:30]CAPDU: 80 09 00 00 [15:15:30]Write to MH i2c: E2 08 00 7C 11 80 09 00 00 00 00 00 00 FF [15:15:30]Write i2c OK [15:15:30]MH_I2C_Read... [15:15:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:30]Read from MH i2c: E2 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 7C 11 00 90 00 01 [15:15:30]RAPDU: 90 00 [15:15:30]wFMCommunicate OK [15:15:30]SAM_PROTO_ClearQueue done [15:15:30]KKMCreateOFDPacket [15:15:30]OFDProtocolAddRootSTLVToBuf [15:15:30]FM_MakeSignedData [15:15:30]FM_MakeSignedData [15:15:30]SAM_PROTO_SignData [15:15:30]wFMCommunicate request_size=4 [15:15:30]MH_SAM_APDU [15:15:30]CAPDU: 80 0D 01 02 [15:15:30]Write to MH i2c: E2 08 00 7D 11 80 0D 01 02 00 00 00 00 07 [15:15:30]Write i2c OK [15:15:30]MH_I2C_Read... [15:15:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:30]Read from MH i2c: E2 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 7D 11 00 90 00 02 [15:15:30]RAPDU: 90 00 [15:15:30]wFMCommunicate OK [15:15:30]wFMCommunicate request_size=255 [15:15:30]MH_SAM_APDU [15:15:30]CAPDU: 80 0D 02 02 FA 03 00 B9 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 [15:15:30]Write to MH i2c: E2 02 01 7E 11 80 0D 02 02 FA 00 03 00 B9 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 00 00 6F [15:15:30]Write i2c OK [15:15:30]MH_I2C_Read... [15:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:30]Read from MH i2c: E2 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 7E 11 00 90 00 03 [15:15:30]RAPDU: 90 00 [15:15:30]wFMCommunicate OK [15:15:30]wFMCommunicate request_size=255 [15:15:30]MH_SAM_APDU [15:15:30]CAPDU: 80 0D 02 02 FA 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 [15:15:30]Write to MH i2c: E2 02 01 7F 11 80 0D 02 02 FA 00 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 00 80 [15:15:30]Write i2c OK [15:15:30]MH_I2C_Read... [15:15:30]OFD Sender: No OFD packet to send [15:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:30]Read from MH i2c: E2 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 7F 11 00 90 00 04 [15:15:30]RAPDU: 90 00 [15:15:30]wFMCommunicate OK [15:15:30]wFMCommunicate request_size=206 [15:15:30]MH_SAM_APDU [15:15:30]CAPDU: 80 0D 02 02 C9 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 11 00 00 00 00 07 04 06 00 8C A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 11 86 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E7 C3 01 00 35 04 06 00 65 2D 91 A1 D8 F2 [15:15:30]Write to MH i2c: E2 D1 00 80 11 80 0D 02 02 C9 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 11 00 00 00 00 07 04 06 00 8C A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 11 86 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E7 C3 01 00 35 04 06 00 65 2D 91 A1 D8 F2 00 00 CD [15:15:30]Write i2c OK [15:15:30]MH_I2C_Read... [15:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:31]Read from MH i2c: E2 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 03 00 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 03 00 80 11 00 90 00 05 [15:15:31]RAPDU: 90 00 [15:15:31]wFMCommunicate OK [15:15:31]wFMCommunicate request_size=4 [15:15:31]MH_SAM_APDU [15:15:31]CAPDU: 80 0D 03 02 [15:15:31]Write to MH i2c: E2 08 00 81 11 80 0D 03 02 00 00 00 00 0D [15:15:31]Write i2c OK [15:15:31]MH_I2C_Read... [15:15:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:31]Read from MH i2c: E2 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 0B 00 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 0B 00 81 11 00 C7 C2 47 70 13 76 20 1A 90 00 11 [15:15:31]RAPDU: C7 C2 47 70 13 76 20 1A 90 00 [15:15:31]wFMCommunicate OK [15:15:31]SAM_PROTO_SignData done [15:15:31]FM_MakeSignedData done [15:15:31]CreateOFDProtocolMessage [15:15:31]wFMCommunicate request_size=4 [15:15:31]MH_SAM_APDU [15:15:31]CAPDU: 80 11 00 00 [15:15:31]Write to MH i2c: E2 08 00 82 11 80 11 00 00 00 00 00 00 0D [15:15:31]Write i2c OK [15:15:31]MH_I2C_Read... [15:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:31]Read from MH i2c: E2 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 17 00 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 17 00 82 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5B [15:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:15:31]wFMCommunicate OK [15:15:31]CreateOFDProtocolMessage done [15:15:31]OFDSenderStorePacket 115687 [15:15:31]StoreOFDPacket docnum=115687 [15:15:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 CD 02 00 00 3D 17 C5 02 14 74 5A 03 01 00 03 00 B9 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 11 00 00 00 00 07 04 06 00 8C A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 11 86 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E7 C3 01 00 35 04 06 00 65 2D 91 A1 D8 F2 C7 C2 47 70 13 76 20 1A [15:15:31]CheckFolder [15:15:31]dirname=/storage/ofd_packets [15:15:31]CheckFolder done [15:15:31]ProducePacketName [15:15:31]name=ofd_packets/00115687 [15:15:31]NVStorageSaveData ofd_packets/00115687 [15:15:31]File name is /storage/ofd_packets/00115687 [15:15:31]Write 747 bytes [15:15:31]NVStorageSaveData done [15:15:31]OFDSenderStorePacket done [15:15:31]KKMCreateOFDPacket done [15:15:31]NVStorageSaveData kkm_last_timestamp [15:15:31]File name is /storage/kkm_last_timestamp [15:15:31]Write 4 bytes [15:15:31]NVStorageSaveData done [15:15:31]ExternCall_PrintAddStr [15:15:31]wPrintStart [15:15:31]Write to MH i2c: 01 00 00 83 11 94 [15:15:31]Write i2c OK [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: 01 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: 01 07 00 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: 01 07 00 83 11 00 00 00 00 00 FF 0F A9 [15:15:31]RasterBufferAndPrint [15:15:31]line Счет N : (3)344038 [15:15:31]line ИНН: 02508201610067 [15:15:31]line Контрольно-Кассовый Чек [15:15:31]line ПРОДАЖА [15:15:31]line Товар: 5449000189394 [15:15:31]line Холодный чай Fuse ягода 0,5л [15:15:31]line 1.000 * 75.00 [15:15:31]line = 75.00 [15:15:31]line НДС 12% НСП 1% [15:15:31]line > о реализуемом товаре [15:15:31]line Товар: 2000032800010 [15:15:31]line Сочник DC творог 75 г [15:15:31]line 3.000 * 30.00 [15:15:31]line = 90.00 [15:15:31]line НДС 12% НСП 1% [15:15:31]line > о реализуемом товаре [15:15:31]line Товар: 4700000160211 [15:15:31]line Вода Легенда 0,5л [15:15:31]line 1.000 * 40.00 [15:15:31]line = 40.00 [15:15:31]line НДС 12% НСП 1% [15:15:31]line > о реализуемом товаре [15:15:31]line Товар: 4700000160358 [15:15:31]line Вода Легенда 1л [15:15:31]line 1.000 * 50.00 [15:15:31]line = 50.00 [15:15:31]line НДС 12% НСП 1% [15:15:31]line > о реализуемом товаре [15:15:31]line Товар: 48741958 [15:15:31]line Сигареты Parliament Aqua Blue [15:15:31]line 1.000 * 156.00 [15:15:31]line = 156.00 [15:15:31]line НДС 12% НСП 1% [15:15:31]line > о реализуемом товаре [15:15:31]line ИТОГО: 411.00 [15:15:31]line НСП 1% : 3.63 [15:15:31]line НДС 12% : 43.65 [15:15:31]line Наличными: 411.00 [15:15:31]line Безнал.: 0.00 [15:15:31]line Место: АЗС № 90 "Партнер Нефть" [15:15:31]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:15:31]line СНО: Общий режим [15:15:31]line Чек 170 23.09.2024 15:15 [15:15:31]line Смена: 472 ФФД: 1.0 [15:15:31]line ЗНМ: 0300000120 [15:15:31]line РНМ: 0000000000091831 [15:15:31]line Версия ККМ: 001 [15:15:31]line ФМ: 0000000000871830 [15:15:31]line ФД: 115687 [15:15:31]line ФПД: 111246391236850 [15:15:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T151529&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115687&fm=111246391236850&tin=02508201610067®Number=0000000000091831&sum=41100 [15:15:31]line 0 [15:15:31]written 0, free lines is 4095 [15:15:31]OFD Sender: Processing packet 115687 [packets to send 482, broken 481] [15:15:31]ProducePacketName [15:15:31]name=ofd_packets/00115687 [15:15:31]OFD Sender: To server: pG, [15:15:31]CommunicateWithHost lk.salyk.kg:30040 [15:15:31]ConnectInit lk.salyk.kg [15:15:31]Connected sock=10 [15:15: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 38 33 30 CD 02 00 00 3D 17 C5 02 14 74 5A 03 01 00 03 00 B9 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 11 00 00 00 00 07 04 06 00 8C A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 11 86 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E7 C3 01 00 35 04 06 00 65 2D 91 A1 D8 F2 C7 C2 47 70 13 76 20 1A [15:15:32]Write to MH i2c: 01 00 00 C3 11 D4 [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: 01 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: 01 07 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: 01 07 00 C3 11 00 00 00 00 00 64 0A 49 [15:15:32]RasterBufferAndPrint [15:15:32]line [15:15:32]line [15:15:32]line [15:15:32]line [15:15:32]line [15:15:32]written 0, free lines is 2668 [15:15:32]MH_Cut [15:15:32]Write to MH i2c: D1 01 00 CA 11 01 AD [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: D1 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: D1 01 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: D1 01 00 CA 11 00 AC [15:15:32]Write to MH i2c: 01 00 00 CB 11 DC [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B6 C4 47 00 3D 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E7 C3 01 00 F4 03 04 00 54 2B F1 66 B6 04 01 00 00 87 10 B4 C4 00 E4 C7 F7 [15:15:32]CommunicateWithHost err = 0 [15:15:32]CheckOFDResponse [15:15:32]1017 (14) - 77093643461234 [15:15:32]1041 (16) - 0000000000871830 [15:15:32]1040 (4) - 115687 [15:15:32]1012 (4) - 23.09.2024 08:48 [15:15:32]1206 (1) - 0 [15:15:32]OFD Sender: Remove packet 115687 [15:15:32]ProducePacketName [15:15:32]name=ofd_packets/00115687 [15:15:32]NVStorageDeleteData [15:15:32]OFD Sender: No OFD packet to send [15:15:34]*** Cut start [15:15:34]*** Partial cut [15:15:34]*** CUTSNS_PIN = 1 [15:15:34]*** CUTSNS_PIN = 0 [15:15:34]*** Brake cut motor [15:15:34]Read from MH i2c: 01 [15:15:34]MH_I2C_Read... [15:15:34]*** Stop cut motor [15:15:34]*** Cut end [15:15:34]Read from MH i2c: 01 07 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: 01 07 00 CB 11 00 00 00 00 00 FF 0F F1 [15:15:34]process_action close_receipt done [15:15:34]requested_data is exist [15:15:34]produce_requested_data [15:15:34]requested_item fm.sn is exist - process it [15:15:34]wFMCommunicate request_size=4 [15:15:34]MH_SAM_APDU [15:15:34]CAPDU: 80 11 00 00 [15:15:34]Write to MH i2c: E2 08 00 CC 11 80 11 00 00 00 00 00 00 57 [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:34]Read from MH i2c: E2 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 17 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 17 00 CC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A5 [15:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:15:34]wFMCommunicate OK [15:15:34]requested_item fd.num is exist - process it [15:15:34]SAM_PROTO_GetFieldsCounters [15:15:34]wFMCommunicate request_size=4 [15:15:34]MH_SAM_APDU [15:15:34]CAPDU: 80 13 00 00 [15:15:34]Write to MH i2c: E2 08 00 CD 11 80 13 00 00 00 00 00 00 5A [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:34]Read from MH i2c: E2 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 62 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 62 00 CD 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E7 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [15:15: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E7 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:34]wFMCommunicate OK [15:15:34]SAM_PROTO_GetFieldsCounters done [15:15:34]requested_item shift.num is exist - process it [15:15:34]requested_item shift.opened is exist - process it [15:15:34]req_shift_opened [15:15:34]FM_GetShiftState [15:15:34]SAM_PROTO_GetShiftState [15:15:34]wFMCommunicate request_size=4 [15:15:34]MH_SAM_APDU [15:15:34]CAPDU: 80 13 01 00 [15:15:34]Write to MH i2c: E2 08 00 CE 11 80 13 01 00 00 00 00 00 5C [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:34]Read from MH i2c: E2 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 0E 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 0E 00 CE 11 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 9D [15:15:34]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:15:34]wFMCommunicate OK [15:15:34]SAM_PROTO_GetShiftState done [15:15:34]FM_GetShiftState done [15:15:34]req_shift_opened done [15:15:34]requested_item shift.open_date is exist - process it [15:15:34]req_shift_open_date [15:15:34]req_shift_open_date done [15:15:34]produce_requested_data done [15:15:34]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115687,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [15:15:34]process_action_free close_receipt [15:15:34]json_value_free [15:15:34]json_value_free done [15:15:34]process_json_proto returns [15:15:34]Send response to host [15:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115687,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [15:15:34]free response buf [15:15:34]execute_script done [15:15:34]execute_script returns [15:15:34]free content buf [15:15:34]Sock 9.Close socket [15:15:34]Sock 9.Thread stoped [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:27]OFD Sender: No OFD packet to send [15:16:32]OFD Sender: No OFD packet to send [15:16:37]OFD Sender: No OFD packet to send [15:16:42]OFD Sender: No OFD packet to send [15:16:47]OFD Sender: No OFD packet to send [15:16:48]accept exits with 7 [15:16:48]New connection [15:16:48]New thread 3067022692 created [15:16:48]Thread 3066879332 joined [15:16:48]Waiting for new connection... [15:16:48] Sock 7.Parse request [15:16:48]Sock 7.Check first char [15:16:48]Sock 7.First char is OK [15:16:48]request: POST /json_proto HTTP/1.0 [15:16:48]Method: POST [15:16:48]URL: /json_proto [15:16:48]Method is POST - this is cgi request [15:16:48]url: /json_proto [15:16:48]query_string will be loaded in cgi processing [15:16:48]execute_cgi json_proto POST (null) [15:16:48]execute_cgi path=json_proto method=POST [15:16:48]POST find Content-Length [15:16:48]Host: 172.17.41.136:8080 [15:16:48]Content-Length: 860 [15:16:48]Content-Type: application/json [15:16:48] [15:16:48]POST finish read [15:16:48]Found Content-Length = 860 [15:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344039", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 293.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:48]execute_script... [15:16:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344039", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 293.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:48]POST & json_proto [15:16:48]process_json_proto [15:16:48]json parsed OK: [15:16:48]protocol is kg_v1.0 [15:16:48]action value=close_receipt [15:16:48]process_action close_receipt [15:16:48]cmd_close_receipt [15:16:48]MH_GetDate [15:16:48]Write to MH i2c: F0 00 00 CF 11 CF [15:16:48]Write i2c OK [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: F0 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: F0 09 00 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: F0 09 00 CF 11 00 61 86 F1 66 1B D0 5A 64 BF [15:16:48]GetLastDocTimeStamp 1727104529 [15:16:48]current date 1727104609 [15:16:48]FM_GetShiftState [15:16:48]SAM_PROTO_GetShiftState [15:16:48]wFMCommunicate request_size=4 [15:16:48]MH_SAM_APDU [15:16:48]CAPDU: 80 13 01 00 [15:16:48]Write to MH i2c: E2 08 00 D0 11 80 13 01 00 00 00 00 00 5E [15:16:48]Write i2c OK [15:16:48]MH_I2C_Read... [15:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:48]Read from MH i2c: E2 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 0E 00 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: E2 0E 00 D0 11 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 9F [15:16:48]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:16:48]wFMCommunicate OK [15:16:48]SAM_PROTO_GetShiftState done [15:16:48]FM_GetShiftState done [15:16:48]opened in 1727052070 [15:16:48]opened+sec_in_day 1727138470 [15:16:48]quantity*price = 14400 [15:16:48]sum+1 = 14401 [15:16:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48744119 Сигареты Winston Xstyle Dual 1.000 * 149.00 = 149.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 293.00 НСП 1% : 2.59 НДС 12% : 31.11 Наличными: 293.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 171 23.09.2024 15:16 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115688 ФПД: 33078207644468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T151649&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115688&fm=33078207644468&tin=02508201610067®Number=0000000000091831&sum=29300 0 [15:16:49]StoreToDocumentArchive [15:16:49]shift 472 fd 115688 [15:16:49]save to /storage/0472/doc_00115688 [15:16:49]save last doc name /storage/0472/doc_00115688 to /storage/kkm_last_doc_name [15:16:49]save OK [15:16:49]Clear old archive folders... [15:16:49]ProcessDocumentItem done err = 0, tmpTLVsize=378 [15:16:49]tlvbuf is 01829C30 [15:16:49]SAM_PROTO_ClearQueue [15:16:49]wFMCommunicate request_size=4 [15:16:49]MH_SAM_APDU [15:16:49]CAPDU: 80 09 00 00 [15:16:49]Write to MH i2c: E2 08 00 DD 11 80 09 00 00 00 00 00 00 60 [15:16:49]Write i2c OK [15:16:49]MH_I2C_Read... [15:16:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:49]Read from MH i2c: E2 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 03 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 03 00 DD 11 00 90 00 62 [15:16:50]RAPDU: 90 00 [15:16:50]wFMCommunicate OK [15:16:50]SAM_PROTO_ClearQueue done [15:16:50]KKMCreateOFDPacket [15:16:50]OFDProtocolAddRootSTLVToBuf [15:16:50]FM_MakeSignedData [15:16:50]FM_MakeSignedData [15:16:50]SAM_PROTO_SignData [15:16:50]wFMCommunicate request_size=4 [15:16:50]MH_SAM_APDU [15:16:50]CAPDU: 80 0D 01 02 [15:16:50]Write to MH i2c: E2 08 00 DE 11 80 0D 01 02 00 00 00 00 68 [15:16:50]Write i2c OK [15:16:50]MH_I2C_Read... [15:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:50]Read from MH i2c: E2 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 03 00 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 03 00 DE 11 00 90 00 63 [15:16:50]RAPDU: 90 00 [15:16:50]wFMCommunicate OK [15:16:50]wFMCommunicate request_size=255 [15:16:50]MH_SAM_APDU [15:16:50]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 01 00 00 00 00 [15:16:50]Write to MH i2c: E2 02 01 DF 11 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 01 00 00 00 00 00 00 67 [15:16:50]Write i2c OK [15:16:50]MH_I2C_Read... [15:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:50]Read from MH i2c: E2 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 03 00 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 03 00 DF 11 00 90 00 64 [15:16:50]RAPDU: 90 00 [15:16:50]wFMCommunicate OK [15:16:50]wFMCommunicate request_size=137 [15:16:50]MH_SAM_APDU [15:16:50]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 0C 00 00 00 00 07 04 06 00 74 72 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 61 86 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E8 C3 01 00 35 04 06 00 1E 15 9E D1 03 34 [15:16:50]Write to MH i2c: E2 8C 00 E0 11 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 0C 00 00 00 00 07 04 06 00 74 72 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 61 86 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E8 C3 01 00 35 04 06 00 1E 15 9E D1 03 34 00 00 F8 [15:16:50]Write i2c OK [15:16:50]MH_I2C_Read... [15:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:50]Read from MH i2c: E2 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 03 00 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 03 00 E0 11 00 90 00 65 [15:16:50]RAPDU: 90 00 [15:16:50]wFMCommunicate OK [15:16:50]wFMCommunicate request_size=4 [15:16:50]MH_SAM_APDU [15:16:50]CAPDU: 80 0D 03 02 [15:16:50]Write to MH i2c: E2 08 00 E1 11 80 0D 03 02 00 00 00 00 6D [15:16:50]Write i2c OK [15:16:50]MH_I2C_Read... [15:16:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:50]Read from MH i2c: E2 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 0B 00 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 0B 00 E1 11 00 DF C4 0C 61 EF 93 20 27 90 00 47 [15:16:50]RAPDU: DF C4 0C 61 EF 93 20 27 90 00 [15:16:50]wFMCommunicate OK [15:16:50]SAM_PROTO_SignData done [15:16:50]FM_MakeSignedData done [15:16:50]CreateOFDProtocolMessage [15:16:50]wFMCommunicate request_size=4 [15:16:50]MH_SAM_APDU [15:16:50]CAPDU: 80 11 00 00 [15:16:50]Write to MH i2c: E2 08 00 E2 11 80 11 00 00 00 00 00 00 6D [15:16:50]Write i2c OK [15:16:50]MH_I2C_Read... [15:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:50]Read from MH i2c: E2 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 17 00 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 17 00 E2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BB [15:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:16:50]wFMCommunicate OK [15:16:50]CreateOFDProtocolMessage done [15:16:50]OFDSenderStorePacket 115688 [15:16:50]StoreOFDPacket docnum=115688 [15:16:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8E 01 00 00 94 01 86 01 FA 54 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 0C 00 00 00 00 07 04 06 00 74 72 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 61 86 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E8 C3 01 00 35 04 06 00 1E 15 9E D1 03 34 DF C4 0C 61 EF 93 20 27 [15:16:50]CheckFolder [15:16:50]dirname=/storage/ofd_packets [15:16:50]CheckFolder done [15:16:50]ProducePacketName [15:16:50]name=ofd_packets/00115688 [15:16:50]NVStorageSaveData ofd_packets/00115688 [15:16:50]File name is /storage/ofd_packets/00115688 [15:16:50]Write 428 bytes [15:16:50]NVStorageSaveData done [15:16:50]OFDSenderStorePacket done [15:16:50]KKMCreateOFDPacket done [15:16:50]NVStorageSaveData kkm_last_timestamp [15:16:50]File name is /storage/kkm_last_timestamp [15:16:50]Write 4 bytes [15:16:50]NVStorageSaveData done [15:16:50]ExternCall_PrintAddStr [15:16:50]wPrintStart [15:16:50]Write to MH i2c: 01 00 00 E3 11 F4 [15:16:50]Write i2c OK [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: 01 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: 01 07 00 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: 01 07 00 E3 11 00 00 00 00 00 FF 0F 09 [15:16:50]RasterBufferAndPrint [15:16:50]line Счет N : (3)344039 [15:16:50]line ИНН: 02508201610067 [15:16:50]line Контрольно-Кассовый Чек [15:16:50]line ПРОДАЖА [15:16:50]line Товар: 48743587 [15:16:50]line Сигареты Winston XStyle Silver [15:16:50]line 1.000 * 144.00 [15:16:50]line = 144.00 [15:16:50]line НДС 12% НСП 1% [15:16:50]line > о реализуемом товаре [15:16:50]line Товар: 48744119 [15:16:50]line Сигареты Winston Xstyle Dual [15:16:50]line 1.000 * 149.00 [15:16:50]line = 149.00 [15:16:50]line НДС 12% НСП 1% [15:16:50]line > о реализуемом товаре [15:16:50]line ИТОГО: 293.00 [15:16:50]line НСП 1% : 2.59 [15:16:50]line НДС 12% : 31.11 [15:16:50]line Наличными: 293.00 [15:16:50]line Безнал.: 0.00 [15:16:50]line Место: АЗС № 90 "Партнер Нефть" [15:16:50]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:16:50]line СНО: Общий режим [15:16:50]line Чек 171 23.09.2024 15:16 [15:16:50]line Смена: 472 ФФД: 1.0 [15:16:50]line ЗНМ: 0300000120 [15:16:50]line РНМ: 0000000000091831 [15:16:50]line Версия ККМ: 001 [15:16:50]line ФМ: 0000000000871830 [15:16:50]line ФД: 115688 [15:16:50]line ФПД: 33078207644468 [15:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T151649&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115688&fm=33078207644468&tin=02508201610067®Number=0000000000091831&sum=29300 [15:16:50]line 0 [15:16:50]OFD Sender: Processing packet 115688 [packets to send 482, broken 481] [15:16:50]ProducePacketName [15:16:50]name=ofd_packets/00115688 [15:16:50]OFD Sender: To server: pG, [15:16:50]CommunicateWithHost lk.salyk.kg:30040 [15:16:50]ConnectInit lk.salyk.kg [15:16:50]written 0, free lines is 4095 [15:16:51]Connected sock=11 [15: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 38 33 30 8E 01 00 00 94 01 86 01 FA 54 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 0C 00 00 00 00 07 04 06 00 74 72 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 61 86 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E8 C3 01 00 35 04 06 00 1E 15 9E D1 03 34 DF C4 0C 61 EF 93 20 27 [15:16:51]Write to MH i2c: 01 00 00 11 12 23 [15:16:51]Write i2c OK [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: 01 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: 01 07 00 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: 01 07 00 11 12 00 00 00 00 00 F2 0B 27 [15:16:51]RasterBufferAndPrint [15:16:51]line [15:16:51]line [15:16:51]line [15:16:51]line [15:16:51]line [15:16:51]written 0, free lines is 3062 [15:16:51]MH_Cut [15:16:51]Write to MH i2c: D1 01 00 18 12 01 FC [15:16:51]Write i2c OK [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: D1 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: D1 01 00 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: D1 01 00 18 12 00 FB [15:16:51]Write to MH i2c: 01 00 00 19 12 2B [15:16:51]Write i2c OK [15:16:51]MH_I2C_Read... [15: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 38 33 30 4F 00 00 00 49 19 47 00 94 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 38 33 30 10 04 04 00 E8 C3 01 00 F4 03 04 00 A4 2B F1 66 B6 04 01 00 00 25 A2 19 98 8C F4 B3 2D [15:16:51]CommunicateWithHost err = 0 [15:16:51]CheckOFDResponse [15:16:51]1017 (14) - 77093643461234 [15:16:51]1041 (16) - 0000000000871830 [15:16:51]1040 (4) - 115688 [15:16:51]1012 (4) - 23.09.2024 08:49 [15:16:51]1206 (1) - 0 [15:16:51]OFD Sender: Remove packet 115688 [15:16:51]ProducePacketName [15:16:51]name=ofd_packets/00115688 [15:16:51]NVStorageDeleteData [15:16:52]OFD Sender: No OFD packet to send [15:16:52]*** Cut start [15:16:52]*** Partial cut [15:16:52]*** CUTSNS_PIN = 1 [15:16:52]*** CUTSNS_PIN = 0 [15:16:53]*** Brake cut motor [15:16:53]Read from MH i2c: 01 [15:16:53]MH_I2C_Read... [15:16:53]*** Stop cut motor [15:16:53]*** Cut end [15:16:53]Read from MH i2c: 01 07 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: 01 07 00 19 12 00 00 00 00 00 FF 0F 40 [15:16:53]process_action close_receipt done [15:16:53]requested_data is exist [15:16:53]produce_requested_data [15:16:53]requested_item fm.sn is exist - process it [15:16:53]wFMCommunicate request_size=4 [15:16:53]MH_SAM_APDU [15:16:53]CAPDU: 80 11 00 00 [15:16:53]Write to MH i2c: E2 08 00 1A 12 80 11 00 00 00 00 00 00 A6 [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:53]Read from MH i2c: E2 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 17 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 17 00 1A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F4 [15:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:16:53]wFMCommunicate OK [15:16:53]requested_item fd.num is exist - process it [15:16:53]SAM_PROTO_GetFieldsCounters [15:16:53]wFMCommunicate request_size=4 [15:16:53]MH_SAM_APDU [15:16:53]CAPDU: 80 13 00 00 [15:16:53]Write to MH i2c: E2 08 00 1B 12 80 13 00 00 00 00 00 00 A9 [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:53]Read from MH i2c: E2 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 62 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 62 00 1B 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E8 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [15: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E8 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:53]wFMCommunicate OK [15:16:53]SAM_PROTO_GetFieldsCounters done [15:16:53]requested_item shift.num is exist - process it [15:16:53]requested_item shift.opened is exist - process it [15:16:53]req_shift_opened [15:16:53]FM_GetShiftState [15:16:53]SAM_PROTO_GetShiftState [15:16:53]wFMCommunicate request_size=4 [15:16:53]MH_SAM_APDU [15:16:53]CAPDU: 80 13 01 00 [15:16:53]Write to MH i2c: E2 08 00 1C 12 80 13 01 00 00 00 00 00 AB [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:53]Read from MH i2c: E2 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 0E 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 0E 00 1C 12 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 EC [15:16:53]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:16:53]wFMCommunicate OK [15:16:53]SAM_PROTO_GetShiftState done [15:16:53]FM_GetShiftState done [15:16:53]req_shift_opened done [15:16:53]requested_item shift.open_date is exist - process it [15:16:53]req_shift_open_date [15:16:53]req_shift_open_date done [15:16:53]produce_requested_data done [15:16:53]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115688,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [15:16:53]process_action_free close_receipt [15:16:53]json_value_free [15:16:53]json_value_free done [15:16:53]process_json_proto returns [15:16:53]Send response to host [15:16:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115688,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [15:16:53]free response buf [15:16:53]execute_script done [15:16:53]execute_script returns [15:16:53]free content buf [15:16:53]Sock 7.Close socket [15:16:53]Sock 7.Thread stoped [15:16:57]OFD Sender: No OFD packet to send [15:17:02]OFD Sender: No OFD packet to send [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:12]OFD Sender: No OFD packet to send [15:18:17]OFD Sender: No OFD packet to send [15:18:22]OFD Sender: No OFD packet to send [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:22]OFD Sender: No OFD packet to send [15:19:27]OFD Sender: No OFD packet to send [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:03]OFD Sender: No OFD packet to send [15:23:08]accept exits with 9 [15:23:08]New connection [15:23:08]New thread 3066879332 created [15:23:08]Thread 3067022692 joined [15:23:08]Waiting for new connection... [15:23:08] Sock 9.Parse request [15:23:08]Sock 9.Check first char [15:23:08]Sock 9.First char is OK [15:23:08]request: POST /json_proto HTTP/1.0 [15:23:08]Method: POST [15:23:08]URL: /json_proto [15:23:08]Method is POST - this is cgi request [15:23:08]url: /json_proto [15:23:08]query_string will be loaded in cgi processing [15:23:08]execute_cgi json_proto POST (null) [15:23:08]execute_cgi path=json_proto method=POST [15:23:08]POST find Content-Length [15:23:08]Host: 172.17.41.136:8080 [15:23:08]Content-Length: 1123 [15:23:08]Content-Type: application/json [15:23:08] [15:23:08]POST finish read [15:23:08]Found Content-Length = 1123 [15:23:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344040", "tax_sys" : 0, "items" : [ { "code": "4870001150389", "name": "\u0421\u043E\u043A DaDa 0,95\u043B \u0412\u0438\u0448\u043D\u044F", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:08]execute_script... [15:23:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344040", "tax_sys" : 0, "items" : [ { "code": "4870001150389", "name": "\u0421\u043E\u043A DaDa 0,95\u043B \u0412\u0438\u0448\u043D\u044F", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:08]POST & json_proto [15:23:08]process_json_proto [15:23:08]json parsed OK: [15:23:08]protocol is kg_v1.0 [15:23:08]action value=close_receipt [15:23:08]process_action close_receipt [15:23:08]cmd_close_receipt [15:23:08]MH_GetDate [15:23:08]Write to MH i2c: F0 00 00 1D 12 1E [15:23:08]Write i2c OK [15:23:08]MH_I2C_Read... [15:23:08]Read from MH i2c: F0 [15:23:08]MH_I2C_Read... [15:23:08]Read from MH i2c: F0 09 00 [15:23:08]MH_I2C_Read... [15:23:08]Read from MH i2c: F0 09 00 1D 12 00 DC 87 F1 66 1B D0 5A 64 8A [15:23:08]GetLastDocTimeStamp 1727104609 [15:23:08]current date 1727104988 [15:23:08]FM_GetShiftState [15:23:08]SAM_PROTO_GetShiftState [15:23:08]wFMCommunicate request_size=4 [15:23:08]MH_SAM_APDU [15:23:08]CAPDU: 80 13 01 00 [15:23:08]Write to MH i2c: E2 08 00 1E 12 80 13 01 00 00 00 00 00 AD [15:23:08]Write i2c OK [15:23:08]MH_I2C_Read... [15:23:08]OFD Sender: No OFD packet to send [15:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:08]Read from MH i2c: E2 [15:23:08]MH_I2C_Read... [15:23:08]Read from MH i2c: E2 0E 00 [15:23:08]MH_I2C_Read... [15:23:08]Read from MH i2c: E2 0E 00 1E 12 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 EE [15:23:08]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:23:08]wFMCommunicate OK [15:23:08]SAM_PROTO_GetShiftState done [15:23:08]FM_GetShiftState done [15:23:08]opened in 1727052070 [15:23:08]opened+sec_in_day 1727138470 [15:23:08]quantity*price = 15000 [15:23:08]sum+1 = 15001 [15:23:08]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42069942 Жев Orbit White Fresh Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 209.00 НСП 1% : 1.85 НДС 12% : 22.20 Наличными: 209.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 172 23.09.2024 15:23 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115689 ФПД: 8805748332923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T152308&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115689&fm=8805748332923&tin=02508201610067®Number=0000000000091831&sum=20900 0 [15:23:09]StoreToDocumentArchive [15:23:09]shift 472 fd 115689 [15:23:09]save to /storage/0472/doc_00115689 [15:23:09]save last doc name /storage/0472/doc_00115689 to /storage/kkm_last_doc_name [15:23:09]save OK [15:23:09]Clear old archive folders... [15:23:09]ProcessDocumentItem done err = 0, tmpTLVsize=484 [15:23:09]tlvbuf is 017C8150 [15:23:09]SAM_PROTO_ClearQueue [15:23:09]wFMCommunicate request_size=4 [15:23:09]MH_SAM_APDU [15:23:09]CAPDU: 80 09 00 00 [15:23:09]Write to MH i2c: E2 08 00 2B 12 80 09 00 00 00 00 00 00 AF [15:23:09]Write i2c OK [15:23:09]MH_I2C_Read... [15:23:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:09]Read from MH i2c: E2 [15:23:09]MH_I2C_Read... [15:23:09]Read from MH i2c: E2 03 00 [15:23:09]MH_I2C_Read... [15:23:09]Read from MH i2c: E2 03 00 2B 12 00 90 00 B1 [15:23:09]RAPDU: 90 00 [15:23:09]wFMCommunicate OK [15:23:09]SAM_PROTO_ClearQueue done [15:23:09]KKMCreateOFDPacket [15:23:09]OFDProtocolAddRootSTLVToBuf [15:23:09]FM_MakeSignedData [15:23:09]FM_MakeSignedData [15:23:09]SAM_PROTO_SignData [15:23:09]wFMCommunicate request_size=4 [15:23:09]MH_SAM_APDU [15:23:09]CAPDU: 80 0D 01 02 [15:23:09]Write to MH i2c: E2 08 00 2C 12 80 0D 01 02 00 00 00 00 B7 [15:23:09]Write i2c OK [15:23:09]MH_I2C_Read... [15:23:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:09]Read from MH i2c: E2 [15:23:09]MH_I2C_Read... [15:23:09]Read from MH i2c: E2 03 00 [15:23:09]MH_I2C_Read... [15:23:09]Read from MH i2c: E2 03 00 2C 12 00 90 00 B2 [15:23:09]RAPDU: 90 00 [15:23:09]wFMCommunicate OK [15:23:09]wFMCommunicate request_size=255 [15:23:09]MH_SAM_APDU [15:23:09]CAPDU: 80 0D 02 02 FA 03 00 E4 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 [15:23:09]Write to MH i2c: E2 02 01 2D 12 80 0D 02 02 FA 00 03 00 E4 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 00 00 D1 [15:23:09]Write i2c OK [15:23:09]MH_I2C_Read... [15:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:09]Read from MH i2c: E2 [15:23:09]MH_I2C_Read... [15:23:09]Read from MH i2c: E2 03 00 [15:23:09]MH_I2C_Read... [15:23:09]Read from MH i2c: E2 03 00 2D 12 00 90 00 B3 [15:23:09]RAPDU: 90 00 [15:23:09]wFMCommunicate OK [15:23:09]wFMCommunicate request_size=243 [15:23:09]MH_SAM_APDU [15:23:09]CAPDU: 80 0D 02 02 EE D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 DC 87 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E9 C3 01 00 35 04 06 00 08 02 3F 80 59 7B [15:23:09]Write to MH i2c: E2 F6 00 2E 12 80 0D 02 02 EE 00 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 DC 87 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E9 C3 01 00 35 04 06 00 08 02 3F 80 59 7B 00 00 72 [15:23:09]Write i2c OK [15:23:09]MH_I2C_Read... [15:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:10]Read from MH i2c: E2 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 03 00 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 03 00 2E 12 00 90 00 B4 [15:23:10]RAPDU: 90 00 [15:23:10]wFMCommunicate OK [15:23:10]wFMCommunicate request_size=4 [15:23:10]MH_SAM_APDU [15:23:10]CAPDU: 80 0D 03 02 [15:23:10]Write to MH i2c: E2 08 00 2F 12 80 0D 03 02 00 00 00 00 BC [15:23:10]Write i2c OK [15:23:10]MH_I2C_Read... [15:23:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:10]Read from MH i2c: E2 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 0B 00 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 0B 00 2F 12 00 12 A8 9C 74 24 B2 50 F5 90 00 A2 [15:23:10]RAPDU: 12 A8 9C 74 24 B2 50 F5 90 00 [15:23:10]wFMCommunicate OK [15:23:10]SAM_PROTO_SignData done [15:23:10]FM_MakeSignedData done [15:23:10]CreateOFDProtocolMessage [15:23:10]wFMCommunicate request_size=4 [15:23:10]MH_SAM_APDU [15:23:10]CAPDU: 80 11 00 00 [15:23:10]Write to MH i2c: E2 08 00 30 12 80 11 00 00 00 00 00 00 BC [15:23:10]Write i2c OK [15:23:10]MH_I2C_Read... [15:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:10]Read from MH i2c: E2 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 17 00 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 17 00 30 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0A [15:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:23:10]wFMCommunicate OK [15:23:10]CreateOFDProtocolMessage done [15:23:10]OFDSenderStorePacket 115689 [15:23:10]StoreOFDPacket docnum=115689 [15:23:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F8 01 00 00 D2 3D F0 01 A2 4E 5A 03 01 00 03 00 E4 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 DC 87 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E9 C3 01 00 35 04 06 00 08 02 3F 80 59 7B 12 A8 9C 74 24 B2 50 F5 [15:23:10]CheckFolder [15:23:10]dirname=/storage/ofd_packets [15:23:10]CheckFolder done [15:23:10]ProducePacketName [15:23:10]name=ofd_packets/00115689 [15:23:10]NVStorageSaveData ofd_packets/00115689 [15:23:10]File name is /storage/ofd_packets/00115689 [15:23:10]Write 534 bytes [15:23:10]NVStorageSaveData done [15:23:10]OFDSenderStorePacket done [15:23:10]KKMCreateOFDPacket done [15:23:10]NVStorageSaveData kkm_last_timestamp [15:23:10]File name is /storage/kkm_last_timestamp [15:23:10]Write 4 bytes [15:23:10]NVStorageSaveData done [15:23:10]ExternCall_PrintAddStr [15:23:10]wPrintStart [15:23:10]Write to MH i2c: 01 00 00 31 12 43 [15:23:10]Write i2c OK [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: 01 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: 01 07 00 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: 01 07 00 31 12 00 00 00 00 00 FF 0F 58 [15:23:10]RasterBufferAndPrint [15:23:10]line Счет N : (3)344040 [15:23:10]line ИНН: 02508201610067 [15:23:10]line Контрольно-Кассовый Чек [15:23:10]line ПРОДАЖА [15:23:10]line Товар: 4870001150389 [15:23:10]line Сок DaDa 0,95л Вишня [15:23:10]line 1.000 * 150.00 [15:23:10]line = 150.00 [15:23:10]line НДС 12% НСП 1% [15:23:10]line > о реализуемом товаре [15:23:10]line Товар: 42069942 [15:23:10]line Жев Orbit White Fresh Mint [15:23:10]line 1.000 * 45.00 [15:23:10]line = 45.00 [15:23:10]line НДС 12% НСП 1% [15:23:10]line > о реализуемом товаре [15:23:10]line Товар: 2000053020015 [15:23:10]line Бумажные стаканы 250мл 1шт [15:23:10]line 2.000 * 7.00 [15:23:10]line = 14.00 [15:23:10]line НДС 12% НСП 1% [15:23:10]line > о реализуемом товаре [15:23:10]line ИТОГО: 209.00 [15:23:10]line НСП 1% : 1.85 [15:23:10]line НДС 12% : 22.20 [15:23:10]line Наличными: 209.00 [15:23:10]line Безнал.: 0.00 [15:23:10]line Место: АЗС № 90 "Партнер Нефть" [15:23:10]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:23:10]line СНО: Общий режим [15:23:10]line Чек 172 23.09.2024 15:23 [15:23:10]line Смена: 472 ФФД: 1.0 [15:23:10]line ЗНМ: 0300000120 [15:23:10]line РНМ: 0000000000091831 [15:23:10]line Версия ККМ: 001 [15:23:10]line ФМ: 0000000000871830 [15:23:10]line ФД: 115689 [15:23:10]line ФПД: 8805748332923 [15:23:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T152308&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115689&fm=8805748332923&tin=02508201610067®Number=0000000000091831&sum=20900 [15:23:10]line 0 [15:23:10]OFD Sender: Processing packet 115689 [packets to send 482, broken 481] [15:23:10]ProducePacketName [15:23:10]name=ofd_packets/00115689 [15:23:10]OFD Sender: To server: pG, [15:23:10]CommunicateWithHost lk.salyk.kg:30040 [15:23:10]ConnectInit lk.salyk.kg [15:23:10]written 0, free lines is 4095 [15:23:10]Connected sock=11 [15:23: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 38 33 30 F8 01 00 00 D2 3D F0 01 A2 4E 5A 03 01 00 03 00 E4 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 DC 87 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E9 C3 01 00 35 04 06 00 08 02 3F 80 59 7B 12 A8 9C 74 24 B2 50 F5 [15:23:10]Write to MH i2c: 01 00 00 65 12 77 [15:23:10]Write i2c OK [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: 01 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: 01 07 00 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: 01 07 00 65 12 00 00 00 00 00 71 0B FA [15:23:10]RasterBufferAndPrint [15:23:10]line [15:23:10]line [15:23:10]line [15:23:10]line [15:23:10]line [15:23:10]written 0, free lines is 2933 [15:23:10]MH_Cut [15:23:10]Write to MH i2c: D1 01 00 6C 12 01 50 [15:23:10]Write i2c OK [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: D1 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: D1 01 00 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: D1 01 00 6C 12 00 4F [15:23:10]Write to MH i2c: 01 00 00 6D 12 7F [15:23:10]Write i2c OK [15:23:10]MH_I2C_Read... [15:23:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 EC 98 47 00 A8 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 38 33 30 10 04 04 00 E9 C3 01 00 F4 03 04 00 1F 2D F1 66 B6 04 01 00 00 61 61 A6 FC 29 3B E2 41 [15:23:11]CommunicateWithHost err = 0 [15:23:11]CheckOFDResponse [15:23:11]1017 (14) - 77093643461234 [15:23:11]1041 (16) - 0000000000871830 [15:23:11]1040 (4) - 115689 [15:23:11]1012 (4) - 23.09.2024 08:55 [15:23:11]1206 (1) - 0 [15:23:11]OFD Sender: Remove packet 115689 [15:23:11]ProducePacketName [15:23:11]name=ofd_packets/00115689 [15:23:11]NVStorageDeleteData [15:23:11]OFD Sender: No OFD packet to send [15:23:12]*** Cut start [15:23:12]*** Partial cut [15:23:12]*** CUTSNS_PIN = 1 [15:23:12]*** CUTSNS_PIN = 0 [15:23:12]*** Brake cut motor [15:23:13]Read from MH i2c: 01 [15:23:13]MH_I2C_Read... [15:23:13]*** Stop cut motor [15:23:13]*** Cut end [15:23:13]Read from MH i2c: 01 07 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: 01 07 00 6D 12 00 00 00 00 00 FF 0F 94 [15:23:13]process_action close_receipt done [15:23:13]requested_data is exist [15:23:13]produce_requested_data [15:23:13]requested_item fm.sn is exist - process it [15:23:13]wFMCommunicate request_size=4 [15:23:13]MH_SAM_APDU [15:23:13]CAPDU: 80 11 00 00 [15:23:13]Write to MH i2c: E2 08 00 6E 12 80 11 00 00 00 00 00 00 FA [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:13]Read from MH i2c: E2 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 17 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 17 00 6E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 48 [15:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:23:13]wFMCommunicate OK [15:23:13]requested_item fd.num is exist - process it [15:23:13]SAM_PROTO_GetFieldsCounters [15:23:13]wFMCommunicate request_size=4 [15:23:13]MH_SAM_APDU [15:23:13]CAPDU: 80 13 00 00 [15:23:13]Write to MH i2c: E2 08 00 6F 12 80 13 00 00 00 00 00 00 FD [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:13]Read from MH i2c: E2 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 62 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 62 00 6F 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E9 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [15:23: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E9 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:13]wFMCommunicate OK [15:23:13]SAM_PROTO_GetFieldsCounters done [15:23:13]requested_item shift.num is exist - process it [15:23:13]requested_item shift.opened is exist - process it [15:23:13]req_shift_opened [15:23:13]FM_GetShiftState [15:23:13]SAM_PROTO_GetShiftState [15:23:13]wFMCommunicate request_size=4 [15:23:13]MH_SAM_APDU [15:23:13]CAPDU: 80 13 01 00 [15:23:13]Write to MH i2c: E2 08 00 70 12 80 13 01 00 00 00 00 00 FF [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:13]Read from MH i2c: E2 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 0E 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 0E 00 70 12 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 40 [15:23:13]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:23:13]wFMCommunicate OK [15:23:13]SAM_PROTO_GetShiftState done [15:23:13]FM_GetShiftState done [15:23:13]req_shift_opened done [15:23:13]requested_item shift.open_date is exist - process it [15:23:13]req_shift_open_date [15:23:13]req_shift_open_date done [15:23:13]produce_requested_data done [15:23:13]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115689,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [15:23:13]process_action_free close_receipt [15:23:13]json_value_free [15:23:13]json_value_free done [15:23:13]process_json_proto returns [15:23:13]Send response to host [15:23:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115689,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [15:23:13]free response buf [15:23:13]execute_script done [15:23:13]execute_script returns [15:23:13]free content buf [15:23:13]Sock 9.Close socket [15:23:13]Sock 9.Thread stoped [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:28:58]accept exits with 7 [15:28:58]New connection [15:28:58]New thread 3067022692 created [15:28:58]Thread 3066879332 joined [15:28:58]Waiting for new connection... [15:28:58] Sock 7.Parse request [15:28:58]Sock 7.Check first char [15:28:58]Sock 7.First char is OK [15:28:58]request: POST /json_proto HTTP/1.0 [15:28:58]Method: POST [15:28:58]URL: /json_proto [15:28:58]Method is POST - this is cgi request [15:28:58]url: /json_proto [15:28:58]query_string will be loaded in cgi processing [15:28:58]execute_cgi json_proto POST (null) [15:28:58]execute_cgi path=json_proto method=POST [15:28:58]POST find Content-Length [15:28:58]Host: 172.17.41.136:8080 [15:28:58]Content-Length: 1494 [15:28:58]Content-Type: application/json [15:28:58] [15:28:58]POST finish read [15:28:58]Found Content-Length = 1494 [15:28:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344041", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 431.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:58]execute_script... [15:28:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344041", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 431.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:58]POST & json_proto [15:28:58]process_json_proto [15:28:58]json parsed OK: [15:28:58]protocol is kg_v1.0 [15:28:58]action value=close_receipt [15:28:58]process_action close_receipt [15:28:58]cmd_close_receipt [15:28:58]MH_GetDate [15:28:58]Write to MH i2c: F0 00 00 71 12 72 [15:28:58]Write i2c OK [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: F0 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: F0 09 00 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: F0 09 00 71 12 00 3A 89 F1 66 1B D0 5A 64 3E [15:28:58]GetLastDocTimeStamp 1727104988 [15:28:58]current date 1727105338 [15:28:58]FM_GetShiftState [15:28:58]SAM_PROTO_GetShiftState [15:28:58]wFMCommunicate request_size=4 [15:28:58]MH_SAM_APDU [15:28:58]CAPDU: 80 13 01 00 [15:28:58]Write to MH i2c: E2 08 00 72 12 80 13 01 00 00 00 00 00 01 [15:28:58]Write i2c OK [15:28:58]MH_I2C_Read... [15:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:58]Read from MH i2c: E2 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 0E 00 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 0E 00 72 12 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 42 [15:28:58]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:28:58]wFMCommunicate OK [15:28:58]SAM_PROTO_GetShiftState done [15:28:58]FM_GetShiftState done [15:28:58]opened in 1727052070 [15:28:58]opened+sec_in_day 1727138470 [15:28:58]quantity*price = 14400 [15:28:58]sum+1 = 14401 [15:28:58]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870233466272 Мороженое Пломбир Миша 1.000 * 77.00 = 77.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000482757 Напиток Nitro Fr газ манг,клуб ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 431.00 НСП 1% : 3.81 НДС 12% : 45.77 Наличными: 431.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 173 23.09.2024 15:28 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115690 ФПД: 225391687845697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T152859&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115690&fm=225391687845697&tin=02508201610067®Number=0000000000091831&sum=43100 0 [15:28:59]StoreToDocumentArchive [15:28:59]shift 472 fd 115690 [15:28:59]save to /storage/0472/doc_00115690 [15:28:59]save last doc name /storage/0472/doc_00115690 to /storage/kkm_last_doc_name [15:28:59]save OK [15:28:59]Clear old archive folders... [15:28:59]ProcessDocumentItem done err = 0, tmpTLVsize=632 [15:28:59]tlvbuf is 01804080 [15:28:59]SAM_PROTO_ClearQueue [15:28:59]wFMCommunicate request_size=4 [15:28:59]MH_SAM_APDU [15:28:59]CAPDU: 80 09 00 00 [15:28:59]Write to MH i2c: E2 08 00 7F 12 80 09 00 00 00 00 00 00 03 [15:28:59]Write i2c OK [15:28:59]MH_I2C_Read... [15:28:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:59]Read from MH i2c: E2 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 03 00 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 03 00 7F 12 00 90 00 05 [15:28:59]RAPDU: 90 00 [15:28:59]wFMCommunicate OK [15:28:59]SAM_PROTO_ClearQueue done [15:28:59]KKMCreateOFDPacket [15:28:59]OFDProtocolAddRootSTLVToBuf [15:28:59]FM_MakeSignedData [15:28:59]FM_MakeSignedData [15:28:59]SAM_PROTO_SignData [15:28:59]wFMCommunicate request_size=4 [15:28:59]MH_SAM_APDU [15:28:59]CAPDU: 80 0D 01 02 [15:28:59]Write to MH i2c: E2 08 00 80 12 80 0D 01 02 00 00 00 00 0B [15:28:59]Write i2c OK [15:28:59]MH_I2C_Read... [15:28:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:59]Read from MH i2c: E2 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 03 00 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 03 00 80 12 00 90 00 06 [15:28:59]RAPDU: 90 00 [15:28:59]wFMCommunicate OK [15:28:59]wFMCommunicate request_size=255 [15:28:59]MH_SAM_APDU [15:28:59]CAPDU: 80 0D 02 02 FA 03 00 78 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 [15:28:59]Write to MH i2c: E2 02 01 81 12 80 0D 02 02 FA 00 03 00 78 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 00 00 AA [15:28:59]Write i2c OK [15:28:59]MH_I2C_Read... [15:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:00]Read from MH i2c: E2 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 03 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 03 00 81 12 00 90 00 07 [15:29:00]RAPDU: 90 00 [15:29:00]wFMCommunicate OK [15:29:00]wFMCommunicate request_size=255 [15:29:00]MH_SAM_APDU [15:29:00]CAPDU: 80 0D 02 02 FA 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 [15:29:00]Write to MH i2c: E2 02 01 82 12 80 0D 02 02 FA 00 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 7B [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:00]Read from MH i2c: E2 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 03 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 03 00 82 12 00 90 00 08 [15:29:00]RAPDU: 90 00 [15:29:00]wFMCommunicate OK [15:29:00]wFMCommunicate request_size=141 [15:29:00]MH_SAM_APDU [15:29:00]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 11 00 00 00 00 07 04 06 00 5C A8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 3B 89 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EA C3 01 00 35 04 06 00 CC FE 17 7D 47 41 [15:29:00]Write to MH i2c: E2 90 00 83 12 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 11 00 00 00 00 07 04 06 00 5C A8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 3B 89 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EA C3 01 00 35 04 06 00 CC FE 17 7D 47 41 00 00 6F [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:00]Read from MH i2c: E2 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 03 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 03 00 83 12 00 90 00 09 [15:29:00]RAPDU: 90 00 [15:29:00]wFMCommunicate OK [15:29:00]wFMCommunicate request_size=4 [15:29:00]MH_SAM_APDU [15:29:00]CAPDU: 80 0D 03 02 [15:29:00]Write to MH i2c: E2 08 00 84 12 80 0D 03 02 00 00 00 00 11 [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:00]Read from MH i2c: E2 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 0B 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 0B 00 84 12 00 21 02 EB DB 65 7C BD 69 90 00 02 [15:29:00]RAPDU: 21 02 EB DB 65 7C BD 69 90 00 [15:29:00]wFMCommunicate OK [15:29:00]SAM_PROTO_SignData done [15:29:00]FM_MakeSignedData done [15:29:00]CreateOFDProtocolMessage [15:29:00]wFMCommunicate request_size=4 [15:29:00]MH_SAM_APDU [15:29:00]CAPDU: 80 11 00 00 [15:29:00]Write to MH i2c: E2 08 00 85 12 80 11 00 00 00 00 00 00 11 [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:00]Read from MH i2c: E2 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 17 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 17 00 85 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5F [15:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:29:00]wFMCommunicate OK [15:29:00]CreateOFDProtocolMessage done [15:29:00]OFDSenderStorePacket 115690 [15:29:00]StoreOFDPacket docnum=115690 [15:29:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8C 02 00 00 6F D5 84 02 BE 62 5A 03 01 00 03 00 78 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 11 00 00 00 00 07 04 06 00 5C A8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 3B 89 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EA C3 01 00 35 04 06 00 CC FE 17 7D 47 41 21 02 EB DB 65 7C BD 69 [15:29:00]CheckFolder [15:29:00]dirname=/storage/ofd_packets [15:29:00]CheckFolder done [15:29:00]ProducePacketName [15:29:00]name=ofd_packets/00115690 [15:29:00]NVStorageSaveData ofd_packets/00115690 [15:29:00]File name is /storage/ofd_packets/00115690 [15:29:00]Write 682 bytes [15:29:00]NVStorageSaveData done [15:29:00]OFDSenderStorePacket done [15:29:00]KKMCreateOFDPacket done [15:29:00]NVStorageSaveData kkm_last_timestamp [15:29:00]File name is /storage/kkm_last_timestamp [15:29:00]Write 4 bytes [15:29:00]NVStorageSaveData done [15:29:00]ExternCall_PrintAddStr [15:29:00]wPrintStart [15:29:00]Write to MH i2c: 01 00 00 86 12 98 [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: 01 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: 01 07 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: 01 07 00 86 12 00 00 00 00 00 FF 0F AD [15:29:00]RasterBufferAndPrint [15:29:00]line Счет N : (3)344041 [15:29:00]line ИНН: 02508201610067 [15:29:00]line Контрольно-Кассовый Чек [15:29:00]line ПРОДАЖА [15:29:00]line Товар: 48743587 [15:29:00]line Сигареты Winston XStyle Silver [15:29:00]line 1.000 * 144.00 [15:29:00]line = 144.00 [15:29:00]line НДС 12% НСП 1% [15:29:00]line > о реализуемом товаре [15:29:00]line Товар: 4870233466272 [15:29:00]line Мороженое Пломбир Миша [15:29:00]line 1.000 * 77.00 [15:29:00]line = 77.00 [15:29:00]line НДС 12% НСП 1% [15:29:00]line > о реализуемом товаре [15:29:00]line Товар: 4700000482757 [15:29:01]line Напиток Nitro Fr газ манг,клуб ж/б 0,45л [15:29:01]line 1.000 * 95.00 [15:29:01]line = 95.00 [15:29:01]line НДС 12% НСП 1% [15:29:01]line > о реализуемом товаре [15:29:01]line Товар: 2000036210013 [15:29:01]line Кофе Капучино (GABB TRADE) [15:29:01]line 1.000 * 115.00 [15:29:01]line = 115.00 [15:29:01]line НДС 12% НСП 1% [15:29:01]line > о реализуемом товаре [15:29:01]line ИТОГО: 431.00 [15:29:01]line НСП 1% : 3.81 [15:29:01]line НДС 12% : 45.77 [15:29:01]line Наличными: 431.00 [15:29:01]line Безнал.: 0.00 [15:29:01]line Место: АЗС № 90 "Партнер Нефть" [15:29:01]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:29:01]line СНО: Общий режим [15:29:01]line Чек 173 23.09.2024 15:28 [15:29:01]line Смена: 472 ФФД: 1.0 [15:29:01]line ЗНМ: 0300000120 [15:29:01]line РНМ: 0000000000091831 [15:29:01]line Версия ККМ: 001 [15:29:01]line ФМ: 0000000000871830 [15:29:01]line ФД: 115690 [15:29:01]line ФПД: 225391687845697 [15:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T152859&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115690&fm=225391687845697&tin=02508201610067®Number=0000000000091831&sum=43100 [15:29:01]line 0 [15:29:01]OFD Sender: Processing packet 115690 [packets to send 482, broken 481] [15:29:01]ProducePacketName [15:29:01]name=ofd_packets/00115690 [15:29:01]OFD Sender: To server: pG, [15:29:01]CommunicateWithHost lk.salyk.kg:30040 [15:29:01]ConnectInit lk.salyk.kg [15:29:01]written 0, free lines is 4095 [15:29:01]Connected sock=10 [15:29:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8C 02 00 00 6F D5 84 02 BE 62 5A 03 01 00 03 00 78 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 11 00 00 00 00 07 04 06 00 5C A8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 3B 89 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EA C3 01 00 35 04 06 00 CC FE 17 7D 47 41 21 02 EB DB 65 7C BD 69 [15:29:01]Write to MH i2c: 01 00 00 C1 12 D3 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: 01 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: 01 07 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: 01 07 00 C1 12 00 00 00 00 00 D8 0A BC [15:29:01]RasterBufferAndPrint [15:29:01]line [15:29:01]line [15:29:01]line [15:29:01]line [15:29:01]line [15:29:01]written 0, free lines is 2779 [15:29:01]MH_Cut [15:29:01]Write to MH i2c: D1 01 00 C8 12 01 AC [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: D1 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: D1 01 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: D1 01 00 C8 12 00 AB [15:29:01]Write to MH i2c: 01 00 00 C9 12 DB [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 33 06 47 00 CC 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 38 33 30 10 04 04 00 EA C3 01 00 F4 03 04 00 7E 2E F1 66 B6 04 01 00 00 E7 9D 29 D3 3A C5 FE BE [15:29:01]CommunicateWithHost err = 0 [15:29:01]CheckOFDResponse [15:29:01]1017 (14) - 77093643461234 [15:29:01]1041 (16) - 0000000000871830 [15:29:01]1040 (4) - 115690 [15:29:01]1012 (4) - 23.09.2024 09:01 [15:29:01]1206 (1) - 0 [15:29:01]OFD Sender: Remove packet 115690 [15:29:01]ProducePacketName [15:29:01]name=ofd_packets/00115690 [15:29:01]NVStorageDeleteData [15:29:02]OFD Sender: No OFD packet to send [15:29:03]*** Cut start [15:29:03]*** Partial cut [15:29:03]*** CUTSNS_PIN = 1 [15:29:03]*** CUTSNS_PIN = 0 [15:29:03]*** Brake cut motor [15:29:04]Read from MH i2c: 01 [15:29:04]MH_I2C_Read... [15:29:04]*** Stop cut motor [15:29:04]*** Cut end [15:29:04]Read from MH i2c: 01 07 00 [15:29:04]MH_I2C_Read... [15:29:04]Read from MH i2c: 01 07 00 C9 12 00 00 00 00 00 FF 0F F0 [15:29:04]process_action close_receipt done [15:29:04]requested_data is exist [15:29:04]produce_requested_data [15:29:04]requested_item fm.sn is exist - process it [15:29:04]wFMCommunicate request_size=4 [15:29:04]MH_SAM_APDU [15:29:04]CAPDU: 80 11 00 00 [15:29:04]Write to MH i2c: E2 08 00 CA 12 80 11 00 00 00 00 00 00 56 [15:29:04]Write i2c OK [15:29:04]MH_I2C_Read... [15:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:04]Read from MH i2c: E2 [15:29:04]MH_I2C_Read... [15:29:04]Read from MH i2c: E2 17 00 [15:29:04]MH_I2C_Read... [15:29:04]Read from MH i2c: E2 17 00 CA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A4 [15:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:29:04]wFMCommunicate OK [15:29:04]requested_item fd.num is exist - process it [15:29:04]SAM_PROTO_GetFieldsCounters [15:29:04]wFMCommunicate request_size=4 [15:29:04]MH_SAM_APDU [15:29:04]CAPDU: 80 13 00 00 [15:29:04]Write to MH i2c: E2 08 00 CB 12 80 13 00 00 00 00 00 00 59 [15:29:04]Write i2c OK [15:29:04]MH_I2C_Read... [15:29:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:04]Read from MH i2c: E2 [15:29:04]MH_I2C_Read... [15:29:04]Read from MH i2c: E2 62 00 [15:29:04]MH_I2C_Read... [15:29:04]Read from MH i2c: E2 62 00 CB 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EA C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [15:29:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EA C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:04]wFMCommunicate OK [15:29:04]SAM_PROTO_GetFieldsCounters done [15:29:04]requested_item shift.num is exist - process it [15:29:04]requested_item shift.opened is exist - process it [15:29:04]req_shift_opened [15:29:04]FM_GetShiftState [15:29:04]SAM_PROTO_GetShiftState [15:29:04]wFMCommunicate request_size=4 [15:29:04]MH_SAM_APDU [15:29:04]CAPDU: 80 13 01 00 [15:29:04]Write to MH i2c: E2 08 00 CC 12 80 13 01 00 00 00 00 00 5B [15:29:04]Write i2c OK [15:29:04]MH_I2C_Read... [15:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:04]Read from MH i2c: E2 [15:29:04]MH_I2C_Read... [15:29:04]Read from MH i2c: E2 0E 00 [15:29:04]MH_I2C_Read... [15:29:04]Read from MH i2c: E2 0E 00 CC 12 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 9C [15:29:04]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:29:04]wFMCommunicate OK [15:29:04]SAM_PROTO_GetShiftState done [15:29:04]FM_GetShiftState done [15:29:04]req_shift_opened done [15:29:04]requested_item shift.open_date is exist - process it [15:29:04]req_shift_open_date [15:29:04]req_shift_open_date done [15:29:04]produce_requested_data done [15:29:04]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115690,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [15:29:04]process_action_free close_receipt [15:29:04]json_value_free [15:29:04]json_value_free done [15:29:04]process_json_proto returns [15:29:04]Send response to host [15:29:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115690,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [15:29:04]free response buf [15:29:04]execute_script done [15:29:04]execute_script returns [15:29:04]free content buf [15:29:04]Sock 7.Close socket [15:29:04]Sock 7.Thread stoped [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:50]accept exits with 9 [15:30:50]New connection [15:30:50]New thread 3066879332 created [15:30:50]Thread 3067022692 joined [15:30:50]Waiting for new connection... [15:30:50] Sock 9.Parse request [15:30:50]Sock 9.Check first char [15:30:50]Sock 9.First char is OK [15:30:50]request: POST /json_proto HTTP/1.0 [15:30:50]Method: POST [15:30:50]URL: /json_proto [15:30:50]Method is POST - this is cgi request [15:30:50]url: /json_proto [15:30:50]query_string will be loaded in cgi processing [15:30:50]execute_cgi json_proto POST (null) [15:30:50]execute_cgi path=json_proto method=POST [15:30:50]POST find Content-Length [15:30:50]Host: 172.17.41.136:8080 [15:30:50]Content-Length: 831 [15:30:50]Content-Type: application/json [15:30:50] [15:30:50]POST finish read [15:30:50]Found Content-Length = 831 [15:30:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344042", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:50]execute_script... [15:30:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344042", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:50]POST & json_proto [15:30:50]process_json_proto [15:30:50]json parsed OK: [15:30:50]protocol is kg_v1.0 [15:30:50]action value=close_receipt [15:30:50]process_action close_receipt [15:30:50]cmd_close_receipt [15:30:50]MH_GetDate [15:30:50]Write to MH i2c: F0 00 00 CD 12 CE [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: F0 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: F0 09 00 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: F0 09 00 CD 12 00 AB 89 F1 66 1B D0 5A 64 0B [15:30:50]GetLastDocTimeStamp 1727105339 [15:30:50]current date 1727105451 [15:30:50]FM_GetShiftState [15:30:50]SAM_PROTO_GetShiftState [15:30:50]wFMCommunicate request_size=4 [15:30:50]MH_SAM_APDU [15:30:50]CAPDU: 80 13 01 00 [15:30:50]Write to MH i2c: E2 08 00 CE 12 80 13 01 00 00 00 00 00 5D [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:50]Read from MH i2c: E2 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 0E 00 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 0E 00 CE 12 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 9E [15:30:50]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:30:50]wFMCommunicate OK [15:30:50]SAM_PROTO_GetShiftState done [15:30:50]FM_GetShiftState done [15:30:50]opened in 1727052070 [15:30:50]opened+sec_in_day 1727138470 [15:30:50]quantity*price = 7700 [15:30:50]sum+1 = 7701 [15:30:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 0.00 Безнал.: 77.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 174 23.09.2024 15:30 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115691 ФПД: 107032607483952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T153051&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115691&fm=107032607483952&tin=02508201610067®Number=0000000000091831&sum=7700 0 [15:30:51]StoreToDocumentArchive [15:30:51]shift 472 fd 115691 [15:30:51]save to /storage/0472/doc_00115691 [15:30:51]save last doc name /storage/0472/doc_00115691 to /storage/kkm_last_doc_name [15:30:51]save OK [15:30:51]Clear old archive folders... [15:30:51]ProcessDocumentItem done err = 0, tmpTLVsize=293 [15:30:51]tlvbuf is 01836410 [15:30:51]SAM_PROTO_ClearQueue [15:30:51]wFMCommunicate request_size=4 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 09 00 00 [15:30:51]Write to MH i2c: E2 08 00 DB 12 80 09 00 00 00 00 00 00 5F [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 DB 12 00 90 00 61 [15:30:51]RAPDU: 90 00 [15:30:51]wFMCommunicate OK [15:30:51]SAM_PROTO_ClearQueue done [15:30:51]KKMCreateOFDPacket [15:30:51]OFDProtocolAddRootSTLVToBuf [15:30:51]FM_MakeSignedData [15:30:51]FM_MakeSignedData [15:30:51]SAM_PROTO_SignData [15:30:51]wFMCommunicate request_size=4 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 0D 01 02 [15:30:51]Write to MH i2c: E2 08 00 DC 12 80 0D 01 02 00 00 00 00 67 [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 DC 12 00 90 00 62 [15:30:51]RAPDU: 90 00 [15:30:51]wFMCommunicate OK [15:30:51]wFMCommunicate request_size=255 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 AB 89 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [15:30:51]Write to MH i2c: E2 02 01 DD 12 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 AB 89 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 0E [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:52]Read from MH i2c: E2 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: E2 03 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: E2 03 00 DD 12 00 90 00 63 [15:30:52]RAPDU: 90 00 [15:30:52]wFMCommunicate OK [15:30:52]wFMCommunicate request_size=52 [15:30:52]MH_SAM_APDU [15:30:52]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EB C3 01 00 35 04 06 00 61 58 78 8C 68 30 [15:30:52]Write to MH i2c: E2 37 00 DE 12 80 0D 02 02 2F 00 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EB C3 01 00 35 04 06 00 61 58 78 8C 68 30 00 00 29 [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:52]Read from MH i2c: E2 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: E2 03 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: E2 03 00 DE 12 00 90 00 64 [15:30:52]RAPDU: 90 00 [15:30:52]wFMCommunicate OK [15:30:52]wFMCommunicate request_size=4 [15:30:52]MH_SAM_APDU [15:30:52]CAPDU: 80 0D 03 02 [15:30:52]Write to MH i2c: E2 08 00 DF 12 80 0D 03 02 00 00 00 00 6C [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:52]Read from MH i2c: E2 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: E2 0B 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: E2 0B 00 DF 12 00 83 07 4E 67 39 4E 54 B1 90 00 38 [15:30:52]RAPDU: 83 07 4E 67 39 4E 54 B1 90 00 [15:30:52]wFMCommunicate OK [15:30:52]SAM_PROTO_SignData done [15:30:52]FM_MakeSignedData done [15:30:52]CreateOFDProtocolMessage [15:30:52]wFMCommunicate request_size=4 [15:30:52]MH_SAM_APDU [15:30:52]CAPDU: 80 11 00 00 [15:30:52]Write to MH i2c: E2 08 00 E0 12 80 11 00 00 00 00 00 00 6C [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:52]Read from MH i2c: E2 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: E2 17 00 [15:30:52]MH_I2C_Read... [15:30:52]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 38 33 30 90 00 BA [15:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:30:52]wFMCommunicate OK [15:30:52]CreateOFDProtocolMessage done [15:30:52]OFDSenderStorePacket 115691 [15:30:52]StoreOFDPacket docnum=115691 [15:30:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 39 01 00 00 D8 53 31 01 A3 1C 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 AB 89 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EB C3 01 00 35 04 06 00 61 58 78 8C 68 30 83 07 4E 67 39 4E 54 B1 [15:30:52]CheckFolder [15:30:52]dirname=/storage/ofd_packets [15:30:52]CheckFolder done [15:30:52]ProducePacketName [15:30:52]name=ofd_packets/00115691 [15:30:52]NVStorageSaveData ofd_packets/00115691 [15:30:52]File name is /storage/ofd_packets/00115691 [15:30:52]Write 343 bytes [15:30:52]NVStorageSaveData done [15:30:52]OFDSenderStorePacket done [15:30:52]KKMCreateOFDPacket done [15:30:52]NVStorageSaveData kkm_last_timestamp [15:30:52]File name is /storage/kkm_last_timestamp [15:30:52]Write 4 bytes [15:30:52]NVStorageSaveData done [15:30:52]ExternCall_PrintAddStr [15:30:52]wPrintStart [15:30:52]Write to MH i2c: 01 00 00 E1 12 F3 [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 07 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 07 00 E1 12 00 00 00 00 00 FF 0F 08 [15:30:52]RasterBufferAndPrint [15:30:52]line Счет N : (3)344042 [15:30:52]line ИНН: 02508201610067 [15:30:52]line Контрольно-Кассовый Чек [15:30:52]line ПРОДАЖА [15:30:52]line Товар: 4700000480050 [15:30:52]line Напиток Nitro Energy эн green ж/б 0,45л [15:30:52]line 1.000 * 77.00 [15:30:52]line = 77.00 [15:30:52]line НДС 12% НСП 1% [15:30:52]line > о реализуемом товаре [15:30:52]line ИТОГО: 77.00 [15:30:52]line НСП 1% : 0.68 [15:30:52]line НДС 12% : 8.18 [15:30:52]line Наличными: 0.00 [15:30:52]line Безнал.: 77.00 [15:30:52]line Место: АЗС № 90 "Партнер Нефть" [15:30:52]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:30:52]line СНО: Общий режим [15:30:52]line Чек 174 23.09.2024 15:30 [15:30:52]line Смена: 472 ФФД: 1.0 [15:30:52]line ЗНМ: 0300000120 [15:30:52]line РНМ: 0000000000091831 [15:30:52]line Версия ККМ: 001 [15:30:52]line Платежная система: Бакай Банк [15:30:52]line ФМ: 0000000000871830 [15:30:52]line ФД: 115691 [15:30:52]line ФПД: 107032607483952 [15:30:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T153051&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115691&fm=107032607483952&tin=02508201610067®Number=0000000000091831&sum=7700 [15:30:52]line 0 [15:30:52]written 0, free lines is 4095 [15:30:52]OFD Sender: Processing packet 115691 [packets to send 482, broken 481] [15:30:52]ProducePacketName [15:30:52]name=ofd_packets/00115691 [15:30:52]OFD Sender: To server: pG, [15:30:52]CommunicateWithHost lk.salyk.kg:30040 [15:30:52]ConnectInit lk.salyk.kg [15:30:52]Connected sock=10 [15:30: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 38 33 30 39 01 00 00 D8 53 31 01 A3 1C 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 AB 89 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EB C3 01 00 35 04 06 00 61 58 78 8C 68 30 83 07 4E 67 39 4E 54 B1 [15:30:52]Write to MH i2c: 01 00 00 0B 13 1E [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 07 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 07 00 0B 13 00 00 00 00 00 3B 0C 6C [15:30:52]RasterBufferAndPrint [15:30:52]line [15:30:52]line [15:30:52]line [15:30:52]line [15:30:52]line [15:30:52]written 0, free lines is 3136 [15:30:52]MH_Cut [15:30:52]Write to MH i2c: D1 01 00 12 13 01 F7 [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: D1 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: D1 01 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: D1 01 00 12 13 00 F6 [15:30:52]Write to MH i2c: 01 00 00 13 13 26 [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 57 85 47 00 2A 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 38 33 30 10 04 04 00 EB C3 01 00 F4 03 04 00 ED 2E F1 66 B6 04 01 00 00 99 B9 65 C5 8E F7 F2 CD [15:30:53]CommunicateWithHost err = 0 [15:30:53]CheckOFDResponse [15:30:53]1017 (14) - 77093643461234 [15:30:53]1041 (16) - 0000000000871830 [15:30:53]1040 (4) - 115691 [15:30:53]1012 (4) - 23.09.2024 09:03 [15:30:53]1206 (1) - 0 [15:30:53]OFD Sender: Remove packet 115691 [15:30:53]ProducePacketName [15:30:53]name=ofd_packets/00115691 [15:30:53]NVStorageDeleteData [15:30:53]OFD Sender: No OFD packet to send [15:30:54]*** Cut start [15:30:54]*** Partial cut [15:30:54]*** CUTSNS_PIN = 1 [15:30:54]*** CUTSNS_PIN = 0 [15:30:54]*** Brake cut motor [15:30:54]Read from MH i2c: 01 [15:30:54]MH_I2C_Read... [15:30:54]*** Stop cut motor [15:30:54]*** Cut end [15:30:54]Read from MH i2c: 01 07 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: 01 07 00 13 13 00 00 00 00 00 FF 0F 3B [15:30:54]process_action close_receipt done [15:30:54]requested_data is exist [15:30:54]produce_requested_data [15:30:54]requested_item fm.sn is exist - process it [15:30:54]wFMCommunicate request_size=4 [15:30:54]MH_SAM_APDU [15:30:54]CAPDU: 80 11 00 00 [15:30:54]Write to MH i2c: E2 08 00 14 13 80 11 00 00 00 00 00 00 A1 [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:54]Read from MH i2c: E2 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 17 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 17 00 14 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EF [15:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:30:54]wFMCommunicate OK [15:30:54]requested_item fd.num is exist - process it [15:30:54]SAM_PROTO_GetFieldsCounters [15:30:54]wFMCommunicate request_size=4 [15:30:54]MH_SAM_APDU [15:30:54]CAPDU: 80 13 00 00 [15:30:54]Write to MH i2c: E2 08 00 15 13 80 13 00 00 00 00 00 00 A4 [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:54]Read from MH i2c: E2 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 62 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 62 00 15 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EB C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [15:30: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EB C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:54]wFMCommunicate OK [15:30:54]SAM_PROTO_GetFieldsCounters done [15:30:54]requested_item shift.num is exist - process it [15:30:54]requested_item shift.opened is exist - process it [15:30:54]req_shift_opened [15:30:54]FM_GetShiftState [15:30:54]SAM_PROTO_GetShiftState [15:30:54]wFMCommunicate request_size=4 [15:30:54]MH_SAM_APDU [15:30:54]CAPDU: 80 13 01 00 [15:30:54]Write to MH i2c: E2 08 00 16 13 80 13 01 00 00 00 00 00 A6 [15:30:55]Write i2c OK [15:30:55]MH_I2C_Read... [15:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:55]Read from MH i2c: E2 [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: E2 0E 00 [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: E2 0E 00 16 13 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E7 [15:30:55]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:30:55]wFMCommunicate OK [15:30:55]SAM_PROTO_GetShiftState done [15:30:55]FM_GetShiftState done [15:30:55]req_shift_opened done [15:30:55]requested_item shift.open_date is exist - process it [15:30:55]req_shift_open_date [15:30:55]req_shift_open_date done [15:30:55]produce_requested_data done [15:30:55]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115691,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [15:30:55]process_action_free close_receipt [15:30:55]json_value_free [15:30:55]json_value_free done [15:30:55]process_json_proto returns [15:30:55]Send response to host [15:30:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115691,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [15:30:55]free response buf [15:30:55]execute_script done [15:30:55]execute_script returns [15:30:55]free content buf [15:30:55]Sock 9.Close socket [15:30:55]Sock 9.Thread stoped [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:13]OFD Sender: No OFD packet to send [15:31:18]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:48]OFD Sender: No OFD packet to send [15:33:53]OFD Sender: No OFD packet to send [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:38]accept exits with 7 [15:36:38]New connection [15:36:38]New thread 3067022692 created [15:36:38]Thread 3066879332 joined [15:36:38]Waiting for new connection... [15:36:38] Sock 7.Parse request [15:36:38]Sock 7.Check first char [15:36:38]Sock 7.First char is OK [15:36:38]request: POST /json_proto HTTP/1.0 [15:36:38]Method: POST [15:36:38]URL: /json_proto [15:36:38]Method is POST - this is cgi request [15:36:38]url: /json_proto [15:36:38]query_string will be loaded in cgi processing [15:36:38]execute_cgi json_proto POST (null) [15:36:38]execute_cgi path=json_proto method=POST [15:36:38]POST find Content-Length [15:36:38]Host: 172.17.41.136:8080 [15:36:38]Content-Length: 646 [15:36:38]Content-Type: application/json [15:36:38] [15:36:38]POST finish read [15:36:38]Found Content-Length = 646 [15:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344043", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:38]execute_script... [15:36:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344043", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:38]POST & json_proto [15:36:38]process_json_proto [15:36:38]json parsed OK: [15:36:38]protocol is kg_v1.0 [15:36:38]action value=close_receipt [15:36:38]process_action close_receipt [15:36:38]cmd_close_receipt [15:36:38]MH_GetDate [15:36:38]Write to MH i2c: F0 00 00 17 13 19 [15:36:38]Write i2c OK [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: F0 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: F0 09 00 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: F0 09 00 17 13 00 07 8B F1 66 1B D0 5A 64 B4 [15:36:38]GetLastDocTimeStamp 1727105451 [15:36:38]current date 1727105799 [15:36:38]FM_GetShiftState [15:36:38]SAM_PROTO_GetShiftState [15:36:38]wFMCommunicate request_size=4 [15:36:38]MH_SAM_APDU [15:36:38]CAPDU: 80 13 01 00 [15:36:38]Write to MH i2c: E2 08 00 18 13 80 13 01 00 00 00 00 00 A8 [15:36:38]Write i2c OK [15:36:38]MH_I2C_Read... [15:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:38]Read from MH i2c: E2 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: E2 0E 00 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: E2 0E 00 18 13 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E9 [15:36:38]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:36:38]wFMCommunicate OK [15:36:38]SAM_PROTO_GetShiftState done [15:36:38]FM_GetShiftState done [15:36:38]opened in 1727052070 [15:36:38]opened+sec_in_day 1727138470 [15:36:38]quantity*price = 13000 [15:36:38]sum+1 = 13001 [15:36:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 175 23.09.2024 15:36 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115692 ФПД: 121573613777375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T153639&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115692&fm=121573613777375&tin=02508201610067®Number=0000000000091831&sum=13000 0 [15:36:39]StoreToDocumentArchive [15:36:39]shift 472 fd 115692 [15:36:39]save to /storage/0472/doc_00115692 [15:36:39]save last doc name /storage/0472/doc_00115692 to /storage/kkm_last_doc_name [15:36:39]save OK [15:36:39]Clear old archive folders... [15:36:39]ProcessDocumentItem done err = 0, tmpTLVsize=282 [15:36:39]tlvbuf is 01811240 [15:36:39]SAM_PROTO_ClearQueue [15:36:39]wFMCommunicate request_size=4 [15:36:39]MH_SAM_APDU [15:36:39]CAPDU: 80 09 00 00 [15:36:39]Write to MH i2c: E2 08 00 25 13 80 09 00 00 00 00 00 00 AA [15:36:39]Write i2c OK [15:36:39]MH_I2C_Read... [15:36:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:39]Read from MH i2c: E2 [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: E2 03 00 [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: E2 03 00 25 13 00 90 00 AC [15:36:39]RAPDU: 90 00 [15:36:39]wFMCommunicate OK [15:36:39]SAM_PROTO_ClearQueue done [15:36:39]KKMCreateOFDPacket [15:36:39]OFDProtocolAddRootSTLVToBuf [15:36:39]FM_MakeSignedData [15:36:39]FM_MakeSignedData [15:36:39]SAM_PROTO_SignData [15:36:39]wFMCommunicate request_size=4 [15:36:39]MH_SAM_APDU [15:36:39]CAPDU: 80 0D 01 02 [15:36:39]Write to MH i2c: E2 08 00 26 13 80 0D 01 02 00 00 00 00 B2 [15:36:39]Write i2c OK [15:36:39]MH_I2C_Read... [15:36:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:39]Read from MH i2c: E2 [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: E2 03 00 [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: E2 03 00 26 13 00 90 00 AD [15:36:39]RAPDU: 90 00 [15:36:39]wFMCommunicate OK [15:36:39]wFMCommunicate request_size=255 [15:36:39]MH_SAM_APDU [15:36:39]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 07 8B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 [15:36:39]Write to MH i2c: E2 02 01 27 13 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 07 8B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 00 00 2F [15:36:39]Write i2c OK [15:36:39]MH_I2C_Read... [15:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:40]Read from MH i2c: E2 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 27 13 00 90 00 AE [15:36:40]RAPDU: 90 00 [15:36:40]wFMCommunicate OK [15:36:40]wFMCommunicate request_size=41 [15:36:40]MH_SAM_APDU [15:36:40]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EC C3 01 00 35 04 06 00 6E 92 10 10 31 DF [15:36:40]Write to MH i2c: E2 2C 00 28 13 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EC C3 01 00 35 04 06 00 6E 92 10 10 31 DF 00 00 5F [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:40]Read from MH i2c: E2 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 28 13 00 90 00 AF [15:36:40]RAPDU: 90 00 [15:36:40]wFMCommunicate OK [15:36:40]wFMCommunicate request_size=4 [15:36:40]MH_SAM_APDU [15:36:40]CAPDU: 80 0D 03 02 [15:36:40]Write to MH i2c: E2 08 00 29 13 80 0D 03 02 00 00 00 00 B7 [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:40]Read from MH i2c: E2 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 0B 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 0B 00 29 13 00 2E E6 DF 9E F4 4F 8F 9F 90 00 BA [15:36:40]RAPDU: 2E E6 DF 9E F4 4F 8F 9F 90 00 [15:36:40]wFMCommunicate OK [15:36:40]SAM_PROTO_SignData done [15:36:40]FM_MakeSignedData done [15:36:40]CreateOFDProtocolMessage [15:36:40]wFMCommunicate request_size=4 [15:36:40]MH_SAM_APDU [15:36:40]CAPDU: 80 11 00 00 [15:36:40]Write to MH i2c: E2 08 00 2A 13 80 11 00 00 00 00 00 00 B7 [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:40]Read from MH i2c: E2 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 17 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 17 00 2A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 05 [15:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:36:40]wFMCommunicate OK [15:36:40]CreateOFDProtocolMessage done [15:36:40]OFDSenderStorePacket 115692 [15:36:40]StoreOFDPacket docnum=115692 [15:36:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 01 00 00 25 8F 26 01 F7 10 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 07 8B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EC C3 01 00 35 04 06 00 6E 92 10 10 31 DF 2E E6 DF 9E F4 4F 8F 9F [15:36:40]CheckFolder [15:36:40]dirname=/storage/ofd_packets [15:36:40]CheckFolder done [15:36:40]ProducePacketName [15:36:40]name=ofd_packets/00115692 [15:36:40]NVStorageSaveData ofd_packets/00115692 [15:36:40]File name is /storage/ofd_packets/00115692 [15:36:40]Write 332 bytes [15:36:40]NVStorageSaveData done [15:36:40]OFDSenderStorePacket done [15:36:40]KKMCreateOFDPacket done [15:36:40]NVStorageSaveData kkm_last_timestamp [15:36:40]File name is /storage/kkm_last_timestamp [15:36:40]Write 4 bytes [15:36:40]NVStorageSaveData done [15:36:40]ExternCall_PrintAddStr [15:36:40]wPrintStart [15:36:40]Write to MH i2c: 01 00 00 2B 13 3E [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: 01 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: 01 07 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: 01 07 00 2B 13 00 00 00 00 00 FF 0F 53 [15:36:40]RasterBufferAndPrint [15:36:40]line Счет N : (3)344043 [15:36:40]line ИНН: 02508201610067 [15:36:40]line Контрольно-Кассовый Чек [15:36:40]line ПРОДАЖА [15:36:40]line Товар: 2000036220012 [15:36:40]line Кофе Капучино XL(GABB TRADE) [15:36:40]line 1.000 * 130.00 [15:36:40]line = 130.00 [15:36:40]line НДС 12% НСП 1% [15:36:40]line > о реализуемом товаре [15:36:40]line ИТОГО: 130.00 [15:36:40]line НСП 1% : 1.15 [15:36:40]line НДС 12% : 13.80 [15:36:40]line Наличными: 130.00 [15:36:40]line Безнал.: 0.00 [15:36:40]line Место: АЗС № 90 "Партнер Нефть" [15:36:40]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:36:40]line СНО: Общий режим [15:36:40]line Чек 175 23.09.2024 15:36 [15:36:40]line Смена: 472 ФФД: 1.0 [15:36:40]line ЗНМ: 0300000120 [15:36:40]line РНМ: 0000000000091831 [15:36:40]line Версия ККМ: 001 [15:36:40]line ФМ: 0000000000871830 [15:36:40]line ФД: 115692 [15:36:40]line ФПД: 121573613777375 [15:36:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T153639&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115692&fm=121573613777375&tin=02508201610067®Number=0000000000091831&sum=13000 [15:36:40]line 0 [15:36:40]written 0, free lines is 4095 [15:36:40]OFD Sender: Processing packet 115692 [packets to send 482, broken 481] [15:36:40]ProducePacketName [15:36:40]name=ofd_packets/00115692 [15:36:40]OFD Sender: To server: pG, [15:36:40]CommunicateWithHost lk.salyk.kg:30040 [15:36:40]ConnectInit lk.salyk.kg [15:36:40]Connected sock=9 [15:36: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 38 33 30 2E 01 00 00 25 8F 26 01 F7 10 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 07 8B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EC C3 01 00 35 04 06 00 6E 92 10 10 31 DF 2E E6 DF 9E F4 4F 8F 9F [15:36:40]Write to MH i2c: 01 00 00 53 13 66 [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: 01 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: 01 07 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: 01 07 00 53 13 00 00 00 00 00 65 0C DE [15:36:40]RasterBufferAndPrint [15:36:40]line [15:36:40]line [15:36:40]line [15:36:40]line [15:36:40]line [15:36:40]written 0, free lines is 3178 [15:36:40]MH_Cut [15:36:40]Write to MH i2c: D1 01 00 5A 13 01 3F [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: D1 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: D1 01 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: D1 01 00 5A 13 00 3E [15:36:40]Write to MH i2c: 01 00 00 5B 13 6E [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D4 0A 47 00 68 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 38 33 30 10 04 04 00 EC C3 01 00 F4 03 04 00 49 30 F1 66 B6 04 01 00 00 F7 89 98 90 E6 34 BC 9A [15:36:40]CommunicateWithHost err = 0 [15:36:40]CheckOFDResponse [15:36:40]1017 (14) - 77093643461234 [15:36:40]1041 (16) - 0000000000871830 [15:36:40]1040 (4) - 115692 [15:36:40]1012 (4) - 23.09.2024 09:09 [15:36:40]1206 (1) - 0 [15:36:40]OFD Sender: Remove packet 115692 [15:36:40]ProducePacketName [15:36:40]name=ofd_packets/00115692 [15:36:40]NVStorageDeleteData [15:36:41]OFD Sender: No OFD packet to send [15:36:42]*** Cut start [15:36:42]*** Partial cut [15:36:42]*** CUTSNS_PIN = 1 [15:36:42]*** CUTSNS_PIN = 0 [15:36:42]*** Brake cut motor [15:36:42]Read from MH i2c: 01 [15:36:42]MH_I2C_Read... [15:36:42]*** Stop cut motor [15:36:42]*** Cut end [15:36:42]Read from MH i2c: 01 07 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: 01 07 00 5B 13 00 00 00 00 00 FF 0F 83 [15:36:42]process_action close_receipt done [15:36:42]requested_data is exist [15:36:42]produce_requested_data [15:36:42]requested_item fm.sn is exist - process it [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 11 00 00 [15:36:42]Write to MH i2c: E2 08 00 5C 13 80 11 00 00 00 00 00 00 E9 [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 17 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 17 00 5C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 37 [15:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:36:42]wFMCommunicate OK [15:36:42]requested_item fd.num is exist - process it [15:36:42]SAM_PROTO_GetFieldsCounters [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 13 00 00 [15:36:42]Write to MH i2c: E2 08 00 5D 13 80 13 00 00 00 00 00 00 EC [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 62 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 62 00 5D 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EC C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [15:36: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EC C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:42]wFMCommunicate OK [15:36:42]SAM_PROTO_GetFieldsCounters done [15:36:42]requested_item shift.num is exist - process it [15:36:42]requested_item shift.opened is exist - process it [15:36:42]req_shift_opened [15:36:42]FM_GetShiftState [15:36:42]SAM_PROTO_GetShiftState [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 13 01 00 [15:36:42]Write to MH i2c: E2 08 00 5E 13 80 13 01 00 00 00 00 00 EE [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 0E 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 0E 00 5E 13 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 2F [15:36:42]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:36:42]wFMCommunicate OK [15:36:42]SAM_PROTO_GetShiftState done [15:36:42]FM_GetShiftState done [15:36:42]req_shift_opened done [15:36:42]requested_item shift.open_date is exist - process it [15:36:42]req_shift_open_date [15:36:42]req_shift_open_date done [15:36:42]produce_requested_data done [15:36:42]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115692,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [15:36:42]process_action_free close_receipt [15:36:42]json_value_free [15:36:42]json_value_free done [15:36:42]process_json_proto returns [15:36:42]Send response to host [15:36:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115692,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [15:36:42]free response buf [15:36:42]execute_script done [15:36:42]execute_script returns [15:36:42]free content buf [15:36:42]Sock 7.Close socket [15:36:42]Sock 7.Thread stoped [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:36:59]accept exits with 10 [15:36:59]New connection [15:36:59]New thread 3066879332 created [15:36:59]Thread 3067022692 joined [15:36:59]Waiting for new connection... [15:36:59] Sock 10.Parse request [15:36:59]Sock 10.Check first char [15:36:59]Sock 10.First char is OK [15:36:59]request: POST /json_proto HTTP/1.0 [15:36:59]Method: POST [15:36:59]URL: /json_proto [15:36:59]Method is POST - this is cgi request [15:36:59]url: /json_proto [15:36:59]query_string will be loaded in cgi processing [15:36:59]execute_cgi json_proto POST (null) [15:36:59]execute_cgi path=json_proto method=POST [15:36:59]POST find Content-Length [15:36:59]Host: 172.17.41.136:8080 [15:36:59]Content-Length: 1013 [15:36:59]Content-Type: application/json [15:36:59] [15:36:59]POST finish read [15:36:59]Found Content-Length = 1013 [15:36:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344044", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:59]execute_script... [15:36:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344044", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:59]POST & json_proto [15:36:59]process_json_proto [15:36:59]json parsed OK: [15:36:59]protocol is kg_v1.0 [15:36:59]action value=close_receipt [15:36:59]process_action close_receipt [15:36:59]cmd_close_receipt [15:36:59]MH_GetDate [15:36:59]Write to MH i2c: F0 00 00 5F 13 61 [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: F0 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: F0 09 00 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: F0 09 00 5F 13 00 1C 8B F1 66 1B D0 5A 64 11 [15:36:59]GetLastDocTimeStamp 1727105799 [15:36:59]current date 1727105820 [15:36:59]FM_GetShiftState [15:36:59]SAM_PROTO_GetShiftState [15:36:59]wFMCommunicate request_size=4 [15:36:59]MH_SAM_APDU [15:36:59]CAPDU: 80 13 01 00 [15:36:59]Write to MH i2c: E2 08 00 60 13 80 13 01 00 00 00 00 00 F0 [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:59]Read from MH i2c: E2 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 0E 00 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 0E 00 60 13 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 31 [15:36:59]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:36:59]wFMCommunicate OK [15:36:59]SAM_PROTO_GetShiftState done [15:36:59]FM_GetShiftState done [15:36:59]opened in 1727052070 [15:36:59]opened+sec_in_day 1727138470 [15:36:59]quantity*price = 26000 [15:36:59]sum+1 = 26001 [15:36:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 320.00 НСП 1% : 2.83 НДС 12% : 33.98 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 176 23.09.2024 15:37 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115693 ФПД: 78441207409944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T153700&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115693&fm=78441207409944&tin=02508201610067®Number=0000000000091831&sum=32000 0 [15:37:00]StoreToDocumentArchive [15:37:00]shift 472 fd 115693 [15:37:00]save to /storage/0472/doc_00115693 [15:37:00]save last doc name /storage/0472/doc_00115693 to /storage/kkm_last_doc_name [15:37:00]save OK [15:37:00]Clear old archive folders... [15:37:00]ProcessDocumentItem done err = 0, tmpTLVsize=429 [15:37:00]tlvbuf is B6EB9360 [15:37:00]SAM_PROTO_ClearQueue [15:37:00]wFMCommunicate request_size=4 [15:37:00]MH_SAM_APDU [15:37:00]CAPDU: 80 09 00 00 [15:37:00]Write to MH i2c: E2 08 00 6D 13 80 09 00 00 00 00 00 00 F2 [15:37:00]Write i2c OK [15:37:00]MH_I2C_Read... [15:37:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:00]Read from MH i2c: E2 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 03 00 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 03 00 6D 13 00 90 00 F4 [15:37:00]RAPDU: 90 00 [15:37:00]wFMCommunicate OK [15:37:00]SAM_PROTO_ClearQueue done [15:37:00]KKMCreateOFDPacket [15:37:00]OFDProtocolAddRootSTLVToBuf [15:37:00]FM_MakeSignedData [15:37:00]FM_MakeSignedData [15:37:00]SAM_PROTO_SignData [15:37:00]wFMCommunicate request_size=4 [15:37:00]MH_SAM_APDU [15:37:00]CAPDU: 80 0D 01 02 [15:37:00]Write to MH i2c: E2 08 00 6E 13 80 0D 01 02 00 00 00 00 FA [15:37:00]Write i2c OK [15:37:00]MH_I2C_Read... [15:37:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:01]Read from MH i2c: E2 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: E2 03 00 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: E2 03 00 6E 13 00 90 00 F5 [15:37:01]RAPDU: 90 00 [15:37:01]wFMCommunicate OK [15:37:01]wFMCommunicate request_size=255 [15:37:01]MH_SAM_APDU [15:37:01]CAPDU: 80 0D 02 02 FA 03 00 AD 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 [15:37:01]Write to MH i2c: E2 02 01 6F 13 80 0D 02 02 FA 00 03 00 AD 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 C2 [15:37:01]Write i2c OK [15:37:01]MH_I2C_Read... [15:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:01]Read from MH i2c: E2 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: E2 03 00 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: E2 03 00 6F 13 00 90 00 F6 [15:37:01]RAPDU: 90 00 [15:37:01]wFMCommunicate OK [15:37:01]wFMCommunicate request_size=188 [15:37:01]MH_SAM_APDU [15:37:01]CAPDU: 80 0D 02 02 B7 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 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 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 B0 00 00 00 F4 03 04 00 1C 8B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 ED C3 01 00 35 04 06 00 47 57 84 4D AD 18 [15:37:01]Write to MH i2c: E2 BF 00 70 13 80 0D 02 02 B7 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 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 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 B0 00 00 00 F4 03 04 00 1C 8B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 ED C3 01 00 35 04 06 00 47 57 84 4D AD 18 00 00 2E [15:37:01]Write i2c OK [15:37:01]MH_I2C_Read... [15:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:01]Read from MH i2c: E2 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: E2 03 00 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: E2 03 00 70 13 00 90 00 F7 [15:37:01]RAPDU: 90 00 [15:37:01]wFMCommunicate OK [15:37:01]wFMCommunicate request_size=4 [15:37:01]MH_SAM_APDU [15:37:01]CAPDU: 80 0D 03 02 [15:37:01]Write to MH i2c: E2 08 00 71 13 80 0D 03 02 00 00 00 00 FF [15:37:01]Write i2c OK [15:37:01]MH_I2C_Read... [15:37:01]OFD Sender: No OFD packet to send [15:37:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:01]Read from MH i2c: E2 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: E2 0B 00 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: E2 0B 00 71 13 00 71 26 30 41 17 02 28 06 90 00 4F [15:37:01]RAPDU: 71 26 30 41 17 02 28 06 90 00 [15:37:01]wFMCommunicate OK [15:37:01]SAM_PROTO_SignData done [15:37:01]FM_MakeSignedData done [15:37:01]CreateOFDProtocolMessage [15:37:01]wFMCommunicate request_size=4 [15:37:01]MH_SAM_APDU [15:37:01]CAPDU: 80 11 00 00 [15:37:01]Write to MH i2c: E2 08 00 72 13 80 11 00 00 00 00 00 00 FF [15:37:01]Write i2c OK [15:37:01]MH_I2C_Read... [15:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:01]Read from MH i2c: E2 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: E2 17 00 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: E2 17 00 72 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4D [15:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:37:01]wFMCommunicate OK [15:37:01]CreateOFDProtocolMessage done [15:37:01]OFDSenderStorePacket 115693 [15:37:01]StoreOFDPacket docnum=115693 [15:37:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 C1 01 00 00 1F D7 B9 01 C8 68 5A 03 01 00 03 00 AD 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 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 B0 00 00 00 F4 03 04 00 1C 8B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 ED C3 01 00 35 04 06 00 47 57 84 4D AD 18 71 26 30 41 17 02 28 06 [15:37:01]CheckFolder [15:37:01]dirname=/storage/ofd_packets [15:37:01]CheckFolder done [15:37:01]ProducePacketName [15:37:01]name=ofd_packets/00115693 [15:37:01]NVStorageSaveData ofd_packets/00115693 [15:37:01]File name is /storage/ofd_packets/00115693 [15:37:01]Write 479 bytes [15:37:01]NVStorageSaveData done [15:37:01]OFDSenderStorePacket done [15:37:01]KKMCreateOFDPacket done [15:37:01]NVStorageSaveData kkm_last_timestamp [15:37:01]File name is /storage/kkm_last_timestamp [15:37:01]Write 4 bytes [15:37:01]NVStorageSaveData done [15:37:01]ExternCall_PrintAddStr [15:37:01]wPrintStart [15:37:01]Write to MH i2c: 01 00 00 73 13 86 [15:37:01]OFD Sender: Processing packet 115693 [packets to send 482, broken 481] [15:37:01]ProducePacketName [15:37:01]name=ofd_packets/00115693 [15:37:01]OFD Sender: To server: pG, [15:37:01]CommunicateWithHost lk.salyk.kg:30040 [15:37:01]ConnectInit lk.salyk.kg [15:37:01]Write i2c OK [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: 01 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: 01 07 00 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: 01 07 00 73 13 00 00 00 00 00 FF 0F 9B [15:37:01]RasterBufferAndPrint [15:37:01]line Счет N : (3)344044 [15:37:01]line ИНН: 02508201610067 [15:37:01]line Контрольно-Кассовый Чек [15:37:01]line ПРОДАЖА [15:37:01]line Товар: 4870002329951 [15:37:01]line Напиток Lipton IceTea 1л зел чай Regular [15:37:01]line 2.000 * 130.00 [15:37:01]line = 260.00 [15:37:01]line НДС 12% НСП 1% [15:37:01]line > о реализуемом товаре [15:37:01]line Товар: 4700000160792 [15:37:01]line Снек Курут классический (круглый) [15:37:01]line 1.000 * 60.00 [15:37:01]line = 60.00 [15:37:01]line НДС 12% НСП 1% [15:37:01]line > о реализуемом товаре [15:37:01]line ИТОГО: 320.00 [15:37:01]line НСП 1% : 2.83 [15:37:01]line НДС 12% : 33.98 [15:37:01]line Наличными: 320.00 [15:37:01]line Безнал.: 0.00 [15:37:01]line Место: АЗС № 90 "Партнер Нефть" [15:37:01]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:37:01]line СНО: Общий режим [15:37:01]line Чек 176 23.09.2024 15:37 [15:37:01]line Смена: 472 ФФД: 1.0 [15:37:01]line ЗНМ: 0300000120 [15:37:01]line РНМ: 0000000000091831 [15:37:01]line Версия ККМ: 001 [15:37:01]line ФМ: 0000000000871830 [15:37:01]line ФД: 115693 [15:37:01]line ФПД: 78441207409944 [15:37:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T153700&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115693&fm=78441207409944&tin=02508201610067®Number=0000000000091831&sum=32000 [15:37:01]line 0 [15:37:01]written 0, free lines is 4095 [15:37:02]Connected sock=9 [15:37: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 38 33 30 C1 01 00 00 1F D7 B9 01 C8 68 5A 03 01 00 03 00 AD 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 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 B0 00 00 00 F4 03 04 00 1C 8B F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 ED C3 01 00 35 04 06 00 47 57 84 4D AD 18 71 26 30 41 17 02 28 06 [15:37:02]Write to MH i2c: 01 00 00 A2 13 B5 [15:37:02]Write i2c OK [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: 01 [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: 01 07 00 [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: 01 07 00 A2 13 00 00 00 00 00 F2 0B B9 [15:37:02]RasterBufferAndPrint [15:37:02]line [15:37:02]line [15:37:02]line [15:37:02]line [15:37:02]line [15:37:02]written 0, free lines is 3061 [15:37:02]MH_Cut [15:37:02]Write to MH i2c: D1 01 00 A9 13 01 8E [15:37:02]Write i2c OK [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: D1 [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: D1 01 00 [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: D1 01 00 A9 13 00 8D [15:37:02]Write to MH i2c: 01 00 00 AA 13 BD [15:37:02]Write i2c OK [15:37:02]MH_I2C_Read... [15:37:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 75 6E 47 00 3F 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 38 33 30 10 04 04 00 ED C3 01 00 F4 03 04 00 5F 30 F1 66 B6 04 01 00 00 25 40 B5 C2 E6 A1 63 49 [15:37:02]CommunicateWithHost err = 0 [15:37:02]CheckOFDResponse [15:37:02]1017 (14) - 77093643461234 [15:37:02]1041 (16) - 0000000000871830 [15:37:02]1040 (4) - 115693 [15:37:02]1012 (4) - 23.09.2024 09:09 [15:37:02]1206 (1) - 0 [15:37:02]OFD Sender: Remove packet 115693 [15:37:02]ProducePacketName [15:37:02]name=ofd_packets/00115693 [15:37:02]NVStorageDeleteData [15:37:03]OFD Sender: No OFD packet to send [15:37:03]*** Cut start [15:37:03]*** Partial cut [15:37:03]*** CUTSNS_PIN = 1 [15:37:04]*** CUTSNS_PIN = 0 [15:37:04]*** Brake cut motor [15:37:04]Read from MH i2c: 01 [15:37:04]MH_I2C_Read... [15:37:04]*** Stop cut motor [15:37:04]*** Cut end [15:37:04]Read from MH i2c: 01 07 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: 01 07 00 AA 13 00 00 00 00 00 FF 0F D2 [15:37:04]process_action close_receipt done [15:37:04]requested_data is exist [15:37:04]produce_requested_data [15:37:04]requested_item fm.sn is exist - process it [15:37:04]wFMCommunicate request_size=4 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 11 00 00 [15:37:04]Write to MH i2c: E2 08 00 AB 13 80 11 00 00 00 00 00 00 38 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 17 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 17 00 AB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 86 [15:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:37:04]wFMCommunicate OK [15:37:04]requested_item fd.num is exist - process it [15:37:04]SAM_PROTO_GetFieldsCounters [15:37:04]wFMCommunicate request_size=4 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 13 00 00 [15:37:04]Write to MH i2c: E2 08 00 AC 13 80 13 00 00 00 00 00 00 3B [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 62 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 62 00 AC 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 ED C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [15:37: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 ED C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:04]wFMCommunicate OK [15:37:04]SAM_PROTO_GetFieldsCounters done [15:37:04]requested_item shift.num is exist - process it [15:37:04]requested_item shift.opened is exist - process it [15:37:04]req_shift_opened [15:37:04]FM_GetShiftState [15:37:04]SAM_PROTO_GetShiftState [15:37:04]wFMCommunicate request_size=4 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 13 01 00 [15:37:04]Write to MH i2c: E2 08 00 AD 13 80 13 01 00 00 00 00 00 3D [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 0E 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 0E 00 AD 13 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7E [15:37:04]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:37:04]wFMCommunicate OK [15:37:04]SAM_PROTO_GetShiftState done [15:37:04]FM_GetShiftState done [15:37:04]req_shift_opened done [15:37:04]requested_item shift.open_date is exist - process it [15:37:04]req_shift_open_date [15:37:04]req_shift_open_date done [15:37:04]produce_requested_data done [15:37:04]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115693,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [15:37:04]process_action_free close_receipt [15:37:04]json_value_free [15:37:04]json_value_free done [15:37:04]process_json_proto returns [15:37:04]Send response to host [15:37:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115693,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [15:37:04]free response buf [15:37:04]execute_script done [15:37:04]execute_script returns [15:37:04]free content buf [15:37:04]Sock 10.Close socket [15:37:04]Sock 10.Thread stoped [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:43]OFD Sender: No OFD packet to send [15:37:48]OFD Sender: No OFD packet to send [15:37:53]OFD Sender: No OFD packet to send [15:37:58]OFD Sender: No OFD packet to send [15:38:03]OFD Sender: No OFD packet to send [15:38:08]OFD Sender: No OFD packet to send [15:38:13]OFD Sender: No OFD packet to send [15:38:18]OFD Sender: No OFD packet to send [15:38:23]OFD Sender: No OFD packet to send [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:49]accept exits with 7 [15:55:49]New connection [15:55:49]New thread 3067022692 created [15:55:49]Thread 3066879332 joined [15:55:49]Waiting for new connection... [15:55:49] Sock 7.Parse request [15:55:49]Sock 7.Check first char [15:55:49]Sock 7.First char is OK [15:55:49]request: POST /json_proto HTTP/1.0 [15:55:49]Method: POST [15:55:49]URL: /json_proto [15:55:49]Method is POST - this is cgi request [15:55:49]url: /json_proto [15:55:49]query_string will be loaded in cgi processing [15:55:49]execute_cgi json_proto POST (null) [15:55:49]execute_cgi path=json_proto method=POST [15:55:49]POST find Content-Length [15:55:49]Host: 172.17.41.136:8080 [15:55:49]Content-Length: 1768 [15:55:49]Content-Type: application/json [15:55:49] [15:55:49]POST finish read [15:55:49]Found Content-Length = 1768 [15:55:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344045", "tax_sys" : 0, "items" : [ { "code": "4870002328497", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u044F\u0433\u043E\u0434,\u043A\u0430\u0440\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 380.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:49]execute_script... [15:55:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344045", "tax_sys" : 0, "items" : [ { "code": "4870002328497", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u044F\u0433\u043E\u0434,\u043A\u0430\u0440\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 380.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:49]POST & json_proto [15:55:49]process_json_proto [15:55:49]json parsed OK: [15:55:49]protocol is kg_v1.0 [15:55:49]action value=close_receipt [15:55:49]process_action close_receipt [15:55:49]cmd_close_receipt [15:55:49]MH_GetDate [15:55:49]Write to MH i2c: F0 00 00 AE 13 B0 [15:55:49]Write i2c OK [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: F0 [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: F0 09 00 [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: F0 09 00 AE 13 00 86 8F F1 66 1B D0 5A 64 CE [15:55:49]GetLastDocTimeStamp 1727105820 [15:55:49]current date 1727106950 [15:55:49]FM_GetShiftState [15:55:49]SAM_PROTO_GetShiftState [15:55:49]wFMCommunicate request_size=4 [15:55:49]MH_SAM_APDU [15:55:49]CAPDU: 80 13 01 00 [15:55:49]Write to MH i2c: E2 08 00 AF 13 80 13 01 00 00 00 00 00 3F [15:55:49]Write i2c OK [15:55:49]MH_I2C_Read... [15:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:49]Read from MH i2c: E2 [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: E2 0E 00 [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: E2 0E 00 AF 13 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 80 [15:55:49]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:55:49]wFMCommunicate OK [15:55:49]SAM_PROTO_GetShiftState done [15:55:49]FM_GetShiftState done [15:55:49]opened in 1727052070 [15:55:49]opened+sec_in_day 1727138470 [15:55:49]quantity*price = 9000 [15:55:49]sum+1 = 9001 [15:55:49]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620016307540 Салфетки Absolut Nat FITOGUARD алоэ 20 ш 1.000 * 55.00 = 55.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310326 Вода Адыгене 1л б/г 1.000 * 35.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000481453 Напиток энерг Nitro Max 0,45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 380.00 НСП 1% : 3.37 НДС 12% : 40.36 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 177 23.09.2024 15:55 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115694 ФПД: 248431738272961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T155550&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115694&fm=248431738272961&tin=02508201610067®Number=0000000000091831&sum=38000 0 [15:55:50]StoreToDocumentArchive [15:55:50]shift 472 fd 115694 [15:55:50]save to /storage/0472/doc_00115694 [15:55:50]save last doc name /storage/0472/doc_00115694 to /storage/kkm_last_doc_name [15:55:50]save OK [15:55:50]Clear old archive folders... [15:55:50]ProcessDocumentItem done err = 0, tmpTLVsize=748 [15:55:50]tlvbuf is 017C8A60 [15:55:50]SAM_PROTO_ClearQueue [15:55:50]wFMCommunicate request_size=4 [15:55:50]MH_SAM_APDU [15:55:50]CAPDU: 80 09 00 00 [15:55:50]Write to MH i2c: E2 08 00 BC 13 80 09 00 00 00 00 00 00 41 [15:55:50]Write i2c OK [15:55:50]MH_I2C_Read... [15:55:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:51]Read from MH i2c: E2 [15:55:51]MH_I2C_Read... [15:55:51]Read from MH i2c: E2 03 00 [15:55:51]MH_I2C_Read... [15:55:51]Read from MH i2c: E2 03 00 BC 13 00 90 00 43 [15:55:51]RAPDU: 90 00 [15:55:51]wFMCommunicate OK [15:55:51]SAM_PROTO_ClearQueue done [15:55:51]KKMCreateOFDPacket [15:55:51]OFDProtocolAddRootSTLVToBuf [15:55:51]FM_MakeSignedData [15:55:51]FM_MakeSignedData [15:55:51]SAM_PROTO_SignData [15:55:51]wFMCommunicate request_size=4 [15:55:51]MH_SAM_APDU [15:55:51]CAPDU: 80 0D 01 02 [15:55:51]Write to MH i2c: E2 08 00 BD 13 80 0D 01 02 00 00 00 00 49 [15:55:51]Write i2c OK [15:55:51]MH_I2C_Read... [15:55:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:51]Read from MH i2c: E2 [15:55:51]MH_I2C_Read... [15:55:51]Read from MH i2c: E2 03 00 [15:55:51]MH_I2C_Read... [15:55:51]Read from MH i2c: E2 03 00 BD 13 00 90 00 44 [15:55:51]RAPDU: 90 00 [15:55:51]wFMCommunicate OK [15:55:51]wFMCommunicate request_size=255 [15:55:51]MH_SAM_APDU [15:55:51]CAPDU: 80 0D 02 02 FA 03 00 EC 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 39 37 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B3 D0 BE D0 B4 2C D0 BA D0 B0 D1 80 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [15:55:51]Write to MH i2c: E2 02 01 BE 13 80 0D 02 02 FA 00 03 00 EC 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 39 37 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B3 D0 BE D0 B4 2C D0 BA D0 B0 D1 80 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 D0 [15:55:51]Write i2c OK [15:55:51]MH_I2C_Read... [15:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:51]Read from MH i2c: E2 [15:55:51]MH_I2C_Read... [15:55:51]Read from MH i2c: E2 03 00 [15:55:51]MH_I2C_Read... [15:55:51]Read from MH i2c: E2 03 00 BE 13 00 90 00 45 [15:55:51]RAPDU: 90 00 [15:55:51]wFMCommunicate OK [15:55:51]wFMCommunicate request_size=255 [15:55:51]MH_SAM_APDU [15:55:51]CAPDU: 80 0D 02 02 FA 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF [15:55:51]Write to MH i2c: E2 02 01 BF 13 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF 00 00 68 [15:55:51]Write i2c OK [15:55:51]MH_I2C_Read... [15:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:51]Read from MH i2c: E2 [15:55:51]MH_I2C_Read... [15:55:51]Read from MH i2c: E2 03 00 [15:55:51]MH_I2C_Read... [15:55:51]Read from MH i2c: E2 03 00 BF 13 00 90 00 46 [15:55:51]RAPDU: 90 00 [15:55:51]wFMCommunicate OK [15:55:51]wFMCommunicate request_size=255 [15:55:51]MH_SAM_APDU [15:55:51]CAPDU: 80 0D 02 02 FA D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 86 8F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EE C3 01 00 35 04 06 00 E1 F2 85 82 [15:55:51]Write to MH i2c: E2 02 01 C0 13 80 0D 02 02 FA 00 D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 86 8F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EE C3 01 00 35 04 06 00 E1 F2 85 82 00 00 BB [15:55:51]Write i2c OK [15:55:51]MH_I2C_Read... [15:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:51]Read from MH i2c: E2 [15:55:51]MH_I2C_Read... [15:55:51]Read from MH i2c: E2 03 00 [15:55:51]MH_I2C_Read... [15:55:51]Read from MH i2c: E2 03 00 C0 13 00 90 00 47 [15:55:51]RAPDU: 90 00 [15:55:51]wFMCommunicate OK [15:55:51]wFMCommunicate request_size=7 [15:55:51]MH_SAM_APDU [15:55:51]CAPDU: 80 0D 02 02 02 BC C1 [15:55:51]Write to MH i2c: E2 0A 00 C1 13 80 0D 02 02 02 00 BC C1 00 00 CF [15:55:51]Write i2c OK [15:55:51]MH_I2C_Read... [15:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:51]Read from MH i2c: E2 [15:55:51]MH_I2C_Read... [15:55:51]Read from MH i2c: E2 03 00 [15:55:51]MH_I2C_Read... [15:55:51]Read from MH i2c: E2 03 00 C1 13 00 90 00 48 [15:55:51]RAPDU: 90 00 [15:55:51]wFMCommunicate OK [15:55:51]wFMCommunicate request_size=4 [15:55:51]MH_SAM_APDU [15:55:51]CAPDU: 80 0D 03 02 [15:55:51]Write to MH i2c: E2 08 00 C2 13 80 0D 03 02 00 00 00 00 50 [15:55:51]Write i2c OK [15:55:51]MH_I2C_Read... [15:55:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:52]Read from MH i2c: E2 [15:55:52]MH_I2C_Read... [15:55:52]Read from MH i2c: E2 0B 00 [15:55:52]MH_I2C_Read... [15:55:52]Read from MH i2c: E2 0B 00 C2 13 00 74 4C AD CB D2 CF 0B 46 90 00 7B [15:55:52]RAPDU: 74 4C AD CB D2 CF 0B 46 90 00 [15:55:52]wFMCommunicate OK [15:55:52]SAM_PROTO_SignData done [15:55:52]FM_MakeSignedData done [15:55:52]CreateOFDProtocolMessage [15:55:52]wFMCommunicate request_size=4 [15:55:52]MH_SAM_APDU [15:55:52]CAPDU: 80 11 00 00 [15:55:52]Write to MH i2c: E2 08 00 C3 13 80 11 00 00 00 00 00 00 50 [15:55:52]Write i2c OK [15:55:52]MH_I2C_Read... [15:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:52]Read from MH i2c: E2 [15:55:52]MH_I2C_Read... [15:55:52]Read from MH i2c: E2 17 00 [15:55:52]MH_I2C_Read... [15:55:52]Read from MH i2c: E2 17 00 C3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9E [15:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:55:52]wFMCommunicate OK [15:55:52]CreateOFDProtocolMessage done [15:55:52]OFDSenderStorePacket 115694 [15:55:52]StoreOFDPacket docnum=115694 [15:55:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 00 03 00 00 3C D3 F8 02 85 FF 5A 03 01 00 03 00 EC 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 39 37 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B3 D0 BE D0 B4 2C D0 BA D0 B0 D1 80 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 86 8F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EE C3 01 00 35 04 06 00 E1 F2 85 82 BC C1 74 4C AD CB D2 CF 0B 46 [15:55:52]CheckFolder [15:55:52]dirname=/storage/ofd_packets [15:55:52]CheckFolder done [15:55:52]ProducePacketName [15:55:52]name=ofd_packets/00115694 [15:55:52]NVStorageSaveData ofd_packets/00115694 [15:55:52]File name is /storage/ofd_packets/00115694 [15:55:52]Write 798 bytes [15:55:52]NVStorageSaveData done [15:55:52]OFDSenderStorePacket done [15:55:52]KKMCreateOFDPacket done [15:55:52]NVStorageSaveData kkm_last_timestamp [15:55:52]File name is /storage/kkm_last_timestamp [15:55:52]Write 4 bytes [15:55:52]NVStorageSaveData done [15:55:52]ExternCall_PrintAddStr [15:55:52]wPrintStart [15:55:52]Write to MH i2c: 01 00 00 C4 13 D7 [15:55:52]Write i2c OK [15:55:52]MH_I2C_Read... [15:55:52]Read from MH i2c: 01 [15:55:52]MH_I2C_Read... [15:55:52]Read from MH i2c: 01 07 00 [15:55:52]MH_I2C_Read... [15:55:52]Read from MH i2c: 01 07 00 C4 13 00 00 00 00 00 FF 0F EC [15:55:52]RasterBufferAndPrint [15:55:52]line Счет N : (3)344045 [15:55:52]line ИНН: 02508201610067 [15:55:52]line Контрольно-Кассовый Чек [15:55:52]line ПРОДАЖА [15:55:52]line Товар: 4870002328497 [15:55:52]line Напиток DADA ягод,карк ПЭТ 0,5л [15:55:52]line 1.000 * 90.00 [15:55:52]line = 90.00 [15:55:52]line НДС 12% НСП 1% [15:55:52]line > о реализуемом товаре [15:55:52]line Товар: 4620016307540 [15:55:52]line Салфетки Absolut Nat FITOGUARD алоэ 20 ш [15:55:52]line 1.000 * 55.00 [15:55:52]line = 55.00 [15:55:52]line НДС 12% НСП 1% [15:55:52]line > о реализуемом товаре [15:55:52]line Товар: 5449000054227 [15:55:52]line Напиток Кока-Кола 1л [15:55:52]line 1.000 * 105.00 [15:55:52]line = 105.00 [15:55:52]line НДС 12% НСП 1% [15:55:52]line > о реализуемом товаре [15:55:52]line Товар: 4700000310326 [15:55:52]line Вода Адыгене 1л б/г [15:55:52]line 1.000 * 35.00 [15:55:52]line = 35.00 [15:55:52]line НДС 12% НСП 1% [15:55:52]line > о реализуемом товаре [15:55:52]line Товар: 4700000481453 [15:55:52]line Напиток энерг Nitro Max 0,45 ж/б [15:55:52]line 1.000 * 95.00 [15:55:52]line = 95.00 [15:55:52]line НДС 12% НСП 1% [15:55:52]line > о реализуемом товаре [15:55:52]line ИТОГО: 380.00 [15:55:52]line НСП 1% : 3.37 [15:55:52]line НДС 12% : 40.36 [15:55:52]line Наличными: 380.00 [15:55:52]line Безнал.: 0.00 [15:55:52]line Место: АЗС № 90 "Партнер Нефть" [15:55:52]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [15:55:52]line СНО: Общий режим [15:55:52]line Чек 177 23.09.2024 15:55 [15:55:52]line Смена: 472 ФФД: 1.0 [15:55:52]line ЗНМ: 0300000120 [15:55:52]line РНМ: 0000000000091831 [15:55:52]line Версия ККМ: 001 [15:55:52]line ФМ: 0000000000871830 [15:55:52]line ФД: 115694 [15:55:52]line ФПД: 248431738272961 [15:55:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T155550&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115694&fm=248431738272961&tin=02508201610067®Number=0000000000091831&sum=38000 [15:55:52]line 0 [15:55:52]written 0, free lines is 4095 [15:55:52]OFD Sender: Processing packet 115694 [packets to send 482, broken 481] [15:55:52]ProducePacketName [15:55:52]name=ofd_packets/00115694 [15:55:52]OFD Sender: To server: pG, [15:55:52]CommunicateWithHost lk.salyk.kg:30040 [15:55:52]ConnectInit lk.salyk.kg [15:55:52]Connected sock=10 [15:55: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 38 33 30 00 03 00 00 3C D3 F8 02 85 FF 5A 03 01 00 03 00 EC 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 39 37 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B3 D0 BE D0 B4 2C D0 BA D0 B0 D1 80 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 86 8F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EE C3 01 00 35 04 06 00 E1 F2 85 82 BC C1 74 4C AD CB D2 CF 0B 46 [15:55:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E8 5A 47 00 76 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 38 33 30 10 04 04 00 EE C3 01 00 F4 03 04 00 C9 34 F1 66 B6 04 01 00 00 A4 A9 05 44 45 B0 2D 76 [15:55:53]CommunicateWithHost err = 0 [15:55:53]CheckOFDResponse [15:55:53]1017 (14) - 77093643461234 [15:55:53]1041 (16) - 0000000000871830 [15:55:53]1040 (4) - 115694 [15:55:53]1012 (4) - 23.09.2024 09:28 [15:55:53]1206 (1) - 0 [15:55:53]OFD Sender: Remove packet 115694 [15:55:53]ProducePacketName [15:55:53]name=ofd_packets/00115694 [15:55:53]NVStorageDeleteData [15:55:53]Write to MH i2c: 01 00 00 06 14 1A [15:55:53]Write i2c OK [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: 01 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: 01 07 00 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: 01 07 00 06 14 00 00 00 00 00 30 0A 5B [15:55:53]RasterBufferAndPrint [15:55:53]line [15:55:53]line [15:55:53]line [15:55:53]line [15:55:53]line [15:55:53]written 0, free lines is 2615 [15:55:53]MH_Cut [15:55:53]Write to MH i2c: D1 01 00 0D 14 01 F3 [15:55:53]Write i2c OK [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: D1 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: D1 01 00 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: D1 01 00 0D 14 00 F2 [15:55:53]Write to MH i2c: 01 00 00 0E 14 22 [15:55:53]Write i2c OK [15:55:53]MH_I2C_Read... [15:55:53]OFD Sender: No OFD packet to send [15:55:55]*** Cut start [15:55:55]*** Partial cut [15:55:55]*** CUTSNS_PIN = 1 [15:55:55]*** CUTSNS_PIN = 0 [15:55:55]*** Brake cut motor [15:55:55]Read from MH i2c: 01 [15:55:55]MH_I2C_Read... [15:55:55]*** Stop cut motor [15:55:55]*** Cut end [15:55:55]Read from MH i2c: 01 07 00 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: 01 07 00 0E 14 00 00 00 00 00 FF 0F 37 [15:55:55]process_action close_receipt done [15:55:55]requested_data is exist [15:55:55]produce_requested_data [15:55:55]requested_item fm.sn is exist - process it [15:55:55]wFMCommunicate request_size=4 [15:55:55]MH_SAM_APDU [15:55:55]CAPDU: 80 11 00 00 [15:55:55]Write to MH i2c: E2 08 00 0F 14 80 11 00 00 00 00 00 00 9D [15:55:55]Write i2c OK [15:55:55]MH_I2C_Read... [15:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:55]Read from MH i2c: E2 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: E2 17 00 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: E2 17 00 0F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EB [15:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [15:55:55]wFMCommunicate OK [15:55:55]requested_item fd.num is exist - process it [15:55:55]SAM_PROTO_GetFieldsCounters [15:55:55]wFMCommunicate request_size=4 [15:55:55]MH_SAM_APDU [15:55:55]CAPDU: 80 13 00 00 [15:55:55]Write to MH i2c: E2 08 00 10 14 80 13 00 00 00 00 00 00 A0 [15:55:55]Write i2c OK [15:55:55]MH_I2C_Read... [15:55:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:55]Read from MH i2c: E2 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: E2 62 00 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: E2 62 00 10 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EE C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [15:55: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EE C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:55]wFMCommunicate OK [15:55:55]SAM_PROTO_GetFieldsCounters done [15:55:55]requested_item shift.num is exist - process it [15:55:55]requested_item shift.opened is exist - process it [15:55:55]req_shift_opened [15:55:55]FM_GetShiftState [15:55:55]SAM_PROTO_GetShiftState [15:55:55]wFMCommunicate request_size=4 [15:55:55]MH_SAM_APDU [15:55:55]CAPDU: 80 13 01 00 [15:55:55]Write to MH i2c: E2 08 00 11 14 80 13 01 00 00 00 00 00 A2 [15:55:55]Write i2c OK [15:55:55]MH_I2C_Read... [15:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:56]Read from MH i2c: E2 [15:55:56]MH_I2C_Read... [15:55:56]Read from MH i2c: E2 0E 00 [15:55:56]MH_I2C_Read... [15:55:56]Read from MH i2c: E2 0E 00 11 14 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E3 [15:55:56]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [15:55:56]wFMCommunicate OK [15:55:56]SAM_PROTO_GetShiftState done [15:55:56]FM_GetShiftState done [15:55:56]req_shift_opened done [15:55:56]requested_item shift.open_date is exist - process it [15:55:56]req_shift_open_date [15:55:56]req_shift_open_date done [15:55:56]produce_requested_data done [15:55:56]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115694,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [15:55:56]process_action_free close_receipt [15:55:56]json_value_free [15:55:56]json_value_free done [15:55:56]process_json_proto returns [15:55:56]Send response to host [15:55:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115694,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [15:55:56]free response buf [15:55:56]execute_script done [15:55:56]execute_script returns [15:55:56]free content buf [15:55:56]Sock 7.Close socket [15:55:56]Sock 7.Thread stoped [15:55:58]OFD Sender: No OFD packet to send [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]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:23]accept exits with 9 [16:06:23]New connection [16:06:23]New thread 3066879332 created [16:06:23]Thread 3067022692 joined [16:06:23]Waiting for new connection... [16:06:23] Sock 9.Parse request [16:06:23]Sock 9.Check first char [16:06:23]Sock 9.First char is OK [16:06:23]request: POST /json_proto HTTP/1.0 [16:06:23]Method: POST [16:06:23]URL: /json_proto [16:06:23]Method is POST - this is cgi request [16:06:23]url: /json_proto [16:06:23]query_string will be loaded in cgi processing [16:06:23]execute_cgi json_proto POST (null) [16:06:23]execute_cgi path=json_proto method=POST [16:06:23]POST find Content-Length [16:06:23]Host: 172.17.41.136:8080 [16:06:23]Content-Length: 1124 [16:06:23]Content-Type: application/json [16:06:23] [16:06:23]POST finish read [16:06:23]Found Content-Length = 1124 [16:06:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344046", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 3.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:23]execute_script... [16:06:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344046", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 3.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:23]POST & json_proto [16:06:23]process_json_proto [16:06:23]json parsed OK: [16:06:23]protocol is kg_v1.0 [16:06:23]action value=close_receipt [16:06:23]process_action close_receipt [16:06:23]cmd_close_receipt [16:06:23]MH_GetDate [16:06:23]Write to MH i2c: F0 00 00 12 14 15 [16:06:23]Write i2c OK [16:06:23]MH_I2C_Read... [16:06:23]Read from MH i2c: F0 [16:06:23]MH_I2C_Read... [16:06:23]Read from MH i2c: F0 09 00 [16:06:23]MH_I2C_Read... [16:06:23]Read from MH i2c: F0 09 00 12 14 00 00 92 F1 66 1B D0 5A 64 B0 [16:06:23]GetLastDocTimeStamp 1727106950 [16:06:23]current date 1727107584 [16:06:23]FM_GetShiftState [16:06:23]SAM_PROTO_GetShiftState [16:06:23]wFMCommunicate request_size=4 [16:06:23]MH_SAM_APDU [16:06:23]CAPDU: 80 13 01 00 [16:06:23]Write to MH i2c: E2 08 00 13 14 80 13 01 00 00 00 00 00 A4 [16:06:23]Write i2c OK [16:06:23]MH_I2C_Read... [16:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:23]Read from MH i2c: E2 [16:06:23]MH_I2C_Read... [16:06:23]Read from MH i2c: E2 0E 00 [16:06:23]MH_I2C_Read... [16:06:23]Read from MH i2c: E2 0E 00 13 14 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E5 [16:06:23]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:06:23]wFMCommunicate OK [16:06:23]SAM_PROTO_GetShiftState done [16:06:23]FM_GetShiftState done [16:06:23]opened in 1727052070 [16:06:23]opened+sec_in_day 1727138470 [16:06:23]quantity*price = 18000 [16:06:23]sum+1 = 18001 [16:06:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032760017 Слойка DC треугольная мясо110г 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 310.00 НСП 1% : 2.74 НДС 12% : 32.91 Наличными: 0.00 Безнал.: 310.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 178 23.09.2024 16:06 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115695 ФПД: 225063757736301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T160624&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115695&fm=225063757736301&tin=02508201610067®Number=0000000000091831&sum=31000 0 [16:06:24]StoreToDocumentArchive [16:06:24]shift 472 fd 115695 [16:06:24]save to /storage/0472/doc_00115695 [16:06:24]save last doc name /storage/0472/doc_00115695 to /storage/kkm_last_doc_name [16:06:24]save OK [16:06:24]Clear old archive folders... [16:06:24]ProcessDocumentItem done err = 0, tmpTLVsize=403 [16:06:24]tlvbuf is 017C8CB0 [16:06:24]SAM_PROTO_ClearQueue [16:06:24]wFMCommunicate request_size=4 [16:06:24]MH_SAM_APDU [16:06:24]CAPDU: 80 09 00 00 [16:06:24]Write to MH i2c: E2 08 00 20 14 80 09 00 00 00 00 00 00 A6 [16:06:24]Write i2c OK [16:06:24]MH_I2C_Read... [16:06:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:24]Read from MH i2c: E2 [16:06:24]MH_I2C_Read... [16:06:24]Read from MH i2c: E2 03 00 [16:06:24]MH_I2C_Read... [16:06:24]Read from MH i2c: E2 03 00 20 14 00 90 00 A8 [16:06:24]RAPDU: 90 00 [16:06:24]wFMCommunicate OK [16:06:24]SAM_PROTO_ClearQueue done [16:06:24]KKMCreateOFDPacket [16:06:24]OFDProtocolAddRootSTLVToBuf [16:06:24]FM_MakeSignedData [16:06:24]FM_MakeSignedData [16:06:24]SAM_PROTO_SignData [16:06:24]wFMCommunicate request_size=4 [16:06:24]MH_SAM_APDU [16:06:24]CAPDU: 80 0D 01 02 [16:06:24]Write to MH i2c: E2 08 00 21 14 80 0D 01 02 00 00 00 00 AE [16:06:24]Write i2c OK [16:06:24]MH_I2C_Read... [16:06:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:24]Read from MH i2c: E2 [16:06:24]MH_I2C_Read... [16:06:24]Read from MH i2c: E2 03 00 [16:06:24]MH_I2C_Read... [16:06:24]Read from MH i2c: E2 03 00 21 14 00 90 00 A9 [16:06:24]RAPDU: 90 00 [16:06:24]wFMCommunicate OK [16:06:24]wFMCommunicate request_size=255 [16:06:24]MH_SAM_APDU [16:06:24]CAPDU: 80 0D 02 02 FA 03 00 93 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 [16:06:24]Write to MH i2c: E2 02 01 22 14 80 0D 02 02 FA 00 03 00 93 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EA [16:06:24]Write i2c OK [16:06:24]MH_I2C_Read... [16:06:25]OFD Sender: No OFD packet to send [16:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:25]Read from MH i2c: E2 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: E2 03 00 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: E2 03 00 22 14 00 90 00 AA [16:06:25]RAPDU: 90 00 [16:06:25]wFMCommunicate OK [16:06:25]wFMCommunicate request_size=162 [16:06:25]MH_SAM_APDU [16:06:25]CAPDU: 80 0D 02 02 9D 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 00 92 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EF C3 01 00 35 04 06 00 CC B1 BD 54 E9 6D [16:06:25]Write to MH i2c: E2 A5 00 23 14 80 0D 02 02 9D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 00 92 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EF C3 01 00 35 04 06 00 CC B1 BD 54 E9 6D 00 00 B6 [16:06:25]Write i2c OK [16:06:25]MH_I2C_Read... [16:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:25]Read from MH i2c: E2 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: E2 03 00 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: E2 03 00 23 14 00 90 00 AB [16:06:25]RAPDU: 90 00 [16:06:25]wFMCommunicate OK [16:06:25]wFMCommunicate request_size=4 [16:06:25]MH_SAM_APDU [16:06:25]CAPDU: 80 0D 03 02 [16:06:25]Write to MH i2c: E2 08 00 24 14 80 0D 03 02 00 00 00 00 B3 [16:06:25]Write i2c OK [16:06:25]MH_I2C_Read... [16:06:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:25]Read from MH i2c: E2 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: E2 0B 00 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: E2 0B 00 24 14 00 7F D7 E0 A5 32 B2 02 D3 90 00 48 [16:06:25]RAPDU: 7F D7 E0 A5 32 B2 02 D3 90 00 [16:06:25]wFMCommunicate OK [16:06:25]SAM_PROTO_SignData done [16:06:25]FM_MakeSignedData done [16:06:25]CreateOFDProtocolMessage [16:06:25]wFMCommunicate request_size=4 [16:06:25]MH_SAM_APDU [16:06:25]CAPDU: 80 11 00 00 [16:06:25]Write to MH i2c: E2 08 00 25 14 80 11 00 00 00 00 00 00 B3 [16:06:25]Write i2c OK [16:06:25]MH_I2C_Read... [16:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:25]Read from MH i2c: E2 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: E2 17 00 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: E2 17 00 25 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 01 [16:06:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:06:25]wFMCommunicate OK [16:06:25]CreateOFDProtocolMessage done [16:06:25]OFDSenderStorePacket 115695 [16:06:25]StoreOFDPacket docnum=115695 [16:06:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A7 01 00 00 66 AB 9F 01 B4 C6 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 00 92 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EF C3 01 00 35 04 06 00 CC B1 BD 54 E9 6D 7F D7 E0 A5 32 B2 02 D3 [16:06:25]CheckFolder [16:06:25]dirname=/storage/ofd_packets [16:06:25]CheckFolder done [16:06:25]ProducePacketName [16:06:25]name=ofd_packets/00115695 [16:06:25]NVStorageSaveData ofd_packets/00115695 [16:06:25]File name is /storage/ofd_packets/00115695 [16:06:25]Write 453 bytes [16:06:25]NVStorageSaveData done [16:06:25]OFDSenderStorePacket done [16:06:25]KKMCreateOFDPacket done [16:06:25]NVStorageSaveData kkm_last_timestamp [16:06:25]File name is /storage/kkm_last_timestamp [16:06:25]Write 4 bytes [16:06:25]NVStorageSaveData done [16:06:25]ExternCall_PrintAddStr [16:06:25]wPrintStart [16:06:25]Write to MH i2c: 01 00 00 26 14 3A [16:06:25]Write i2c OK [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: 01 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: 01 07 00 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: 01 07 00 26 14 00 00 00 00 00 FF 0F 4F [16:06:25]RasterBufferAndPrint [16:06:25]line Счет N : (3)344046 [16:06:25]line ИНН: 02508201610067 [16:06:25]line Контрольно-Кассовый Чек [16:06:25]line ПРОДАЖА [16:06:25]line Товар: 2000032780025 [16:06:25]line Сосиска в тесте DC 110г [16:06:25]line 3.000 * 60.00 [16:06:25]line = 180.00 [16:06:25]line НДС 12% НСП 1% [16:06:25]line > о реализуемом товаре [16:06:25]line Товар: 2000032760017 [16:06:25]line Слойка DC треугольная мясо110г [16:06:25]line 2.000 * 65.00 [16:06:25]line = 130.00 [16:06:25]line НДС 12% НСП 1% [16:06:25]line > о реализуемом товаре [16:06:25]line ИТОГО: 310.00 [16:06:25]line НСП 1% : 2.74 [16:06:25]line НДС 12% : 32.91 [16:06:25]line Наличными: 0.00 [16:06:25]line Безнал.: 310.00 [16:06:25]line Место: АЗС № 90 "Партнер Нефть" [16:06:25]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:06:25]line СНО: Общий режим [16:06:25]line Чек 178 23.09.2024 16:06 [16:06:25]line Смена: 472 ФФД: 1.0 [16:06:25]line ЗНМ: 0300000120 [16:06:25]line РНМ: 0000000000091831 [16:06:25]line Версия ККМ: 001 [16:06:25]line Платежная система: O! деньги [16:06:25]line ФМ: 0000000000871830 [16:06:25]line ФД: 115695 [16:06:25]line ФПД: 225063757736301 [16:06:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T160624&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115695&fm=225063757736301&tin=02508201610067®Number=0000000000091831&sum=31000 [16:06:25]line 0 [16:06:25]OFD Sender: Processing packet 115695 [packets to send 482, broken 481] [16:06:25]ProducePacketName [16:06:25]name=ofd_packets/00115695 [16:06:25]OFD Sender: To server: pG, [16:06:25]CommunicateWithHost lk.salyk.kg:30040 [16:06:25]ConnectInit lk.salyk.kg [16:06:25]written 0, free lines is 4095 [16:06:26]Connected sock=10 [16:06: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 38 33 30 A7 01 00 00 66 AB 9F 01 B4 C6 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 00 92 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EF C3 01 00 35 04 06 00 CC B1 BD 54 E9 6D 7F D7 E0 A5 32 B2 02 D3 [16:06:26]Write to MH i2c: 01 00 00 56 14 6A [16:06:26]Write i2c OK [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: 01 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: 01 07 00 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: 01 07 00 56 14 00 00 00 00 00 C4 0B 40 [16:06:26]RasterBufferAndPrint [16:06:26]line [16:06:26]line [16:06:26]line [16:06:26]line [16:06:26]line [16:06:26]written 0, free lines is 3014 [16:06:26]MH_Cut [16:06:26]Write to MH i2c: D1 01 00 5D 14 01 43 [16:06:26]Write i2c OK [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: D1 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: D1 01 00 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: D1 01 00 5D 14 00 42 [16:06:26]Write to MH i2c: 01 00 00 5E 14 72 [16:06:26]Write i2c OK [16:06:26]MH_I2C_Read... [16:06:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 FF 5C 47 00 61 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EF C3 01 00 F4 03 04 00 43 37 F1 66 B6 04 01 00 00 AF 65 74 82 65 0B 1C BC [16:06:26]CommunicateWithHost err = 0 [16:06:26]CheckOFDResponse [16:06:26]1017 (14) - 77093643461234 [16:06:26]1041 (16) - 0000000000871830 [16:06:26]1040 (4) - 115695 [16:06:26]1012 (4) - 23.09.2024 09:39 [16:06:26]1206 (1) - 0 [16:06:26]OFD Sender: Remove packet 115695 [16:06:26]ProducePacketName [16:06:26]name=ofd_packets/00115695 [16:06:26]NVStorageDeleteData [16:06:27]OFD Sender: No OFD packet to send [16:06:27]*** Cut start [16:06:27]*** Partial cut [16:06:27]*** CUTSNS_PIN = 1 [16:06:27]*** CUTSNS_PIN = 0 [16:06:28]*** Brake cut motor [16:06:28]Read from MH i2c: 01 [16:06:28]MH_I2C_Read... [16:06:28]*** Stop cut motor [16:06:28]*** Cut end [16:06:28]Read from MH i2c: 01 07 00 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: 01 07 00 5E 14 00 00 00 00 00 FF 0F 87 [16:06:28]process_action close_receipt done [16:06:28]requested_data is exist [16:06:28]produce_requested_data [16:06:28]requested_item fm.sn is exist - process it [16:06:28]wFMCommunicate request_size=4 [16:06:28]MH_SAM_APDU [16:06:28]CAPDU: 80 11 00 00 [16:06:28]Write to MH i2c: E2 08 00 5F 14 80 11 00 00 00 00 00 00 ED [16:06:28]Write i2c OK [16:06:28]MH_I2C_Read... [16:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:28]Read from MH i2c: E2 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: E2 17 00 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: E2 17 00 5F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3B [16:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:06:28]wFMCommunicate OK [16:06:28]requested_item fd.num is exist - process it [16:06:28]SAM_PROTO_GetFieldsCounters [16:06:28]wFMCommunicate request_size=4 [16:06:28]MH_SAM_APDU [16:06:28]CAPDU: 80 13 00 00 [16:06:28]Write to MH i2c: E2 08 00 60 14 80 13 00 00 00 00 00 00 F0 [16:06:28]Write i2c OK [16:06:28]MH_I2C_Read... [16:06:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:28]Read from MH i2c: E2 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: E2 62 00 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: E2 62 00 60 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EF C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [16:06: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EF C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:28]wFMCommunicate OK [16:06:28]SAM_PROTO_GetFieldsCounters done [16:06:28]requested_item shift.num is exist - process it [16:06:28]requested_item shift.opened is exist - process it [16:06:28]req_shift_opened [16:06:28]FM_GetShiftState [16:06:28]SAM_PROTO_GetShiftState [16:06:28]wFMCommunicate request_size=4 [16:06:28]MH_SAM_APDU [16:06:28]CAPDU: 80 13 01 00 [16:06:28]Write to MH i2c: E2 08 00 61 14 80 13 01 00 00 00 00 00 F2 [16:06:28]Write i2c OK [16:06:28]MH_I2C_Read... [16:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:28]Read from MH i2c: E2 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: E2 0E 00 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: E2 0E 00 61 14 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 33 [16:06:28]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:06:28]wFMCommunicate OK [16:06:28]SAM_PROTO_GetShiftState done [16:06:28]FM_GetShiftState done [16:06:28]req_shift_opened done [16:06:28]requested_item shift.open_date is exist - process it [16:06:28]req_shift_open_date [16:06:28]req_shift_open_date done [16:06:28]produce_requested_data done [16:06:28]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115695,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [16:06:28]process_action_free close_receipt [16:06:28]json_value_free [16:06:28]json_value_free done [16:06:28]process_json_proto returns [16:06:28]Send response to host [16:06:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115695,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [16:06:28]free response buf [16:06:28]execute_script done [16:06:28]execute_script returns [16:06:28]free content buf [16:06:28]Sock 9.Close socket [16:06:28]Sock 9.Thread stoped [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:32]OFD Sender: No OFD packet to send [16:07:37]OFD Sender: No OFD packet to send [16:07:42]OFD Sender: No OFD packet to send [16:07:47]OFD Sender: No OFD packet to send [16:07:49]accept exits with 7 [16:07:49]New connection [16:07:49]New thread 3067022692 created [16:07:49]Thread 3066879332 joined [16:07:49]Waiting for new connection... [16:07:49] Sock 7.Parse request [16:07:49]Sock 7.Check first char [16:07:49]Sock 7.First char is OK [16:07:49]request: POST /json_proto HTTP/1.0 [16:07:49]Method: POST [16:07:49]URL: /json_proto [16:07:49]Method is POST - this is cgi request [16:07:49]url: /json_proto [16:07:49]query_string will be loaded in cgi processing [16:07:49]execute_cgi json_proto POST (null) [16:07:49]execute_cgi path=json_proto method=POST [16:07:49]POST find Content-Length [16:07:49]Host: 172.17.41.136:8080 [16:07:49]Content-Length: 805 [16:07:49]Content-Type: application/json [16:07:49] [16:07:49]POST finish read [16:07:49]Found Content-Length = 805 [16:07:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.780, "sum" : 1690.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1690.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:49]execute_script... [16:07: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)24617804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.780, "sum" : 1690.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1690.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:49]POST & json_proto [16:07:49]process_json_proto [16:07:49]json parsed OK: [16:07:49]protocol is kg_v1.0 [16:07:49]action value=close_receipt [16:07:49]process_action close_receipt [16:07:49]cmd_close_receipt [16:07:49]MH_GetDate [16:07:49]Write to MH i2c: F0 00 00 62 14 65 [16:07:49]Write i2c OK [16:07:49]MH_I2C_Read... [16:07:49]Read from MH i2c: F0 [16:07:49]MH_I2C_Read... [16:07:49]Read from MH i2c: F0 09 00 [16:07:49]MH_I2C_Read... [16:07:49]Read from MH i2c: F0 09 00 62 14 00 55 92 F1 66 1B D0 5A 64 55 [16:07:49]GetLastDocTimeStamp 1727107584 [16:07:49]current date 1727107669 [16:07:49]FM_GetShiftState [16:07:49]SAM_PROTO_GetShiftState [16:07:49]wFMCommunicate request_size=4 [16:07:49]MH_SAM_APDU [16:07:49]CAPDU: 80 13 01 00 [16:07:49]Write to MH i2c: E2 08 00 63 14 80 13 01 00 00 00 00 00 F4 [16:07:49]Write i2c OK [16:07:49]MH_I2C_Read... [16:07:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:49]Read from MH i2c: E2 [16:07:49]MH_I2C_Read... [16:07:49]Read from MH i2c: E2 0E 00 [16:07:49]MH_I2C_Read... [16:07:49]Read from MH i2c: E2 0E 00 63 14 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 35 [16:07:49]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:07:49]wFMCommunicate OK [16:07:49]SAM_PROTO_GetShiftState done [16:07:49]FM_GetShiftState done [16:07:49]opened in 1727052070 [16:07:49]opened+sec_in_day 1727138470 [16:07:49]quantity*price = 169027 [16:07:49]sum+1 = 169029 [16:07:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1690.28 НСП 1% : 14.96 НДС 12% : 179.50 Наличными: 0.00 Безнал.: 1690.28 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 179 23.09.2024 16:07 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115696 ФПД: 99847762605507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T160749&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115696&fm=99847762605507&tin=02508201610067®Number=0000000000091831&sum=169028 [16:07:50]StoreToDocumentArchive [16:07:50]shift 472 fd 115696 [16:07:50]save to /storage/0472/doc_00115696 [16:07:50]save last doc name /storage/0472/doc_00115696 to /storage/kkm_last_doc_name [16:07:50]save OK [16:07:50]Clear old archive folders... [16:07:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:50]tlvbuf is 017C8800 [16:07:50]SAM_PROTO_ClearQueue [16:07:50]wFMCommunicate request_size=4 [16:07:50]MH_SAM_APDU [16:07:50]CAPDU: 80 09 00 00 [16:07:50]Write to MH i2c: E2 08 00 70 14 80 09 00 00 00 00 00 00 F6 [16:07:50]Write i2c OK [16:07:50]MH_I2C_Read... [16:07:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:50]Read from MH i2c: E2 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 03 00 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 03 00 70 14 00 90 00 F8 [16:07:50]RAPDU: 90 00 [16:07:50]wFMCommunicate OK [16:07:50]SAM_PROTO_ClearQueue done [16:07:50]KKMCreateOFDPacket [16:07:50]OFDProtocolAddRootSTLVToBuf [16:07:50]FM_MakeSignedData [16:07:50]FM_MakeSignedData [16:07:50]SAM_PROTO_SignData [16:07:50]wFMCommunicate request_size=4 [16:07:50]MH_SAM_APDU [16:07:50]CAPDU: 80 0D 01 02 [16:07:50]Write to MH i2c: E2 08 00 71 14 80 0D 01 02 00 00 00 00 FE [16:07:50]Write i2c OK [16:07:50]MH_I2C_Read... [16:07:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:50]Read from MH i2c: E2 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 03 00 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 03 00 71 14 00 90 00 F9 [16:07:50]RAPDU: 90 00 [16:07:50]wFMCommunicate OK [16:07:50]wFMCommunicate request_size=255 [16:07:50]MH_SAM_APDU [16:07: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 58 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 44 94 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 94 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 94 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 55 92 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F0 C3 01 00 35 04 06 00 5A [16:07:50]Write to MH i2c: E2 02 01 72 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 58 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 44 94 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 94 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 94 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 55 92 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F0 C3 01 00 35 04 06 00 5A 00 00 17 [16:07:50]Write i2c OK [16:07:50]MH_I2C_Read... [16:07:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:50]Read from MH i2c: E2 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 03 00 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 03 00 72 14 00 90 00 FA [16:07:50]RAPDU: 90 00 [16:07:50]wFMCommunicate OK [16:07:50]wFMCommunicate request_size=10 [16:07:50]MH_SAM_APDU [16:07:50]CAPDU: 80 0D 02 02 05 CF 9E 6B F5 C3 [16:07:50]Write to MH i2c: E2 0D 00 73 14 80 0D 02 02 05 00 CF 9E 6B F5 C3 00 00 9B [16:07:50]Write i2c OK [16:07:50]MH_I2C_Read... [16:07:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:50]Read from MH i2c: E2 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 03 00 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 03 00 73 14 00 90 00 FB [16:07:50]RAPDU: 90 00 [16:07:50]wFMCommunicate OK [16:07:50]wFMCommunicate request_size=4 [16:07:50]MH_SAM_APDU [16:07:50]CAPDU: 80 0D 03 02 [16:07:50]Write to MH i2c: E2 08 00 74 14 80 0D 03 02 00 00 00 00 03 [16:07:50]Write i2c OK [16:07:50]MH_I2C_Read... [16:07:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:50]Read from MH i2c: E2 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 0B 00 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 0B 00 74 14 00 74 D2 BE E2 33 91 E2 E2 90 00 72 [16:07:50]RAPDU: 74 D2 BE E2 33 91 E2 E2 90 00 [16:07:50]wFMCommunicate OK [16:07:50]SAM_PROTO_SignData done [16:07:50]FM_MakeSignedData done [16:07:50]CreateOFDProtocolMessage [16:07:50]wFMCommunicate request_size=4 [16:07:50]MH_SAM_APDU [16:07:50]CAPDU: 80 11 00 00 [16:07:50]Write to MH i2c: E2 08 00 75 14 80 11 00 00 00 00 00 00 03 [16:07:50]Write i2c OK [16:07:50]MH_I2C_Read... [16:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:50]Read from MH i2c: E2 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 17 00 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 17 00 75 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 51 [16:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:07:50]wFMCommunicate OK [16:07:50]CreateOFDProtocolMessage done [16:07:50]OFDSenderStorePacket 115696 [16:07:50]StoreOFDPacket docnum=115696 [16:07:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 55 B2 07 01 64 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 58 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 44 94 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 94 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 94 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 55 92 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F0 C3 01 00 35 04 06 00 5A CF 9E 6B F5 C3 74 D2 BE E2 33 91 E2 E2 [16:07:50]CheckFolder [16:07:50]dirname=/storage/ofd_packets [16:07:50]CheckFolder done [16:07:50]ProducePacketName [16:07:50]name=ofd_packets/00115696 [16:07:50]NVStorageSaveData ofd_packets/00115696 [16:07:50]File name is /storage/ofd_packets/00115696 [16:07:50]Write 301 bytes [16:07:50]NVStorageSaveData done [16:07:50]OFDSenderStorePacket done [16:07:50]KKMCreateOFDPacket done [16:07:50]NVStorageSaveData kkm_last_timestamp [16:07:50]File name is /storage/kkm_last_timestamp [16:07:50]Write 4 bytes [16:07:50]NVStorageSaveData done [16:07:50]ExternCall_PrintAddStr [16:07:50]wPrintStart [16:07:50]Write to MH i2c: 01 00 00 76 14 8A [16:07:50]Write i2c OK [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: 01 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: 01 07 00 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: 01 07 00 76 14 00 00 00 00 00 FF 0F 9F [16:07:50]RasterBufferAndPrint [16:07:50]line Счет N : (1)24617804 [16:07:50]line ИНН: 02508201610067 [16:07:50]line Контрольно-Кассовый Чек [16:07:50]line ПРОДАЖА [16:07:50]line ТРК (МРК, ГНК) : 42 [16:07:50]line Товар: 2710124500 [16:07:50]line Аи-95-К-5 [16:07:50]line 22.780 * 74.20 [16:07:50]line = 1690.28 [16:07:50]line НДС 12% НСП 1% [16:07:50]line > о реализуемом товаре [16:07:50]line ИТОГО: 1690.28 [16:07:50]line НСП 1% : 14.96 [16:07:50]line НДС 12% : 179.50 [16:07:50]line Наличными: 0.00 [16:07:50]line Безнал.: 1690.28 [16:07:50]line Место: АЗС № 90 "Партнер Нефть" [16:07:50]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:07:50]line СНО: Общий режим [16:07:50]line Чек 179 23.09.2024 16:07 [16:07:50]line Смена: 472 ФФД: 1.0 [16:07:50]line ЗНМ: 0300000120 [16:07:50]line РНМ: 0000000000091831 [16:07:50]line Версия ККМ: 001 [16:07:50]line Платежная система: O! деньги [16:07:50]line ФМ: 0000000000871830 [16:07:50]line ФД: 115696 [16:07:50]line ФПД: 99847762605507 [16:07:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T160749&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115696&fm=99847762605507&tin=02508201610067®Number=0000000000091831&sum=169028 [16:07:50]written 0, free lines is 4095 [16:07:50]OFD Sender: Processing packet 115696 [packets to send 482, broken 481] [16:07:50]ProducePacketName [16:07:50]name=ofd_packets/00115696 [16:07:50]OFD Sender: To server: pG, [16:07:50]CommunicateWithHost lk.salyk.kg:30040 [16:07:50]ConnectInit lk.salyk.kg [16:07:51]Connected sock=10 [16:07:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 55 B2 07 01 64 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 58 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 44 94 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 94 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 94 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 55 92 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F0 C3 01 00 35 04 06 00 5A CF 9E 6B F5 C3 74 D2 BE E2 33 91 E2 E2 [16:07:51]Write to MH i2c: 01 00 00 9F 14 B3 [16:07:51]Write i2c OK [16:07:51]MH_I2C_Read... [16:07:51]Read from MH i2c: 01 [16:07:51]MH_I2C_Read... [16:07:51]Read from MH i2c: 01 07 00 [16:07:51]MH_I2C_Read... [16:07:51]Read from MH i2c: 01 07 00 9F 14 00 00 00 00 00 71 0C 37 [16:07:51]RasterBufferAndPrint [16:07:51]line [16:07:51]line [16:07:51]line [16:07:51]line [16:07:51]line [16:07:51]written 0, free lines is 3190 [16:07:51]MH_Cut [16:07:51]Write to MH i2c: D1 01 00 A6 14 01 8C [16:07:51]Write i2c OK [16:07:51]MH_I2C_Read... [16:07:51]Read from MH i2c: D1 [16:07:51]MH_I2C_Read... [16:07:51]Read from MH i2c: D1 01 00 [16:07:51]MH_I2C_Read... [16:07:51]Read from MH i2c: D1 01 00 A6 14 00 8B [16:07:51]Write to MH i2c: 01 00 00 A7 14 BB [16:07:51]Write i2c OK [16:07:51]MH_I2C_Read... [16:07:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 3C 50 47 00 C0 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F0 C3 01 00 F4 03 04 00 98 37 F1 66 B6 04 01 00 00 21 FA A5 0F 06 21 BD 63 [16:07:51]CommunicateWithHost err = 0 [16:07:51]CheckOFDResponse [16:07:51]1017 (14) - 77093643461234 [16:07:51]1041 (16) - 0000000000871830 [16:07:51]1040 (4) - 115696 [16:07:51]1012 (4) - 23.09.2024 09:40 [16:07:51]1206 (1) - 0 [16:07:51]OFD Sender: Remove packet 115696 [16:07:51]ProducePacketName [16:07:51]name=ofd_packets/00115696 [16:07:51]NVStorageDeleteData [16:07:51]OFD Sender: No OFD packet to send [16:07:52]*** Cut start [16:07:52]*** Partial cut [16:07:52]*** CUTSNS_PIN = 1 [16:07:52]*** CUTSNS_PIN = 0 [16:07:52]*** Brake cut motor [16:07:53]Read from MH i2c: 01 [16:07:53]MH_I2C_Read... [16:07:53]*** Stop cut motor [16:07:53]*** Cut end [16:07:53]Read from MH i2c: 01 07 00 [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: 01 07 00 A7 14 00 00 00 00 00 FF 0F D0 [16:07:53]process_action close_receipt done [16:07:53]requested_data is exist [16:07:53]produce_requested_data [16:07:53]requested_item fm.sn is exist - process it [16:07:53]wFMCommunicate request_size=4 [16:07:53]MH_SAM_APDU [16:07:53]CAPDU: 80 11 00 00 [16:07:53]Write to MH i2c: E2 08 00 A8 14 80 11 00 00 00 00 00 00 36 [16:07:53]Write i2c OK [16:07:53]MH_I2C_Read... [16:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:53]Read from MH i2c: E2 [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: E2 17 00 [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: E2 17 00 A8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 84 [16:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:07:53]wFMCommunicate OK [16:07:53]requested_item fd.num is exist - process it [16:07:53]SAM_PROTO_GetFieldsCounters [16:07:53]wFMCommunicate request_size=4 [16:07:53]MH_SAM_APDU [16:07:53]CAPDU: 80 13 00 00 [16:07:53]Write to MH i2c: E2 08 00 A9 14 80 13 00 00 00 00 00 00 39 [16:07:53]Write i2c OK [16:07:53]MH_I2C_Read... [16:07:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:53]Read from MH i2c: E2 [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: E2 62 00 [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: E2 62 00 A9 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F0 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [16:07:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F0 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:53]wFMCommunicate OK [16:07:53]SAM_PROTO_GetFieldsCounters done [16:07:53]requested_item shift.num is exist - process it [16:07:53]requested_item shift.opened is exist - process it [16:07:53]req_shift_opened [16:07:53]FM_GetShiftState [16:07:53]SAM_PROTO_GetShiftState [16:07:53]wFMCommunicate request_size=4 [16:07:53]MH_SAM_APDU [16:07:53]CAPDU: 80 13 01 00 [16:07:53]Write to MH i2c: E2 08 00 AA 14 80 13 01 00 00 00 00 00 3B [16:07:53]Write i2c OK [16:07:53]MH_I2C_Read... [16:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:53]Read from MH i2c: E2 [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: E2 0E 00 [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: E2 0E 00 AA 14 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7C [16:07:53]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:07:53]wFMCommunicate OK [16:07:53]SAM_PROTO_GetShiftState done [16:07:53]FM_GetShiftState done [16:07:53]req_shift_opened done [16:07:53]requested_item shift.open_date is exist - process it [16:07:53]req_shift_open_date [16:07:53]req_shift_open_date done [16:07:53]produce_requested_data done [16:07:53]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115696,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [16:07:53]process_action_free close_receipt [16:07:53]json_value_free [16:07:53]json_value_free done [16:07:53]process_json_proto returns [16:07:53]Send response to host [16:07:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115696,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [16:07:53]free response buf [16:07:53]execute_script done [16:07:53]execute_script returns [16:07:53]free content buf [16:07:53]Sock 7.Close socket [16:07:53]Sock 7.Thread stoped [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:30]accept exits with 9 [16:08:30]New connection [16:08:30]New thread 3066879332 created [16:08:30]Thread 3067022692 joined [16:08:30]Waiting for new connection... [16:08:30] Sock 9.Parse request [16:08:30]Sock 9.Check first char [16:08:30]Sock 9.First char is OK [16:08:30]request: POST /json_proto HTTP/1.0 [16:08:30]Method: POST [16:08:30]URL: /json_proto [16:08:30]Method is POST - this is cgi request [16:08:30]url: /json_proto [16:08:30]query_string will be loaded in cgi processing [16:08:30]execute_cgi json_proto POST (null) [16:08:30]execute_cgi path=json_proto method=POST [16:08:30]POST find Content-Length [16:08:30]Host: 172.17.41.136:8080 [16:08:30]Content-Length: 660 [16:08:30]Content-Type: application/json [16:08:30] [16:08:30]POST finish read [16:08:30]Found Content-Length = 660 [16:08:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30]execute_script... [16:08: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)24617807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30]POST & json_proto [16:08:30]process_json_proto [16:08:30]json parsed OK: [16:08:30]protocol is kg_v1.0 [16:08:30]action value=close_receipt [16:08:30]process_action close_receipt [16:08:30]cmd_close_receipt [16:08:30]MH_GetDate [16:08:30]Write to MH i2c: F0 00 00 AB 14 AE [16:08:30]Write i2c OK [16:08:30]MH_I2C_Read... [16:08:30]Read from MH i2c: F0 [16:08:30]MH_I2C_Read... [16:08:30]Read from MH i2c: F0 09 00 [16:08:30]MH_I2C_Read... [16:08:30]Read from MH i2c: F0 09 00 AB 14 00 7E 92 F1 66 1B D0 5A 64 C7 [16:08:30]GetLastDocTimeStamp 1727107669 [16:08:30]current date 1727107710 [16:08:30]FM_GetShiftState [16:08:30]SAM_PROTO_GetShiftState [16:08:30]wFMCommunicate request_size=4 [16:08:30]MH_SAM_APDU [16:08:30]CAPDU: 80 13 01 00 [16:08:30]Write to MH i2c: E2 08 00 AC 14 80 13 01 00 00 00 00 00 3D [16:08:30]Write i2c OK [16:08:30]MH_I2C_Read... [16:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:30]Read from MH i2c: E2 [16:08:30]MH_I2C_Read... [16:08:30]Read from MH i2c: E2 0E 00 [16:08:30]MH_I2C_Read... [16:08:30]Read from MH i2c: E2 0E 00 AC 14 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7E [16:08:30]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:08:30]wFMCommunicate OK [16:08:30]SAM_PROTO_GetShiftState done [16:08:30]FM_GetShiftState done [16:08:30]opened in 1727052070 [16:08:30]opened+sec_in_day 1727138470 [16:08:30]quantity*price = 50034 [16:08:30]sum+1 = 50036 [16:08:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 180 23.09.2024 16:08 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115697 ФПД: 133113313547432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T160830&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115697&fm=133113313547432&tin=02508201610067®Number=0000000000091831&sum=50000 [16:08:31]StoreToDocumentArchive [16:08:31]shift 472 fd 115697 [16:08:31]save to /storage/0472/doc_00115697 [16:08:31]save last doc name /storage/0472/doc_00115697 to /storage/kkm_last_doc_name [16:08:31]save OK [16:08:31]Clear old archive folders... [16:08:31]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:08:31]tlvbuf is 01826860 [16:08:31]SAM_PROTO_ClearQueue [16:08:31]wFMCommunicate request_size=4 [16:08:31]MH_SAM_APDU [16:08:31]CAPDU: 80 09 00 00 [16:08:31]Write to MH i2c: E2 08 00 B9 14 80 09 00 00 00 00 00 00 3F [16:08:31]Write i2c OK [16:08:31]MH_I2C_Read... [16:08:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:31]Read from MH i2c: E2 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 03 00 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 03 00 B9 14 00 90 00 41 [16:08:31]RAPDU: 90 00 [16:08:31]wFMCommunicate OK [16:08:31]SAM_PROTO_ClearQueue done [16:08:31]KKMCreateOFDPacket [16:08:31]OFDProtocolAddRootSTLVToBuf [16:08:31]FM_MakeSignedData [16:08:31]FM_MakeSignedData [16:08:31]SAM_PROTO_SignData [16:08:31]wFMCommunicate request_size=4 [16:08:31]MH_SAM_APDU [16:08:31]CAPDU: 80 0D 01 02 [16:08:31]Write to MH i2c: E2 08 00 BA 14 80 0D 01 02 00 00 00 00 47 [16:08:31]Write i2c OK [16:08:31]MH_I2C_Read... [16:08:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:31]Read from MH i2c: E2 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 03 00 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 03 00 BA 14 00 90 00 42 [16:08:31]RAPDU: 90 00 [16:08:31]wFMCommunicate OK [16:08:31]wFMCommunicate request_size=253 [16:08:31]MH_SAM_APDU [16:08:31]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7E 92 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F1 C3 01 00 35 04 06 00 79 10 DB C4 D4 A8 [16:08:31]Write to MH i2c: E2 00 01 BB 14 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7E 92 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F1 C3 01 00 35 04 06 00 79 10 DB C4 D4 A8 00 00 AE [16:08:31]Write i2c OK [16:08:31]MH_I2C_Read... [16:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:31]Read from MH i2c: E2 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 03 00 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 03 00 BB 14 00 90 00 43 [16:08:31]RAPDU: 90 00 [16:08:31]wFMCommunicate OK [16:08:31]wFMCommunicate request_size=4 [16:08:31]MH_SAM_APDU [16:08:31]CAPDU: 80 0D 03 02 [16:08:31]Write to MH i2c: E2 08 00 BC 14 80 0D 03 02 00 00 00 00 4B [16:08:31]Write i2c OK [16:08:31]MH_I2C_Read... [16:08:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:31]Read from MH i2c: E2 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 0B 00 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 0B 00 BC 14 00 9A AC 96 16 F0 5D 99 CE 90 00 F2 [16:08:31]RAPDU: 9A AC 96 16 F0 5D 99 CE 90 00 [16:08:31]wFMCommunicate OK [16:08:31]SAM_PROTO_SignData done [16:08:31]FM_MakeSignedData done [16:08:31]CreateOFDProtocolMessage [16:08:31]wFMCommunicate request_size=4 [16:08:31]MH_SAM_APDU [16:08:31]CAPDU: 80 11 00 00 [16:08:31]Write to MH i2c: E2 08 00 BD 14 80 11 00 00 00 00 00 00 4B [16:08:31]Write i2c OK [16:08:31]MH_I2C_Read... [16:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:31]Read from MH i2c: E2 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 17 00 [16:08:31]MH_I2C_Read... [16:08:31]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 38 33 30 90 00 99 [16:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:08:31]wFMCommunicate OK [16:08:31]CreateOFDProtocolMessage done [16:08:31]OFDSenderStorePacket 115697 [16:08:31]StoreOFDPacket docnum=115697 [16:08:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 45 EE 00 01 1E D5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7E 92 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F1 C3 01 00 35 04 06 00 79 10 DB C4 D4 A8 9A AC 96 16 F0 5D 99 CE [16:08:31]CheckFolder [16:08:31]dirname=/storage/ofd_packets [16:08:31]CheckFolder done [16:08:31]ProducePacketName [16:08:31]name=ofd_packets/00115697 [16:08:31]NVStorageSaveData ofd_packets/00115697 [16:08:31]File name is /storage/ofd_packets/00115697 [16:08:31]Write 294 bytes [16:08:31]NVStorageSaveData done [16:08:31]OFDSenderStorePacket done [16:08:31]KKMCreateOFDPacket done [16:08:31]NVStorageSaveData kkm_last_timestamp [16:08:31]File name is /storage/kkm_last_timestamp [16:08:31]Write 4 bytes [16:08:31]NVStorageSaveData done [16:08:31]ExternCall_PrintAddStr [16:08:31]wPrintStart [16:08:31]Write to MH i2c: 01 00 00 BE 14 D2 [16:08:31]Write i2c OK [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: 01 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: 01 07 00 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: 01 07 00 BE 14 00 00 00 00 00 FF 0F E7 [16:08:31]RasterBufferAndPrint [16:08:31]line Счет N : (1)24617807 [16:08:31]line ИНН: 02508201610067 [16:08:31]line Контрольно-Кассовый Чек [16:08:31]line ПРОДАЖА [16:08:31]line ТРК (МРК, ГНК) : 64 [16:08:31]line Товар: 2710124130 [16:08:31]line SU-92 [16:08:31]line 7.220 * 69.30 [16:08:31]line = 500.35 [16:08:31]line НДС 12% НСП 1% [16:08:31]line > о реализуемом товаре [16:08:31]line ОКРУГЛЕНИЕ: -0.35 [16:08:31]line ИТОГО: 500.00 [16:08:31]line Внесено: 500.00 [16:08:31]line СДАЧА: 0.00 [16:08:31]line НСП 1% : 4.43 [16:08:31]line НДС 12% : 53.13 [16:08:31]line Наличными: 500.00 [16:08:31]line Безнал.: 0.00 [16:08:31]line Место: АЗС № 90 "Партнер Нефть" [16:08:31]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:08:31]line СНО: Общий режим [16:08:31]line Чек 180 23.09.2024 16:08 [16:08:31]line Смена: 472 ФФД: 1.0 [16:08:31]line ЗНМ: 0300000120 [16:08:31]line РНМ: 0000000000091831 [16:08:31]line Версия ККМ: 001 [16:08:31]line ФМ: 0000000000871830 [16:08:31]line ФД: 115697 [16:08:31]line ФПД: 133113313547432 [16:08:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T160830&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115697&fm=133113313547432&tin=02508201610067®Number=0000000000091831&sum=50000 [16:08:31]OFD Sender: Processing packet 115697 [packets to send 482, broken 481] [16:08:31]ProducePacketName [16:08:31]name=ofd_packets/00115697 [16:08:31]OFD Sender: To server: pG, [16:08:31]CommunicateWithHost lk.salyk.kg:30040 [16:08:31]ConnectInit lk.salyk.kg [16:08:31]written 0, free lines is 4095 [16:08:31]Connected sock=10 [16:08: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 38 33 30 08 01 00 00 45 EE 00 01 1E D5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7E 92 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F1 C3 01 00 35 04 06 00 79 10 DB C4 D4 A8 9A AC 96 16 F0 5D 99 CE [16:08:32]Write to MH i2c: 01 00 00 E8 14 FC [16:08:32]Write i2c OK [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: 01 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: 01 07 00 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: 01 07 00 E8 14 00 00 00 00 00 63 0C 72 [16:08:32]RasterBufferAndPrint [16:08:32]line [16:08:32]line [16:08:32]line [16:08:32]line [16:08:32]line [16:08:32]written 0, free lines is 3176 [16:08:32]MH_Cut [16:08:32]Write to MH i2c: D1 01 00 EF 14 01 D5 [16:08:32]Write i2c OK [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: D1 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: D1 01 00 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: D1 01 00 EF 14 00 D4 [16:08:32]Write to MH i2c: 01 00 00 F0 14 04 [16:08:32]Write i2c OK [16:08:32]MH_I2C_Read... [16:08:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F3 4E 47 00 35 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F1 C3 01 00 F4 03 04 00 C0 37 F1 66 B6 04 01 00 00 3D 78 67 70 AE D4 0D 3E [16:08:32]CommunicateWithHost err = 0 [16:08:32]CheckOFDResponse [16:08:32]1017 (14) - 77093643461234 [16:08:32]1041 (16) - 0000000000871830 [16:08:32]1040 (4) - 115697 [16:08:32]1012 (4) - 23.09.2024 09:41 [16:08:32]1206 (1) - 0 [16:08:32]OFD Sender: Remove packet 115697 [16:08:32]ProducePacketName [16:08:32]name=ofd_packets/00115697 [16:08:32]NVStorageDeleteData [16:08:32]OFD Sender: No OFD packet to send [16:08:33]*** Cut start [16:08:33]*** Partial cut [16:08:33]*** CUTSNS_PIN = 1 [16:08:33]*** CUTSNS_PIN = 0 [16:08:33]*** Brake cut motor [16:08:34]Read from MH i2c: 01 [16:08:34]MH_I2C_Read... [16:08:34]*** Stop cut motor [16:08:34]*** Cut end [16:08:34]Read from MH i2c: 01 07 00 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: 01 07 00 F0 14 00 00 00 00 00 FF 0F 19 [16:08:34]process_action close_receipt done [16:08:34]requested_data is exist [16:08:34]produce_requested_data [16:08:34]requested_item fm.sn is exist - process it [16:08:34]wFMCommunicate request_size=4 [16:08:34]MH_SAM_APDU [16:08:34]CAPDU: 80 11 00 00 [16:08:34]Write to MH i2c: E2 08 00 F1 14 80 11 00 00 00 00 00 00 7F [16:08:34]Write i2c OK [16:08:34]MH_I2C_Read... [16:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:34]Read from MH i2c: E2 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: E2 17 00 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: E2 17 00 F1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CD [16:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:08:34]wFMCommunicate OK [16:08:34]requested_item fd.num is exist - process it [16:08:34]SAM_PROTO_GetFieldsCounters [16:08:34]wFMCommunicate request_size=4 [16:08:34]MH_SAM_APDU [16:08:34]CAPDU: 80 13 00 00 [16:08:34]Write to MH i2c: E2 08 00 F2 14 80 13 00 00 00 00 00 00 82 [16:08:34]Write i2c OK [16:08:34]MH_I2C_Read... [16:08:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:34]Read from MH i2c: E2 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: E2 62 00 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: E2 62 00 F2 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F1 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [16:08: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F1 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:34]wFMCommunicate OK [16:08:34]SAM_PROTO_GetFieldsCounters done [16:08:34]requested_item shift.num is exist - process it [16:08:34]requested_item shift.opened is exist - process it [16:08:34]req_shift_opened [16:08:34]FM_GetShiftState [16:08:34]SAM_PROTO_GetShiftState [16:08:34]wFMCommunicate request_size=4 [16:08:34]MH_SAM_APDU [16:08:34]CAPDU: 80 13 01 00 [16:08:34]Write to MH i2c: E2 08 00 F3 14 80 13 01 00 00 00 00 00 84 [16:08:34]Write i2c OK [16:08:34]MH_I2C_Read... [16:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:34]Read from MH i2c: E2 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: E2 0E 00 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: E2 0E 00 F3 14 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C5 [16:08:34]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:08:34]wFMCommunicate OK [16:08:34]SAM_PROTO_GetShiftState done [16:08:34]FM_GetShiftState done [16:08:34]req_shift_opened done [16:08:34]requested_item shift.open_date is exist - process it [16:08:34]req_shift_open_date [16:08:34]req_shift_open_date done [16:08:34]produce_requested_data done [16:08:34]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115697,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [16:08:34]process_action_free close_receipt [16:08:34]json_value_free [16:08:34]json_value_free done [16:08:34]process_json_proto returns [16:08:34]Send response to host [16:08:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115697,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [16:08:34]free response buf [16:08:34]execute_script done [16:08:34]execute_script returns [16:08:34]free content buf [16:08:34]Sock 9.Close socket [16:08:34]Sock 9.Thread stoped [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:09]accept exits with 7 [16:12:09]New connection [16:12:09]New thread 3067022692 created [16:12:09]Thread 3066879332 joined [16:12:09]Waiting for new connection... [16:12:09] Sock 7.Parse request [16:12:09]Sock 7.Check first char [16:12:09]Sock 7.First char is OK [16:12:09]request: POST /json_proto HTTP/1.0 [16:12:09]Method: POST [16:12:09]URL: /json_proto [16:12:09]Method is POST - this is cgi request [16:12:09]url: /json_proto [16:12:09]query_string will be loaded in cgi processing [16:12:09]execute_cgi json_proto POST (null) [16:12:09]execute_cgi path=json_proto method=POST [16:12:09]POST find Content-Length [16:12:09]Host: 172.17.41.136:8080 [16:12:09]Content-Length: 802 [16:12:09]Content-Type: application/json [16:12:09] [16:12:09]POST finish read [16:12:09]Found Content-Length = 802 [16:12:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 72.180, "sum" : 5500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:09]execute_script... [16:12: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)24617806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 72.180, "sum" : 5500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:09]POST & json_proto [16:12:09]process_json_proto [16:12:09]json parsed OK: [16:12:09]protocol is kg_v1.0 [16:12:09]action value=close_receipt [16:12:09]process_action close_receipt [16:12:09]cmd_close_receipt [16:12:09]MH_GetDate [16:12:09]Write to MH i2c: F0 00 00 F4 14 F7 [16:12:09]Write i2c OK [16:12:09]MH_I2C_Read... [16:12:09]Read from MH i2c: F0 [16:12:09]MH_I2C_Read... [16:12:09]Read from MH i2c: F0 09 00 [16:12:09]MH_I2C_Read... [16:12:09]Read from MH i2c: F0 09 00 F4 14 00 5A 93 F1 66 1B D0 5A 64 ED [16:12:09]GetLastDocTimeStamp 1727107710 [16:12:09]current date 1727107930 [16:12:09]FM_GetShiftState [16:12:09]SAM_PROTO_GetShiftState [16:12:09]wFMCommunicate request_size=4 [16:12:09]MH_SAM_APDU [16:12:09]CAPDU: 80 13 01 00 [16:12:09]Write to MH i2c: E2 08 00 F5 14 80 13 01 00 00 00 00 00 86 [16:12:09]Write i2c OK [16:12:09]MH_I2C_Read... [16:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:09]Read from MH i2c: E2 [16:12:09]MH_I2C_Read... [16:12:09]Read from MH i2c: E2 0E 00 [16:12:09]MH_I2C_Read... [16:12:09]Read from MH i2c: E2 0E 00 F5 14 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C7 [16:12:09]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:12:09]wFMCommunicate OK [16:12:09]SAM_PROTO_GetShiftState done [16:12:09]FM_GetShiftState done [16:12:09]opened in 1727052070 [16:12:09]opened+sec_in_day 1727138470 [16:12:09]quantity*price = 550011 [16:12:09]sum+1 = 550013 [16:12:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5500.12 НСП 1% : 48.67 НДС 12% : 584.08 Наличными: 0.00 Безнал.: 5500.12 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 181 23.09.2024 16:12 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115698 ФПД: 128289088806235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T161210&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115698&fm=128289088806235&tin=02508201610067®Number=0000000000091831&sum=550012 [16:12:10]StoreToDocumentArchive [16:12:10]shift 472 fd 115698 [16:12:10]save to /storage/0472/doc_00115698 [16:12:10]save last doc name /storage/0472/doc_00115698 to /storage/kkm_last_doc_name [16:12:10]save OK [16:12:10]Clear old archive folders... [16:12:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:12:10]tlvbuf is 0180DF30 [16:12:10]SAM_PROTO_ClearQueue [16:12:10]wFMCommunicate request_size=4 [16:12:10]MH_SAM_APDU [16:12:10]CAPDU: 80 09 00 00 [16:12:10]Write to MH i2c: E2 08 00 02 15 80 09 00 00 00 00 00 00 89 [16:12:10]Write i2c OK [16:12:10]MH_I2C_Read... [16:12:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:10]Read from MH i2c: E2 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 03 00 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 03 00 02 15 00 90 00 8B [16:12:10]RAPDU: 90 00 [16:12:10]wFMCommunicate OK [16:12:10]SAM_PROTO_ClearQueue done [16:12:10]KKMCreateOFDPacket [16:12:10]OFDProtocolAddRootSTLVToBuf [16:12:10]FM_MakeSignedData [16:12:10]FM_MakeSignedData [16:12:10]SAM_PROTO_SignData [16:12:10]wFMCommunicate request_size=4 [16:12:10]MH_SAM_APDU [16:12:10]CAPDU: 80 0D 01 02 [16:12:10]Write to MH i2c: E2 08 00 03 15 80 0D 01 02 00 00 00 00 91 [16:12:10]Write i2c OK [16:12:10]MH_I2C_Read... [16:12:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:10]Read from MH i2c: E2 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 03 00 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 03 00 03 15 00 90 00 8C [16:12:10]RAPDU: 90 00 [16:12:10]wFMCommunicate OK [16:12:10]wFMCommunicate request_size=255 [16:12:10]MH_SAM_APDU [16:12:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 19 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 5A 93 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F2 C3 01 00 35 04 06 00 74 AD A1 91 [16:12:10]Write to MH i2c: E2 02 01 04 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 19 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 5A 93 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F2 C3 01 00 35 04 06 00 74 AD A1 91 00 00 8A [16:12:10]Write i2c OK [16:12:10]MH_I2C_Read... [16:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:11]Read from MH i2c: E2 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: E2 03 00 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: E2 03 00 04 15 00 90 00 8D [16:12:11]RAPDU: 90 00 [16:12:11]wFMCommunicate OK [16:12:11]wFMCommunicate request_size=7 [16:12:11]MH_SAM_APDU [16:12:11]CAPDU: 80 0D 02 02 02 1D 5B [16:12:11]Write to MH i2c: E2 0A 00 05 15 80 0D 02 02 02 00 1D 5B 00 00 10 [16:12:11]Write i2c OK [16:12:11]MH_I2C_Read... [16:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:11]Read from MH i2c: E2 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: E2 03 00 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: E2 03 00 05 15 00 90 00 8E [16:12:11]RAPDU: 90 00 [16:12:11]wFMCommunicate OK [16:12:11]wFMCommunicate request_size=4 [16:12:11]MH_SAM_APDU [16:12:11]CAPDU: 80 0D 03 02 [16:12:11]Write to MH i2c: E2 08 00 06 15 80 0D 03 02 00 00 00 00 96 [16:12:11]Write i2c OK [16:12:11]MH_I2C_Read... [16:12:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:11]Read from MH i2c: E2 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: E2 0B 00 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: E2 0B 00 06 15 00 FD ED 6F 1A BE DA 44 17 90 00 FD [16:12:11]RAPDU: FD ED 6F 1A BE DA 44 17 90 00 [16:12:11]wFMCommunicate OK [16:12:11]SAM_PROTO_SignData done [16:12:11]FM_MakeSignedData done [16:12:11]CreateOFDProtocolMessage [16:12:11]wFMCommunicate request_size=4 [16:12:11]MH_SAM_APDU [16:12:11]CAPDU: 80 11 00 00 [16:12:11]Write to MH i2c: E2 08 00 07 15 80 11 00 00 00 00 00 00 96 [16:12:11]Write i2c OK [16:12:11]MH_I2C_Read... [16:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:11]Read from MH i2c: E2 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: E2 17 00 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: E2 17 00 07 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E4 [16:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:12:11]wFMCommunicate OK [16:12:11]CreateOFDProtocolMessage done [16:12:11]OFDSenderStorePacket 115698 [16:12:11]StoreOFDPacket docnum=115698 [16:12:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 8C 0E 04 01 94 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 35 FF 03 08 00 03 F4 19 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 5A 93 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F2 C3 01 00 35 04 06 00 74 AD A1 91 1D 5B FD ED 6F 1A BE DA 44 17 [16:12:11]CheckFolder [16:12:11]dirname=/storage/ofd_packets [16:12:11]CheckFolder done [16:12:11]ProducePacketName [16:12:11]name=ofd_packets/00115698 [16:12:11]NVStorageSaveData ofd_packets/00115698 [16:12:11]File name is /storage/ofd_packets/00115698 [16:12:11]Write 298 bytes [16:12:11]NVStorageSaveData done [16:12:11]OFDSenderStorePacket done [16:12:11]KKMCreateOFDPacket done [16:12:11]NVStorageSaveData kkm_last_timestamp [16:12:11]File name is /storage/kkm_last_timestamp [16:12:11]Write 4 bytes [16:12:11]NVStorageSaveData done [16:12:11]ExternCall_PrintAddStr [16:12:11]wPrintStart [16:12:11]Write to MH i2c: 01 00 00 08 15 1D [16:12:11]Write i2c OK [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: 01 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: 01 07 00 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: 01 07 00 08 15 00 00 00 00 00 FF 0F 32 [16:12:11]RasterBufferAndPrint [16:12:11]line Счет N : (1)24617806 [16:12:11]line ИНН: 02508201610067 [16:12:11]line Контрольно-Кассовый Чек [16:12:11]line ПРОДАЖА [16:12:11]line ТРК (МРК, ГНК) : 35 [16:12:11]line Товар: 2710194210 [16:12:11]line ДТ-К-5 [16:12:11]line 72.180 * 76.20 [16:12:11]line = 5500.12 [16:12:11]line НДС 12% НСП 1% [16:12:11]line > о реализуемом товаре [16:12:11]line ИТОГО: 5500.12 [16:12:11]line НСП 1% : 48.67 [16:12:11]line НДС 12% : 584.08 [16:12:11]line Наличными: 0.00 [16:12:11]line Безнал.: 5500.12 [16:12:11]line Место: АЗС № 90 "Партнер Нефть" [16:12:11]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:12:11]line СНО: Общий режим [16:12:11]line Чек 181 23.09.2024 16:12 [16:12:11]line Смена: 472 ФФД: 1.0 [16:12:11]line ЗНМ: 0300000120 [16:12:11]line РНМ: 0000000000091831 [16:12:11]line Версия ККМ: 001 [16:12:11]line Платежная система: O! деньги [16:12:11]line ФМ: 0000000000871830 [16:12:11]line ФД: 115698 [16:12:11]line ФПД: 128289088806235 [16:12:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T161210&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115698&fm=128289088806235&tin=02508201610067®Number=0000000000091831&sum=550012 [16:12:11]OFD Sender: Processing packet 115698 [packets to send 482, broken 481] [16:12:11]ProducePacketName [16:12:11]name=ofd_packets/00115698 [16:12:11]OFD Sender: To server: pG, [16:12:11]CommunicateWithHost lk.salyk.kg:30040 [16:12:11]ConnectInit lk.salyk.kg [16:12:11]written 0, free lines is 4095 [16:12:11]Connected sock=10 [16:12: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 38 33 30 0C 01 00 00 8C 0E 04 01 94 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 35 FF 03 08 00 03 F4 19 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 5A 93 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F2 C3 01 00 35 04 06 00 74 AD A1 91 1D 5B FD ED 6F 1A BE DA 44 17 [16:12:12]Write to MH i2c: 01 00 00 31 15 46 [16:12:12]Write i2c OK [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: 01 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: 01 07 00 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: 01 07 00 31 15 00 00 00 00 00 73 0C CC [16:12:12]RasterBufferAndPrint [16:12:12]line [16:12:12]line [16:12:12]line [16:12:12]line [16:12:12]line [16:12:12]written 0, free lines is 3192 [16:12:12]MH_Cut [16:12:12]Write to MH i2c: D1 01 00 38 15 01 1F [16:12:12]Write i2c OK [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: D1 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: D1 01 00 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: D1 01 00 38 15 00 1E [16:12:12]Write to MH i2c: 01 00 00 39 15 4E [16:12:12]Write i2c OK [16:12:12]MH_I2C_Read... [16:12:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 44 11 47 00 11 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 38 33 30 10 04 04 00 F2 C3 01 00 F4 03 04 00 9C 38 F1 66 B6 04 01 00 00 D1 37 F2 A3 28 C0 98 EE [16:12:12]CommunicateWithHost err = 0 [16:12:12]CheckOFDResponse [16:12:12]1017 (14) - 77093643461234 [16:12:12]1041 (16) - 0000000000871830 [16:12:12]1040 (4) - 115698 [16:12:12]1012 (4) - 23.09.2024 09:45 [16:12:12]1206 (1) - 0 [16:12:12]OFD Sender: Remove packet 115698 [16:12:12]ProducePacketName [16:12:12]name=ofd_packets/00115698 [16:12:12]NVStorageDeleteData [16:12:12]OFD Sender: No OFD packet to send [16:12:13]*** Cut start [16:12:13]*** Partial cut [16:12:13]*** CUTSNS_PIN = 1 [16:12:13]*** CUTSNS_PIN = 0 [16:12:13]*** Brake cut motor [16:12:14]Read from MH i2c: 01 [16:12:14]MH_I2C_Read... [16:12:14]*** Stop cut motor [16:12:14]*** Cut end [16:12:14]Read from MH i2c: 01 07 00 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: 01 07 00 39 15 00 00 00 00 00 FF 0F 63 [16:12:14]process_action close_receipt done [16:12:14]requested_data is exist [16:12:14]produce_requested_data [16:12:14]requested_item fm.sn is exist - process it [16:12:14]wFMCommunicate request_size=4 [16:12:14]MH_SAM_APDU [16:12:14]CAPDU: 80 11 00 00 [16:12:14]Write to MH i2c: E2 08 00 3A 15 80 11 00 00 00 00 00 00 C9 [16:12:14]Write i2c OK [16:12:14]MH_I2C_Read... [16:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:14]Read from MH i2c: E2 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: E2 17 00 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: E2 17 00 3A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 17 [16:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:12:14]wFMCommunicate OK [16:12:14]requested_item fd.num is exist - process it [16:12:14]SAM_PROTO_GetFieldsCounters [16:12:14]wFMCommunicate request_size=4 [16:12:14]MH_SAM_APDU [16:12:14]CAPDU: 80 13 00 00 [16:12:14]Write to MH i2c: E2 08 00 3B 15 80 13 00 00 00 00 00 00 CC [16:12:14]Write i2c OK [16:12:14]MH_I2C_Read... [16:12:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:14]Read from MH i2c: E2 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: E2 62 00 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: E2 62 00 3B 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F2 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [16:12: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F2 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:14]wFMCommunicate OK [16:12:14]SAM_PROTO_GetFieldsCounters done [16:12:14]requested_item shift.num is exist - process it [16:12:14]requested_item shift.opened is exist - process it [16:12:14]req_shift_opened [16:12:14]FM_GetShiftState [16:12:14]SAM_PROTO_GetShiftState [16:12:14]wFMCommunicate request_size=4 [16:12:14]MH_SAM_APDU [16:12:14]CAPDU: 80 13 01 00 [16:12:14]Write to MH i2c: E2 08 00 3C 15 80 13 01 00 00 00 00 00 CE [16:12:14]Write i2c OK [16:12:14]MH_I2C_Read... [16:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:14]Read from MH i2c: E2 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: E2 0E 00 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: E2 0E 00 3C 15 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 0F [16:12:14]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:12:14]wFMCommunicate OK [16:12:14]SAM_PROTO_GetShiftState done [16:12:14]FM_GetShiftState done [16:12:14]req_shift_opened done [16:12:14]requested_item shift.open_date is exist - process it [16:12:14]req_shift_open_date [16:12:14]req_shift_open_date done [16:12:14]produce_requested_data done [16:12:14]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115698,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [16:12:14]process_action_free close_receipt [16:12:14]json_value_free [16:12:14]json_value_free done [16:12:14]process_json_proto returns [16:12:14]Send response to host [16:12:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115698,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [16:12:14]free response buf [16:12:14]execute_script done [16:12:14]execute_script returns [16:12:14]free content buf [16:12:14]Sock 7.Close socket [16:12:14]Sock 7.Thread stoped [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:08]accept exits with 9 [16:14:08]New connection [16:14:08]New thread 3066879332 created [16:14:08]Thread 3067022692 joined [16:14:08]Waiting for new connection... [16:14:08] Sock 9.Parse request [16:14:08]Sock 9.Check first char [16:14:08]Sock 9.First char is OK [16:14:08]request: POST /json_proto HTTP/1.0 [16:14:08]Method: POST [16:14:08]URL: /json_proto [16:14:08]Method is POST - this is cgi request [16:14:08]url: /json_proto [16:14:08]query_string will be loaded in cgi processing [16:14:08]execute_cgi json_proto POST (null) [16:14:08]execute_cgi path=json_proto method=POST [16:14:08]POST find Content-Length [16:14:08]Host: 172.17.41.136:8080 [16:14:08]Content-Length: 655 [16:14:08]Content-Type: application/json [16:14:08] [16:14:08]POST finish read [16:14:08]Found Content-Length = 655 [16:14:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344047", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:08]execute_script... [16:14:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344047", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:08]POST & json_proto [16:14:08]process_json_proto [16:14:08]json parsed OK: [16:14:08]protocol is kg_v1.0 [16:14:08]action value=close_receipt [16:14:08]process_action close_receipt [16:14:08]cmd_close_receipt [16:14:08]MH_GetDate [16:14:08]Write to MH i2c: F0 00 00 3D 15 41 [16:14:08]Write i2c OK [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: F0 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: F0 09 00 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: F0 09 00 3D 15 00 D1 93 F1 66 1B D0 5A 64 AE [16:14:08]GetLastDocTimeStamp 1727107930 [16:14:08]current date 1727108049 [16:14:08]FM_GetShiftState [16:14:08]SAM_PROTO_GetShiftState [16:14:08]wFMCommunicate request_size=4 [16:14:08]MH_SAM_APDU [16:14:08]CAPDU: 80 13 01 00 [16:14:08]Write to MH i2c: E2 08 00 3E 15 80 13 01 00 00 00 00 00 D0 [16:14:08]Write i2c OK [16:14:08]MH_I2C_Read... [16:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:08]Read from MH i2c: E2 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 0E 00 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 0E 00 3E 15 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 11 [16:14:08]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:14:08]wFMCommunicate OK [16:14:08]SAM_PROTO_GetShiftState done [16:14:08]FM_GetShiftState done [16:14:08]opened in 1727052070 [16:14:08]opened+sec_in_day 1727138470 [16:14:08]quantity*price = 8500 [16:14:08]sum+1 = 8501 [16:14:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 182 23.09.2024 16:14 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115699 ФПД: 673115068940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T161409&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115699&fm=673115068940&tin=02508201610067®Number=0000000000091831&sum=8500 0 [16:14:09]StoreToDocumentArchive [16:14:09]shift 472 fd 115699 [16:14:09]save to /storage/0472/doc_00115699 [16:14:09]save last doc name /storage/0472/doc_00115699 to /storage/kkm_last_doc_name [16:14:09]save OK [16:14:09]Clear old archive folders... [16:14:09]ProcessDocumentItem done err = 0, tmpTLVsize=294 [16:14:09]tlvbuf is B6EB9840 [16:14:09]SAM_PROTO_ClearQueue [16:14:09]wFMCommunicate request_size=4 [16:14:09]MH_SAM_APDU [16:14:09]CAPDU: 80 09 00 00 [16:14:09]Write to MH i2c: E2 08 00 4B 15 80 09 00 00 00 00 00 00 D2 [16:14:09]Write i2c OK [16:14:09]MH_I2C_Read... [16:14:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:09]Read from MH i2c: E2 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 03 00 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 03 00 4B 15 00 90 00 D4 [16:14:09]RAPDU: 90 00 [16:14:09]wFMCommunicate OK [16:14:09]SAM_PROTO_ClearQueue done [16:14:09]KKMCreateOFDPacket [16:14:09]OFDProtocolAddRootSTLVToBuf [16:14:09]FM_MakeSignedData [16:14:09]FM_MakeSignedData [16:14:09]SAM_PROTO_SignData [16:14:09]wFMCommunicate request_size=4 [16:14:09]MH_SAM_APDU [16:14:09]CAPDU: 80 0D 01 02 [16:14:09]Write to MH i2c: E2 08 00 4C 15 80 0D 01 02 00 00 00 00 DA [16:14:09]Write i2c OK [16:14:09]MH_I2C_Read... [16:14:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:09]Read from MH i2c: E2 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 03 00 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 03 00 4C 15 00 90 00 D5 [16:14:09]RAPDU: 90 00 [16:14:09]wFMCommunicate OK [16:14:09]wFMCommunicate request_size=255 [16:14:09]MH_SAM_APDU [16:14:09]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 D1 93 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [16:14:09]Write to MH i2c: E2 02 01 4D 15 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 D1 93 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 08 [16:14:09]Write i2c OK [16:14:09]MH_I2C_Read... [16:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:10]Read from MH i2c: E2 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: E2 03 00 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: E2 03 00 4D 15 00 90 00 D6 [16:14:10]RAPDU: 90 00 [16:14:10]wFMCommunicate OK [16:14:10]wFMCommunicate request_size=53 [16:14:10]MH_SAM_APDU [16:14:10]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F3 C3 01 00 35 04 06 00 00 9C B8 C8 DA 0C [16:14:10]Write to MH i2c: E2 38 00 4E 15 80 0D 02 02 30 00 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F3 C3 01 00 35 04 06 00 00 9C B8 C8 DA 0C 00 00 83 [16:14:10]Write i2c OK [16:14:10]MH_I2C_Read... [16:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:10]Read from MH i2c: E2 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: E2 03 00 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: E2 03 00 4E 15 00 90 00 D7 [16:14:10]RAPDU: 90 00 [16:14:10]wFMCommunicate OK [16:14:10]wFMCommunicate request_size=4 [16:14:10]MH_SAM_APDU [16:14:10]CAPDU: 80 0D 03 02 [16:14:10]Write to MH i2c: E2 08 00 4F 15 80 0D 03 02 00 00 00 00 DF [16:14:10]Write i2c OK [16:14:10]MH_I2C_Read... [16:14:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:10]Read from MH i2c: E2 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: E2 0B 00 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: E2 0B 00 4F 15 00 82 FD FD 5B 7C EC CA 7C 90 00 65 [16:14:10]RAPDU: 82 FD FD 5B 7C EC CA 7C 90 00 [16:14:10]wFMCommunicate OK [16:14:10]SAM_PROTO_SignData done [16:14:10]FM_MakeSignedData done [16:14:10]CreateOFDProtocolMessage [16:14:10]wFMCommunicate request_size=4 [16:14:10]MH_SAM_APDU [16:14:10]CAPDU: 80 11 00 00 [16:14:10]Write to MH i2c: E2 08 00 50 15 80 11 00 00 00 00 00 00 DF [16:14:10]Write i2c OK [16:14:10]MH_I2C_Read... [16:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:10]Read from MH i2c: E2 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: E2 17 00 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: E2 17 00 50 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2D [16:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:14:10]wFMCommunicate OK [16:14:10]CreateOFDProtocolMessage done [16:14:10]OFDSenderStorePacket 115699 [16:14:10]StoreOFDPacket docnum=115699 [16:14:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3A 01 00 00 EC 4C 32 01 09 F5 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 D1 93 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F3 C3 01 00 35 04 06 00 00 9C B8 C8 DA 0C 82 FD FD 5B 7C EC CA 7C [16:14:10]CheckFolder [16:14:10]dirname=/storage/ofd_packets [16:14:10]CheckFolder done [16:14:10]ProducePacketName [16:14:10]name=ofd_packets/00115699 [16:14:10]NVStorageSaveData ofd_packets/00115699 [16:14:10]File name is /storage/ofd_packets/00115699 [16:14:10]Write 344 bytes [16:14:10]NVStorageSaveData done [16:14:10]OFDSenderStorePacket done [16:14:10]KKMCreateOFDPacket done [16:14:10]NVStorageSaveData kkm_last_timestamp [16:14:10]File name is /storage/kkm_last_timestamp [16:14:10]Write 4 bytes [16:14:10]NVStorageSaveData done [16:14:10]ExternCall_PrintAddStr [16:14:10]wPrintStart [16:14:10]Write to MH i2c: 01 00 00 51 15 66 [16:14:10]Write i2c OK [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: 01 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: 01 07 00 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: 01 07 00 51 15 00 00 00 00 00 FF 0F 7B [16:14:10]RasterBufferAndPrint [16:14:10]line Счет N : (3)344047 [16:14:10]line ИНН: 02508201610067 [16:14:10]line Контрольно-Кассовый Чек [16:14:10]line ПРОДАЖА [16:14:10]line Товар: 4600682557456 [16:14:10]line Напиток FLash up energy эн ж/б 0,5/0,45л [16:14:10]line 1.000 * 85.00 [16:14:10]line = 85.00 [16:14:10]line НДС 12% НСП 1% [16:14:10]line > о реализуемом товаре [16:14:10]line ИТОГО: 85.00 [16:14:10]line НСП 1% : 0.75 [16:14:10]line НДС 12% : 9.03 [16:14:10]line Наличными: 85.00 [16:14:10]line Безнал.: 0.00 [16:14:10]line Место: АЗС № 90 "Партнер Нефть" [16:14:10]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:14:10]line СНО: Общий режим [16:14:10]line Чек 182 23.09.2024 16:14 [16:14:10]line Смена: 472 ФФД: 1.0 [16:14:10]line ЗНМ: 0300000120 [16:14:10]line РНМ: 0000000000091831 [16:14:10]line Версия ККМ: 001 [16:14:10]line ФМ: 0000000000871830 [16:14:10]line ФД: 115699 [16:14:10]line ФПД: 673115068940 [16:14:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T161409&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115699&fm=673115068940&tin=02508201610067®Number=0000000000091831&sum=8500 [16:14:10]line 0 [16:14:10]written 0, free lines is 4095 [16:14:10]OFD Sender: Processing packet 115699 [packets to send 482, broken 481] [16:14:10]ProducePacketName [16:14:10]name=ofd_packets/00115699 [16:14:10]OFD Sender: To server: pG, [16:14:10]CommunicateWithHost lk.salyk.kg:30040 [16:14:10]ConnectInit lk.salyk.kg [16:14:10]Connected sock=11 [16:14: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 38 33 30 3A 01 00 00 EC 4C 32 01 09 F5 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 D1 93 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F3 C3 01 00 35 04 06 00 00 9C B8 C8 DA 0C 82 FD FD 5B 7C EC CA 7C [16:14:10]Write to MH i2c: 01 00 00 79 15 8E [16:14:10]Write i2c OK [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: 01 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: 01 07 00 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: 01 07 00 79 15 00 00 00 00 00 5D 0C FE [16:14:10]RasterBufferAndPrint [16:14:10]line [16:14:10]line [16:14:10]line [16:14:10]line [16:14:10]line [16:14:10]written 0, free lines is 3168 [16:14:10]MH_Cut [16:14:10]Write to MH i2c: D1 01 00 80 15 01 67 [16:14:10]Write i2c OK [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: D1 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: D1 01 00 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: D1 01 00 80 15 00 66 [16:14:10]Write to MH i2c: 01 00 00 81 15 96 [16:14:10]Write i2c OK [16:14:10]MH_I2C_Read... [16: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 38 33 30 4F 00 00 00 7F 61 47 00 09 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 38 33 30 10 04 04 00 F3 C3 01 00 F4 03 04 00 13 39 F1 66 B6 04 01 00 00 C3 2D F9 8F B3 1F 76 D1 [16:14:11]CommunicateWithHost err = 0 [16:14:11]CheckOFDResponse [16:14:11]1017 (14) - 77093643461234 [16:14:11]1041 (16) - 0000000000871830 [16:14:11]1040 (4) - 115699 [16:14:11]1012 (4) - 23.09.2024 09:46 [16:14:11]1206 (1) - 0 [16:14:11]OFD Sender: Remove packet 115699 [16:14:11]ProducePacketName [16:14:11]name=ofd_packets/00115699 [16:14:11]NVStorageDeleteData [16:14:11]OFD Sender: No OFD packet to send [16:14:12]*** Cut start [16:14:12]*** Partial cut [16:14:12]*** CUTSNS_PIN = 1 [16:14:12]*** CUTSNS_PIN = 0 [16:14:12]*** Brake cut motor [16:14:12]Read from MH i2c: 01 [16:14:12]MH_I2C_Read... [16:14:12]*** Stop cut motor [16:14:12]*** Cut end [16:14:12]Read from MH i2c: 01 07 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: 01 07 00 81 15 00 00 00 00 00 FF 0F AB [16:14:12]process_action close_receipt done [16:14:12]requested_data is exist [16:14:12]produce_requested_data [16:14:12]requested_item fm.sn is exist - process it [16:14:12]wFMCommunicate request_size=4 [16:14:12]MH_SAM_APDU [16:14:12]CAPDU: 80 11 00 00 [16:14:12]Write to MH i2c: E2 08 00 82 15 80 11 00 00 00 00 00 00 11 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:12]Read from MH i2c: E2 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 17 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 17 00 82 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5F [16:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:14:12]wFMCommunicate OK [16:14:12]requested_item fd.num is exist - process it [16:14:12]SAM_PROTO_GetFieldsCounters [16:14:12]wFMCommunicate request_size=4 [16:14:12]MH_SAM_APDU [16:14:12]CAPDU: 80 13 00 00 [16:14:12]Write to MH i2c: E2 08 00 83 15 80 13 00 00 00 00 00 00 14 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:12]Read from MH i2c: E2 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 62 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 62 00 83 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F3 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [16:14: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F3 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:12]wFMCommunicate OK [16:14:12]SAM_PROTO_GetFieldsCounters done [16:14:12]requested_item shift.num is exist - process it [16:14:12]requested_item shift.opened is exist - process it [16:14:12]req_shift_opened [16:14:12]FM_GetShiftState [16:14:12]SAM_PROTO_GetShiftState [16:14:12]wFMCommunicate request_size=4 [16:14:12]MH_SAM_APDU [16:14:12]CAPDU: 80 13 01 00 [16:14:12]Write to MH i2c: E2 08 00 84 15 80 13 01 00 00 00 00 00 16 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:12]Read from MH i2c: E2 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 0E 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 0E 00 84 15 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 57 [16:14:12]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:14:12]wFMCommunicate OK [16:14:12]SAM_PROTO_GetShiftState done [16:14:12]FM_GetShiftState done [16:14:12]req_shift_opened done [16:14:12]requested_item shift.open_date is exist - process it [16:14:12]req_shift_open_date [16:14:12]req_shift_open_date done [16:14:12]produce_requested_data done [16:14:12]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115699,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [16:14:12]process_action_free close_receipt [16:14:12]json_value_free [16:14:12]json_value_free done [16:14:12]process_json_proto returns [16:14:12]Send response to host [16:14:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115699,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [16:14:12]free response buf [16:14:12]execute_script done [16:14:12]execute_script returns [16:14:12]free content buf [16:14:12]Sock 9.Close socket [16:14:12]Sock 9.Thread stoped [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:22]accept exits with 7 [16:18:22]New connection [16:18:22]New thread 3067022692 created [16:18:22]Thread 3066879332 joined [16:18:22]Waiting for new connection... [16:18:22] Sock 7.Parse request [16:18:22]Sock 7.Check first char [16:18:22]Sock 7.First char is OK [16:18:22]request: POST /json_proto HTTP/1.0 [16:18:22]Method: POST [16:18:22]URL: /json_proto [16:18:22]Method is POST - this is cgi request [16:18:22]url: /json_proto [16:18:22]query_string will be loaded in cgi processing [16:18:22]execute_cgi json_proto POST (null) [16:18:22]execute_cgi path=json_proto method=POST [16:18:22]POST find Content-Length [16:18:22]Host: 172.17.41.136:8080 [16:18:22]Content-Length: 838 [16:18:22]Content-Type: application/json [16:18:22] [16:18:22]POST finish read [16:18:22]Found Content-Length = 838 [16:18:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344048", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:22]execute_script... [16:18:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344048", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:22]POST & json_proto [16:18:22]process_json_proto [16:18:22]json parsed OK: [16:18:22]protocol is kg_v1.0 [16:18:22]action value=close_receipt [16:18:22]process_action close_receipt [16:18:22]cmd_close_receipt [16:18:22]MH_GetDate [16:18:22]Write to MH i2c: F0 00 00 85 15 89 [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: F0 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: F0 09 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: F0 09 00 85 15 00 CF 94 F1 66 1B D0 5A 64 F5 [16:18:22]GetLastDocTimeStamp 1727108049 [16:18:22]current date 1727108303 [16:18:22]FM_GetShiftState [16:18:22]SAM_PROTO_GetShiftState [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 13 01 00 [16:18:22]Write to MH i2c: E2 08 00 86 15 80 13 01 00 00 00 00 00 18 [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 0E 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 0E 00 86 15 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 59 [16:18:22]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:18:22]wFMCommunicate OK [16:18:22]SAM_PROTO_GetShiftState done [16:18:22]FM_GetShiftState done [16:18:22]opened in 1727052070 [16:18:22]opened+sec_in_day 1727138470 [16:18:22]quantity*price = 7700 [16:18:22]sum+1 = 7701 [16:18:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 0.00 Безнал.: 77.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 183 23.09.2024 16:18 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115700 ФПД: 23316032860777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T161823&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115700&fm=23316032860777&tin=02508201610067®Number=0000000000091831&sum=7700 0 [16:18:23]StoreToDocumentArchive [16:18:23]shift 472 fd 115700 [16:18:23]save to /storage/0472/doc_00115700 [16:18:23]save last doc name /storage/0472/doc_00115700 to /storage/kkm_last_doc_name [16:18:23]save OK [16:18:23]Clear old archive folders... [16:18:23]ProcessDocumentItem done err = 0, tmpTLVsize=284 [16:18:23]tlvbuf is B6ED2280 [16:18:23]SAM_PROTO_ClearQueue [16:18:23]wFMCommunicate request_size=4 [16:18:23]MH_SAM_APDU [16:18:23]CAPDU: 80 09 00 00 [16:18:23]Write to MH i2c: E2 08 00 93 15 80 09 00 00 00 00 00 00 1A [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:23]Read from MH i2c: E2 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 03 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 03 00 93 15 00 90 00 1C [16:18:23]RAPDU: 90 00 [16:18:23]wFMCommunicate OK [16:18:23]SAM_PROTO_ClearQueue done [16:18:23]KKMCreateOFDPacket [16:18:23]OFDProtocolAddRootSTLVToBuf [16:18:23]FM_MakeSignedData [16:18:23]FM_MakeSignedData [16:18:23]SAM_PROTO_SignData [16:18:23]wFMCommunicate request_size=4 [16:18:23]MH_SAM_APDU [16:18:23]CAPDU: 80 0D 01 02 [16:18:23]Write to MH i2c: E2 08 00 94 15 80 0D 01 02 00 00 00 00 22 [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:23]Read from MH i2c: E2 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 03 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 03 00 94 15 00 90 00 1D [16:18:23]RAPDU: 90 00 [16:18:23]wFMCommunicate OK [16:18:23]wFMCommunicate request_size=255 [16:18:23]MH_SAM_APDU [16:18:23]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 CF 94 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [16:18:23]Write to MH i2c: E2 02 01 95 15 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 CF 94 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 9E [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:24]Read from MH i2c: E2 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: E2 03 00 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: E2 03 00 95 15 00 90 00 1E [16:18:24]RAPDU: 90 00 [16:18:24]wFMCommunicate OK [16:18:24]wFMCommunicate request_size=43 [16:18:24]MH_SAM_APDU [16:18:24]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F4 C3 01 00 35 04 06 00 15 34 AF DB 32 69 [16:18:24]Write to MH i2c: E2 2E 00 96 15 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F4 C3 01 00 35 04 06 00 15 34 AF DB 32 69 00 00 2E [16:18:24]Write i2c OK [16:18:24]MH_I2C_Read... [16:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:24]Read from MH i2c: E2 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: E2 03 00 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: E2 03 00 96 15 00 90 00 1F [16:18:24]RAPDU: 90 00 [16:18:24]wFMCommunicate OK [16:18:24]wFMCommunicate request_size=4 [16:18:24]MH_SAM_APDU [16:18:24]CAPDU: 80 0D 03 02 [16:18:24]Write to MH i2c: E2 08 00 97 15 80 0D 03 02 00 00 00 00 27 [16:18:24]Write i2c OK [16:18:24]MH_I2C_Read... [16:18:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:24]Read from MH i2c: E2 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: E2 0B 00 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: E2 0B 00 97 15 00 35 45 75 32 D8 63 A2 FB 90 00 21 [16:18:24]RAPDU: 35 45 75 32 D8 63 A2 FB 90 00 [16:18:24]wFMCommunicate OK [16:18:24]SAM_PROTO_SignData done [16:18:24]FM_MakeSignedData done [16:18:24]CreateOFDProtocolMessage [16:18:24]wFMCommunicate request_size=4 [16:18:24]MH_SAM_APDU [16:18:24]CAPDU: 80 11 00 00 [16:18:24]Write to MH i2c: E2 08 00 98 15 80 11 00 00 00 00 00 00 27 [16:18:24]Write i2c OK [16:18:24]MH_I2C_Read... [16:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:24]Read from MH i2c: E2 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: E2 17 00 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: E2 17 00 98 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 75 [16:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:18:24]wFMCommunicate OK [16:18:24]CreateOFDProtocolMessage done [16:18:24]OFDSenderStorePacket 115700 [16:18:24]StoreOFDPacket docnum=115700 [16:18:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 23 76 28 01 0F 08 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 CF 94 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F4 C3 01 00 35 04 06 00 15 34 AF DB 32 69 35 45 75 32 D8 63 A2 FB [16:18:24]CheckFolder [16:18:24]dirname=/storage/ofd_packets [16:18:24]CheckFolder done [16:18:24]ProducePacketName [16:18:24]name=ofd_packets/00115700 [16:18:24]NVStorageSaveData ofd_packets/00115700 [16:18:24]File name is /storage/ofd_packets/00115700 [16:18:24]Write 334 bytes [16:18:24]NVStorageSaveData done [16:18:24]OFDSenderStorePacket done [16:18:24]KKMCreateOFDPacket done [16:18:24]NVStorageSaveData kkm_last_timestamp [16:18:24]File name is /storage/kkm_last_timestamp [16:18:24]Write 4 bytes [16:18:24]NVStorageSaveData done [16:18:24]ExternCall_PrintAddStr [16:18:24]wPrintStart [16:18:24]Write to MH i2c: 01 00 00 99 15 AE [16:18:24]Write i2c OK [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: 01 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: 01 07 00 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: 01 07 00 99 15 00 00 00 00 00 FF 0F C3 [16:18:24]RasterBufferAndPrint [16:18:24]line Счет N : (3)344048 [16:18:24]line ИНН: 02508201610067 [16:18:24]line Контрольно-Кассовый Чек [16:18:24]line ПРОДАЖА [16:18:24]line Товар: 4870233466272 [16:18:24]line Мороженое Пломбир Миша [16:18:24]line 1.000 * 77.00 [16:18:24]line = 77.00 [16:18:24]line НДС 12% НСП 1% [16:18:24]line > о реализуемом товаре [16:18:24]line ИТОГО: 77.00 [16:18:24]line НСП 1% : 0.68 [16:18:24]line НДС 12% : 8.18 [16:18:24]line Наличными: 0.00 [16:18:24]line Безнал.: 77.00 [16:18:24]line Место: АЗС № 90 "Партнер Нефть" [16:18:24]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:18:24]line СНО: Общий режим [16:18:24]line Чек 183 23.09.2024 16:18 [16:18:24]line Смена: 472 ФФД: 1.0 [16:18:24]line ЗНМ: 0300000120 [16:18:24]line РНМ: 0000000000091831 [16:18:24]line Версия ККМ: 001 [16:18:24]line Платежная система: O! деньги [16:18:24]line ФМ: 0000000000871830 [16:18:24]line ФД: 115700 [16:18:24]line ФПД: 23316032860777 [16:18:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T161823&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115700&fm=23316032860777&tin=02508201610067®Number=0000000000091831&sum=7700 [16:18:24]OFD Sender: Processing packet 115700 [packets to send 482, broken 481] [16:18:24]ProducePacketName [16:18:24]name=ofd_packets/00115700 [16:18:24]OFD Sender: To server: pG, [16:18:24]CommunicateWithHost lk.salyk.kg:30040 [16:18:24]ConnectInit lk.salyk.kg [16:18:24]line 0 [16:18:24]written 0, free lines is 4095 [16:18:24]Connected sock=10 [16:18:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 23 76 28 01 0F 08 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 CF 94 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F4 C3 01 00 35 04 06 00 15 34 AF DB 32 69 35 45 75 32 D8 63 A2 FB [16:18:24]Write to MH i2c: 01 00 00 C2 15 D7 [16:18:24]Write i2c OK [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: 01 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: 01 07 00 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: 01 07 00 C2 15 00 00 00 00 00 53 0C 3D [16:18:24]RasterBufferAndPrint [16:18:24]line [16:18:24]line [16:18:24]line [16:18:24]line [16:18:24]line [16:18:24]written 0, free lines is 3159 [16:18:24]MH_Cut [16:18:24]Write to MH i2c: D1 01 00 C9 15 01 B0 [16:18:24]Write i2c OK [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: D1 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: D1 01 00 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: D1 01 00 C9 15 00 AF [16:18:24]Write to MH i2c: 01 00 00 CA 15 DF [16:18:24]Write i2c OK [16:18:24]MH_I2C_Read... [16:18:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E2 9C 47 00 B1 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 38 33 30 10 04 04 00 F4 C3 01 00 F4 03 04 00 11 3A F1 66 B6 04 01 00 00 0E 02 94 59 32 BA 9A 4D [16:18:25]CommunicateWithHost err = 0 [16:18:25]CheckOFDResponse [16:18:25]1017 (14) - 77093643461234 [16:18:25]1041 (16) - 0000000000871830 [16:18:25]1040 (4) - 115700 [16:18:25]1012 (4) - 23.09.2024 09:51 [16:18:25]1206 (1) - 0 [16:18:25]OFD Sender: Remove packet 115700 [16:18:25]ProducePacketName [16:18:25]name=ofd_packets/00115700 [16:18:25]NVStorageDeleteData [16:18:25]OFD Sender: No OFD packet to send [16:18:26]*** Cut start [16:18:26]*** Partial cut [16:18:26]*** CUTSNS_PIN = 1 [16:18:26]*** CUTSNS_PIN = 0 [16:18:26]*** Brake cut motor [16:18:26]Read from MH i2c: 01 [16:18:26]MH_I2C_Read... [16:18:26]*** Stop cut motor [16:18:26]*** Cut end [16:18:26]Read from MH i2c: 01 07 00 [16:18:26]MH_I2C_Read... [16:18:26]Read from MH i2c: 01 07 00 CA 15 00 00 00 00 00 FF 0F F4 [16:18:26]process_action close_receipt done [16:18:26]requested_data is exist [16:18:26]produce_requested_data [16:18:26]requested_item fm.sn is exist - process it [16:18:26]wFMCommunicate request_size=4 [16:18:26]MH_SAM_APDU [16:18:26]CAPDU: 80 11 00 00 [16:18:26]Write to MH i2c: E2 08 00 CB 15 80 11 00 00 00 00 00 00 5A [16:18:26]Write i2c OK [16:18:26]MH_I2C_Read... [16:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:26]Read from MH i2c: E2 [16:18:26]MH_I2C_Read... [16:18:26]Read from MH i2c: E2 17 00 [16:18:26]MH_I2C_Read... [16:18:26]Read from MH i2c: E2 17 00 CB 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A8 [16:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:18:26]wFMCommunicate OK [16:18:26]requested_item fd.num is exist - process it [16:18:26]SAM_PROTO_GetFieldsCounters [16:18:26]wFMCommunicate request_size=4 [16:18:26]MH_SAM_APDU [16:18:26]CAPDU: 80 13 00 00 [16:18:26]Write to MH i2c: E2 08 00 CC 15 80 13 00 00 00 00 00 00 5D [16:18:26]Write i2c OK [16:18:26]MH_I2C_Read... [16:18:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:27]Read from MH i2c: E2 [16:18:27]MH_I2C_Read... [16:18:27]Read from MH i2c: E2 62 00 [16:18:27]MH_I2C_Read... [16:18:27]Read from MH i2c: E2 62 00 CC 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F4 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [16:18: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F4 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:27]wFMCommunicate OK [16:18:27]SAM_PROTO_GetFieldsCounters done [16:18:27]requested_item shift.num is exist - process it [16:18:27]requested_item shift.opened is exist - process it [16:18:27]req_shift_opened [16:18:27]FM_GetShiftState [16:18:27]SAM_PROTO_GetShiftState [16:18:27]wFMCommunicate request_size=4 [16:18:27]MH_SAM_APDU [16:18:27]CAPDU: 80 13 01 00 [16:18:27]Write to MH i2c: E2 08 00 CD 15 80 13 01 00 00 00 00 00 5F [16:18:27]Write i2c OK [16:18:27]MH_I2C_Read... [16:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:27]Read from MH i2c: E2 [16:18:27]MH_I2C_Read... [16:18:27]Read from MH i2c: E2 0E 00 [16:18:27]MH_I2C_Read... [16:18:27]Read from MH i2c: E2 0E 00 CD 15 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A0 [16:18:27]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:18:27]wFMCommunicate OK [16:18:27]SAM_PROTO_GetShiftState done [16:18:27]FM_GetShiftState done [16:18:27]req_shift_opened done [16:18:27]requested_item shift.open_date is exist - process it [16:18:27]req_shift_open_date [16:18:27]req_shift_open_date done [16:18:27]produce_requested_data done [16:18:27]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115700,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [16:18:27]process_action_free close_receipt [16:18:27]json_value_free [16:18:27]json_value_free done [16:18:27]process_json_proto returns [16:18:27]Send response to host [16:18:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115700,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [16:18:27]free response buf [16:18:27]execute_script done [16:18:27]execute_script returns [16:18:27]free content buf [16:18:27]Sock 7.Close socket [16:18:27]Sock 7.Thread stoped [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]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:41]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:16]OFD Sender: No OFD packet to send [16:25:21]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:31]OFD Sender: No OFD packet to send [16:25:36]OFD Sender: No OFD packet to send [16:25:41]OFD Sender: No OFD packet to send [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:56]OFD Sender: No OFD packet to send [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:25]accept exits with 9 [16:31:25]New connection [16:31:25]New thread 3066879332 created [16:31:25]Thread 3067022692 joined [16:31:25]Waiting for new connection... [16:31:25] Sock 9.Parse request [16:31:25]Sock 9.Check first char [16:31:25]Sock 9.First char is OK [16:31:25]request: POST /json_proto HTTP/1.0 [16:31:25]Method: POST [16:31:25]URL: /json_proto [16:31:25]Method is POST - this is cgi request [16:31:25]url: /json_proto [16:31:25]query_string will be loaded in cgi processing [16:31:25]execute_cgi json_proto POST (null) [16:31:25]execute_cgi path=json_proto method=POST [16:31:25]POST find Content-Length [16:31:25]Host: 172.17.41.136:8080 [16:31:25]Content-Length: 1207 [16:31:25]Content-Type: application/json [16:31:25] [16:31:25]POST finish read [16:31:25]Found Content-Length = 1207 [16:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344049", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 234.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:25]execute_script... [16:31:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344049", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 234.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:25]POST & json_proto [16:31:25]process_json_proto [16:31:25]json parsed OK: [16:31:25]protocol is kg_v1.0 [16:31:25]action value=close_receipt [16:31:25]process_action close_receipt [16:31:25]cmd_close_receipt [16:31:25]MH_GetDate [16:31:25]Write to MH i2c: F0 00 00 CE 15 D2 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: F0 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: F0 09 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: F0 09 00 CE 15 00 DE 97 F1 66 1B D0 5A 64 50 [16:31:25]GetLastDocTimeStamp 1727108303 [16:31:25]current date 1727109086 [16:31:25]FM_GetShiftState [16:31:25]SAM_PROTO_GetShiftState [16:31:25]wFMCommunicate request_size=4 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 13 01 00 [16:31:25]Write to MH i2c: E2 08 00 CF 15 80 13 01 00 00 00 00 00 61 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 0E 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 0E 00 CF 15 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A2 [16:31:25]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:31:25]wFMCommunicate OK [16:31:25]SAM_PROTO_GetShiftState done [16:31:25]FM_GetShiftState done [16:31:25]opened in 1727052070 [16:31:25]opened+sec_in_day 1727138470 [16:31:25]quantity*price = 7000 [16:31:25]sum+1 = 7001 [16:31:25]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000034730018 Кофе Американо (GABB TRADE) 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 234.00 НСП 1% : 2.07 НДС 12% : 24.84 Наличными: 234.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 184 23.09.2024 16:31 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115701 ФПД: 71236697565020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T163126&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115701&fm=71236697565020&tin=02508201610067®Number=0000000000091831&sum=23400 0 [16:31:27]StoreToDocumentArchive [16:31:27]shift 472 fd 115701 [16:31:27]save to /storage/0472/doc_00115701 [16:31:27]save last doc name /storage/0472/doc_00115701 to /storage/kkm_last_doc_name [16:31:27]save OK [16:31:27]Clear old archive folders... [16:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=515 [16:31:27]tlvbuf is B6EB9090 [16:31:27]SAM_PROTO_ClearQueue [16:31:27]wFMCommunicate request_size=4 [16:31:27]MH_SAM_APDU [16:31:27]CAPDU: 80 09 00 00 [16:31:27]Write to MH i2c: E2 08 00 DC 15 80 09 00 00 00 00 00 00 63 [16:31:27]Write i2c OK [16:31:27]MH_I2C_Read... [16:31:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:27]Read from MH i2c: E2 [16:31:27]MH_I2C_Read... [16:31:27]Read from MH i2c: E2 03 00 [16:31:27]MH_I2C_Read... [16:31:27]Read from MH i2c: E2 03 00 DC 15 00 90 00 65 [16:31:27]RAPDU: 90 00 [16:31:27]wFMCommunicate OK [16:31:27]SAM_PROTO_ClearQueue done [16:31:27]KKMCreateOFDPacket [16:31:27]OFDProtocolAddRootSTLVToBuf [16:31:27]FM_MakeSignedData [16:31:27]FM_MakeSignedData [16:31:27]SAM_PROTO_SignData [16:31:27]wFMCommunicate request_size=4 [16:31:27]MH_SAM_APDU [16:31:27]CAPDU: 80 0D 01 02 [16:31:27]Write to MH i2c: E2 08 00 DD 15 80 0D 01 02 00 00 00 00 6B [16:31:27]Write i2c OK [16:31:27]MH_I2C_Read... [16:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:27]Read from MH i2c: E2 [16:31:27]MH_I2C_Read... [16:31:27]Read from MH i2c: E2 03 00 [16:31:27]MH_I2C_Read... [16:31:27]Read from MH i2c: E2 03 00 DD 15 00 90 00 66 [16:31:27]RAPDU: 90 00 [16:31:27]wFMCommunicate OK [16:31:27]wFMCommunicate request_size=255 [16:31:27]MH_SAM_APDU [16:31:27]CAPDU: 80 0D 02 02 FA 03 00 03 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 [16:31:27]Write to MH i2c: E2 02 01 DE 15 80 0D 02 02 FA 00 03 00 03 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 00 00 EF [16:31:27]OFD Sender: No OFD packet to send [16:31:27]Write i2c OK [16:31:27]MH_I2C_Read... [16:31:27]Read from MH i2c: E2 [16:31:27]MH_I2C_Read... [16:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:27]Read from MH i2c: E2 03 00 [16:31:27]MH_I2C_Read... [16:31:27]Read from MH i2c: E2 03 00 DE 15 00 90 00 67 [16:31:27]RAPDU: 90 00 [16:31:27]wFMCommunicate OK [16:31:27]wFMCommunicate request_size=255 [16:31:27]MH_SAM_APDU [16:31:27]CAPDU: 80 0D 02 02 FA 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 09 00 00 00 00 07 04 06 00 68 5B 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 DE 97 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 [16:31:27]Write to MH i2c: E2 02 01 DF 15 80 0D 02 02 FA 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 09 00 00 00 00 07 04 06 00 68 5B 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 DE 97 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 00 00 15 [16:31:27]Write i2c OK [16:31:27]MH_I2C_Read... [16:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:28]Read from MH i2c: E2 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 03 00 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 03 00 DF 15 00 90 00 68 [16:31:28]RAPDU: 90 00 [16:31:28]wFMCommunicate OK [16:31:28]wFMCommunicate request_size=24 [16:31:28]MH_SAM_APDU [16:31:28]CAPDU: 80 0D 02 02 13 30 10 04 04 00 F5 C3 01 00 35 04 06 00 40 CA 16 0D A7 5C [16:31:28]Write to MH i2c: E2 1B 00 E0 15 80 0D 02 02 13 00 30 10 04 04 00 F5 C3 01 00 35 04 06 00 40 CA 16 0D A7 5C 00 00 05 [16:31:28]Write i2c OK [16:31:28]MH_I2C_Read... [16:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:28]Read from MH i2c: E2 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 03 00 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 03 00 E0 15 00 90 00 69 [16:31:28]RAPDU: 90 00 [16:31:28]wFMCommunicate OK [16:31:28]wFMCommunicate request_size=4 [16:31:28]MH_SAM_APDU [16:31:28]CAPDU: 80 0D 03 02 [16:31:28]Write to MH i2c: E2 08 00 E1 15 80 0D 03 02 00 00 00 00 71 [16:31:28]Write i2c OK [16:31:28]MH_I2C_Read... [16:31:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:28]Read from MH i2c: E2 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 0B 00 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 0B 00 E1 15 00 7F C2 4A D6 EB 70 FF DA 90 00 07 [16:31:28]RAPDU: 7F C2 4A D6 EB 70 FF DA 90 00 [16:31:28]wFMCommunicate OK [16:31:28]SAM_PROTO_SignData done [16:31:28]FM_MakeSignedData done [16:31:28]CreateOFDProtocolMessage [16:31:28]wFMCommunicate request_size=4 [16:31:28]MH_SAM_APDU [16:31:28]CAPDU: 80 11 00 00 [16:31:28]Write to MH i2c: E2 08 00 E2 15 80 11 00 00 00 00 00 00 71 [16:31:28]Write i2c OK [16:31:28]MH_I2C_Read... [16:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:28]Read from MH i2c: E2 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 17 00 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 17 00 E2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BF [16:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:31:28]wFMCommunicate OK [16:31:28]CreateOFDProtocolMessage done [16:31:28]OFDSenderStorePacket 115701 [16:31:28]StoreOFDPacket docnum=115701 [16:31:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 17 02 00 00 0A B4 0F 02 19 82 5A 03 01 00 03 00 03 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 09 00 00 00 00 07 04 06 00 68 5B 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 DE 97 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F5 C3 01 00 35 04 06 00 40 CA 16 0D A7 5C 7F C2 4A D6 EB 70 FF DA [16:31:28]CheckFolder [16:31:28]dirname=/storage/ofd_packets [16:31:28]CheckFolder done [16:31:28]ProducePacketName [16:31:28]name=ofd_packets/00115701 [16:31:28]NVStorageSaveData ofd_packets/00115701 [16:31:28]File name is /storage/ofd_packets/00115701 [16:31:28]Write 565 bytes [16:31:28]NVStorageSaveData done [16:31:28]OFDSenderStorePacket done [16:31:28]KKMCreateOFDPacket done [16:31:28]NVStorageSaveData kkm_last_timestamp [16:31:28]File name is /storage/kkm_last_timestamp [16:31:28]Write 4 bytes [16:31:28]NVStorageSaveData done [16:31:28]ExternCall_PrintAddStr [16:31:28]wPrintStart [16:31:28]Write to MH i2c: 01 00 00 E3 15 F8 [16:31:28]Write i2c OK [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: 01 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: 01 07 00 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: 01 07 00 E3 15 00 00 00 00 00 FF 0F 0D [16:31:28]RasterBufferAndPrint [16:31:28]line Счет N : (3)344049 [16:31:28]line ИНН: 02508201610067 [16:31:28]line Контрольно-Кассовый Чек [16:31:28]line ПРОДАЖА [16:31:28]line Товар: 4870202522008 [16:31:28]line Напиток Maxi Чай Грушевый 0,45л [16:31:28]line 1.000 * 70.00 [16:31:28]line = 70.00 [16:31:28]line НДС 12% НСП 1% [16:31:28]line > о реализуемом товаре [16:31:28]line Товар: 4607065001445 [16:31:28]line Шок батончик Snickers 50,5г [16:31:28]line 1.000 * 59.00 [16:31:28]line = 59.00 [16:31:28]line НДС 12% НСП 1% [16:31:28]line > о реализуемом товаре [16:31:28]line Товар: 2000034730018 [16:31:28]line Кофе Американо (GABB TRADE) [16:31:28]line 1.000 * 105.00 [16:31:28]line = 105.00 [16:31:28]line НДС 12% НСП 1% [16:31:28]line > о реализуемом товаре [16:31:28]line ИТОГО: 234.00 [16:31:28]line НСП 1% : 2.07 [16:31:28]line НДС 12% : 24.84 [16:31:28]line Наличными: 234.00 [16:31:28]line Безнал.: 0.00 [16:31:28]line Место: АЗС № 90 "Партнер Нефть" [16:31:28]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:31:28]line СНО: Общий режим [16:31:28]line Чек 184 23.09.2024 16:31 [16:31:28]line Смена: 472 ФФД: 1.0 [16:31:28]line ЗНМ: 0300000120 [16:31:28]line РНМ: 0000000000091831 [16:31:28]line Версия ККМ: 001 [16:31:28]line ФМ: 0000000000871830 [16:31:28]line ФД: 115701 [16:31:28]line ФПД: 71236697565020 [16:31:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T163126&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115701&fm=71236697565020&tin=02508201610067®Number=0000000000091831&sum=23400 [16:31:28]line 0 [16:31:28]written 0, free lines is 4095 [16:31:28]OFD Sender: Processing packet 115701 [packets to send 482, broken 481] [16:31:28]ProducePacketName [16:31:28]name=ofd_packets/00115701 [16:31:28]OFD Sender: To server: pG, [16:31:28]CommunicateWithHost lk.salyk.kg:30040 [16:31:28]ConnectInit lk.salyk.kg [16:31:28]Connected sock=10 [16: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 38 33 30 17 02 00 00 0A B4 0F 02 19 82 5A 03 01 00 03 00 03 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 09 00 00 00 00 07 04 06 00 68 5B 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 DE 97 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F5 C3 01 00 35 04 06 00 40 CA 16 0D A7 5C 7F C2 4A D6 EB 70 FF DA [16:31:28]Write to MH i2c: 01 00 00 18 16 2E [16:31:28]Write i2c OK [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: 01 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: 01 07 00 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: 01 07 00 18 16 00 00 00 00 00 50 0B 90 [16:31:28]RasterBufferAndPrint [16:31:28]line [16:31:28]line [16:31:28]line [16:31:28]line [16:31:28]line [16:31:28]written 0, free lines is 2900 [16:31:28]MH_Cut [16:31:28]Write to MH i2c: D1 01 00 1F 16 01 07 [16:31:28]Write i2c OK [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: D1 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: D1 01 00 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: D1 01 00 1F 16 00 06 [16:31:28]Write to MH i2c: 01 00 00 20 16 36 [16:31:28]Write i2c OK [16:31:28]MH_I2C_Read... [16: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 38 33 30 4F 00 00 00 22 21 47 00 88 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F5 C3 01 00 F4 03 04 00 21 3D F1 66 B6 04 01 00 00 FF 2C 00 CB 7B 5F 6C 3A [16:31:29]CommunicateWithHost err = 0 [16:31:29]CheckOFDResponse [16:31:29]1017 (14) - 77093643461234 [16:31:29]1041 (16) - 0000000000871830 [16:31:29]1040 (4) - 115701 [16:31:29]1012 (4) - 23.09.2024 10:04 [16:31:29]1206 (1) - 0 [16:31:29]OFD Sender: Remove packet 115701 [16:31:29]ProducePacketName [16:31:29]name=ofd_packets/00115701 [16:31:29]NVStorageDeleteData [16:31:29]OFD Sender: No OFD packet to send [16:31:30]*** Cut start [16:31:30]*** Partial cut [16:31:30]*** CUTSNS_PIN = 1 [16:31:30]*** CUTSNS_PIN = 0 [16:31:30]*** Brake cut motor [16:31:31]Read from MH i2c: 01 [16:31:31]MH_I2C_Read... [16:31:31]*** Stop cut motor [16:31:31]*** Cut end [16:31:31]Read from MH i2c: 01 07 00 [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: 01 07 00 20 16 00 00 00 00 00 FF 0F 4B [16:31:31]process_action close_receipt done [16:31:31]requested_data is exist [16:31:31]produce_requested_data [16:31:31]requested_item fm.sn is exist - process it [16:31:31]wFMCommunicate request_size=4 [16:31:31]MH_SAM_APDU [16:31:31]CAPDU: 80 11 00 00 [16:31:31]Write to MH i2c: E2 08 00 21 16 80 11 00 00 00 00 00 00 B1 [16:31:31]Write i2c OK [16:31:31]MH_I2C_Read... [16:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:31]Read from MH i2c: E2 [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: E2 17 00 [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: E2 17 00 21 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FF [16:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:31:31]wFMCommunicate OK [16:31:31]requested_item fd.num is exist - process it [16:31:31]SAM_PROTO_GetFieldsCounters [16:31:31]wFMCommunicate request_size=4 [16:31:31]MH_SAM_APDU [16:31:31]CAPDU: 80 13 00 00 [16:31:31]Write to MH i2c: E2 08 00 22 16 80 13 00 00 00 00 00 00 B4 [16:31:31]Write i2c OK [16:31:31]MH_I2C_Read... [16:31:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:31]Read from MH i2c: E2 [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: E2 62 00 [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: E2 62 00 22 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F5 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [16:31: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F5 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:31]wFMCommunicate OK [16:31:31]SAM_PROTO_GetFieldsCounters done [16:31:31]requested_item shift.num is exist - process it [16:31:31]requested_item shift.opened is exist - process it [16:31:31]req_shift_opened [16:31:31]FM_GetShiftState [16:31:31]SAM_PROTO_GetShiftState [16:31:31]wFMCommunicate request_size=4 [16:31:31]MH_SAM_APDU [16:31:31]CAPDU: 80 13 01 00 [16:31:31]Write to MH i2c: E2 08 00 23 16 80 13 01 00 00 00 00 00 B6 [16:31:31]Write i2c OK [16:31:31]MH_I2C_Read... [16:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:31]Read from MH i2c: E2 [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: E2 0E 00 [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: E2 0E 00 23 16 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F7 [16:31:31]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:31:31]wFMCommunicate OK [16:31:31]SAM_PROTO_GetShiftState done [16:31:31]FM_GetShiftState done [16:31:31]req_shift_opened done [16:31:31]requested_item shift.open_date is exist - process it [16:31:31]req_shift_open_date [16:31:31]req_shift_open_date done [16:31:31]produce_requested_data done [16:31:31]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115701,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [16:31:31]process_action_free close_receipt [16:31:31]json_value_free [16:31:31]json_value_free done [16:31:31]process_json_proto returns [16:31:31]Send response to host [16:31:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115701,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [16:31:31]free response buf [16:31:31]execute_script done [16:31:31]execute_script returns [16:31:31]free content buf [16:31:31]Sock 9.Close socket [16:31:31]Sock 9.Thread stoped [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34: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:33]accept exits with 7 [16:35:33]New connection [16:35:33]New thread 3067022692 created [16:35:33]Thread 3066879332 joined [16:35:33]Waiting for new connection... [16:35:33] Sock 7.Parse request [16:35:33]Sock 7.Check first char [16:35:33]Sock 7.First char is OK [16:35:33]request: POST /json_proto HTTP/1.0 [16:35:33]Method: POST [16:35:33]URL: /json_proto [16:35:33]Method is POST - this is cgi request [16:35:33]url: /json_proto [16:35:33]query_string will be loaded in cgi processing [16:35:33]execute_cgi json_proto POST (null) [16:35:33]execute_cgi path=json_proto method=POST [16:35:33]POST find Content-Length [16:35:33]Host: 172.17.41.136:8080 [16:35:33]Content-Length: 1406 [16:35:33]Content-Type: application/json [16:35:33] [16:35:33]POST finish read [16:35:33]Found Content-Length = 1406 [16:35:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344050", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:33]execute_script... [16:35:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344050", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:33]POST & json_proto [16:35:33]process_json_proto [16:35:33]json parsed OK: [16:35:33]protocol is kg_v1.0 [16:35:33]action value=close_receipt [16:35:33]process_action close_receipt [16:35:33]cmd_close_receipt [16:35:33]MH_GetDate [16:35:33]Write to MH i2c: F0 00 00 24 16 29 [16:35:33]Write i2c OK [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: F0 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: F0 09 00 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: F0 09 00 24 16 00 D6 98 F1 66 1B D0 5A 64 A0 [16:35:33]GetLastDocTimeStamp 1727109086 [16:35:33]current date 1727109334 [16:35:33]FM_GetShiftState [16:35:33]SAM_PROTO_GetShiftState [16:35:33]wFMCommunicate request_size=4 [16:35:33]MH_SAM_APDU [16:35:33]CAPDU: 80 13 01 00 [16:35:33]Write to MH i2c: E2 08 00 25 16 80 13 01 00 00 00 00 00 B8 [16:35:33]Write i2c OK [16:35:34]MH_I2C_Read... [16:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:34]Read from MH i2c: E2 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 0E 00 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 0E 00 25 16 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F9 [16:35:34]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:35:34]wFMCommunicate OK [16:35:34]SAM_PROTO_GetShiftState done [16:35:34]FM_GetShiftState done [16:35:34]opened in 1727052070 [16:35:34]opened+sec_in_day 1727138470 [16:35:34]quantity*price = 6000 [16:35:34]sum+1 = 6001 [16:35:34]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 2.000 * 70.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.74 Наличными: 0.00 Безнал.: 280.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 185 23.09.2024 16:35 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115702 ФПД: 134874755341718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T163535&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115702&fm=134874755341718&tin=02508201610067®Number=0000000000091831&sum=28000 0 [16:35:35]StoreToDocumentArchive [16:35:35]shift 472 fd 115702 [16:35:35]save to /storage/0472/doc_00115702 [16:35:35]save last doc name /storage/0472/doc_00115702 to /storage/kkm_last_doc_name [16:35:35]save OK [16:35:35]Clear old archive folders... [16:35:35]ProcessDocumentItem done err = 0, tmpTLVsize=513 [16:35:35]tlvbuf is 017AD9C0 [16:35:35]SAM_PROTO_ClearQueue [16:35:35]wFMCommunicate request_size=4 [16:35:35]MH_SAM_APDU [16:35:35]CAPDU: 80 09 00 00 [16:35:35]Write to MH i2c: E2 08 00 32 16 80 09 00 00 00 00 00 00 BA [16:35:35]Write i2c OK [16:35:35]MH_I2C_Read... [16:35:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:35]Read from MH i2c: E2 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: E2 03 00 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: E2 03 00 32 16 00 90 00 BC [16:35:35]RAPDU: 90 00 [16:35:35]wFMCommunicate OK [16:35:35]SAM_PROTO_ClearQueue done [16:35:35]KKMCreateOFDPacket [16:35:35]OFDProtocolAddRootSTLVToBuf [16:35:35]FM_MakeSignedData [16:35:35]FM_MakeSignedData [16:35:35]SAM_PROTO_SignData [16:35:35]wFMCommunicate request_size=4 [16:35:35]MH_SAM_APDU [16:35:35]CAPDU: 80 0D 01 02 [16:35:35]Write to MH i2c: E2 08 00 33 16 80 0D 01 02 00 00 00 00 C2 [16:35:35]Write i2c OK [16:35:35]MH_I2C_Read... [16:35:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:35]Read from MH i2c: E2 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: E2 03 00 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: E2 03 00 33 16 00 90 00 BD [16:35:35]RAPDU: 90 00 [16:35:35]wFMCommunicate OK [16:35:35]wFMCommunicate request_size=255 [16:35:35]MH_SAM_APDU [16:35:35]CAPDU: 80 0D 02 02 FA 03 00 01 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 [16:35:35]Write to MH i2c: E2 02 01 34 16 80 0D 02 02 FA 00 03 00 01 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 00 FA [16:35:35]Write i2c OK [16:35:35]MH_I2C_Read... [16:35:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:35]Read from MH i2c: E2 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: E2 03 00 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: E2 03 00 34 16 00 90 00 BE [16:35:35]RAPDU: 90 00 [16:35:35]wFMCommunicate OK [16:35:35]wFMCommunicate request_size=255 [16:35:35]MH_SAM_APDU [16:35:35]CAPDU: 80 0D 02 02 FA 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D7 98 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 [16:35:35]Write to MH i2c: E2 02 01 35 16 80 0D 02 02 FA 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D7 98 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 00 00 EE [16:35:35]Write i2c OK [16:35:35]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 35 16 00 90 00 BF [16:35:36]RAPDU: 90 00 [16:35:36]wFMCommunicate OK [16:35:36]wFMCommunicate request_size=22 [16:35:36]MH_SAM_APDU [16:35:36]CAPDU: 80 0D 02 02 11 04 04 00 F6 C3 01 00 35 04 06 00 7A AA F9 E1 9D 96 [16:35:36]Write to MH i2c: E2 19 00 36 16 80 0D 02 02 11 00 04 04 00 F6 C3 01 00 35 04 06 00 7A AA F9 E1 9D 96 00 00 1A [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 36 16 00 90 00 C0 [16:35:36]RAPDU: 90 00 [16:35:36]wFMCommunicate OK [16:35:36]wFMCommunicate request_size=4 [16:35:36]MH_SAM_APDU [16:35:36]CAPDU: 80 0D 03 02 [16:35:36]Write to MH i2c: E2 08 00 37 16 80 0D 03 02 00 00 00 00 C8 [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 0B 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 0B 00 37 16 00 E3 87 FC 3B 50 19 AB F0 90 00 6E [16:35:36]RAPDU: E3 87 FC 3B 50 19 AB F0 90 00 [16:35:36]wFMCommunicate OK [16:35:36]SAM_PROTO_SignData done [16:35:36]FM_MakeSignedData done [16:35:36]CreateOFDProtocolMessage [16:35:36]wFMCommunicate request_size=4 [16:35:36]MH_SAM_APDU [16:35:36]CAPDU: 80 11 00 00 [16:35:36]Write to MH i2c: E2 08 00 38 16 80 11 00 00 00 00 00 00 C8 [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 17 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 17 00 38 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 16 [16:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:35:36]wFMCommunicate OK [16:35:36]CreateOFDProtocolMessage done [16:35:36]OFDSenderStorePacket 115702 [16:35:36]StoreOFDPacket docnum=115702 [16:35:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 15 02 00 00 0B AC 0D 02 8D 44 5A 03 01 00 03 00 01 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D7 98 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F6 C3 01 00 35 04 06 00 7A AA F9 E1 9D 96 E3 87 FC 3B 50 19 AB F0 [16:35:36]CheckFolder [16:35:36]dirname=/storage/ofd_packets [16:35:36]CheckFolder done [16:35:36]ProducePacketName [16:35:36]name=ofd_packets/00115702 [16:35:36]NVStorageSaveData ofd_packets/00115702 [16:35:36]File name is /storage/ofd_packets/00115702 [16:35:36]Write 563 bytes [16:35:36]NVStorageSaveData done [16:35:36]OFDSenderStorePacket done [16:35:36]KKMCreateOFDPacket done [16:35:36]NVStorageSaveData kkm_last_timestamp [16:35:36]File name is /storage/kkm_last_timestamp [16:35:36]Write 4 bytes [16:35:36]NVStorageSaveData done [16:35:36]ExternCall_PrintAddStr [16:35:36]wPrintStart [16:35:36]Write to MH i2c: 01 00 00 39 16 4F [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: 01 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: 01 07 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: 01 07 00 39 16 00 00 00 00 00 FF 0F 64 [16:35:36]RasterBufferAndPrint [16:35:36]line Счет N : (3)344050 [16:35:36]line ИНН: 02508201610067 [16:35:36]line Контрольно-Кассовый Чек [16:35:36]line ПРОДАЖА [16:35:36]line Товар: 4700000160792 [16:35:36]line Снек Курут классический (круглый) [16:35:36]line 1.000 * 60.00 [16:35:36]line = 60.00 [16:35:36]line НДС 12% НСП 1% [16:35:36]line > о реализуемом товаре [16:35:36]line Товар: 4607065000790 [16:35:36]line Шок M&M`s с арахисом 45г [16:35:36]line 2.000 * 70.00 [16:35:36]line = 140.00 [16:35:36]line НДС 12% НСП 1% [16:35:36]line > о реализуемом товаре [16:35:36]line Товар: 4700000160211 [16:35:36]line Вода Легенда 0,5л [16:35:36]line 2.000 * 40.00 [16:35:36]line = 80.00 [16:35:36]line НДС 12% НСП 1% [16:35:36]line > о реализуемом товаре [16:35:36]line ИТОГО: 280.00 [16:35:36]line НСП 1% : 2.48 [16:35:36]line НДС 12% : 29.74 [16:35:36]line Наличными: 0.00 [16:35:36]line Безнал.: 280.00 [16:35:36]line Место: АЗС № 90 "Партнер Нефть" [16:35:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [16:35:36]line СНО: Общий режим [16:35:36]line Чек 185 23.09.2024 16:35 [16:35:36]line Смена: 472 ФФД: 1.0 [16:35:36]line ЗНМ: 0300000120 [16:35:36]line РНМ: 0000000000091831 [16:35:36]line Версия ККМ: 001 [16:35:36]line Платежная система: O! деньги [16:35:36]line ФМ: 0000000000871830 [16:35:36]line ФД: 115702 [16:35:36]line ФПД: 134874755341718 [16:35:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T163535&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115702&fm=134874755341718&tin=02508201610067®Number=0000000000091831&sum=28000 [16:35:36]line 0 [16:35:36]OFD Sender: Processing packet 115702 [packets to send 482, broken 481] [16:35:36]ProducePacketName [16:35:36]name=ofd_packets/00115702 [16:35:36]OFD Sender: To server: pG, [16:35:36]CommunicateWithHost lk.salyk.kg:30040 [16:35:36]ConnectInit lk.salyk.kg [16:35:36]written 0, free lines is 4095 [16:35:36]Connected sock=10 [16:35: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 38 33 30 15 02 00 00 0B AC 0D 02 8D 44 5A 03 01 00 03 00 01 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D7 98 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F6 C3 01 00 35 04 06 00 7A AA F9 E1 9D 96 E3 87 FC 3B 50 19 AB F0 [16:35:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 83 E0 47 00 88 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F6 C3 01 00 F4 03 04 00 19 3E F1 66 B6 04 01 00 00 5D 68 45 1F A1 8A 23 9C [16:35:37]CommunicateWithHost err = 0 [16:35:37]CheckOFDResponse [16:35:37]1017 (14) - 77093643461234 [16:35:37]1041 (16) - 0000000000871830 [16:35:37]1040 (4) - 115702 [16:35:37]1012 (4) - 23.09.2024 10:08 [16:35:37]1206 (1) - 0 [16:35:37]OFD Sender: Remove packet 115702 [16:35:37]ProducePacketName [16:35:37]name=ofd_packets/00115702 [16:35:37]NVStorageDeleteData [16:35:37]Write to MH i2c: 01 00 00 6F 16 85 [16:35:37]Write i2c OK [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: 01 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: 01 07 00 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: 01 07 00 6F 16 00 00 00 00 00 3D 0B D4 [16:35:37]RasterBufferAndPrint [16:35:37]line [16:35:37]line [16:35:37]line [16:35:37]line [16:35:37]line [16:35:37]written 0, free lines is 2881 [16:35:37]MH_Cut [16:35:37]Write to MH i2c: D1 01 00 76 16 01 5E [16:35:37]Write i2c OK [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: D1 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: D1 01 00 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: D1 01 00 76 16 00 5D [16:35:37]Write to MH i2c: 01 00 00 77 16 8D [16:35:37]Write i2c OK [16:35:37]MH_I2C_Read... [16:35:37]OFD Sender: No OFD packet to send [16:35:38]*** Cut start [16:35:38]*** Partial cut [16:35:38]*** CUTSNS_PIN = 1 [16:35:38]*** CUTSNS_PIN = 0 [16:35:39]*** Brake cut motor [16:35:39]Read from MH i2c: 01 [16:35:39]MH_I2C_Read... [16:35:39]*** Stop cut motor [16:35:39]*** Cut end [16:35:39]Read from MH i2c: 01 07 00 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: 01 07 00 77 16 00 00 00 00 00 FF 0F A2 [16:35:39]process_action close_receipt done [16:35:39]requested_data is exist [16:35:39]produce_requested_data [16:35:39]requested_item fm.sn is exist - process it [16:35:39]wFMCommunicate request_size=4 [16:35:39]MH_SAM_APDU [16:35:39]CAPDU: 80 11 00 00 [16:35:39]Write to MH i2c: E2 08 00 78 16 80 11 00 00 00 00 00 00 08 [16:35:39]Write i2c OK [16:35:39]MH_I2C_Read... [16:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:39]Read from MH i2c: E2 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 17 00 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 17 00 78 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 56 [16:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [16:35:39]wFMCommunicate OK [16:35:39]requested_item fd.num is exist - process it [16:35:39]SAM_PROTO_GetFieldsCounters [16:35:39]wFMCommunicate request_size=4 [16:35:39]MH_SAM_APDU [16:35:39]CAPDU: 80 13 00 00 [16:35:39]Write to MH i2c: E2 08 00 79 16 80 13 00 00 00 00 00 00 0B [16:35:39]Write i2c OK [16:35:39]MH_I2C_Read... [16:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:39]Read from MH i2c: E2 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 62 00 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 62 00 79 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F6 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [16:35:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F6 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:39]wFMCommunicate OK [16:35:39]SAM_PROTO_GetFieldsCounters done [16:35:39]requested_item shift.num is exist - process it [16:35:39]requested_item shift.opened is exist - process it [16:35:39]req_shift_opened [16:35:39]FM_GetShiftState [16:35:39]SAM_PROTO_GetShiftState [16:35:39]wFMCommunicate request_size=4 [16:35:39]MH_SAM_APDU [16:35:39]CAPDU: 80 13 01 00 [16:35:39]Write to MH i2c: E2 08 00 7A 16 80 13 01 00 00 00 00 00 0D [16:35:39]Write i2c OK [16:35:39]MH_I2C_Read... [16:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:39]Read from MH i2c: E2 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 0E 00 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 0E 00 7A 16 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 4E [16:35:39]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [16:35:39]wFMCommunicate OK [16:35:39]SAM_PROTO_GetShiftState done [16:35:39]FM_GetShiftState done [16:35:39]req_shift_opened done [16:35:39]requested_item shift.open_date is exist - process it [16:35:39]req_shift_open_date [16:35:39]req_shift_open_date done [16:35:39]produce_requested_data done [16:35:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115702,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [16:35:39]process_action_free close_receipt [16:35:39]json_value_free [16:35:39]json_value_free done [16:35:39]process_json_proto returns [16:35:39]Send response to host [16:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115702,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [16:35:39]free response buf [16:35:39]execute_script done [16:35:39]execute_script returns [16:35:39]free content buf [16:35:39]Sock 7.Close socket [16:35:39]Sock 7.Thread stoped [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]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:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:36]OFD Sender: No OFD packet to send [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:48]accept exits with 9 [17:02:48]New connection [17:02:48]New thread 3066879332 created [17:02:48]Thread 3067022692 joined [17:02:48]Waiting for new connection... [17:02:48] Sock 9.Parse request [17:02:48]Sock 9.Check first char [17:02:48]Sock 9.First char is OK [17:02:48]request: POST /json_proto HTTP/1.0 [17:02:48]Method: POST [17:02:48]URL: /json_proto [17:02:48]Method is POST - this is cgi request [17:02:48]url: /json_proto [17:02:48]query_string will be loaded in cgi processing [17:02:48]execute_cgi json_proto POST (null) [17:02:48]execute_cgi path=json_proto method=POST [17:02:48]POST find Content-Length [17:02:48]Host: 172.17.41.136:8080 [17:02:48]Content-Length: 910 [17:02:48]Content-Type: application/json [17:02:48] [17:02:48]POST finish read [17:02:48]Found Content-Length = 910 [17:02:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344051", "tax_sys" : 0, "items" : [ { "code": "4870205390987", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 PN -40 ORGANIC COOLANT Carbox (", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 454.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:48]execute_script... [17:02:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344051", "tax_sys" : 0, "items" : [ { "code": "4870205390987", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 PN -40 ORGANIC COOLANT Carbox (", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 454.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:48]POST & json_proto [17:02:48]process_json_proto [17:02:48]json parsed OK: [17:02:48]protocol is kg_v1.0 [17:02:48]action value=close_receipt [17:02:48]process_action close_receipt [17:02:48]cmd_close_receipt [17:02:48]MH_GetDate [17:02:48]Write to MH i2c: F0 00 00 7B 16 80 [17:02:48]Write i2c OK [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: F0 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: F0 09 00 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: F0 09 00 7B 16 00 39 9F F1 66 1B D0 5A 64 61 [17:02:48]GetLastDocTimeStamp 1727109335 [17:02:48]current date 1727110969 [17:02:48]FM_GetShiftState [17:02:48]SAM_PROTO_GetShiftState [17:02:48]wFMCommunicate request_size=4 [17:02:48]MH_SAM_APDU [17:02:48]CAPDU: 80 13 01 00 [17:02:48]Write to MH i2c: E2 08 00 7C 16 80 13 01 00 00 00 00 00 0F [17:02:48]Write i2c OK [17:02:48]MH_I2C_Read... [17:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:48]Read from MH i2c: E2 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: E2 0E 00 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: E2 0E 00 7C 16 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 50 [17:02:48]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:02:48]wFMCommunicate OK [17:02:48]SAM_PROTO_GetShiftState done [17:02:48]FM_GetShiftState done [17:02:48]opened in 1727052070 [17:02:48]opened+sec_in_day 1727138470 [17:02:48]quantity*price = 30000 [17:02:48]sum+1 = 30001 [17:02:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 2.000 * 77.00 = 154.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 454.00 НСП 1% : 4.01 НДС 12% : 48.21 Наличными: 454.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 186 23.09.2024 17:02 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115703 ФПД: 237768072460576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T170249&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115703&fm=237768072460576&tin=02508201610067®Number=0000000000091831&sum=45400 0 [17:02:49]StoreToDocumentArchive [17:02:49]shift 472 fd 115703 [17:02:49]save to /storage/0472/doc_00115703 [17:02:49]save last doc name /storage/0472/doc_00115703 to /storage/kkm_last_doc_name [17:02:49]save OK [17:02:49]Clear old archive folders... [17:02:49]ProcessDocumentItem done err = 0, tmpTLVsize=413 [17:02:49]tlvbuf is 01807AE0 [17:02:49]SAM_PROTO_ClearQueue [17:02:49]wFMCommunicate request_size=4 [17:02:49]MH_SAM_APDU [17:02:49]CAPDU: 80 09 00 00 [17:02:49]Write to MH i2c: E2 08 00 89 16 80 09 00 00 00 00 00 00 11 [17:02:49]Write i2c OK [17:02:49]MH_I2C_Read... [17:02:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:49]Read from MH i2c: E2 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 03 00 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 03 00 89 16 00 90 00 13 [17:02:49]RAPDU: 90 00 [17:02:49]wFMCommunicate OK [17:02:49]SAM_PROTO_ClearQueue done [17:02:49]KKMCreateOFDPacket [17:02:49]OFDProtocolAddRootSTLVToBuf [17:02:49]FM_MakeSignedData [17:02:49]FM_MakeSignedData [17:02:49]SAM_PROTO_SignData [17:02:49]wFMCommunicate request_size=4 [17:02:49]MH_SAM_APDU [17:02:49]CAPDU: 80 0D 01 02 [17:02:49]Write to MH i2c: E2 08 00 8A 16 80 0D 01 02 00 00 00 00 19 [17:02:49]Write i2c OK [17:02:49]MH_I2C_Read... [17:02:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:49]Read from MH i2c: E2 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 03 00 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 03 00 8A 16 00 90 00 14 [17:02:49]RAPDU: 90 00 [17:02:49]wFMCommunicate OK [17:02:49]wFMCommunicate request_size=255 [17:02:49]MH_SAM_APDU [17:02:49]CAPDU: 80 0D 02 02 FA 03 00 9D 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 38 37 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 43 61 72 62 6F 78 20 28 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [17:02:49]Write to MH i2c: E2 02 01 8B 16 80 0D 02 02 FA 00 03 00 9D 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 38 37 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 43 61 72 62 6F 78 20 28 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 01 [17:02:49]Write i2c OK [17:02:49]MH_I2C_Read... [17:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:50]Read from MH i2c: E2 [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: E2 03 00 [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: E2 03 00 8B 16 00 90 00 15 [17:02:50]RAPDU: 90 00 [17:02:50]wFMCommunicate OK [17:02:50]wFMCommunicate request_size=172 [17:02:50]MH_SAM_APDU [17:02:50]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 58 B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 12 00 00 00 00 07 04 06 00 58 B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 39 9F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F7 C3 01 00 35 04 06 00 D8 3F B1 7F 79 20 [17:02:50]Write to MH i2c: E2 AF 00 8C 16 80 0D 02 02 A7 00 00 01 FC 03 06 00 58 B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 12 00 00 00 00 07 04 06 00 58 B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 39 9F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F7 C3 01 00 35 04 06 00 D8 3F B1 7F 79 20 00 00 8D [17:02:50]Write i2c OK [17:02:50]MH_I2C_Read... [17:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:50]Read from MH i2c: E2 [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: E2 03 00 [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: E2 03 00 8C 16 00 90 00 16 [17:02:50]RAPDU: 90 00 [17:02:50]wFMCommunicate OK [17:02:50]wFMCommunicate request_size=4 [17:02:50]MH_SAM_APDU [17:02:50]CAPDU: 80 0D 03 02 [17:02:50]Write to MH i2c: E2 08 00 8D 16 80 0D 03 02 00 00 00 00 1E [17:02:50]Write i2c OK [17:02:50]MH_I2C_Read... [17:02:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:50]Read from MH i2c: E2 [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: E2 0B 00 [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: E2 0B 00 8D 16 00 3F 61 F9 97 C0 42 D7 72 90 00 9A [17:02:50]RAPDU: 3F 61 F9 97 C0 42 D7 72 90 00 [17:02:50]wFMCommunicate OK [17:02:50]SAM_PROTO_SignData done [17:02:50]FM_MakeSignedData done [17:02:50]CreateOFDProtocolMessage [17:02:50]wFMCommunicate request_size=4 [17:02:50]MH_SAM_APDU [17:02:50]CAPDU: 80 11 00 00 [17:02:50]Write to MH i2c: E2 08 00 8E 16 80 11 00 00 00 00 00 00 1E [17:02:50]Write i2c OK [17:02:50]MH_I2C_Read... [17:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:50]Read from MH i2c: E2 [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: E2 17 00 [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: E2 17 00 8E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6C [17:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:02:50]wFMCommunicate OK [17:02:50]CreateOFDProtocolMessage done [17:02:50]OFDSenderStorePacket 115703 [17:02:50]StoreOFDPacket docnum=115703 [17:02:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B1 01 00 00 70 3E A9 01 4A A3 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 38 37 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 43 61 72 62 6F 78 20 28 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 12 00 00 00 00 07 04 06 00 58 B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 39 9F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F7 C3 01 00 35 04 06 00 D8 3F B1 7F 79 20 3F 61 F9 97 C0 42 D7 72 [17:02:50]CheckFolder [17:02:50]dirname=/storage/ofd_packets [17:02:50]CheckFolder done [17:02:50]ProducePacketName [17:02:50]name=ofd_packets/00115703 [17:02:50]NVStorageSaveData ofd_packets/00115703 [17:02:50]File name is /storage/ofd_packets/00115703 [17:02:50]Write 463 bytes [17:02:50]NVStorageSaveData done [17:02:50]OFDSenderStorePacket done [17:02:50]KKMCreateOFDPacket done [17:02:50]NVStorageSaveData kkm_last_timestamp [17:02:50]File name is /storage/kkm_last_timestamp [17:02:50]Write 4 bytes [17:02:50]NVStorageSaveData done [17:02:50]ExternCall_PrintAddStr [17:02:50]wPrintStart [17:02:50]Write to MH i2c: 01 00 00 8F 16 A5 [17:02:50]Write i2c OK [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: 01 [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: 01 07 00 [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: 01 07 00 8F 16 00 00 00 00 00 FF 0F BA [17:02:50]RasterBufferAndPrint [17:02:50]line Счет N : (3)344051 [17:02:50]line ИНН: 02508201610067 [17:02:50]line Контрольно-Кассовый Чек [17:02:50]line ПРОДАЖА [17:02:50]line Товар: 4870205390987 [17:02:50]line Антифриз PN -40 ORGANIC COOLANT Carbox ( [17:02:50]line 1.000 * 300.00 [17:02:50]line = 300.00 [17:02:50]line НДС 12% НСП 1% [17:02:50]line > о реализуемом товаре [17:02:50]line Товар: 4700000480050 [17:02:50]line Напиток Nitro Energy эн green ж/б 0,45л [17:02:50]line 2.000 * 77.00 [17:02:50]line = 154.00 [17:02:50]line НДС 12% НСП 1% [17:02:50]line > о реализуемом товаре [17:02:50]line ИТОГО: 454.00 [17:02:50]line НСП 1% : 4.01 [17:02:50]line НДС 12% : 48.21 [17:02:50]line Наличными: 454.00 [17:02:50]line Безнал.: 0.00 [17:02:50]line Место: АЗС № 90 "Партнер Нефть" [17:02:50]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:02:50]line СНО: Общий режим [17:02:50]line Чек 186 23.09.2024 17:02 [17:02:50]line Смена: 472 ФФД: 1.0 [17:02:50]line ЗНМ: 0300000120 [17:02:50]line РНМ: 0000000000091831 [17:02:50]line Версия ККМ: 001 [17:02:50]line ФМ: 0000000000871830 [17:02:50]line ФД: 115703 [17:02:50]line ФПД: 237768072460576 [17:02:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T170249&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115703&fm=237768072460576&tin=02508201610067®Number=0000000000091831&sum=45400 [17:02:50]line 0 [17:02:50]OFD Sender: Processing packet 115703 [packets to send 482, broken 481] [17:02:50]ProducePacketName [17:02:50]name=ofd_packets/00115703 [17:02:50]OFD Sender: To server: pG, [17:02:50]CommunicateWithHost lk.salyk.kg:30040 [17:02:50]ConnectInit lk.salyk.kg [17:02:50]written 0, free lines is 4095 [17:02:51]Write to MH i2c: 01 00 00 BE 16 D4 [17:02:51]Write i2c OK [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: 01 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: 01 07 00 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: 01 07 00 BE 16 00 00 00 00 00 E0 0B C6 [17:02:51]RasterBufferAndPrint [17:02:51]line [17:02:51]line [17:02:51]line [17:02:51]line [17:02:51]line [17:02:51]written 0, free lines is 3043 [17:02:51]MH_Cut [17:02:51]Write to MH i2c: D1 01 00 C5 16 01 AD [17:02:51]Write i2c OK [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: D1 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: D1 01 00 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: D1 01 00 C5 16 00 AC [17:02:51]Write to MH i2c: 01 00 00 C6 16 DC [17:02:51]Write i2c OK [17:02:51]MH_I2C_Read... [17:02:51]Connected sock=10 [17:02: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 38 33 30 B1 01 00 00 70 3E A9 01 4A A3 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 38 37 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 43 61 72 62 6F 78 20 28 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 12 00 00 00 00 07 04 06 00 58 B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 39 9F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F7 C3 01 00 35 04 06 00 D8 3F B1 7F 79 20 3F 61 F9 97 C0 42 D7 72 [17:02:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B0 4F 47 00 F5 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 38 33 30 10 04 04 00 F7 C3 01 00 F4 03 04 00 7C 44 F1 66 B6 04 01 00 00 C4 51 8B 92 57 57 91 77 [17:02:52]CommunicateWithHost err = 0 [17:02:52]CheckOFDResponse [17:02:52]1017 (14) - 77093643461234 [17:02:52]1041 (16) - 0000000000871830 [17:02:52]1040 (4) - 115703 [17:02:52]1012 (4) - 23.09.2024 10:35 [17:02:52]1206 (1) - 0 [17:02:52]OFD Sender: Remove packet 115703 [17:02:52]ProducePacketName [17:02:52]name=ofd_packets/00115703 [17:02:52]NVStorageDeleteData [17:02:52]OFD Sender: No OFD packet to send [17:02:52]*** Cut start [17:02:52]*** Partial cut [17:02:52]*** CUTSNS_PIN = 1 [17:02:52]*** CUTSNS_PIN = 0 [17:02:53]*** Brake cut motor [17:02:53]Read from MH i2c: 01 [17:02:53]MH_I2C_Read... [17:02:53]*** Stop cut motor [17:02:53]*** Cut end [17:02:53]Read from MH i2c: 01 07 00 [17:02:53]MH_I2C_Read... [17:02:53]Read from MH i2c: 01 07 00 C6 16 00 00 00 00 00 FF 0F F1 [17:02:53]process_action close_receipt done [17:02:53]requested_data is exist [17:02:53]produce_requested_data [17:02:53]requested_item fm.sn is exist - process it [17:02:53]wFMCommunicate request_size=4 [17:02:53]MH_SAM_APDU [17:02:53]CAPDU: 80 11 00 00 [17:02:53]Write to MH i2c: E2 08 00 C7 16 80 11 00 00 00 00 00 00 57 [17:02:53]Write i2c OK [17:02:53]MH_I2C_Read... [17:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:53]Read from MH i2c: E2 [17:02:53]MH_I2C_Read... [17:02:53]Read from MH i2c: E2 17 00 [17:02:53]MH_I2C_Read... [17:02:53]Read from MH i2c: E2 17 00 C7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A5 [17:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:02:53]wFMCommunicate OK [17:02:53]requested_item fd.num is exist - process it [17:02:53]SAM_PROTO_GetFieldsCounters [17:02:53]wFMCommunicate request_size=4 [17:02:53]MH_SAM_APDU [17:02:53]CAPDU: 80 13 00 00 [17:02:53]Write to MH i2c: E2 08 00 C8 16 80 13 00 00 00 00 00 00 5A [17:02:53]Write i2c OK [17:02:53]MH_I2C_Read... [17:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:53]Read from MH i2c: E2 [17:02:53]MH_I2C_Read... [17:02:53]Read from MH i2c: E2 62 00 [17:02:53]MH_I2C_Read... [17:02:53]Read from MH i2c: E2 62 00 C8 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F7 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [17:02: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F7 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:53]wFMCommunicate OK [17:02:53]SAM_PROTO_GetFieldsCounters done [17:02:53]requested_item shift.num is exist - process it [17:02:53]requested_item shift.opened is exist - process it [17:02:53]req_shift_opened [17:02:53]FM_GetShiftState [17:02:53]SAM_PROTO_GetShiftState [17:02:53]wFMCommunicate request_size=4 [17:02:53]MH_SAM_APDU [17:02:53]CAPDU: 80 13 01 00 [17:02:53]Write to MH i2c: E2 08 00 C9 16 80 13 01 00 00 00 00 00 5C [17:02:53]Write i2c OK [17:02:53]MH_I2C_Read... [17:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:53]Read from MH i2c: E2 [17:02:53]MH_I2C_Read... [17:02:53]Read from MH i2c: E2 0E 00 [17:02:53]MH_I2C_Read... [17:02:53]Read from MH i2c: E2 0E 00 C9 16 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 9D [17:02:53]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:02:53]wFMCommunicate OK [17:02:53]SAM_PROTO_GetShiftState done [17:02:53]FM_GetShiftState done [17:02:53]req_shift_opened done [17:02:53]requested_item shift.open_date is exist - process it [17:02:53]req_shift_open_date [17:02:53]req_shift_open_date done [17:02:53]produce_requested_data done [17:02:53]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115703,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:02:53]process_action_free close_receipt [17:02:53]json_value_free [17:02:53]json_value_free done [17:02:53]process_json_proto returns [17:02:53]Send response to host [17:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115703,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:02:53]free response buf [17:02:53]execute_script done [17:02:53]execute_script returns [17:02:53]free content buf [17:02:53]Sock 9.Close socket [17:02:53]Sock 9.Thread stoped [17:02:57]accept exits with 7 [17:02:57]New connection [17:02:57]New thread 3067022692 created [17:02:57]Thread 3066879332 joined [17:02:57]Waiting for new connection... [17:02:57] Sock 7.Parse request [17:02:57]Sock 7.Check first char [17:02:57]Sock 7.First char is OK [17:02:57]request: POST /json_proto HTTP/1.0 [17:02:57]Method: POST [17:02:57]URL: /json_proto [17:02:57]Method is POST - this is cgi request [17:02:57]url: /json_proto [17:02:57]query_string will be loaded in cgi processing [17:02:57]execute_cgi json_proto POST (null) [17:02:57]execute_cgi path=json_proto method=POST [17:02:57]POST find Content-Length [17:02:57]Host: 172.17.41.136:8080 [17:02:57]Content-Length: 645 [17:02:57]Content-Type: application/json [17:02:57] [17:02:57]POST finish read [17:02:57]Found Content-Length = 645 [17:02:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344052", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:57]execute_script... [17:02:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344052", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:57]POST & json_proto [17:02:57]process_json_proto [17:02:57]json parsed OK: [17:02:57]protocol is kg_v1.0 [17:02:57]action value=close_receipt [17:02:57]process_action close_receipt [17:02:57]cmd_close_receipt [17:02:57]MH_GetDate [17:02:57]Write to MH i2c: F0 00 00 CA 16 CF [17:02:57]Write i2c OK [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: F0 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: F0 09 00 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: F0 09 00 CA 16 00 42 9F F1 66 1B D0 5A 64 B9 [17:02:57]GetLastDocTimeStamp 1727110969 [17:02:57]current date 1727110978 [17:02:57]FM_GetShiftState [17:02:57]SAM_PROTO_GetShiftState [17:02:57]wFMCommunicate request_size=4 [17:02:57]MH_SAM_APDU [17:02:57]CAPDU: 80 13 01 00 [17:02:57]Write to MH i2c: E2 08 00 CB 16 80 13 01 00 00 00 00 00 5E [17:02:57]Write i2c OK [17:02:57]MH_I2C_Read... [17:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:57]Read from MH i2c: E2 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 0E 00 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 0E 00 CB 16 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 9F [17:02:57]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:02:57]wFMCommunicate OK [17:02:57]SAM_PROTO_GetShiftState done [17:02:57]FM_GetShiftState done [17:02:57]opened in 1727052070 [17:02:57]opened+sec_in_day 1727138470 [17:02:57]quantity*price = 6000 [17:02:57]sum+1 = 6001 [17:02:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 187 23.09.2024 17:02 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115704 ФПД: 175150900860679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T170258&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115704&fm=175150900860679&tin=02508201610067®Number=0000000000091831&sum=6000 0 [17:02:58]StoreToDocumentArchive [17:02:58]shift 472 fd 115704 [17:02:58]save to /storage/0472/doc_00115704 [17:02:58]save last doc name /storage/0472/doc_00115704 to /storage/kkm_last_doc_name [17:02:58]save OK [17:02:58]Clear old archive folders... [17:02:58]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:02:58]tlvbuf is 0180DFC0 [17:02:58]SAM_PROTO_ClearQueue [17:02:58]wFMCommunicate request_size=4 [17:02:58]MH_SAM_APDU [17:02:58]CAPDU: 80 09 00 00 [17:02:58]Write to MH i2c: E2 08 00 D8 16 80 09 00 00 00 00 00 00 60 [17:02:58]Write i2c OK [17:02:58]MH_I2C_Read... [17:02:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:58]Read from MH i2c: E2 [17:02:58]MH_I2C_Read... [17:02:58]Read from MH i2c: E2 03 00 [17:02:58]MH_I2C_Read... [17:02:58]Read from MH i2c: E2 03 00 D8 16 00 90 00 62 [17:02:58]RAPDU: 90 00 [17:02:58]wFMCommunicate OK [17:02:58]SAM_PROTO_ClearQueue done [17:02:58]KKMCreateOFDPacket [17:02:58]OFDProtocolAddRootSTLVToBuf [17:02:58]FM_MakeSignedData [17:02:58]FM_MakeSignedData [17:02:58]SAM_PROTO_SignData [17:02:58]wFMCommunicate request_size=4 [17:02:58]MH_SAM_APDU [17:02:58]CAPDU: 80 0D 01 02 [17:02:58]Write to MH i2c: E2 08 00 D9 16 80 0D 01 02 00 00 00 00 68 [17:02:58]Write i2c OK [17:02:58]MH_I2C_Read... [17:02:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:58]Read from MH i2c: E2 [17:02:58]MH_I2C_Read... [17:02:58]Read from MH i2c: E2 03 00 [17:02:58]MH_I2C_Read... [17:02:58]Read from MH i2c: E2 03 00 D9 16 00 90 00 63 [17:02:58]RAPDU: 90 00 [17:02:58]wFMCommunicate OK [17:02:58]wFMCommunicate request_size=255 [17:02:58]MH_SAM_APDU [17:02:58]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 42 9F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 [17:02:58]Write to MH i2c: E2 02 01 DA 16 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 42 9F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 00 00 6C [17:02:58]Write i2c OK [17:02:58]MH_I2C_Read... [17:02:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:58]Read from MH i2c: E2 [17:02:58]MH_I2C_Read... [17:02:58]Read from MH i2c: E2 03 00 [17:02:58]MH_I2C_Read... [17:02:58]Read from MH i2c: E2 03 00 DA 16 00 90 00 64 [17:02:58]RAPDU: 90 00 [17:02:58]wFMCommunicate OK [17:02:58]wFMCommunicate request_size=35 [17:02:58]MH_SAM_APDU [17:02:58]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F8 C3 01 00 35 04 06 00 9F 4C 7F 3A 57 07 [17:02:58]Write to MH i2c: E2 26 00 DB 16 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F8 C3 01 00 35 04 06 00 9F 4C 7F 3A 57 07 00 00 17 [17:02:58]Write i2c OK [17:02:58]MH_I2C_Read... [17:02:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:58]Read from MH i2c: E2 [17:02:58]MH_I2C_Read... [17:02:58]Read from MH i2c: E2 03 00 [17:02:58]MH_I2C_Read... [17:02:58]Read from MH i2c: E2 03 00 DB 16 00 90 00 65 [17:02:58]RAPDU: 90 00 [17:02:58]wFMCommunicate OK [17:02:58]wFMCommunicate request_size=4 [17:02:58]MH_SAM_APDU [17:02:58]CAPDU: 80 0D 03 02 [17:02:58]Write to MH i2c: E2 08 00 DC 16 80 0D 03 02 00 00 00 00 6D [17:02:58]Write i2c OK [17:02:58]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 0B 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 0B 00 DC 16 00 EA D1 FD 49 EE 46 D4 08 90 00 7F [17:02:59]RAPDU: EA D1 FD 49 EE 46 D4 08 90 00 [17:02:59]wFMCommunicate OK [17:02:59]SAM_PROTO_SignData done [17:02:59]FM_MakeSignedData done [17:02:59]CreateOFDProtocolMessage [17:02:59]wFMCommunicate request_size=4 [17:02:59]MH_SAM_APDU [17:02:59]CAPDU: 80 11 00 00 [17:02:59]Write to MH i2c: E2 08 00 DD 16 80 11 00 00 00 00 00 00 6D [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 17 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 17 00 DD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BB [17:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:02:59]wFMCommunicate OK [17:02:59]CreateOFDProtocolMessage done [17:02:59]OFDSenderStorePacket 115704 [17:02:59]StoreOFDPacket docnum=115704 [17:02:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 09 06 20 01 68 6E 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 42 9F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F8 C3 01 00 35 04 06 00 9F 4C 7F 3A 57 07 EA D1 FD 49 EE 46 D4 08 [17:02:59]CheckFolder [17:02:59]dirname=/storage/ofd_packets [17:02:59]CheckFolder done [17:02:59]ProducePacketName [17:02:59]name=ofd_packets/00115704 [17:02:59]NVStorageSaveData ofd_packets/00115704 [17:02:59]File name is /storage/ofd_packets/00115704 [17:02:59]Write 326 bytes [17:02:59]NVStorageSaveData done [17:02:59]OFDSenderStorePacket done [17:02:59]KKMCreateOFDPacket done [17:02:59]NVStorageSaveData kkm_last_timestamp [17:02:59]File name is /storage/kkm_last_timestamp [17:02:59]Write 4 bytes [17:02:59]NVStorageSaveData done [17:02:59]ExternCall_PrintAddStr [17:02:59]wPrintStart [17:02:59]Write to MH i2c: 01 00 00 DE 16 F4 [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: 01 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: 01 07 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: 01 07 00 DE 16 00 00 00 00 00 FF 0F 09 [17:02:59]RasterBufferAndPrint [17:02:59]line Счет N : (3)344052 [17:02:59]line ИНН: 02508201610067 [17:02:59]line Контрольно-Кассовый Чек [17:02:59]line ПРОДАЖА [17:02:59]line Товар: 4700000310043 [17:02:59]line Вода Жалалабат 27 1л [17:02:59]line 1.000 * 60.00 [17:02:59]line = 60.00 [17:02:59]line НДС 12% НСП 1% [17:02:59]line > о реализуемом товаре [17:02:59]line ИТОГО: 60.00 [17:02:59]line НСП 1% : 0.53 [17:02:59]line НДС 12% : 6.37 [17:02:59]line Наличными: 60.00 [17:02:59]line Безнал.: 0.00 [17:02:59]line Место: АЗС № 90 "Партнер Нефть" [17:02:59]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:02:59]line СНО: Общий режим [17:02:59]line Чек 187 23.09.2024 17:02 [17:02:59]line Смена: 472 ФФД: 1.0 [17:02:59]line ЗНМ: 0300000120 [17:02:59]line РНМ: 0000000000091831 [17:02:59]line Версия ККМ: 001 [17:02:59]line ФМ: 0000000000871830 [17:02:59]line ФД: 115704 [17:02:59]line ФПД: 175150900860679 [17:02:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T170258&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115704&fm=175150900860679&tin=02508201610067®Number=0000000000091831&sum=6000 [17:02:59]line 0 [17:02:59]written 0, free lines is 4095 [17:02:59]OFD Sender: Processing packet 115704 [packets to send 482, broken 481] [17:02:59]ProducePacketName [17:02:59]name=ofd_packets/00115704 [17:02:59]OFD Sender: To server: pG, [17:02:59]CommunicateWithHost lk.salyk.kg:30040 [17:02:59]ConnectInit lk.salyk.kg [17:02:59]Connected sock=10 [17:02: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 38 33 30 28 01 00 00 09 06 20 01 68 6E 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 42 9F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F8 C3 01 00 35 04 06 00 9F 4C 7F 3A 57 07 EA D1 FD 49 EE 46 D4 08 [17:02:59]Write to MH i2c: 01 00 00 05 17 1C [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: 01 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: 01 07 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: 01 07 00 05 17 00 00 00 00 00 7D 0C AC [17:02:59]RasterBufferAndPrint [17:02:59]line [17:02:59]line [17:02:59]line [17:02:59]line [17:02:59]line [17:02:59]written 0, free lines is 3205 [17:02:59]MH_Cut [17:02:59]Write to MH i2c: D1 01 00 0C 17 01 F5 [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: D1 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: D1 01 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: D1 01 00 0C 17 00 F4 [17:02:59]Write to MH i2c: 01 00 00 0D 17 24 [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A4 C7 47 00 F9 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 38 33 30 10 04 04 00 F8 C3 01 00 F4 03 04 00 84 44 F1 66 B6 04 01 00 00 02 A3 24 63 6E 70 0A B3 [17:02:59]CommunicateWithHost err = 0 [17:02:59]CheckOFDResponse [17:02:59]1017 (14) - 77093643461234 [17:02:59]1041 (16) - 0000000000871830 [17:02:59]1040 (4) - 115704 [17:02:59]1012 (4) - 23.09.2024 10:35 [17:02:59]1206 (1) - 0 [17:02:59]OFD Sender: Remove packet 115704 [17:02:59]ProducePacketName [17:02:59]name=ofd_packets/00115704 [17:02:59]NVStorageDeleteData [17:03:00]OFD Sender: No OFD packet to send [17:03:00]*** Cut start [17:03:00]*** Partial cut [17:03:00]*** CUTSNS_PIN = 1 [17:03:00]*** CUTSNS_PIN = 0 [17:03:01]*** Brake cut motor [17:03:01]Read from MH i2c: 01 [17:03:01]MH_I2C_Read... [17:03:01]*** Stop cut motor [17:03:01]*** Cut end [17:03:01]Read from MH i2c: 01 07 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: 01 07 00 0D 17 00 00 00 00 00 FF 0F 39 [17:03:01]process_action close_receipt done [17:03:01]requested_data is exist [17:03:01]produce_requested_data [17:03:01]requested_item fm.sn is exist - process it [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 11 00 00 [17:03:01]Write to MH i2c: E2 08 00 0E 17 80 11 00 00 00 00 00 00 9F [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 17 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 17 00 0E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 ED [17:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:03:01]wFMCommunicate OK [17:03:01]requested_item fd.num is exist - process it [17:03:01]SAM_PROTO_GetFieldsCounters [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 13 00 00 [17:03:01]Write to MH i2c: E2 08 00 0F 17 80 13 00 00 00 00 00 00 A2 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 62 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 62 00 0F 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F8 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [17:03: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F8 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:01]wFMCommunicate OK [17:03:01]SAM_PROTO_GetFieldsCounters done [17:03:01]requested_item shift.num is exist - process it [17:03:01]requested_item shift.opened is exist - process it [17:03:01]req_shift_opened [17:03:01]FM_GetShiftState [17:03:01]SAM_PROTO_GetShiftState [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 13 01 00 [17:03:01]Write to MH i2c: E2 08 00 10 17 80 13 01 00 00 00 00 00 A4 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0E 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0E 00 10 17 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E5 [17:03:01]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:03:01]wFMCommunicate OK [17:03:01]SAM_PROTO_GetShiftState done [17:03:01]FM_GetShiftState done [17:03:01]req_shift_opened done [17:03:01]requested_item shift.open_date is exist - process it [17:03:01]req_shift_open_date [17:03:01]req_shift_open_date done [17:03:01]produce_requested_data done [17:03:01]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115704,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:03:01]process_action_free close_receipt [17:03:01]json_value_free [17:03:01]json_value_free done [17:03:01]process_json_proto returns [17:03:01]Send response to host [17:03:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115704,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:03:01]free response buf [17:03:01]execute_script done [17:03:01]execute_script returns [17:03:01]free content buf [17:03:01]Sock 7.Close socket [17:03:01]Sock 7.Thread stoped [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:35]accept exits with 9 [17:03:35]New connection [17:03:35]New thread 3066879332 created [17:03:35]Thread 3067022692 joined [17:03:35]Waiting for new connection... [17:03:35] Sock 9.Parse request [17:03:35]Sock 9.Check first char [17:03:35]Sock 9.First char is OK [17:03:35]request: POST /json_proto HTTP/1.0 [17:03:35]Method: POST [17:03:35]URL: /json_proto [17:03:35]Method is POST - this is cgi request [17:03:35]url: /json_proto [17:03:35]query_string will be loaded in cgi processing [17:03:35]execute_cgi json_proto POST (null) [17:03:35]execute_cgi path=json_proto method=POST [17:03:35]POST find Content-Length [17:03:35]Host: 172.17.41.136:8080 [17:03:35]Content-Length: 1208 [17:03:35]Content-Type: application/json [17:03:35] [17:03:35]POST finish read [17:03:35]Found Content-Length = 1208 [17:03:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344053", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 258.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:35]execute_script... [17:03:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344053", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 258.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:35]POST & json_proto [17:03:35]process_json_proto [17:03:35]json parsed OK: [17:03:35]protocol is kg_v1.0 [17:03:35]action value=close_receipt [17:03:35]process_action close_receipt [17:03:35]cmd_close_receipt [17:03:35]MH_GetDate [17:03:35]Write to MH i2c: F0 00 00 11 17 17 [17:03:35]Write i2c OK [17:03:35]MH_I2C_Read... [17:03:35]Read from MH i2c: F0 [17:03:35]MH_I2C_Read... [17:03:35]Read from MH i2c: F0 09 00 [17:03:35]MH_I2C_Read... [17:03:35]Read from MH i2c: F0 09 00 11 17 00 68 9F F1 66 1B D0 5A 64 27 [17:03:35]GetLastDocTimeStamp 1727110978 [17:03:35]current date 1727111016 [17:03:35]FM_GetShiftState [17:03:35]SAM_PROTO_GetShiftState [17:03:35]wFMCommunicate request_size=4 [17:03:35]MH_SAM_APDU [17:03:35]CAPDU: 80 13 01 00 [17:03:35]Write to MH i2c: E2 08 00 12 17 80 13 01 00 00 00 00 00 A6 [17:03:35]Write i2c OK [17:03:35]MH_I2C_Read... [17:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:35]Read from MH i2c: E2 [17:03:35]MH_I2C_Read... [17:03:35]Read from MH i2c: E2 0E 00 [17:03:35]MH_I2C_Read... [17:03:35]Read from MH i2c: E2 0E 00 12 17 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E7 [17:03:35]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:03:35]wFMCommunicate OK [17:03:35]SAM_PROTO_GetShiftState done [17:03:35]FM_GetShiftState done [17:03:35]opened in 1727052070 [17:03:35]opened+sec_in_day 1727138470 [17:03:35]quantity*price = 11800 [17:03:35]sum+1 = 11801 [17:03:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002325113 Напиток PEPSI газированный ст 0,25л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 258.00 НСП 1% : 2.28 НДС 12% : 27.40 Наличными: 258.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 188 23.09.2024 17:03 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115705 ФПД: 248857576746325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T170336&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115705&fm=248857576746325&tin=02508201610067®Number=0000000000091831&sum=25800 0 [17:03:36]StoreToDocumentArchive [17:03:36]shift 472 fd 115705 [17:03:36]save to /storage/0472/doc_00115705 [17:03:36]save last doc name /storage/0472/doc_00115705 to /storage/kkm_last_doc_name [17:03:36]save OK [17:03:36]Clear old archive folders... [17:03:36]ProcessDocumentItem done err = 0, tmpTLVsize=509 [17:03:36]tlvbuf is 0180E040 [17:03:36]SAM_PROTO_ClearQueue [17:03:36]wFMCommunicate request_size=4 [17:03:36]MH_SAM_APDU [17:03:36]CAPDU: 80 09 00 00 [17:03:36]Write to MH i2c: E2 08 00 1F 17 80 09 00 00 00 00 00 00 A8 [17:03:36]Write i2c OK [17:03:36]MH_I2C_Read... [17:03:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:37]Read from MH i2c: E2 [17:03:37]MH_I2C_Read... [17:03:37]Read from MH i2c: E2 03 00 [17:03:37]MH_I2C_Read... [17:03:37]Read from MH i2c: E2 03 00 1F 17 00 90 00 AA [17:03:37]RAPDU: 90 00 [17:03:37]wFMCommunicate OK [17:03:37]SAM_PROTO_ClearQueue done [17:03:37]KKMCreateOFDPacket [17:03:37]OFDProtocolAddRootSTLVToBuf [17:03:37]FM_MakeSignedData [17:03:37]FM_MakeSignedData [17:03:37]SAM_PROTO_SignData [17:03:37]wFMCommunicate request_size=4 [17:03:37]MH_SAM_APDU [17:03:37]CAPDU: 80 0D 01 02 [17:03:37]Write to MH i2c: E2 08 00 20 17 80 0D 01 02 00 00 00 00 B0 [17:03:37]Write i2c OK [17:03:37]MH_I2C_Read... [17:03:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:37]Read from MH i2c: E2 [17:03:37]MH_I2C_Read... [17:03:37]Read from MH i2c: E2 03 00 [17:03:37]MH_I2C_Read... [17:03:37]Read from MH i2c: E2 03 00 20 17 00 90 00 AB [17:03:37]RAPDU: 90 00 [17:03:37]wFMCommunicate OK [17:03:37]wFMCommunicate request_size=255 [17:03:37]MH_SAM_APDU [17:03:37]CAPDU: 80 0D 02 02 FA 03 00 FD 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 [17:03:37]Write to MH i2c: E2 02 01 21 17 80 0D 02 02 FA 00 03 00 FD 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 00 00 A5 [17:03:37]Write i2c OK [17:03:37]MH_I2C_Read... [17:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:37]Read from MH i2c: E2 [17:03:37]MH_I2C_Read... [17:03:37]Read from MH i2c: E2 03 00 [17:03:37]MH_I2C_Read... [17:03:37]Read from MH i2c: E2 03 00 21 17 00 90 00 AC [17:03:37]RAPDU: 90 00 [17:03:37]wFMCommunicate OK [17:03:37]wFMCommunicate request_size=255 [17:03:37]MH_SAM_APDU [17:03:37]CAPDU: 80 0D 02 02 FA 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 68 9F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F9 [17:03:37]Write to MH i2c: E2 02 01 22 17 80 0D 02 02 FA 00 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 68 9F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F9 00 00 F7 [17:03:37]Write i2c OK [17:03:37]MH_I2C_Read... [17:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:37]Read from MH i2c: E2 [17:03:37]MH_I2C_Read... [17:03:37]Read from MH i2c: E2 03 00 [17:03:37]MH_I2C_Read... [17:03:37]Read from MH i2c: E2 03 00 22 17 00 90 00 AD [17:03:37]RAPDU: 90 00 [17:03:37]wFMCommunicate OK [17:03:37]wFMCommunicate request_size=18 [17:03:37]MH_SAM_APDU [17:03:37]CAPDU: 80 0D 02 02 0D C3 01 00 35 04 06 00 E2 55 AB 76 2D 55 [17:03:37]Write to MH i2c: E2 15 00 23 17 80 0D 02 02 0D 00 C3 01 00 35 04 06 00 E2 55 AB 76 2D 55 00 00 AB [17:03:37]Write i2c OK [17:03:37]MH_I2C_Read... [17:03:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:38]Read from MH i2c: E2 [17:03:38]MH_I2C_Read... [17:03:38]Read from MH i2c: E2 03 00 [17:03:38]MH_I2C_Read... [17:03:38]Read from MH i2c: E2 03 00 23 17 00 90 00 AE [17:03:38]RAPDU: 90 00 [17:03:38]wFMCommunicate OK [17:03:38]wFMCommunicate request_size=4 [17:03:38]MH_SAM_APDU [17:03:38]CAPDU: 80 0D 03 02 [17:03:38]Write to MH i2c: E2 08 00 24 17 80 0D 03 02 00 00 00 00 B6 [17:03:38]Write i2c OK [17:03:38]MH_I2C_Read... [17:03:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:38]Read from MH i2c: E2 [17:03:38]MH_I2C_Read... [17:03:38]Read from MH i2c: E2 0B 00 [17:03:38]MH_I2C_Read... [17:03:38]Read from MH i2c: E2 0B 00 24 17 00 16 FF 51 D0 D0 62 A8 8A 90 00 51 [17:03:38]RAPDU: 16 FF 51 D0 D0 62 A8 8A 90 00 [17:03:38]wFMCommunicate OK [17:03:38]SAM_PROTO_SignData done [17:03:38]FM_MakeSignedData done [17:03:38]CreateOFDProtocolMessage [17:03:38]wFMCommunicate request_size=4 [17:03:38]MH_SAM_APDU [17:03:38]CAPDU: 80 11 00 00 [17:03:38]Write to MH i2c: E2 08 00 25 17 80 11 00 00 00 00 00 00 B6 [17:03:38]Write i2c OK [17:03:38]MH_I2C_Read... [17:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:38]Read from MH i2c: E2 [17:03:38]MH_I2C_Read... [17:03:38]Read from MH i2c: E2 17 00 [17:03:38]MH_I2C_Read... [17:03:38]Read from MH i2c: E2 17 00 25 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 04 [17:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:03:38]wFMCommunicate OK [17:03:38]CreateOFDProtocolMessage done [17:03:38]OFDSenderStorePacket 115705 [17:03:38]StoreOFDPacket docnum=115705 [17:03:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 11 02 00 00 0B A8 09 02 9A 3F 5A 03 01 00 03 00 FD 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 68 9F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F9 C3 01 00 35 04 06 00 E2 55 AB 76 2D 55 16 FF 51 D0 D0 62 A8 8A [17:03:38]CheckFolder [17:03:38]dirname=/storage/ofd_packets [17:03:38]CheckFolder done [17:03:38]ProducePacketName [17:03:38]name=ofd_packets/00115705 [17:03:38]NVStorageSaveData ofd_packets/00115705 [17:03:38]File name is /storage/ofd_packets/00115705 [17:03:38]Write 559 bytes [17:03:38]NVStorageSaveData done [17:03:38]OFDSenderStorePacket done [17:03:38]KKMCreateOFDPacket done [17:03:38]NVStorageSaveData kkm_last_timestamp [17:03:38]File name is /storage/kkm_last_timestamp [17:03:38]Write 4 bytes [17:03:38]NVStorageSaveData done [17:03:38]ExternCall_PrintAddStr [17:03:38]wPrintStart [17:03:38]Write to MH i2c: 01 00 00 26 17 3D [17:03:38]Write i2c OK [17:03:38]MH_I2C_Read... [17:03:38]Read from MH i2c: 01 [17:03:38]MH_I2C_Read... [17:03:38]Read from MH i2c: 01 07 00 [17:03:38]MH_I2C_Read... [17:03:38]Read from MH i2c: 01 07 00 26 17 00 00 00 00 00 FF 0F 52 [17:03:38]RasterBufferAndPrint [17:03:38]line Счет N : (3)344053 [17:03:38]line ИНН: 02508201610067 [17:03:38]line Контрольно-Кассовый Чек [17:03:38]line ПРОДАЖА [17:03:38]line Товар: 4607065001445 [17:03:38]line Шок батончик Snickers 50,5г [17:03:38]line 2.000 * 59.00 [17:03:38]line = 118.00 [17:03:38]line НДС 12% НСП 1% [17:03:38]line > о реализуемом товаре [17:03:38]line Товар: 4870002325113 [17:03:38]line Напиток PEPSI газированный ст 0,25л [17:03:38]line 1.000 * 90.00 [17:03:38]line = 90.00 [17:03:38]line НДС 12% НСП 1% [17:03:38]line > о реализуемом товаре [17:03:38]line Товар: 4700000160358 [17:03:38]line Вода Легенда 1л [17:03:38]line 1.000 * 50.00 [17:03:38]line = 50.00 [17:03:38]line НДС 12% НСП 1% [17:03:38]line > о реализуемом товаре [17:03:38]line ИТОГО: 258.00 [17:03:38]line НСП 1% : 2.28 [17:03:38]line НДС 12% : 27.40 [17:03:38]line Наличными: 258.00 [17:03:38]line Безнал.: 0.00 [17:03:38]line Место: АЗС № 90 "Партнер Нефть" [17:03:38]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:03:38]line СНО: Общий режим [17:03:38]line Чек 188 23.09.2024 17:03 [17:03:38]line Смена: 472 ФФД: 1.0 [17:03:38]line ЗНМ: 0300000120 [17:03:38]line РНМ: 0000000000091831 [17:03:38]line Версия ККМ: 001 [17:03:38]line ФМ: 0000000000871830 [17:03:38]line ФД: 115705 [17:03:38]line ФПД: 248857576746325 [17:03:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T170336&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115705&fm=248857576746325&tin=02508201610067®Number=0000000000091831&sum=25800 [17:03:38]line 0 [17:03:38]written 0, free lines is 4095 [17:03:38]OFD Sender: Processing packet 115705 [packets to send 482, broken 481] [17:03:38]ProducePacketName [17:03:38]name=ofd_packets/00115705 [17:03:38]OFD Sender: To server: pG, [17:03:38]CommunicateWithHost lk.salyk.kg:30040 [17:03:38]ConnectInit lk.salyk.kg [17:03:38]Connected sock=10 [17:03: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 38 33 30 11 02 00 00 0B A8 09 02 9A 3F 5A 03 01 00 03 00 FD 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 68 9F F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F9 C3 01 00 35 04 06 00 E2 55 AB 76 2D 55 16 FF 51 D0 D0 62 A8 8A [17:03:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 36 8D 47 00 A0 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 38 33 30 10 04 04 00 F9 C3 01 00 F4 03 04 00 AB 44 F1 66 B6 04 01 00 00 AE CA C7 96 C7 E7 CA C8 [17:03:38]CommunicateWithHost err = 0 [17:03:38]CheckOFDResponse [17:03:38]1017 (14) - 77093643461234 [17:03:38]1041 (16) - 0000000000871830 [17:03:38]1040 (4) - 115705 [17:03:38]1012 (4) - 23.09.2024 10:36 [17:03:38]1206 (1) - 0 [17:03:38]OFD Sender: Remove packet 115705 [17:03:38]ProducePacketName [17:03:38]name=ofd_packets/00115705 [17:03:38]NVStorageDeleteData [17:03:38]Write to MH i2c: 01 00 00 5A 17 71 [17:03:38]Write i2c OK [17:03:38]MH_I2C_Read... [17:03:38]Read from MH i2c: 01 [17:03:38]MH_I2C_Read... [17:03:38]Read from MH i2c: 01 07 00 [17:03:38]MH_I2C_Read... [17:03:38]Read from MH i2c: 01 07 00 5A 17 00 00 00 00 00 6C 0B EF [17:03:38]RasterBufferAndPrint [17:03:38]line [17:03:38]line [17:03:38]line [17:03:38]line [17:03:38]line [17:03:38]written 0, free lines is 2928 [17:03:38]MH_Cut [17:03:38]Write to MH i2c: D1 01 00 61 17 01 4A [17:03:38]Write i2c OK [17:03:38]MH_I2C_Read... [17:03:38]Read from MH i2c: D1 [17:03:38]MH_I2C_Read... [17:03:38]Read from MH i2c: D1 01 00 [17:03:38]MH_I2C_Read... [17:03:38]Read from MH i2c: D1 01 00 61 17 00 49 [17:03:38]Write to MH i2c: 01 00 00 62 17 79 [17:03:38]Write i2c OK [17:03:38]MH_I2C_Read... [17:03:39]OFD Sender: No OFD packet to send [17:03:40]*** Cut start [17:03:40]*** Partial cut [17:03:40]*** CUTSNS_PIN = 1 [17:03:40]*** CUTSNS_PIN = 0 [17:03:40]*** Brake cut motor [17:03:40]Read from MH i2c: 01 [17:03:40]MH_I2C_Read... [17:03:40]*** Stop cut motor [17:03:40]*** Cut end [17:03:40]Read from MH i2c: 01 07 00 [17:03:40]MH_I2C_Read... [17:03:40]Read from MH i2c: 01 07 00 62 17 00 00 00 00 00 FF 0F 8E [17:03:40]process_action close_receipt done [17:03:40]requested_data is exist [17:03:40]produce_requested_data [17:03:40]requested_item fm.sn is exist - process it [17:03:40]wFMCommunicate request_size=4 [17:03:40]MH_SAM_APDU [17:03:40]CAPDU: 80 11 00 00 [17:03:40]Write to MH i2c: E2 08 00 63 17 80 11 00 00 00 00 00 00 F4 [17:03:40]Write i2c OK [17:03:40]MH_I2C_Read... [17:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:40]Read from MH i2c: E2 [17:03:40]MH_I2C_Read... [17:03:40]Read from MH i2c: E2 17 00 [17:03:40]MH_I2C_Read... [17:03:40]Read from MH i2c: E2 17 00 63 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 42 [17:03:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:03:41]wFMCommunicate OK [17:03:41]requested_item fd.num is exist - process it [17:03:41]SAM_PROTO_GetFieldsCounters [17:03:41]wFMCommunicate request_size=4 [17:03:41]MH_SAM_APDU [17:03:41]CAPDU: 80 13 00 00 [17:03:41]Write to MH i2c: E2 08 00 64 17 80 13 00 00 00 00 00 00 F7 [17:03:41]Write i2c OK [17:03:41]MH_I2C_Read... [17:03:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:41]Read from MH i2c: E2 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 62 00 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 62 00 64 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F9 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [17:03: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F9 C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:41]wFMCommunicate OK [17:03:41]SAM_PROTO_GetFieldsCounters done [17:03:41]requested_item shift.num is exist - process it [17:03:41]requested_item shift.opened is exist - process it [17:03:41]req_shift_opened [17:03:41]FM_GetShiftState [17:03:41]SAM_PROTO_GetShiftState [17:03:41]wFMCommunicate request_size=4 [17:03:41]MH_SAM_APDU [17:03:41]CAPDU: 80 13 01 00 [17:03:41]Write to MH i2c: E2 08 00 65 17 80 13 01 00 00 00 00 00 F9 [17:03:41]Write i2c OK [17:03:41]MH_I2C_Read... [17:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:41]Read from MH i2c: E2 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 0E 00 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 0E 00 65 17 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 3A [17:03:41]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:03:41]wFMCommunicate OK [17:03:41]SAM_PROTO_GetShiftState done [17:03:41]FM_GetShiftState done [17:03:41]req_shift_opened done [17:03:41]requested_item shift.open_date is exist - process it [17:03:41]req_shift_open_date [17:03:41]req_shift_open_date done [17:03:41]produce_requested_data done [17:03:41]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115705,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:03:41]process_action_free close_receipt [17:03:41]json_value_free [17:03:41]json_value_free done [17:03:41]process_json_proto returns [17:03:41]Send response to host [17:03:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115705,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:03:41]free response buf [17:03:41]execute_script done [17:03:41]execute_script returns [17:03:41]free content buf [17:03:41]Sock 9.Close socket [17:03:41]Sock 9.Thread stoped [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:47]accept exits with 7 [17:06:47]New connection [17:06:47]New thread 3067022692 created [17:06:47]Thread 3066879332 joined [17:06:47]Waiting for new connection... [17:06:47] Sock 7.Parse request [17:06:47]Sock 7.Check first char [17:06:47]Sock 7.First char is OK [17:06:47]request: POST /json_proto HTTP/1.0 [17:06:47]Method: POST [17:06:47]URL: /json_proto [17:06:47]Method is POST - this is cgi request [17:06:47]url: /json_proto [17:06:47]query_string will be loaded in cgi processing [17:06:47]execute_cgi json_proto POST (null) [17:06:47]execute_cgi path=json_proto method=POST [17:06:47]POST find Content-Length [17:06:47]Host: 172.17.41.136:8080 [17:06:47]Content-Length: 784 [17:06:47]Content-Type: application/json [17:06:47] [17:06:47]POST finish read [17:06:47]Found Content-Length = 784 [17:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 12.990, "sum" : 900.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:47]execute_script... [17:06: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)24617859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 12.990, "sum" : 900.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:47]POST & json_proto [17:06:47]process_json_proto [17:06:47]json parsed OK: [17:06:47]protocol is kg_v1.0 [17:06:47]action value=close_receipt [17:06:47]process_action close_receipt [17:06:47]cmd_close_receipt [17:06:47]MH_GetDate [17:06:47]Write to MH i2c: F0 00 00 66 17 6C [17:06:47]Write i2c OK [17:06:47]MH_I2C_Read... [17:06:47]Read from MH i2c: F0 [17:06:47]MH_I2C_Read... [17:06:47]Read from MH i2c: F0 09 00 [17:06:47]MH_I2C_Read... [17:06:47]Read from MH i2c: F0 09 00 66 17 00 28 A0 F1 66 1B D0 5A 64 3D [17:06:47]GetLastDocTimeStamp 1727111016 [17:06:47]current date 1727111208 [17:06:47]FM_GetShiftState [17:06:47]SAM_PROTO_GetShiftState [17:06:47]wFMCommunicate request_size=4 [17:06:47]MH_SAM_APDU [17:06:47]CAPDU: 80 13 01 00 [17:06:47]Write to MH i2c: E2 08 00 67 17 80 13 01 00 00 00 00 00 FB [17:06:47]Write i2c OK [17:06:47]MH_I2C_Read... [17:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:47]Read from MH i2c: E2 [17:06:47]MH_I2C_Read... [17:06:47]Read from MH i2c: E2 0E 00 [17:06:47]MH_I2C_Read... [17:06:47]Read from MH i2c: E2 0E 00 67 17 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 3C [17:06:47]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:06:47]wFMCommunicate OK [17:06:47]SAM_PROTO_GetShiftState done [17:06:47]FM_GetShiftState done [17:06:47]opened in 1727052070 [17:06:47]opened+sec_in_day 1727138470 [17:06:47]quantity*price = 90020 [17:06:47]sum+1 = 90022 [17:06:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.21 НСП 1% : 7.97 НДС 12% : 95.60 Наличными: 0.00 Безнал.: 900.21 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 189 23.09.2024 17:06 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115706 ФПД: 109598589281661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T170648&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115706&fm=109598589281661&tin=02508201610067®Number=0000000000091831&sum=90021 [17:06:48]StoreToDocumentArchive [17:06:48]shift 472 fd 115706 [17:06:48]save to /storage/0472/doc_00115706 [17:06:48]save last doc name /storage/0472/doc_00115706 to /storage/kkm_last_doc_name [17:06:48]save OK [17:06:48]Clear old archive folders... [17:06:48]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:06:48]tlvbuf is 01835EA0 [17:06:48]SAM_PROTO_ClearQueue [17:06:48]wFMCommunicate request_size=4 [17:06:48]MH_SAM_APDU [17:06:48]CAPDU: 80 09 00 00 [17:06:48]Write to MH i2c: E2 08 00 74 17 80 09 00 00 00 00 00 00 FD [17:06:48]Write i2c OK [17:06:48]MH_I2C_Read... [17:06:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:48]Read from MH i2c: E2 [17:06:48]MH_I2C_Read... [17:06:48]Read from MH i2c: E2 03 00 [17:06:48]MH_I2C_Read... [17:06:48]Read from MH i2c: E2 03 00 74 17 00 90 00 FF [17:06:48]RAPDU: 90 00 [17:06:48]wFMCommunicate OK [17:06:48]SAM_PROTO_ClearQueue done [17:06:48]KKMCreateOFDPacket [17:06:48]OFDProtocolAddRootSTLVToBuf [17:06:48]FM_MakeSignedData [17:06:48]FM_MakeSignedData [17:06:48]SAM_PROTO_SignData [17:06:48]wFMCommunicate request_size=4 [17:06:48]MH_SAM_APDU [17:06:48]CAPDU: 80 0D 01 02 [17:06:48]Write to MH i2c: E2 08 00 75 17 80 0D 01 02 00 00 00 00 05 [17:06:48]Write i2c OK [17:06:48]MH_I2C_Read... [17:06:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:48]Read from MH i2c: E2 [17:06:48]MH_I2C_Read... [17:06:48]Read from MH i2c: E2 03 00 [17:06:48]MH_I2C_Read... [17:06:48]Read from MH i2c: E2 03 00 75 17 00 90 00 00 [17:06:48]RAPDU: 90 00 [17:06:48]wFMCommunicate OK [17:06:48]wFMCommunicate request_size=253 [17:06:48]MH_SAM_APDU [17:06:48]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BE 32 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A5 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 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 58 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 28 A0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FA C3 01 00 35 04 06 00 63 AD E8 FB 65 7D [17:06:48]Write to MH i2c: E2 00 01 76 17 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BE 32 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A5 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 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 58 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 28 A0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FA C3 01 00 35 04 06 00 63 AD E8 FB 65 7D 00 00 C6 [17:06:48]Write i2c OK [17:06:48]MH_I2C_Read... [17:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:49]Read from MH i2c: E2 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: E2 03 00 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: E2 03 00 76 17 00 90 00 01 [17:06:49]RAPDU: 90 00 [17:06:49]wFMCommunicate OK [17:06:49]wFMCommunicate request_size=4 [17:06:49]MH_SAM_APDU [17:06:49]CAPDU: 80 0D 03 02 [17:06:49]Write to MH i2c: E2 08 00 77 17 80 0D 03 02 00 00 00 00 09 [17:06:49]Write i2c OK [17:06:49]MH_I2C_Read... [17:06:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:49]Read from MH i2c: E2 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: E2 0B 00 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: E2 0B 00 77 17 00 11 87 12 31 B8 C6 59 B7 90 00 73 [17:06:49]RAPDU: 11 87 12 31 B8 C6 59 B7 90 00 [17:06:49]wFMCommunicate OK [17:06:49]SAM_PROTO_SignData done [17:06:49]FM_MakeSignedData done [17:06:49]CreateOFDProtocolMessage [17:06:49]wFMCommunicate request_size=4 [17:06:49]MH_SAM_APDU [17:06:49]CAPDU: 80 11 00 00 [17:06:49]Write to MH i2c: E2 08 00 78 17 80 11 00 00 00 00 00 00 09 [17:06:49]Write i2c OK [17:06:49]MH_I2C_Read... [17:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:49]Read from MH i2c: E2 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: E2 17 00 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: E2 17 00 78 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 57 [17:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:06:49]wFMCommunicate OK [17:06:49]CreateOFDProtocolMessage done [17:06:49]OFDSenderStorePacket 115706 [17:06:49]StoreOFDPacket docnum=115706 [17:06:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 D6 A9 00 01 80 5E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BE 32 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A5 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 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 58 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 28 A0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FA C3 01 00 35 04 06 00 63 AD E8 FB 65 7D 11 87 12 31 B8 C6 59 B7 [17:06:49]CheckFolder [17:06:49]dirname=/storage/ofd_packets [17:06:49]CheckFolder done [17:06:49]ProducePacketName [17:06:49]name=ofd_packets/00115706 [17:06:49]NVStorageSaveData ofd_packets/00115706 [17:06:49]File name is /storage/ofd_packets/00115706 [17:06:49]Write 294 bytes [17:06:49]NVStorageSaveData done [17:06:49]OFDSenderStorePacket done [17:06:49]KKMCreateOFDPacket done [17:06:49]NVStorageSaveData kkm_last_timestamp [17:06:49]File name is /storage/kkm_last_timestamp [17:06:49]Write 4 bytes [17:06:49]NVStorageSaveData done [17:06:49]ExternCall_PrintAddStr [17:06:49]wPrintStart [17:06:49]Write to MH i2c: 01 00 00 79 17 90 [17:06:49]Write i2c OK [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: 01 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: 01 07 00 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: 01 07 00 79 17 00 00 00 00 00 FF 0F A5 [17:06:49]RasterBufferAndPrint [17:06:49]line Счет N : (1)24617859 [17:06:49]line ИНН: 02508201610067 [17:06:49]line Контрольно-Кассовый Чек [17:06:49]line ПРОДАЖА [17:06:49]line ТРК (МРК, ГНК) : 44 [17:06:49]line Товар: 2710124130 [17:06:49]line SU-92 [17:06:49]line 12.990 * 69.30 [17:06:49]line = 900.21 [17:06:49]line НДС 12% НСП 1% [17:06:49]line > о реализуемом товаре [17:06:49]line ИТОГО: 900.21 [17:06:49]line НСП 1% : 7.97 [17:06:49]line НДС 12% : 95.60 [17:06:49]line Наличными: 0.00 [17:06:49]line Безнал.: 900.21 [17:06:49]line Место: АЗС № 90 "Партнер Нефть" [17:06:49]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:06:49]line СНО: Общий режим [17:06:49]line Чек 189 23.09.2024 17:06 [17:06:49]line Смена: 472 ФФД: 1.0 [17:06:49]line ЗНМ: 0300000120 [17:06:49]line РНМ: 0000000000091831 [17:06:49]line Версия ККМ: 001 [17:06:49]line Платежная система: O! деньги [17:06:49]line ФМ: 0000000000871830 [17:06:49]line ФД: 115706 [17:06:49]line ФПД: 109598589281661 [17:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T170648&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115706&fm=109598589281661&tin=02508201610067®Number=0000000000091831&sum=90021 [17:06:49]written 0, free lines is 4095 [17:06:49]OFD Sender: Processing packet 115706 [packets to send 482, broken 481] [17:06:49]ProducePacketName [17:06:49]name=ofd_packets/00115706 [17:06:49]OFD Sender: To server: pG, [17:06:49]CommunicateWithHost lk.salyk.kg:30040 [17:06:49]ConnectInit lk.salyk.kg [17:06:49]Write to MH i2c: 01 00 00 A2 17 B9 [17:06:49]Write i2c OK [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: 01 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: 01 07 00 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: 01 07 00 A2 17 00 00 00 00 00 7B 0C 47 [17:06:49]RasterBufferAndPrint [17:06:49]line [17:06:49]line [17:06:49]line [17:06:49]line [17:06:49]line [17:06:49]written 0, free lines is 3199 [17:06:49]MH_Cut [17:06:49]Write to MH i2c: D1 01 00 A9 17 01 92 [17:06:49]Write i2c OK [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: D1 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: D1 01 00 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: D1 01 00 A9 17 00 91 [17:06:49]Write to MH i2c: 01 00 00 AA 17 C1 [17:06:49]Write i2c OK [17:06:49]MH_I2C_Read... [17:06:49]Connected sock=10 [17:06: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 38 33 30 08 01 00 00 D6 A9 00 01 80 5E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BE 32 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 A5 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 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 58 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 28 A0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FA C3 01 00 35 04 06 00 63 AD E8 FB 65 7D 11 87 12 31 B8 C6 59 B7 [17:06:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 3E F8 47 00 18 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FA C3 01 00 F4 03 04 00 6A 45 F1 66 B6 04 01 00 00 F5 2B F6 BD C1 11 5F 98 [17:06:49]CommunicateWithHost err = 0 [17:06:49]CheckOFDResponse [17:06:49]1017 (14) - 77093643461234 [17:06:49]1041 (16) - 0000000000871830 [17:06:49]1040 (4) - 115706 [17:06:49]1012 (4) - 23.09.2024 10:39 [17:06:49]1206 (1) - 0 [17:06:49]OFD Sender: Remove packet 115706 [17:06:49]ProducePacketName [17:06:49]name=ofd_packets/00115706 [17:06:49]NVStorageDeleteData [17:06:50]OFD Sender: No OFD packet to send [17:06:50]*** Cut start [17:06:50]*** Partial cut [17:06:50]*** CUTSNS_PIN = 1 [17:06:50]*** CUTSNS_PIN = 0 [17:06:51]*** Brake cut motor [17:06:51]Read from MH i2c: 01 [17:06:51]MH_I2C_Read... [17:06:51]*** Stop cut motor [17:06:51]*** Cut end [17:06:51]Read from MH i2c: 01 07 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: 01 07 00 AA 17 00 00 00 00 00 FF 0F D6 [17:06:51]process_action close_receipt done [17:06:51]requested_data is exist [17:06:51]produce_requested_data [17:06:51]requested_item fm.sn is exist - process it [17:06:51]wFMCommunicate request_size=4 [17:06:51]MH_SAM_APDU [17:06:51]CAPDU: 80 11 00 00 [17:06:51]Write to MH i2c: E2 08 00 AB 17 80 11 00 00 00 00 00 00 3C [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:51]Read from MH i2c: E2 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 17 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 17 00 AB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8A [17:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:06:51]wFMCommunicate OK [17:06:51]requested_item fd.num is exist - process it [17:06:51]SAM_PROTO_GetFieldsCounters [17:06:51]wFMCommunicate request_size=4 [17:06:51]MH_SAM_APDU [17:06:51]CAPDU: 80 13 00 00 [17:06:51]Write to MH i2c: E2 08 00 AC 17 80 13 00 00 00 00 00 00 3F [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:51]Read from MH i2c: E2 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 62 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 62 00 AC 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FA C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [17:06: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FA C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:51]wFMCommunicate OK [17:06:51]SAM_PROTO_GetFieldsCounters done [17:06:51]requested_item shift.num is exist - process it [17:06:51]requested_item shift.opened is exist - process it [17:06:51]req_shift_opened [17:06:51]FM_GetShiftState [17:06:51]SAM_PROTO_GetShiftState [17:06:51]wFMCommunicate request_size=4 [17:06:51]MH_SAM_APDU [17:06:51]CAPDU: 80 13 01 00 [17:06:51]Write to MH i2c: E2 08 00 AD 17 80 13 01 00 00 00 00 00 41 [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:51]Read from MH i2c: E2 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 0E 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 0E 00 AD 17 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 82 [17:06:51]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:06:51]wFMCommunicate OK [17:06:51]SAM_PROTO_GetShiftState done [17:06:51]FM_GetShiftState done [17:06:51]req_shift_opened done [17:06:51]requested_item shift.open_date is exist - process it [17:06:51]req_shift_open_date [17:06:51]req_shift_open_date done [17:06:51]produce_requested_data done [17:06:51]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115706,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:06:51]process_action_free close_receipt [17:06:51]json_value_free [17:06:51]json_value_free done [17:06:51]process_json_proto returns [17:06:51]Send response to host [17:06:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115706,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:06:51]free response buf [17:06:51]execute_script done [17:06:51]execute_script returns [17:06:51]free content buf [17:06:51]Sock 7.Close socket [17:06:51]Sock 7.Thread stoped [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:10]OFD Sender: No OFD packet to send [17:10:15]accept exits with 9 [17:10:15]New connection [17:10:15]New thread 3066879332 created [17:10:15]Thread 3067022692 joined [17:10:15]Waiting for new connection... [17:10:15] Sock 9.Parse request [17:10:15]Sock 9.Check first char [17:10:15]Sock 9.First char is OK [17:10:15]request: POST /json_proto HTTP/1.0 [17:10:15]Method: POST [17:10:15]URL: /json_proto [17:10:15]Method is POST - this is cgi request [17:10:15]url: /json_proto [17:10:15]query_string will be loaded in cgi processing [17:10:15]execute_cgi json_proto POST (null) [17:10:15]execute_cgi path=json_proto method=POST [17:10:15]POST find Content-Length [17:10:15]Host: 172.17.41.136:8080 [17:10:15]Content-Length: 794 [17:10:15]Content-Type: application/json [17:10:15] [17:10:15]POST finish read [17:10:15]Found Content-Length = 794 [17:10:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68927", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:15]execute_script... [17:10: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)24617862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68927", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:15]POST & json_proto [17:10:15]process_json_proto [17:10:15]json parsed OK: [17:10:15]protocol is kg_v1.0 [17:10:15]action value=close_receipt [17:10:15]process_action close_receipt [17:10:15]cmd_close_receipt [17:10:15]MH_GetDate [17:10:15]Write to MH i2c: F0 00 00 AE 17 B4 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: F0 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: F0 09 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: F0 09 00 AE 17 00 F8 A0 F1 66 1B D0 5A 64 55 [17:10:15]GetLastDocTimeStamp 1727111208 [17:10:15]current date 1727111416 [17:10:15]FM_GetShiftState [17:10:15]SAM_PROTO_GetShiftState [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 13 01 00 [17:10:15]Write to MH i2c: E2 08 00 AF 17 80 13 01 00 00 00 00 00 43 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 0E 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 0E 00 AF 17 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 84 [17:10:15]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:10:15]wFMCommunicate OK [17:10:15]SAM_PROTO_GetShiftState done [17:10:15]FM_GetShiftState done [17:10:15]opened in 1727052070 [17:10:15]opened+sec_in_day 1727138470 [17:10:15]quantity*price = 0 [17:10:15]sum+1 = 1 [17:10:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 190 23.09.2024 17:10 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливная Карта 68927 ФМ: 0000000000871830 ФД: 115707 ФПД: 268886309996083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171016&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115707&fm=268886309996083&tin=02508201610067®Number=0000000000091831&sum=0 [17:10:16]StoreToDocumentArchive [17:10:16]shift 472 fd 115707 [17:10:16]save to /storage/0472/doc_00115707 [17:10:16]save last doc name /storage/0472/doc_00115707 to /storage/kkm_last_doc_name [17:10:16]save OK [17:10:16]Clear old archive folders... [17:10:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:16]tlvbuf is B6F66800 [17:10:16]SAM_PROTO_ClearQueue [17:10:16]wFMCommunicate request_size=4 [17:10:16]MH_SAM_APDU [17:10:16]CAPDU: 80 09 00 00 [17:10:16]Write to MH i2c: E2 08 00 BC 17 80 09 00 00 00 00 00 00 45 [17:10:16]Write i2c OK [17:10:16]MH_I2C_Read... [17:10:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:16]Read from MH i2c: E2 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 03 00 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 03 00 BC 17 00 90 00 47 [17:10:16]RAPDU: 90 00 [17:10:16]wFMCommunicate OK [17:10:16]SAM_PROTO_ClearQueue done [17:10:16]KKMCreateOFDPacket [17:10:16]OFDProtocolAddRootSTLVToBuf [17:10:16]FM_MakeSignedData [17:10:16]FM_MakeSignedData [17:10:16]SAM_PROTO_SignData [17:10:16]wFMCommunicate request_size=4 [17:10:16]MH_SAM_APDU [17:10:16]CAPDU: 80 0D 01 02 [17:10:16]Write to MH i2c: E2 08 00 BD 17 80 0D 01 02 00 00 00 00 4D [17:10:16]Write i2c OK [17:10:16]MH_I2C_Read... [17:10:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:16]Read from MH i2c: E2 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 03 00 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 03 00 BD 17 00 90 00 48 [17:10:16]RAPDU: 90 00 [17:10:16]wFMCommunicate OK [17:10:16]wFMCommunicate request_size=255 [17:10:16]MH_SAM_APDU [17:10: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 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 F8 A0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FB C3 01 00 35 04 06 00 F4 [17:10:16]Write to MH i2c: E2 02 01 BE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 F8 A0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FB C3 01 00 35 04 06 00 F4 00 00 31 [17:10:16]Write i2c OK [17:10:16]MH_I2C_Read... [17:10:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:16]Read from MH i2c: E2 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 03 00 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 03 00 BE 17 00 90 00 49 [17:10:16]RAPDU: 90 00 [17:10:16]wFMCommunicate OK [17:10:16]wFMCommunicate request_size=10 [17:10:16]MH_SAM_APDU [17:10:16]CAPDU: 80 0D 02 02 05 8C F8 FE 06 33 [17:10:16]Write to MH i2c: E2 0D 00 BF 17 80 0D 02 02 05 00 8C F8 FE 06 33 00 00 15 [17:10:16]Write i2c OK [17:10:16]MH_I2C_Read... [17:10:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:16]Read from MH i2c: E2 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 03 00 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 03 00 BF 17 00 90 00 4A [17:10:16]RAPDU: 90 00 [17:10:16]wFMCommunicate OK [17:10:16]wFMCommunicate request_size=4 [17:10:16]MH_SAM_APDU [17:10:16]CAPDU: 80 0D 03 02 [17:10:16]Write to MH i2c: E2 08 00 C0 17 80 0D 03 02 00 00 00 00 52 [17:10:16]Write i2c OK [17:10:16]MH_I2C_Read... [17:10:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:16]Read from MH i2c: E2 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 0B 00 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 0B 00 C0 17 00 2F 42 D7 A3 C5 27 29 93 90 00 E6 [17:10:16]RAPDU: 2F 42 D7 A3 C5 27 29 93 90 00 [17:10:16]wFMCommunicate OK [17:10:16]SAM_PROTO_SignData done [17:10:16]FM_MakeSignedData done [17:10:16]CreateOFDProtocolMessage [17:10:16]wFMCommunicate request_size=4 [17:10:16]MH_SAM_APDU [17:10:16]CAPDU: 80 11 00 00 [17:10:16]Write to MH i2c: E2 08 00 C1 17 80 11 00 00 00 00 00 00 52 [17:10:16]Write i2c OK [17:10:16]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 17 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 17 00 C1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A0 [17:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:10:17]wFMCommunicate OK [17:10:17]CreateOFDProtocolMessage done [17:10:17]OFDSenderStorePacket 115707 [17:10:17]StoreOFDPacket docnum=115707 [17:10:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 1F 92 07 01 14 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 F8 A0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FB C3 01 00 35 04 06 00 F4 8C F8 FE 06 33 2F 42 D7 A3 C5 27 29 93 [17:10:17]CheckFolder [17:10:17]dirname=/storage/ofd_packets [17:10:17]CheckFolder done [17:10:17]ProducePacketName [17:10:17]name=ofd_packets/00115707 [17:10:17]NVStorageSaveData ofd_packets/00115707 [17:10:17]File name is /storage/ofd_packets/00115707 [17:10:17]Write 301 bytes [17:10:17]NVStorageSaveData done [17:10:17]OFDSenderStorePacket done [17:10:17]KKMCreateOFDPacket done [17:10:17]NVStorageSaveData kkm_last_timestamp [17:10:17]File name is /storage/kkm_last_timestamp [17:10:17]Write 4 bytes [17:10:17]NVStorageSaveData done [17:10:17]ExternCall_PrintAddStr [17:10:17]wPrintStart [17:10:17]Write to MH i2c: 01 00 00 C2 17 D9 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 07 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 07 00 C2 17 00 00 00 00 00 FF 0F EE [17:10:17]RasterBufferAndPrint [17:10:17]line Счет N : (1)24617862 [17:10:17]line ИНН: 02508201610067 [17:10:17]line Контрольно-Кассовый Чек [17:10:17]line ПРОДАЖА [17:10:17]line ТРК (МРК, ГНК) : 42 [17:10:17]line Товар: 2710124500 [17:10:17]line Аи-95-К-5 [17:10:17]line 30.000 * 0.00 [17:10:17]line = 0.00 [17:10:17]line НДС 12% НСП 1% [17:10:17]line > о реализуемом товаре [17:10:17]line ИТОГО: 0.00 [17:10:17]line НСП 1% : 0.00 [17:10:17]line НДС 12% : 0.00 [17:10:17]line Наличными: 0.00 [17:10:17]line Безнал.: 0.00 [17:10:17]line Место: АЗС № 90 "Партнер Нефть" [17:10:17]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:10:17]line СНО: Общий режим [17:10:17]line Чек 190 23.09.2024 17:10 [17:10:17]line Смена: 472 ФФД: 1.0 [17:10:17]line ЗНМ: 0300000120 [17:10:17]line РНМ: 0000000000091831 [17:10:17]line Версия ККМ: 001 [17:10:17]line Талоны: Топливная Карта [17:10:17]line 68927 [17:10:17]line ФМ: 0000000000871830 [17:10:17]line ФД: 115707 [17:10:17]line ФПД: 268886309996083 [17:10:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171016&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115707&fm=268886309996083&tin=02508201610067®Number=0000000000091831&sum=0 [17:10:17]written 0, free lines is 4095 [17:10:17]OFD Sender: Processing packet 115707 [packets to send 482, broken 481] [17:10:17]ProducePacketName [17:10:17]name=ofd_packets/00115707 [17:10:17]OFD Sender: To server: pG, [17:10:17]CommunicateWithHost lk.salyk.kg:30040 [17:10:17]ConnectInit lk.salyk.kg [17:10:17]Connected sock=10 [17:10: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 38 33 30 0F 01 00 00 1F 92 07 01 14 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 F8 A0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FB C3 01 00 35 04 06 00 F4 8C F8 FE 06 33 2F 42 D7 A3 C5 27 29 93 [17:10:17]Write to MH i2c: 01 00 00 EB 17 02 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 07 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 07 00 EB 17 00 00 00 00 00 6A 0C 7F [17:10:17]RasterBufferAndPrint [17:10:17]line [17:10:17]line [17:10:17]line [17:10:17]line [17:10:17]line [17:10:17]written 0, free lines is 3183 [17:10:17]MH_Cut [17:10:17]Write to MH i2c: D1 01 00 F2 17 01 DB [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: D1 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: D1 01 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: D1 01 00 F2 17 00 DA [17:10:17]Write to MH i2c: 01 00 00 F3 17 0A [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F5 3F 47 00 B7 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FB C3 01 00 F4 03 04 00 3A 46 F1 66 B6 04 01 00 00 1A 97 1E 62 D3 38 6D 08 [17:10:17]CommunicateWithHost err = 0 [17:10:17]CheckOFDResponse [17:10:17]1017 (14) - 77093643461234 [17:10:17]1041 (16) - 0000000000871830 [17:10:17]1040 (4) - 115707 [17:10:17]1012 (4) - 23.09.2024 10:43 [17:10:17]1206 (1) - 0 [17:10:17]OFD Sender: Remove packet 115707 [17:10:17]ProducePacketName [17:10:17]name=ofd_packets/00115707 [17:10:17]NVStorageDeleteData [17:10:18]OFD Sender: No OFD packet to send [17:10:18]*** Cut start [17:10:18]*** Partial cut [17:10:18]*** CUTSNS_PIN = 1 [17:10:18]*** CUTSNS_PIN = 0 [17:10:19]*** Brake cut motor [17:10:19]Read from MH i2c: 01 [17:10:19]MH_I2C_Read... [17:10:19]*** Stop cut motor [17:10:19]*** Cut end [17:10:19]Read from MH i2c: 01 07 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: 01 07 00 F3 17 00 00 00 00 00 FF 0F 1F [17:10:19]process_action close_receipt done [17:10:19]requested_data is exist [17:10:19]produce_requested_data [17:10:19]requested_item fm.sn is exist - process it [17:10:19]wFMCommunicate request_size=4 [17:10:19]MH_SAM_APDU [17:10:19]CAPDU: 80 11 00 00 [17:10:19]Write to MH i2c: E2 08 00 F4 17 80 11 00 00 00 00 00 00 85 [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 [17:10:19]MH_I2C_Read... [17:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:19]Read from MH i2c: E2 17 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 17 00 F4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D3 [17:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:10:19]wFMCommunicate OK [17:10:19]requested_item fd.num is exist - process it [17:10:19]SAM_PROTO_GetFieldsCounters [17:10:19]wFMCommunicate request_size=4 [17:10:19]MH_SAM_APDU [17:10:19]CAPDU: 80 13 00 00 [17:10:19]Write to MH i2c: E2 08 00 F5 17 80 13 00 00 00 00 00 00 88 [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:19]Read from MH i2c: E2 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 62 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 62 00 F5 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FB C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [17:10:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FB C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:19]wFMCommunicate OK [17:10:19]SAM_PROTO_GetFieldsCounters done [17:10:19]requested_item shift.num is exist - process it [17:10:19]requested_item shift.opened is exist - process it [17:10:19]req_shift_opened [17:10:19]FM_GetShiftState [17:10:19]SAM_PROTO_GetShiftState [17:10:19]wFMCommunicate request_size=4 [17:10:19]MH_SAM_APDU [17:10:19]CAPDU: 80 13 01 00 [17:10:19]Write to MH i2c: E2 08 00 F6 17 80 13 01 00 00 00 00 00 8A [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:19]Read from MH i2c: E2 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 0E 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 0E 00 F6 17 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CB [17:10:19]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:10:19]wFMCommunicate OK [17:10:19]SAM_PROTO_GetShiftState done [17:10:19]FM_GetShiftState done [17:10:19]req_shift_opened done [17:10:19]requested_item shift.open_date is exist - process it [17:10:19]req_shift_open_date [17:10:19]req_shift_open_date done [17:10:19]produce_requested_data done [17:10:19]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115707,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:10:19]process_action_free close_receipt [17:10:19]json_value_free [17:10:19]json_value_free done [17:10:19]process_json_proto returns [17:10:19]Send response to host [17:10:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115707,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:10:19]free response buf [17:10:19]execute_script done [17:10:19]execute_script returns [17:10:19]free content buf [17:10:19]Sock 9.Close socket [17:10:19]Sock 9.Thread stoped [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:28]accept exits with 7 [17:10:28]New connection [17:10:28]New thread 3067022692 created [17:10:28]Thread 3066879332 joined [17:10:28]Waiting for new connection... [17:10:28] Sock 7.Parse request [17:10:28]Sock 7.Check first char [17:10:28]Sock 7.First char is OK [17:10:28]request: POST /json_proto HTTP/1.0 [17:10:28]Method: POST [17:10:28]URL: /json_proto [17:10:28]Method is POST - this is cgi request [17:10:28]url: /json_proto [17:10:28]query_string will be loaded in cgi processing [17:10:28]execute_cgi json_proto POST (null) [17:10:28]execute_cgi path=json_proto method=POST [17:10:28]POST find Content-Length [17:10:28]Host: 172.17.41.136:8080 [17:10:28]Content-Length: 808 [17:10:28]Content-Type: application/json [17:10:28] [17:10:28]POST finish read [17:10:28]Found Content-Length = 808 [17:10:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:28]execute_script... [17:10: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)24617863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:28]POST & json_proto [17:10:28]process_json_proto [17:10:28]json parsed OK: [17:10:28]protocol is kg_v1.0 [17:10:28]action value=close_receipt [17:10:28]process_action close_receipt [17:10:28]cmd_close_receipt [17:10:28]MH_GetDate [17:10:28]Write to MH i2c: F0 00 00 F7 17 FD [17:10:28]Write i2c OK [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: F0 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: F0 09 00 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: F0 09 00 F7 17 00 05 A1 F1 66 1B D0 5A 64 AC [17:10:28]GetLastDocTimeStamp 1727111416 [17:10:28]current date 1727111429 [17:10:28]FM_GetShiftState [17:10:28]SAM_PROTO_GetShiftState [17:10:28]wFMCommunicate request_size=4 [17:10:28]MH_SAM_APDU [17:10:28]CAPDU: 80 13 01 00 [17:10:28]Write to MH i2c: E2 08 00 F8 17 80 13 01 00 00 00 00 00 8C [17:10:28]Write i2c OK [17:10:28]MH_I2C_Read... [17:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:28]Read from MH i2c: E2 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 0E 00 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 0E 00 F8 17 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CD [17:10:28]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:10:28]wFMCommunicate OK [17:10:28]SAM_PROTO_GetShiftState done [17:10:28]FM_GetShiftState done [17:10:28]opened in 1727052070 [17:10:28]opened+sec_in_day 1727138470 [17:10:28]quantity*price = 100007 [17:10:28]sum+1 = 100009 [17:10:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.08 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.08 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 191 23.09.2024 17:10 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115708 ФПД: 263835901821149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171029&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115708&fm=263835901821149&tin=02508201610067®Number=0000000000091831&sum=100008 [17:10:29]StoreToDocumentArchive [17:10:29]shift 472 fd 115708 [17:10:29]save to /storage/0472/doc_00115708 [17:10:29]save last doc name /storage/0472/doc_00115708 to /storage/kkm_last_doc_name [17:10:29]save OK [17:10:29]Clear old archive folders... [17:10:29]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:10:29]tlvbuf is 017F5770 [17:10:29]SAM_PROTO_ClearQueue [17:10:29]wFMCommunicate request_size=4 [17:10:29]MH_SAM_APDU [17:10:29]CAPDU: 80 09 00 00 [17:10:29]Write to MH i2c: E2 08 00 05 18 80 09 00 00 00 00 00 00 8F [17:10:29]Write i2c OK [17:10:29]MH_I2C_Read... [17:10:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:29]Read from MH i2c: E2 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 03 00 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 03 00 05 18 00 90 00 91 [17:10:29]RAPDU: 90 00 [17:10:29]wFMCommunicate OK [17:10:29]SAM_PROTO_ClearQueue done [17:10:29]KKMCreateOFDPacket [17:10:29]OFDProtocolAddRootSTLVToBuf [17:10:29]FM_MakeSignedData [17:10:29]FM_MakeSignedData [17:10:29]SAM_PROTO_SignData [17:10:29]wFMCommunicate request_size=4 [17:10:29]MH_SAM_APDU [17:10:29]CAPDU: 80 0D 01 02 [17:10:29]Write to MH i2c: E2 08 00 06 18 80 0D 01 02 00 00 00 00 97 [17:10:29]Write i2c OK [17:10:29]MH_I2C_Read... [17:10:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:29]Read from MH i2c: E2 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 03 00 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 03 00 06 18 00 90 00 92 [17:10:29]RAPDU: 90 00 [17:10:29]wFMCommunicate OK [17:10:29]wFMCommunicate request_size=255 [17:10:29]MH_SAM_APDU [17:10:29]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 05 A1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FC C3 01 00 35 04 06 00 EF F5 [17:10:29]Write to MH i2c: E2 02 01 07 18 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 05 A1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FC C3 01 00 35 04 06 00 EF F5 00 00 A9 [17:10:29]Write i2c OK [17:10:29]MH_I2C_Read... [17:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:29]Read from MH i2c: E2 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 03 00 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 03 00 07 18 00 90 00 93 [17:10:29]RAPDU: 90 00 [17:10:29]wFMCommunicate OK [17:10:29]wFMCommunicate request_size=9 [17:10:29]MH_SAM_APDU [17:10:29]CAPDU: 80 0D 02 02 04 15 35 00 DD [17:10:29]Write to MH i2c: E2 0C 00 08 18 80 0D 02 02 04 00 15 35 00 DD 00 00 C9 [17:10:29]Write i2c OK [17:10:29]MH_I2C_Read... [17:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:29]Read from MH i2c: E2 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 03 00 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 03 00 08 18 00 90 00 94 [17:10:29]RAPDU: 90 00 [17:10:29]wFMCommunicate OK [17:10:29]wFMCommunicate request_size=4 [17:10:29]MH_SAM_APDU [17:10:29]CAPDU: 80 0D 03 02 [17:10:29]Write to MH i2c: E2 08 00 09 18 80 0D 03 02 00 00 00 00 9C [17:10:29]Write i2c OK [17:10:29]MH_I2C_Read... [17:10:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:29]Read from MH i2c: E2 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 0B 00 [17:10:30]MH_I2C_Read... [17:10:30]Read from MH i2c: E2 0B 00 09 18 00 69 A7 DA CD C6 93 3F 30 90 00 1C [17:10:30]RAPDU: 69 A7 DA CD C6 93 3F 30 90 00 [17:10:30]wFMCommunicate OK [17:10:30]SAM_PROTO_SignData done [17:10:30]FM_MakeSignedData done [17:10:30]CreateOFDProtocolMessage [17:10:30]wFMCommunicate request_size=4 [17:10:30]MH_SAM_APDU [17:10:30]CAPDU: 80 11 00 00 [17:10:30]Write to MH i2c: E2 08 00 0A 18 80 11 00 00 00 00 00 00 9C [17:10:30]Write i2c OK [17:10:30]MH_I2C_Read... [17:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:30]Read from MH i2c: E2 [17:10:30]MH_I2C_Read... [17:10:30]Read from MH i2c: E2 17 00 [17:10:30]MH_I2C_Read... [17:10:30]Read from MH i2c: E2 17 00 0A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EA [17:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:10:30]wFMCommunicate OK [17:10:30]CreateOFDProtocolMessage done [17:10:30]OFDSenderStorePacket 115708 [17:10:30]StoreOFDPacket docnum=115708 [17:10:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 01 00 00 AD DE 06 01 59 12 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 05 A1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FC C3 01 00 35 04 06 00 EF F5 15 35 00 DD 69 A7 DA CD C6 93 3F 30 [17:10:30]CheckFolder [17:10:30]dirname=/storage/ofd_packets [17:10:30]CheckFolder done [17:10:30]ProducePacketName [17:10:30]name=ofd_packets/00115708 [17:10:30]NVStorageSaveData ofd_packets/00115708 [17:10:30]File name is /storage/ofd_packets/00115708 [17:10:30]Write 300 bytes [17:10:30]NVStorageSaveData done [17:10:30]OFDSenderStorePacket done [17:10:30]KKMCreateOFDPacket done [17:10:30]NVStorageSaveData kkm_last_timestamp [17:10:30]File name is /storage/kkm_last_timestamp [17:10:30]Write 4 bytes [17:10:30]NVStorageSaveData done [17:10:30]ExternCall_PrintAddStr [17:10:30]wPrintStart [17:10:30]Write to MH i2c: 01 00 00 0B 18 23 [17:10:30]Write i2c OK [17:10:30]MH_I2C_Read... [17:10:30]Read from MH i2c: 01 [17:10:30]MH_I2C_Read... [17:10:30]Read from MH i2c: 01 07 00 [17:10:30]MH_I2C_Read... [17:10:30]Read from MH i2c: 01 07 00 0B 18 00 00 00 00 00 FF 0F 38 [17:10:30]RasterBufferAndPrint [17:10:30]line Счет N : (1)24617863 [17:10:30]line ИНН: 02508201610067 [17:10:30]line Контрольно-Кассовый Чек [17:10:30]line ПРОДАЖА [17:10:30]line ТРК (МРК, ГНК) : 71 [17:10:30]line Товар: 2711190000 [17:10:30]line ГАЗ-К-5 [17:10:30]line 26.740 * 37.40 [17:10:30]line = 1000.08 [17:10:30]line НДС 12% НСП 1% [17:10:30]line > о реализуемом товаре [17:10:30]line ИТОГО: 1000.08 [17:10:30]line НСП 1% : 8.85 [17:10:30]line НДС 12% : 106.20 [17:10:30]line Наличными: 0.00 [17:10:30]line Безнал.: 1000.08 [17:10:30]line Место: АЗС № 90 "Партнер Нефть" [17:10:30]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:10:30]line СНО: Общий режим [17:10:30]line Чек 191 23.09.2024 17:10 [17:10:30]line Смена: 472 ФФД: 1.0 [17:10:30]line ЗНМ: 0300000120 [17:10:30]line РНМ: 0000000000091831 [17:10:30]line Версия ККМ: 001 [17:10:30]line Платежная система: O! деньги [17:10:30]line ФМ: 0000000000871830 [17:10:30]line ФД: 115708 [17:10:30]line ФПД: 263835901821149 [17:10:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171029&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115708&fm=263835901821149&tin=02508201610067®Number=0000000000091831&sum=100008 [17:10:30]written 0, free lines is 4095 [17:10:30]OFD Sender: Processing packet 115708 [packets to send 482, broken 481] [17:10:30]ProducePacketName [17:10:30]name=ofd_packets/00115708 [17:10:30]OFD Sender: To server: pG, [17:10:30]CommunicateWithHost lk.salyk.kg:30040 [17:10:30]ConnectInit lk.salyk.kg [17:10:30]Connected sock=10 [17:10: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 38 33 30 0E 01 00 00 AD DE 06 01 59 12 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 05 A1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FC C3 01 00 35 04 06 00 EF F5 15 35 00 DD 69 A7 DA CD C6 93 3F 30 [17:10:30]Write to MH i2c: 01 00 00 34 18 4C [17:10:30]Write i2c OK [17:10:30]MH_I2C_Read... [17:10:30]Read from MH i2c: 01 [17:10:30]MH_I2C_Read... [17:10:30]Read from MH i2c: 01 07 00 [17:10:30]MH_I2C_Read... [17:10:30]Read from MH i2c: 01 07 00 34 18 00 00 00 00 00 67 0C C6 [17:10:30]RasterBufferAndPrint [17:10:30]line [17:10:30]line [17:10:30]line [17:10:30]line [17:10:30]line [17:10:30]written 0, free lines is 3181 [17:10:30]MH_Cut [17:10:30]Write to MH i2c: D1 01 00 3B 18 01 25 [17:10:30]Write i2c OK [17:10:30]MH_I2C_Read... [17:10:30]Read from MH i2c: D1 [17:10:30]MH_I2C_Read... [17:10:30]Read from MH i2c: D1 01 00 [17:10:30]MH_I2C_Read... [17:10:30]Read from MH i2c: D1 01 00 3B 18 00 24 [17:10:30]Write to MH i2c: 01 00 00 3C 18 54 [17:10:30]Write i2c OK [17:10:30]MH_I2C_Read... [17:10:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 8A E3 47 00 01 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 38 33 30 10 04 04 00 FC C3 01 00 F4 03 04 00 47 46 F1 66 B6 04 01 00 00 27 7A 2E 35 DE 1D 46 5C [17:10:30]CommunicateWithHost err = 0 [17:10:30]CheckOFDResponse [17:10:30]1017 (14) - 77093643461234 [17:10:30]1041 (16) - 0000000000871830 [17:10:30]1040 (4) - 115708 [17:10:30]1012 (4) - 23.09.2024 10:43 [17:10:30]1206 (1) - 0 [17:10:30]OFD Sender: Remove packet 115708 [17:10:30]ProducePacketName [17:10:30]name=ofd_packets/00115708 [17:10:30]NVStorageDeleteData [17:10:31]OFD Sender: No OFD packet to send [17:10:31]*** Cut start [17:10:31]*** Partial cut [17:10:31]*** CUTSNS_PIN = 1 [17:10:31]*** CUTSNS_PIN = 0 [17:10:32]*** Brake cut motor [17:10:32]Read from MH i2c: 01 [17:10:32]MH_I2C_Read... [17:10:32]*** Stop cut motor [17:10:32]*** Cut end [17:10:32]Read from MH i2c: 01 07 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: 01 07 00 3C 18 00 00 00 00 00 FF 0F 69 [17:10:32]process_action close_receipt done [17:10:32]requested_data is exist [17:10:32]produce_requested_data [17:10:32]requested_item fm.sn is exist - process it [17:10:32]wFMCommunicate request_size=4 [17:10:32]MH_SAM_APDU [17:10:32]CAPDU: 80 11 00 00 [17:10:32]Write to MH i2c: E2 08 00 3D 18 80 11 00 00 00 00 00 00 CF [17:10:32]Write i2c OK [17:10:32]MH_I2C_Read... [17:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:32]Read from MH i2c: E2 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 17 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 17 00 3D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1D [17:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:10:32]wFMCommunicate OK [17:10:32]requested_item fd.num is exist - process it [17:10:32]SAM_PROTO_GetFieldsCounters [17:10:32]wFMCommunicate request_size=4 [17:10:32]MH_SAM_APDU [17:10:32]CAPDU: 80 13 00 00 [17:10:32]Write to MH i2c: E2 08 00 3E 18 80 13 00 00 00 00 00 00 D2 [17:10:32]Write i2c OK [17:10:32]MH_I2C_Read... [17:10:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:32]Read from MH i2c: E2 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 62 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 62 00 3E 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FC C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [17:10: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FC C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:32]wFMCommunicate OK [17:10:32]SAM_PROTO_GetFieldsCounters done [17:10:32]requested_item shift.num is exist - process it [17:10:32]requested_item shift.opened is exist - process it [17:10:32]req_shift_opened [17:10:32]FM_GetShiftState [17:10:32]SAM_PROTO_GetShiftState [17:10:32]wFMCommunicate request_size=4 [17:10:32]MH_SAM_APDU [17:10:32]CAPDU: 80 13 01 00 [17:10:32]Write to MH i2c: E2 08 00 3F 18 80 13 01 00 00 00 00 00 D4 [17:10:32]Write i2c OK [17:10:32]MH_I2C_Read... [17:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:32]Read from MH i2c: E2 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 0E 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 0E 00 3F 18 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 15 [17:10:32]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:10:32]wFMCommunicate OK [17:10:32]SAM_PROTO_GetShiftState done [17:10:32]FM_GetShiftState done [17:10:32]req_shift_opened done [17:10:32]requested_item shift.open_date is exist - process it [17:10:32]req_shift_open_date [17:10:32]req_shift_open_date done [17:10:32]produce_requested_data done [17:10:32]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115708,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:10:32]process_action_free close_receipt [17:10:32]json_value_free [17:10:32]json_value_free done [17:10:32]process_json_proto returns [17:10:32]Send response to host [17:10:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115708,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:10:32]free response buf [17:10:32]execute_script done [17:10:32]execute_script returns [17:10:32]free content buf [17:10:32]Sock 7.Close socket [17:10:32]Sock 7.Thread stoped [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:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:14]accept exits with 9 [17:12:14]New connection [17:12:14]New thread 3066879332 created [17:12:14]Thread 3067022692 joined [17:12:14]Waiting for new connection... [17:12:14] Sock 9.Parse request [17:12:14]Sock 9.Check first char [17:12:14]Sock 9.First char is OK [17:12:14]request: POST /json_proto HTTP/1.0 [17:12:14]Method: POST [17:12:14]URL: /json_proto [17:12:14]Method is POST - this is cgi request [17:12:14]url: /json_proto [17:12:14]query_string will be loaded in cgi processing [17:12:14]execute_cgi json_proto POST (null) [17:12:14]execute_cgi path=json_proto method=POST [17:12:14]POST find Content-Length [17:12:14]Host: 172.17.41.136:8080 [17:12:14]Content-Length: 783 [17:12:14]Content-Type: application/json [17:12:14] [17:12:14]POST finish read [17:12:14]Found Content-Length = 783 [17:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:14]execute_script... [17:12: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)24617866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:14]POST & json_proto [17:12:14]process_json_proto [17:12:14]json parsed OK: [17:12:14]protocol is kg_v1.0 [17:12:14]action value=close_receipt [17:12:14]process_action close_receipt [17:12:14]cmd_close_receipt [17:12:14]MH_GetDate [17:12:14]Write to MH i2c: F0 00 00 40 18 47 [17:12:14]Write i2c OK [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: F0 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: F0 09 00 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: F0 09 00 40 18 00 6F A1 F1 66 1B D0 5A 64 60 [17:12:14]GetLastDocTimeStamp 1727111429 [17:12:14]current date 1727111535 [17:12:14]FM_GetShiftState [17:12:14]SAM_PROTO_GetShiftState [17:12:14]wFMCommunicate request_size=4 [17:12:14]MH_SAM_APDU [17:12:14]CAPDU: 80 13 01 00 [17:12:14]Write to MH i2c: E2 08 00 41 18 80 13 01 00 00 00 00 00 D6 [17:12:14]Write i2c OK [17:12:14]MH_I2C_Read... [17:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:14]Read from MH i2c: E2 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 0E 00 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 0E 00 41 18 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 17 [17:12:14]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:12:14]wFMCommunicate OK [17:12:14]SAM_PROTO_GetShiftState done [17:12:14]FM_GetShiftState done [17:12:14]opened in 1727052070 [17:12:14]opened+sec_in_day 1727138470 [17:12:14]quantity*price = 50034 [17:12:14]sum+1 = 50036 [17:12:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.35 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.35 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 192 23.09.2024 17:12 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115709 ФПД: 84221338949204 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171215&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115709&fm=84221338949204&tin=02508201610067®Number=0000000000091831&sum=50035 [17:12:16]StoreToDocumentArchive [17:12:16]shift 472 fd 115709 [17:12:16]save to /storage/0472/doc_00115709 [17:12:16]save last doc name /storage/0472/doc_00115709 to /storage/kkm_last_doc_name [17:12:16]save OK [17:12:16]Clear old archive folders... [17:12:16]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:12:16]tlvbuf is 017C5C10 [17:12:16]SAM_PROTO_ClearQueue [17:12:16]wFMCommunicate request_size=4 [17:12:16]MH_SAM_APDU [17:12:16]CAPDU: 80 09 00 00 [17:12:16]Write to MH i2c: E2 08 00 4E 18 80 09 00 00 00 00 00 00 D8 [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 4E 18 00 90 00 DA [17:12:16]RAPDU: 90 00 [17:12:16]wFMCommunicate OK [17:12:16]SAM_PROTO_ClearQueue done [17:12:16]KKMCreateOFDPacket [17:12:16]OFDProtocolAddRootSTLVToBuf [17:12:16]FM_MakeSignedData [17:12:16]FM_MakeSignedData [17:12:16]SAM_PROTO_SignData [17:12:16]wFMCommunicate request_size=4 [17:12:16]MH_SAM_APDU [17:12:16]CAPDU: 80 0D 01 02 [17:12:16]Write to MH i2c: E2 08 00 4F 18 80 0D 01 02 00 00 00 00 E0 [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 4F 18 00 90 00 DB [17:12:16]RAPDU: 90 00 [17:12:16]wFMCommunicate OK [17:12:16]wFMCommunicate request_size=253 [17:12:16]MH_SAM_APDU [17:12:16]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 6F A1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FD C3 01 00 35 04 06 00 4C 99 4E FD 96 54 [17:12:16]Write to MH i2c: E2 00 01 50 18 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 6F A1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FD C3 01 00 35 04 06 00 4C 99 4E FD 96 54 00 00 1B [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]OFD Sender: No OFD packet to send [17:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 50 18 00 90 00 DC [17:12:16]RAPDU: 90 00 [17:12:16]wFMCommunicate OK [17:12:16]wFMCommunicate request_size=4 [17:12:16]MH_SAM_APDU [17:12:16]CAPDU: 80 0D 03 02 [17:12:16]Write to MH i2c: E2 08 00 51 18 80 0D 03 02 00 00 00 00 E4 [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 0B 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 0B 00 51 18 00 B7 01 F7 F2 2F 44 32 3E 90 00 69 [17:12:16]RAPDU: B7 01 F7 F2 2F 44 32 3E 90 00 [17:12:16]wFMCommunicate OK [17:12:16]SAM_PROTO_SignData done [17:12:16]FM_MakeSignedData done [17:12:16]CreateOFDProtocolMessage [17:12:16]wFMCommunicate request_size=4 [17:12:16]MH_SAM_APDU [17:12:16]CAPDU: 80 11 00 00 [17:12:16]Write to MH i2c: E2 08 00 52 18 80 11 00 00 00 00 00 00 E4 [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 17 00 [17:12:16]MH_I2C_Read... [17:12:16]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 38 33 30 90 00 32 [17:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:12:16]wFMCommunicate OK [17:12:16]CreateOFDProtocolMessage done [17:12:16]OFDSenderStorePacket 115709 [17:12:16]StoreOFDPacket docnum=115709 [17:12:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 9B 2B 00 01 8E FB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 6F A1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FD C3 01 00 35 04 06 00 4C 99 4E FD 96 54 B7 01 F7 F2 2F 44 32 3E [17:12:16]CheckFolder [17:12:16]dirname=/storage/ofd_packets [17:12:16]CheckFolder done [17:12:16]ProducePacketName [17:12:16]name=ofd_packets/00115709 [17:12:16]NVStorageSaveData ofd_packets/00115709 [17:12:16]File name is /storage/ofd_packets/00115709 [17:12:16]Write 294 bytes [17:12:16]NVStorageSaveData done [17:12:16]OFDSenderStorePacket done [17:12:16]KKMCreateOFDPacket done [17:12:16]NVStorageSaveData kkm_last_timestamp [17:12:16]File name is /storage/kkm_last_timestamp [17:12:16]Write 4 bytes [17:12:16]NVStorageSaveData done [17:12:16]ExternCall_PrintAddStr [17:12:16]wPrintStart [17:12:16]Write to MH i2c: 01 00 00 53 18 6B [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 07 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 07 00 53 18 00 00 00 00 00 FF 0F 80 [17:12:16]RasterBufferAndPrint [17:12:16]line Счет N : (1)24617866 [17:12:16]line ИНН: 02508201610067 [17:12:16]line Контрольно-Кассовый Чек [17:12:16]line ПРОДАЖА [17:12:16]line ТРК (МРК, ГНК) : 64 [17:12:16]line Товар: 2710124130 [17:12:16]line SU-92 [17:12:16]line 7.220 * 69.30 [17:12:16]line = 500.35 [17:12:16]line НДС 12% НСП 1% [17:12:16]line > о реализуемом товаре [17:12:16]line ИТОГО: 500.35 [17:12:16]line НСП 1% : 4.43 [17:12:16]line НДС 12% : 53.13 [17:12:16]line Наличными: 0.00 [17:12:16]line Безнал.: 500.35 [17:12:16]line Место: АЗС № 90 "Партнер Нефть" [17:12:16]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:12:16]line СНО: Общий режим [17:12:16]line Чек 192 23.09.2024 17:12 [17:12:16]line Смена: 472 ФФД: 1.0 [17:12:16]line ЗНМ: 0300000120 [17:12:16]line РНМ: 0000000000091831 [17:12:16]line Версия ККМ: 001 [17:12:16]line Платежная система: O! деньги [17:12:16]line ФМ: 0000000000871830 [17:12:16]line ФД: 115709 [17:12:16]line ФПД: 84221338949204 [17:12:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171215&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115709&fm=84221338949204&tin=02508201610067®Number=0000000000091831&sum=50035 [17:12:16]written 0, free lines is 4095 [17:12:16]OFD Sender: Processing packet 115709 [packets to send 482, broken 481] [17:12:16]ProducePacketName [17:12:16]name=ofd_packets/00115709 [17:12:16]OFD Sender: To server: pG, [17:12:16]CommunicateWithHost lk.salyk.kg:30040 [17:12:16]ConnectInit lk.salyk.kg [17:12:16]Connected sock=10 [17:12: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 38 33 30 08 01 00 00 9B 2B 00 01 8E FB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 6F A1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FD C3 01 00 35 04 06 00 4C 99 4E FD 96 54 B7 01 F7 F2 2F 44 32 3E [17:12:16]Write to MH i2c: 01 00 00 7C 18 94 [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 07 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 07 00 7C 18 00 00 00 00 00 71 0C 18 [17:12:16]RasterBufferAndPrint [17:12:16]line [17:12:16]line [17:12:16]line [17:12:16]line [17:12:16]line [17:12:16]written 0, free lines is 3189 [17:12:16]MH_Cut [17:12:16]Write to MH i2c: D1 01 00 83 18 01 6D [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: D1 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: D1 01 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: D1 01 00 83 18 00 6C [17:12:16]Write to MH i2c: 01 00 00 84 18 9C [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17: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 38 33 30 4F 00 00 00 B0 64 47 00 3E AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FD C3 01 00 F4 03 04 00 B1 46 F1 66 B6 04 01 00 00 99 E9 22 BF 33 5A A8 0C [17:12:17]CommunicateWithHost err = 0 [17:12:17]CheckOFDResponse [17:12:17]1017 (14) - 77093643461234 [17:12:17]1041 (16) - 0000000000871830 [17:12:17]1040 (4) - 115709 [17:12:17]1012 (4) - 23.09.2024 10:45 [17:12:17]1206 (1) - 0 [17:12:17]OFD Sender: Remove packet 115709 [17:12:17]ProducePacketName [17:12:17]name=ofd_packets/00115709 [17:12:17]NVStorageDeleteData [17:12:17]OFD Sender: No OFD packet to send [17:12:18]*** Cut start [17:12:18]*** Partial cut [17:12:18]*** CUTSNS_PIN = 1 [17:12:18]*** CUTSNS_PIN = 0 [17:12:18]*** Brake cut motor [17:12:18]Read from MH i2c: 01 [17:12:18]MH_I2C_Read... [17:12:18]*** Stop cut motor [17:12:18]*** Cut end [17:12:18]Read from MH i2c: 01 07 00 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: 01 07 00 84 18 00 00 00 00 00 FF 0F B1 [17:12:18]process_action close_receipt done [17:12:18]requested_data is exist [17:12:18]produce_requested_data [17:12:18]requested_item fm.sn is exist - process it [17:12:18]wFMCommunicate request_size=4 [17:12:18]MH_SAM_APDU [17:12:18]CAPDU: 80 11 00 00 [17:12:18]Write to MH i2c: E2 08 00 85 18 80 11 00 00 00 00 00 00 17 [17:12:18]Write i2c OK [17:12:18]MH_I2C_Read... [17:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:18]Read from MH i2c: E2 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 17 00 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 17 00 85 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 65 [17:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:12:18]wFMCommunicate OK [17:12:18]requested_item fd.num is exist - process it [17:12:18]SAM_PROTO_GetFieldsCounters [17:12:18]wFMCommunicate request_size=4 [17:12:18]MH_SAM_APDU [17:12:18]CAPDU: 80 13 00 00 [17:12:18]Write to MH i2c: E2 08 00 86 18 80 13 00 00 00 00 00 00 1A [17:12:18]Write i2c OK [17:12:18]MH_I2C_Read... [17:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:19]Read from MH i2c: E2 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 62 00 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 62 00 86 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FD C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [17: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FD C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:19]wFMCommunicate OK [17:12:19]SAM_PROTO_GetFieldsCounters done [17:12:19]requested_item shift.num is exist - process it [17:12:19]requested_item shift.opened is exist - process it [17:12:19]req_shift_opened [17:12:19]FM_GetShiftState [17:12:19]SAM_PROTO_GetShiftState [17:12:19]wFMCommunicate request_size=4 [17:12:19]MH_SAM_APDU [17:12:19]CAPDU: 80 13 01 00 [17:12:19]Write to MH i2c: E2 08 00 87 18 80 13 01 00 00 00 00 00 1C [17:12:19]Write i2c OK [17:12:19]MH_I2C_Read... [17:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:19]Read from MH i2c: E2 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 0E 00 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 0E 00 87 18 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5D [17:12:19]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:12:19]wFMCommunicate OK [17:12:19]SAM_PROTO_GetShiftState done [17:12:19]FM_GetShiftState done [17:12:19]req_shift_opened done [17:12:19]requested_item shift.open_date is exist - process it [17:12:19]req_shift_open_date [17:12:19]req_shift_open_date done [17:12:19]produce_requested_data done [17:12:19]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115709,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:12:19]process_action_free close_receipt [17:12:19]json_value_free [17:12:19]json_value_free done [17:12:19]process_json_proto returns [17:12:19]Send response to host [17:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115709,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:12:19]free response buf [17:12:19]execute_script done [17:12:19]execute_script returns [17:12:19]free content buf [17:12:19]Sock 9.Close socket [17:12:19]Sock 9.Thread stoped [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]accept exits with 7 [17:12:42]New connection [17:12:42]New thread 3067022692 created [17:12:42]Thread 3066879332 joined [17:12:42]Waiting for new connection... [17:12:42] Sock 7.Parse request [17:12:42]Sock 7.Check first char [17:12:42]Sock 7.First char is OK [17:12:42]request: POST /json_proto HTTP/1.0 [17:12:42]Method: POST [17:12:42]URL: /json_proto [17:12:42]Method is POST - this is cgi request [17:12:42]url: /json_proto [17:12:42]query_string will be loaded in cgi processing [17:12:42]execute_cgi json_proto POST (null) [17:12:42]execute_cgi path=json_proto method=POST [17:12:42]POST find Content-Length [17:12:42]Host: 172.17.41.136:8080 [17:12:42]Content-Length: 802 [17:12:42]Content-Type: application/json [17:12:42] [17:12:42]POST finish read [17:12:42]Found Content-Length = 802 [17:12:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.390, "sum" : 1020.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1020.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:42]execute_script... [17:12: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)24617865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.390, "sum" : 1020.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1020.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:42]POST & json_proto [17:12:42]process_json_proto [17:12:42]json parsed OK: [17:12:42]protocol is kg_v1.0 [17:12:42]action value=close_receipt [17:12:42]process_action close_receipt [17:12:42]cmd_close_receipt [17:12:42]MH_GetDate [17:12:42]Write to MH i2c: F0 00 00 88 18 8F [17:12:42]Write i2c OK [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: F0 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: F0 09 00 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: F0 09 00 88 18 00 8B A1 F1 66 1B D0 5A 64 C4 [17:12:42]GetLastDocTimeStamp 1727111535 [17:12:42]current date 1727111563 [17:12:42]FM_GetShiftState [17:12:42]SAM_PROTO_GetShiftState [17:12:42]wFMCommunicate request_size=4 [17:12:42]MH_SAM_APDU [17:12:42]CAPDU: 80 13 01 00 [17:12:42]Write to MH i2c: E2 08 00 89 18 80 13 01 00 00 00 00 00 1E [17:12:42]Write i2c OK [17:12:42]MH_I2C_Read... [17:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:42]Read from MH i2c: E2 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 0E 00 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 0E 00 89 18 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5F [17:12:42]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:12:42]wFMCommunicate OK [17:12:42]SAM_PROTO_GetShiftState done [17:12:42]FM_GetShiftState done [17:12:42]opened in 1727052070 [17:12:42]opened+sec_in_day 1727138470 [17:12:42]quantity*price = 102031 [17:12:42]sum+1 = 102033 [17:12:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1020.32 НСП 1% : 9.03 НДС 12% : 108.35 Наличными: 0.00 Безнал.: 1020.32 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 193 23.09.2024 17:12 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115710 ФПД: 11636315151696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171243&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115710&fm=11636315151696&tin=02508201610067®Number=0000000000091831&sum=102032 [17:12:43]StoreToDocumentArchive [17:12:43]shift 472 fd 115710 [17:12:43]save to /storage/0472/doc_00115710 [17:12:43]save last doc name /storage/0472/doc_00115710 to /storage/kkm_last_doc_name [17:12:43]save OK [17:12:43]Clear old archive folders... [17:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:12:43]tlvbuf is 017D4BB0 [17:12:43]SAM_PROTO_ClearQueue [17:12:43]wFMCommunicate request_size=4 [17:12:43]MH_SAM_APDU [17:12:43]CAPDU: 80 09 00 00 [17:12:43]Write to MH i2c: E2 08 00 96 18 80 09 00 00 00 00 00 00 20 [17:12:43]Write i2c OK [17:12:43]MH_I2C_Read... [17:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:43]Read from MH i2c: E2 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: E2 03 00 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: E2 03 00 96 18 00 90 00 22 [17:12:43]RAPDU: 90 00 [17:12:43]wFMCommunicate OK [17:12:43]SAM_PROTO_ClearQueue done [17:12:43]KKMCreateOFDPacket [17:12:43]OFDProtocolAddRootSTLVToBuf [17:12:43]FM_MakeSignedData [17:12:43]FM_MakeSignedData [17:12:43]SAM_PROTO_SignData [17:12:43]wFMCommunicate request_size=4 [17:12:43]MH_SAM_APDU [17:12:43]CAPDU: 80 0D 01 02 [17:12:43]Write to MH i2c: E2 08 00 97 18 80 0D 01 02 00 00 00 00 28 [17:12:43]Write i2c OK [17:12:43]MH_I2C_Read... [17:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:43]Read from MH i2c: E2 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: E2 03 00 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: E2 03 00 97 18 00 90 00 23 [17:12:43]RAPDU: 90 00 [17:12:43]wFMCommunicate OK [17:12:43]wFMCommunicate request_size=255 [17:12:43]MH_SAM_APDU [17:12:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 2A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 8E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 8B A1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FE C3 01 00 35 04 06 00 0A 95 4A 6E [17:12:43]Write to MH i2c: E2 02 01 98 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 2A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 8E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 8B A1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FE C3 01 00 35 04 06 00 0A 95 4A 6E 00 00 7A [17:12:43]Write i2c OK [17:12:43]MH_I2C_Read... [17:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:43]Read from MH i2c: E2 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: E2 03 00 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: E2 03 00 98 18 00 90 00 24 [17:12:43]RAPDU: 90 00 [17:12:43]wFMCommunicate OK [17:12:43]wFMCommunicate request_size=7 [17:12:43]MH_SAM_APDU [17:12:43]CAPDU: 80 0D 02 02 02 5D 50 [17:12:43]Write to MH i2c: E2 0A 00 99 18 80 0D 02 02 02 00 5D 50 00 00 DC [17:12:43]Write i2c OK [17:12:43]MH_I2C_Read... [17:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:44]Read from MH i2c: E2 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 03 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 03 00 99 18 00 90 00 25 [17:12:44]RAPDU: 90 00 [17:12:44]wFMCommunicate OK [17:12:44]wFMCommunicate request_size=4 [17:12:44]MH_SAM_APDU [17:12:44]CAPDU: 80 0D 03 02 [17:12:44]Write to MH i2c: E2 08 00 9A 18 80 0D 03 02 00 00 00 00 2D [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:44]Read from MH i2c: E2 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 0B 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 0B 00 9A 18 00 F7 4E 58 10 2D AC 31 2A 90 00 0F [17:12:44]RAPDU: F7 4E 58 10 2D AC 31 2A 90 00 [17:12:44]wFMCommunicate OK [17:12:44]SAM_PROTO_SignData done [17:12:44]FM_MakeSignedData done [17:12:44]CreateOFDProtocolMessage [17:12:44]wFMCommunicate request_size=4 [17:12:44]MH_SAM_APDU [17:12:44]CAPDU: 80 11 00 00 [17:12:44]Write to MH i2c: E2 08 00 9B 18 80 11 00 00 00 00 00 00 2D [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:44]Read from MH i2c: E2 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 17 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 17 00 9B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7B [17:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:12:44]wFMCommunicate OK [17:12:44]CreateOFDProtocolMessage done [17:12:44]OFDSenderStorePacket 115710 [17:12:44]StoreOFDPacket docnum=115710 [17:12:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 8A DF 04 01 C7 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 2A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 8E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 8B A1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FE C3 01 00 35 04 06 00 0A 95 4A 6E 5D 50 F7 4E 58 10 2D AC 31 2A [17:12:44]CheckFolder [17:12:44]dirname=/storage/ofd_packets [17:12:44]CheckFolder done [17:12:44]ProducePacketName [17:12:44]name=ofd_packets/00115710 [17:12:44]NVStorageSaveData ofd_packets/00115710 [17:12:44]File name is /storage/ofd_packets/00115710 [17:12:44]Write 298 bytes [17:12:44]NVStorageSaveData done [17:12:44]OFDSenderStorePacket done [17:12:44]KKMCreateOFDPacket done [17:12:44]NVStorageSaveData kkm_last_timestamp [17:12:44]File name is /storage/kkm_last_timestamp [17:12:44]Write 4 bytes [17:12:44]NVStorageSaveData done [17:12:44]ExternCall_PrintAddStr [17:12:44]wPrintStart [17:12:44]Write to MH i2c: 01 00 00 9C 18 B4 [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: 01 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: 01 07 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: 01 07 00 9C 18 00 00 00 00 00 FF 0F C9 [17:12:44]RasterBufferAndPrint [17:12:44]line Счет N : (1)24617865 [17:12:44]line ИНН: 02508201610067 [17:12:44]line Контрольно-Кассовый Чек [17:12:44]line ПРОДАЖА [17:12:44]line ТРК (МРК, ГНК) : 35 [17:12:44]line Товар: 2710194210 [17:12:44]line ДТ-К-5 [17:12:44]line 13.390 * 76.20 [17:12:44]line = 1020.32 [17:12:44]line НДС 12% НСП 1% [17:12:44]line > о реализуемом товаре [17:12:44]line ИТОГО: 1020.32 [17:12:44]line НСП 1% : 9.03 [17:12:44]line НДС 12% : 108.35 [17:12:44]line Наличными: 0.00 [17:12:44]line Безнал.: 1020.32 [17:12:44]line Место: АЗС № 90 "Партнер Нефть" [17:12:44]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:12:44]line СНО: Общий режим [17:12:44]line Чек 193 23.09.2024 17:12 [17:12:44]line Смена: 472 ФФД: 1.0 [17:12:44]line ЗНМ: 0300000120 [17:12:44]line РНМ: 0000000000091831 [17:12:44]line Версия ККМ: 001 [17:12:44]line Платежная система: O! деньги [17:12:44]line ФМ: 0000000000871830 [17:12:44]line ФД: 115710 [17:12:44]line ФПД: 11636315151696 [17:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171243&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115710&fm=11636315151696&tin=02508201610067®Number=0000000000091831&sum=102032 [17:12:44]OFD Sender: Processing packet 115710 [packets to send 482, broken 481] [17:12:44]ProducePacketName [17:12:44]name=ofd_packets/00115710 [17:12:44]OFD Sender: To server: pG, [17:12:44]CommunicateWithHost lk.salyk.kg:30040 [17:12:44]ConnectInit lk.salyk.kg [17:12:44]written 0, free lines is 4095 [17:12:44]Connected sock=10 [17:12: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 38 33 30 0C 01 00 00 8A DF 04 01 C7 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 2A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 8E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 8B A1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FE C3 01 00 35 04 06 00 0A 95 4A 6E 5D 50 F7 4E 58 10 2D AC 31 2A [17:12:44]Write to MH i2c: 01 00 00 C5 18 DD [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: 01 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: 01 07 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: 01 07 00 C5 18 00 00 00 00 00 66 0C 56 [17:12:44]RasterBufferAndPrint [17:12:44]line [17:12:44]line [17:12:44]line [17:12:44]line [17:12:44]line [17:12:44]written 0, free lines is 3180 [17:12:44]MH_Cut [17:12:44]Write to MH i2c: D1 01 00 CC 18 01 B6 [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: D1 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: D1 01 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: D1 01 00 CC 18 00 B5 [17:12:44]Write to MH i2c: 01 00 00 CD 18 E5 [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 51 FB 47 00 22 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 38 33 30 10 04 04 00 FE C3 01 00 F4 03 04 00 CD 46 F1 66 B6 04 01 00 00 4E 4A 36 F6 40 F5 70 19 [17:12:44]CommunicateWithHost err = 0 [17:12:44]CheckOFDResponse [17:12:44]1017 (14) - 77093643461234 [17:12:44]1041 (16) - 0000000000871830 [17:12:44]1040 (4) - 115710 [17:12:44]1012 (4) - 23.09.2024 10:45 [17:12:44]1206 (1) - 0 [17:12:44]OFD Sender: Remove packet 115710 [17:12:44]ProducePacketName [17:12:44]name=ofd_packets/00115710 [17:12:44]NVStorageDeleteData [17:12:45]OFD Sender: No OFD packet to send [17:12:46]*** Cut start [17:12:46]*** Partial cut [17:12:46]*** CUTSNS_PIN = 1 [17:12:46]*** CUTSNS_PIN = 0 [17:12:46]*** Brake cut motor [17:12:46]Read from MH i2c: 01 [17:12:46]MH_I2C_Read... [17:12:46]*** Stop cut motor [17:12:46]*** Cut end [17:12:46]Read from MH i2c: 01 07 00 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: 01 07 00 CD 18 00 00 00 00 00 FF 0F FA [17:12:46]process_action close_receipt done [17:12:46]requested_data is exist [17:12:46]produce_requested_data [17:12:46]requested_item fm.sn is exist - process it [17:12:46]wFMCommunicate request_size=4 [17:12:46]MH_SAM_APDU [17:12:46]CAPDU: 80 11 00 00 [17:12:46]Write to MH i2c: E2 08 00 CE 18 80 11 00 00 00 00 00 00 60 [17:12:46]Write i2c OK [17:12:46]MH_I2C_Read... [17:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:46]Read from MH i2c: E2 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 17 00 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 17 00 CE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AE [17:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:12:46]wFMCommunicate OK [17:12:46]requested_item fd.num is exist - process it [17:12:46]SAM_PROTO_GetFieldsCounters [17:12:46]wFMCommunicate request_size=4 [17:12:46]MH_SAM_APDU [17:12:46]CAPDU: 80 13 00 00 [17:12:46]Write to MH i2c: E2 08 00 CF 18 80 13 00 00 00 00 00 00 63 [17:12:46]Write i2c OK [17:12:46]MH_I2C_Read... [17:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:47]Read from MH i2c: E2 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 62 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 62 00 CF 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FE C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [17:12: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FE C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:47]wFMCommunicate OK [17:12:47]SAM_PROTO_GetFieldsCounters done [17:12:47]requested_item shift.num is exist - process it [17:12:47]requested_item shift.opened is exist - process it [17:12:47]req_shift_opened [17:12:47]FM_GetShiftState [17:12:47]SAM_PROTO_GetShiftState [17:12:47]wFMCommunicate request_size=4 [17:12:47]MH_SAM_APDU [17:12:47]CAPDU: 80 13 01 00 [17:12:47]Write to MH i2c: E2 08 00 D0 18 80 13 01 00 00 00 00 00 65 [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:47]Read from MH i2c: E2 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 0E 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 0E 00 D0 18 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A6 [17:12:47]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:12:47]wFMCommunicate OK [17:12:47]SAM_PROTO_GetShiftState done [17:12:47]FM_GetShiftState done [17:12:47]req_shift_opened done [17:12:47]requested_item shift.open_date is exist - process it [17:12:47]req_shift_open_date [17:12:47]req_shift_open_date done [17:12:47]produce_requested_data done [17:12:47]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115710,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:12:47]process_action_free close_receipt [17:12:47]json_value_free [17:12:47]json_value_free done [17:12:47]process_json_proto returns [17:12:47]Send response to host [17:12:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115710,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:12:47]free response buf [17:12:47]execute_script done [17:12:47]execute_script returns [17:12:47]free content buf [17:12:47]Sock 7.Close socket [17:12:47]Sock 7.Thread stoped [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:44]accept exits with 9 [17:13:44]New connection [17:13:44]New thread 3066879332 created [17:13:44]Thread 3067022692 joined [17:13:44]Waiting for new connection... [17:13:44] Sock 9.Parse request [17:13:44]Sock 9.Check first char [17:13:44]Sock 9.First char is OK [17:13:44]request: POST /json_proto HTTP/1.0 [17:13:44]Method: POST [17:13:44]URL: /json_proto [17:13:44]Method is POST - this is cgi request [17:13:44]url: /json_proto [17:13:44]query_string will be loaded in cgi processing [17:13:44]execute_cgi json_proto POST (null) [17:13:44]execute_cgi path=json_proto method=POST [17:13:44]POST find Content-Length [17:13:44]Host: 172.17.41.136:8080 [17:13:44]Content-Length: 728 [17:13:44]Content-Type: application/json [17:13:44] [17:13:44]POST finish read [17:13:44]Found Content-Length = 728 [17:13:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344054", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:44]execute_script... [17:13:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344054", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:44]POST & json_proto [17:13:44]process_json_proto [17:13:44]json parsed OK: [17:13:44]protocol is kg_v1.0 [17:13:44]action value=close_receipt [17:13:44]process_action close_receipt [17:13:44]cmd_close_receipt [17:13:44]MH_GetDate [17:13:44]Write to MH i2c: F0 00 00 D1 18 D8 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: F0 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: F0 09 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: F0 09 00 D1 18 00 C9 A1 F1 66 1B D0 5A 64 4B [17:13:44]GetLastDocTimeStamp 1727111563 [17:13:44]current date 1727111625 [17:13:44]FM_GetShiftState [17:13:44]SAM_PROTO_GetShiftState [17:13:44]wFMCommunicate request_size=4 [17:13:44]MH_SAM_APDU [17:13:44]CAPDU: 80 13 01 00 [17:13:44]Write to MH i2c: E2 08 00 D2 18 80 13 01 00 00 00 00 00 67 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 0E 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 0E 00 D2 18 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A8 [17:13:44]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:13:44]wFMCommunicate OK [17:13:44]SAM_PROTO_GetShiftState done [17:13:44]FM_GetShiftState done [17:13:44]opened in 1727052070 [17:13:44]opened+sec_in_day 1727138470 [17:13:44]quantity*price = 21000 [17:13:44]sum+1 = 21001 [17:13:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 194 23.09.2024 17:13 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115711 ФПД: 4972261656696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171345&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115711&fm=4972261656696&tin=02508201610067®Number=0000000000091831&sum=21000 0 [17:13:45]StoreToDocumentArchive [17:13:45]shift 472 fd 115711 [17:13:45]save to /storage/0472/doc_00115711 [17:13:45]save last doc name /storage/0472/doc_00115711 to /storage/kkm_last_doc_name [17:13:45]save OK [17:13:45]Clear old archive folders... [17:13:45]ProcessDocumentItem done err = 0, tmpTLVsize=308 [17:13:45]tlvbuf is 01835E10 [17:13:45]SAM_PROTO_ClearQueue [17:13:45]wFMCommunicate request_size=4 [17:13:45]MH_SAM_APDU [17:13:45]CAPDU: 80 09 00 00 [17:13:45]Write to MH i2c: E2 08 00 DF 18 80 09 00 00 00 00 00 00 69 [17:13:45]Write i2c OK [17:13:45]MH_I2C_Read... [17:13:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:45]OFD Sender: No OFD packet to send [17:13:45]Read from MH i2c: E2 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 03 00 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 03 00 DF 18 00 90 00 6B [17:13:45]RAPDU: 90 00 [17:13:45]wFMCommunicate OK [17:13:45]SAM_PROTO_ClearQueue done [17:13:45]KKMCreateOFDPacket [17:13:45]OFDProtocolAddRootSTLVToBuf [17:13:45]FM_MakeSignedData [17:13:45]FM_MakeSignedData [17:13:45]SAM_PROTO_SignData [17:13:45]wFMCommunicate request_size=4 [17:13:45]MH_SAM_APDU [17:13:45]CAPDU: 80 0D 01 02 [17:13:45]Write to MH i2c: E2 08 00 E0 18 80 0D 01 02 00 00 00 00 71 [17:13:45]Write i2c OK [17:13:45]MH_I2C_Read... [17:13:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:45]Read from MH i2c: E2 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 03 00 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 03 00 E0 18 00 90 00 6C [17:13:45]RAPDU: 90 00 [17:13:45]wFMCommunicate OK [17:13:45]wFMCommunicate request_size=255 [17:13:45]MH_SAM_APDU [17:13:45]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 C9 A1 F1 66 0E 04 04 00 D8 01 00 00 B9 [17:13:45]Write to MH i2c: E2 02 01 E1 18 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 C9 A1 F1 66 0E 04 04 00 D8 01 00 00 B9 00 00 FC [17:13:45]Write i2c OK [17:13:45]MH_I2C_Read... [17:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:45]Read from MH i2c: E2 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 03 00 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 03 00 E1 18 00 90 00 6D [17:13:45]RAPDU: 90 00 [17:13:45]wFMCommunicate OK [17:13:45]wFMCommunicate request_size=67 [17:13:45]MH_SAM_APDU [17:13:45]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FF C3 01 00 35 04 06 00 04 85 B1 E3 C8 78 [17:13:45]Write to MH i2c: E2 46 00 E2 18 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FF C3 01 00 35 04 06 00 04 85 B1 E3 C8 78 00 00 E4 [17:13:45]Write i2c OK [17:13:45]MH_I2C_Read... [17:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:46]Read from MH i2c: E2 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 03 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 03 00 E2 18 00 90 00 6E [17:13:46]RAPDU: 90 00 [17:13:46]wFMCommunicate OK [17:13:46]wFMCommunicate request_size=4 [17:13:46]MH_SAM_APDU [17:13:46]CAPDU: 80 0D 03 02 [17:13:46]Write to MH i2c: E2 08 00 E3 18 80 0D 03 02 00 00 00 00 76 [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:46]Read from MH i2c: E2 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 0B 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 0B 00 E3 18 00 E4 43 38 06 28 42 1F C8 90 00 2D [17:13:46]RAPDU: E4 43 38 06 28 42 1F C8 90 00 [17:13:46]wFMCommunicate OK [17:13:46]SAM_PROTO_SignData done [17:13:46]FM_MakeSignedData done [17:13:46]CreateOFDProtocolMessage [17:13:46]wFMCommunicate request_size=4 [17:13:46]MH_SAM_APDU [17:13:46]CAPDU: 80 11 00 00 [17:13:46]Write to MH i2c: E2 08 00 E4 18 80 11 00 00 00 00 00 00 76 [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:46]Read from MH i2c: E2 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 17 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 17 00 E4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C4 [17:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:13:46]wFMCommunicate OK [17:13:46]CreateOFDProtocolMessage done [17:13:46]OFDSenderStorePacket 115711 [17:13:46]StoreOFDPacket docnum=115711 [17:13:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 48 01 00 00 01 31 40 01 B6 3F 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 C9 A1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FF C3 01 00 35 04 06 00 04 85 B1 E3 C8 78 E4 43 38 06 28 42 1F C8 [17:13:46]CheckFolder [17:13:46]dirname=/storage/ofd_packets [17:13:46]CheckFolder done [17:13:46]ProducePacketName [17:13:46]name=ofd_packets/00115711 [17:13:46]NVStorageSaveData ofd_packets/00115711 [17:13:46]File name is /storage/ofd_packets/00115711 [17:13:46]Write 358 bytes [17:13:46]NVStorageSaveData done [17:13:46]OFDSenderStorePacket done [17:13:46]KKMCreateOFDPacket done [17:13:46]NVStorageSaveData kkm_last_timestamp [17:13:46]File name is /storage/kkm_last_timestamp [17:13:46]Write 4 bytes [17:13:46]NVStorageSaveData done [17:13:46]ExternCall_PrintAddStr [17:13:46]wPrintStart [17:13:46]Write to MH i2c: 01 00 00 E5 18 FD [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: 01 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: 01 07 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: 01 07 00 E5 18 00 00 00 00 00 FF 0F 12 [17:13:46]RasterBufferAndPrint [17:13:46]line Счет N : (3)344054 [17:13:46]line ИНН: 02508201610067 [17:13:46]line Контрольно-Кассовый Чек [17:13:46]line ПРОДАЖА [17:13:46]line Товар: 5449000027474 [17:13:46]line Напиток FuzeTea зел чай манго,ромашка 1л [17:13:46]line 2.000 * 105.00 [17:13:46]line = 210.00 [17:13:46]line НДС 12% НСП 1% [17:13:46]line > о реализуемом товаре [17:13:46]line ИТОГО: 210.00 [17:13:46]line НСП 1% : 1.86 [17:13:46]line НДС 12% : 22.30 [17:13:46]line Наличными: 210.00 [17:13:46]line Безнал.: 0.00 [17:13:46]line Место: АЗС № 90 "Партнер Нефть" [17:13:46]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:13:46]line СНО: Общий режим [17:13:46]line Чек 194 23.09.2024 17:13 [17:13:46]line Смена: 472 ФФД: 1.0 [17:13:46]line ЗНМ: 0300000120 [17:13:46]line РНМ: 0000000000091831 [17:13:46]line Версия ККМ: 001 [17:13:46]line ФМ: 0000000000871830 [17:13:46]line ФД: 115711 [17:13:46]line ФПД: 4972261656696 [17:13:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171345&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115711&fm=4972261656696&tin=02508201610067®Number=0000000000091831&sum=21000 [17:13:46]OFD Sender: Processing packet 115711 [packets to send 482, broken 481] [17:13:46]ProducePacketName [17:13:46]name=ofd_packets/00115711 [17:13:46]OFD Sender: To server: pG, [17:13:46]CommunicateWithHost lk.salyk.kg:30040 [17:13:46]ConnectInit lk.salyk.kg [17:13:46]line 0 [17:13:46]written 0, free lines is 4095 [17:13:46]Connected sock=10 [17: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 38 33 30 48 01 00 00 01 31 40 01 B6 3F 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 C9 A1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FF C3 01 00 35 04 06 00 04 85 B1 E3 C8 78 E4 43 38 06 28 42 1F C8 [17:13:46]Write to MH i2c: 01 00 00 0D 19 26 [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: 01 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: 01 07 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: 01 07 00 0D 19 00 00 00 00 00 60 0C 99 [17:13:46]RasterBufferAndPrint [17:13:46]line [17:13:46]line [17:13:46]line [17:13:46]line [17:13:46]line [17:13:46]written 0, free lines is 3173 [17:13:46]MH_Cut [17:13:46]Write to MH i2c: D1 01 00 14 19 01 FF [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: D1 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: D1 01 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: D1 01 00 14 19 00 FE [17:13:46]Write to MH i2c: 01 00 00 15 19 2E [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B8 59 47 00 04 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FF C3 01 00 F4 03 04 00 0B 47 F1 66 B6 04 01 00 00 20 4F 78 22 C7 68 21 C8 [17:13:47]CommunicateWithHost err = 0 [17:13:47]CheckOFDResponse [17:13:47]1017 (14) - 77093643461234 [17:13:47]1041 (16) - 0000000000871830 [17:13:47]1040 (4) - 115711 [17:13:47]1012 (4) - 23.09.2024 10:46 [17:13:47]1206 (1) - 0 [17:13:47]OFD Sender: Remove packet 115711 [17:13:47]ProducePacketName [17:13:47]name=ofd_packets/00115711 [17:13:47]NVStorageDeleteData [17:13:47]OFD Sender: No OFD packet to send [17:13:48]*** Cut start [17:13:48]*** Partial cut [17:13:48]*** CUTSNS_PIN = 1 [17:13:48]*** CUTSNS_PIN = 0 [17:13:48]*** Brake cut motor [17:13:48]Read from MH i2c: 01 [17:13:48]MH_I2C_Read... [17:13:48]*** Stop cut motor [17:13:48]*** Cut end [17:13:48]Read from MH i2c: 01 07 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 07 00 15 19 00 00 00 00 00 FF 0F 43 [17:13:48]process_action close_receipt done [17:13:48]requested_data is exist [17:13:48]produce_requested_data [17:13:48]requested_item fm.sn is exist - process it [17:13:48]wFMCommunicate request_size=4 [17:13:48]MH_SAM_APDU [17:13:48]CAPDU: 80 11 00 00 [17:13:48]Write to MH i2c: E2 08 00 16 19 80 11 00 00 00 00 00 00 A9 [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:48]Read from MH i2c: E2 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 17 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 17 00 16 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F7 [17:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:13:48]wFMCommunicate OK [17:13:48]requested_item fd.num is exist - process it [17:13:48]SAM_PROTO_GetFieldsCounters [17:13:48]wFMCommunicate request_size=4 [17:13:48]MH_SAM_APDU [17:13:48]CAPDU: 80 13 00 00 [17:13:48]Write to MH i2c: E2 08 00 17 19 80 13 00 00 00 00 00 00 AC [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 62 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 62 00 17 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [17:13: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C3 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:49]wFMCommunicate OK [17:13:49]SAM_PROTO_GetFieldsCounters done [17:13:49]requested_item shift.num is exist - process it [17:13:49]requested_item shift.opened is exist - process it [17:13:49]req_shift_opened [17:13:49]FM_GetShiftState [17:13:49]SAM_PROTO_GetShiftState [17:13:49]wFMCommunicate request_size=4 [17:13:49]MH_SAM_APDU [17:13:49]CAPDU: 80 13 01 00 [17:13:49]Write to MH i2c: E2 08 00 18 19 80 13 01 00 00 00 00 00 AE [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 0E 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 0E 00 18 19 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 EF [17:13:49]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:13:49]wFMCommunicate OK [17:13:49]SAM_PROTO_GetShiftState done [17:13:49]FM_GetShiftState done [17:13:49]req_shift_opened done [17:13:49]requested_item shift.open_date is exist - process it [17:13:49]req_shift_open_date [17:13:49]req_shift_open_date done [17:13:49]produce_requested_data done [17:13:49]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115711,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:13:49]process_action_free close_receipt [17:13:49]json_value_free [17:13:49]json_value_free done [17:13:49]process_json_proto returns [17:13:49]Send response to host [17:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115711,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:13:49]free response buf [17:13:49]execute_script done [17:13:49]execute_script returns [17:13:49]free content buf [17:13:49]Sock 9.Close socket [17:13:49]Sock 9.Thread stoped [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15: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:41]accept exits with 7 [17:15:41]New connection [17:15:41]New thread 3067022692 created [17:15:41]Thread 3066879332 joined [17:15:41]Waiting for new connection... [17:15:41] Sock 7.Parse request [17:15:41]Sock 7.Check first char [17:15:41]Sock 7.First char is OK [17:15:41]request: POST /json_proto HTTP/1.0 [17:15:41]Method: POST [17:15:41]URL: /json_proto [17:15:41]Method is POST - this is cgi request [17:15:41]url: /json_proto [17:15:41]query_string will be loaded in cgi processing [17:15:41]execute_cgi json_proto POST (null) [17:15:41]execute_cgi path=json_proto method=POST [17:15:41]POST find Content-Length [17:15:41]Host: 172.17.41.136:8080 [17:15:41]Content-Length: 647 [17:15:41]Content-Type: application/json [17:15:41] [17:15:41]POST finish read [17:15:41]Found Content-Length = 647 [17:15:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344055", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:41]execute_script... [17: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 : (3)344055", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:41]POST & json_proto [17:15:41]process_json_proto [17:15:41]json parsed OK: [17:15:41]protocol is kg_v1.0 [17:15:41]action value=close_receipt [17:15:41]process_action close_receipt [17:15:41]cmd_close_receipt [17:15:41]MH_GetDate [17:15:41]Write to MH i2c: F0 00 00 19 19 21 [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: F0 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: F0 09 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: F0 09 00 19 19 00 3E A2 F1 66 1B D0 5A 64 0A [17:15:41]GetLastDocTimeStamp 1727111625 [17:15:41]current date 1727111742 [17:15:41]FM_GetShiftState [17:15:41]SAM_PROTO_GetShiftState [17:15:41]wFMCommunicate request_size=4 [17:15:41]MH_SAM_APDU [17:15:41]CAPDU: 80 13 01 00 [17:15:41]Write to MH i2c: E2 08 00 1A 19 80 13 01 00 00 00 00 00 B0 [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:41]Read from MH i2c: E2 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 0E 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 0E 00 1A 19 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F1 [17:15:41]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:15:41]wFMCommunicate OK [17:15:41]SAM_PROTO_GetShiftState done [17:15:41]FM_GetShiftState done [17:15:41]opened in 1727052070 [17:15:41]opened+sec_in_day 1727138470 [17:15:41]quantity*price = 26500 [17:15:41]sum+1 = 26501 [17:15:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.34 НДС 12% : 28.14 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 195 23.09.2024 17:15 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115712 ФПД: 231559439089646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171542&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115712&fm=231559439089646&tin=02508201610067®Number=0000000000091831&sum=26500 0 [17:15:42]StoreToDocumentArchive [17:15:42]shift 472 fd 115712 [17:15:42]save to /storage/0472/doc_00115712 [17:15:42]save last doc name /storage/0472/doc_00115712 to /storage/kkm_last_doc_name [17:15:42]save OK [17:15:42]Clear old archive folders... [17:15:42]ProcessDocumentItem done err = 0, tmpTLVsize=279 [17:15:42]tlvbuf is B6DB9150 [17:15:42]SAM_PROTO_ClearQueue [17:15:42]wFMCommunicate request_size=4 [17:15:42]MH_SAM_APDU [17:15:42]CAPDU: 80 09 00 00 [17:15:42]Write to MH i2c: E2 08 00 27 19 80 09 00 00 00 00 00 00 B2 [17:15:42]Write i2c OK [17:15:42]MH_I2C_Read... [17:15:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:42]Read from MH i2c: E2 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: E2 03 00 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: E2 03 00 27 19 00 90 00 B4 [17:15:42]RAPDU: 90 00 [17:15:42]wFMCommunicate OK [17:15:42]SAM_PROTO_ClearQueue done [17:15:42]KKMCreateOFDPacket [17:15:42]OFDProtocolAddRootSTLVToBuf [17:15:42]FM_MakeSignedData [17:15:42]FM_MakeSignedData [17:15:42]SAM_PROTO_SignData [17:15:42]wFMCommunicate request_size=4 [17:15:42]MH_SAM_APDU [17:15:42]CAPDU: 80 0D 01 02 [17:15:42]Write to MH i2c: E2 08 00 28 19 80 0D 01 02 00 00 00 00 BA [17:15:42]Write i2c OK [17:15:42]MH_I2C_Read... [17:15:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:42]Read from MH i2c: E2 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: E2 03 00 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: E2 03 00 28 19 00 90 00 B5 [17:15:42]RAPDU: 90 00 [17:15:42]wFMCommunicate OK [17:15:42]wFMCommunicate request_size=255 [17:15:42]MH_SAM_APDU [17:15:42]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 3E A2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 [17:15:42]Write to MH i2c: E2 02 01 29 19 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 3E A2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 00 00 F9 [17:15:42]Write i2c OK [17:15:42]MH_I2C_Read... [17:15:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:42]OFD Sender: No OFD packet to send [17:15:42]Read from MH i2c: E2 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: E2 03 00 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: E2 03 00 29 19 00 90 00 B6 [17:15:42]RAPDU: 90 00 [17:15:42]wFMCommunicate OK [17:15:42]wFMCommunicate request_size=38 [17:15:42]MH_SAM_APDU [17:15:42]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 00 C4 01 00 35 04 06 00 D2 9A 22 1C 7F EE [17:15:42]Write to MH i2c: E2 29 00 2A 19 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 00 C4 01 00 35 04 06 00 D2 9A 22 1C 7F EE 00 00 1D [17:15:42]Write i2c OK [17:15:42]MH_I2C_Read... [17:15:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:42]Read from MH i2c: E2 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: E2 03 00 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: E2 03 00 2A 19 00 90 00 B7 [17:15:42]RAPDU: 90 00 [17:15:42]wFMCommunicate OK [17:15:42]wFMCommunicate request_size=4 [17:15:42]MH_SAM_APDU [17:15:42]CAPDU: 80 0D 03 02 [17:15:42]Write to MH i2c: E2 08 00 2B 19 80 0D 03 02 00 00 00 00 BF [17:15:42]Write i2c OK [17:15:42]MH_I2C_Read... [17:15:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:43]Read from MH i2c: E2 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 0B 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 0B 00 2B 19 00 94 A9 C7 D7 84 A8 F6 A7 90 00 64 [17:15:43]RAPDU: 94 A9 C7 D7 84 A8 F6 A7 90 00 [17:15:43]wFMCommunicate OK [17:15:43]SAM_PROTO_SignData done [17:15:43]FM_MakeSignedData done [17:15:43]CreateOFDProtocolMessage [17:15:43]wFMCommunicate request_size=4 [17:15:43]MH_SAM_APDU [17:15:43]CAPDU: 80 11 00 00 [17:15:43]Write to MH i2c: E2 08 00 2C 19 80 11 00 00 00 00 00 00 BF [17:15:43]Write i2c OK [17:15:43]MH_I2C_Read... [17:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:43]Read from MH i2c: E2 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 17 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 17 00 2C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0D [17:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:15:43]wFMCommunicate OK [17:15:43]CreateOFDProtocolMessage done [17:15:43]OFDSenderStorePacket 115712 [17:15:43]StoreOFDPacket docnum=115712 [17:15:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2B 01 00 00 5B 6B 23 01 07 12 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 3E A2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 00 C4 01 00 35 04 06 00 D2 9A 22 1C 7F EE 94 A9 C7 D7 84 A8 F6 A7 [17:15:43]CheckFolder [17:15:43]dirname=/storage/ofd_packets [17:15:43]CheckFolder done [17:15:43]ProducePacketName [17:15:43]name=ofd_packets/00115712 [17:15:43]NVStorageSaveData ofd_packets/00115712 [17:15:43]File name is /storage/ofd_packets/00115712 [17:15:43]Write 329 bytes [17:15:43]NVStorageSaveData done [17:15:43]OFDSenderStorePacket done [17:15:43]KKMCreateOFDPacket done [17:15:43]NVStorageSaveData kkm_last_timestamp [17:15:43]File name is /storage/kkm_last_timestamp [17:15:43]Write 4 bytes [17:15:43]NVStorageSaveData done [17:15:43]ExternCall_PrintAddStr [17:15:43]wPrintStart [17:15:43]Write to MH i2c: 01 00 00 2D 19 46 [17:15:43]Write i2c OK [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: 01 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: 01 07 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: 01 07 00 2D 19 00 00 00 00 00 FF 0F 5B [17:15:43]RasterBufferAndPrint [17:15:43]line Счет N : (3)344055 [17:15:43]line ИНН: 02508201610067 [17:15:43]line Контрольно-Кассовый Чек [17:15:43]line ПРОДАЖА [17:15:43]line Товар: 90448300 [17:15:43]line Энерг напиток Red Bull 0,355л [17:15:43]line 1.000 * 265.00 [17:15:43]line = 265.00 [17:15:43]line НДС 12% НСП 1% [17:15:43]line > о реализуемом товаре [17:15:43]line ИТОГО: 265.00 [17:15:43]line НСП 1% : 2.34 [17:15:43]line НДС 12% : 28.14 [17:15:43]line Наличными: 265.00 [17:15:43]line Безнал.: 0.00 [17:15:43]line Место: АЗС № 90 "Партнер Нефть" [17:15:43]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:15:43]line СНО: Общий режим [17:15:43]line Чек 195 23.09.2024 17:15 [17:15:43]line Смена: 472 ФФД: 1.0 [17:15:43]line ЗНМ: 0300000120 [17:15:43]line РНМ: 0000000000091831 [17:15:43]line Версия ККМ: 001 [17:15:43]line ФМ: 0000000000871830 [17:15:43]line ФД: 115712 [17:15:43]line ФПД: 231559439089646 [17:15:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171542&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115712&fm=231559439089646&tin=02508201610067®Number=0000000000091831&sum=26500 [17:15:43]line 0 [17:15:43]OFD Sender: Processing packet 115712 [packets to send 482, broken 481] [17:15:43]ProducePacketName [17:15:43]name=ofd_packets/00115712 [17:15:43]OFD Sender: To server: pG, [17:15:43]CommunicateWithHost lk.salyk.kg:30040 [17:15:43]ConnectInit lk.salyk.kg [17:15:43]written 0, free lines is 4095 [17:15:43]Connected sock=11 [17:15: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 38 33 30 2B 01 00 00 5B 6B 23 01 07 12 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 3E A2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 00 C4 01 00 35 04 06 00 D2 9A 22 1C 7F EE 94 A9 C7 D7 84 A8 F6 A7 [17:15:43]Write to MH i2c: 01 00 00 54 19 6D [17:15:43]Write i2c OK [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: 01 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: 01 07 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: 01 07 00 54 19 00 00 00 00 00 89 0C 09 [17:15:43]RasterBufferAndPrint [17:15:43]line [17:15:43]line [17:15:43]line [17:15:43]line [17:15:43]line [17:15:43]written 0, free lines is 3212 [17:15:43]MH_Cut [17:15:43]Write to MH i2c: D1 01 00 5B 19 01 46 [17:15:43]Write i2c OK [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: D1 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: D1 01 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: D1 01 00 5B 19 00 45 [17:15:43]Write to MH i2c: 01 00 00 5C 19 75 [17:15:43]Write i2c OK [17:15:43]MH_I2C_Read... [17:15:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 8D A0 47 00 08 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 00 C4 01 00 F4 03 04 00 80 47 F1 66 B6 04 01 00 00 93 5F 8E 33 1A 8F 58 A6 [17:15:43]CommunicateWithHost err = 0 [17:15:43]CheckOFDResponse [17:15:43]1017 (14) - 77093643461234 [17:15:43]1041 (16) - 0000000000871830 [17:15:43]1040 (4) - 115712 [17:15:43]1012 (4) - 23.09.2024 10:48 [17:15:43]1206 (1) - 0 [17:15:43]OFD Sender: Remove packet 115712 [17:15:43]ProducePacketName [17:15:43]name=ofd_packets/00115712 [17:15:43]NVStorageDeleteData [17:15:44]OFD Sender: No OFD packet to send [17:15:45]*** Cut start [17:15:45]*** Partial cut [17:15:45]*** CUTSNS_PIN = 1 [17:15:45]*** CUTSNS_PIN = 0 [17:15:45]*** Brake cut motor [17:15:45]Read from MH i2c: 01 [17:15:45]MH_I2C_Read... [17:15:45]*** Stop cut motor [17:15:45]*** Cut end [17:15:45]Read from MH i2c: 01 07 00 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: 01 07 00 5C 19 00 00 00 00 00 FF 0F 8A [17:15:45]process_action close_receipt done [17:15:45]requested_data is exist [17:15:45]produce_requested_data [17:15:45]requested_item fm.sn is exist - process it [17:15:45]wFMCommunicate request_size=4 [17:15:45]MH_SAM_APDU [17:15:45]CAPDU: 80 11 00 00 [17:15:45]Write to MH i2c: E2 08 00 5D 19 80 11 00 00 00 00 00 00 F0 [17:15:45]Write i2c OK [17:15:45]MH_I2C_Read... [17:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:45]Read from MH i2c: E2 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 17 00 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 17 00 5D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3E [17:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:15:45]wFMCommunicate OK [17:15:45]requested_item fd.num is exist - process it [17:15:45]SAM_PROTO_GetFieldsCounters [17:15:45]wFMCommunicate request_size=4 [17:15:45]MH_SAM_APDU [17:15:45]CAPDU: 80 13 00 00 [17:15:45]Write to MH i2c: E2 08 00 5E 19 80 13 00 00 00 00 00 00 F3 [17:15:45]Write i2c OK [17:15:45]MH_I2C_Read... [17:15:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:45]Read from MH i2c: E2 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 62 00 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 62 00 5E 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 00 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [17:15: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 00 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:45]wFMCommunicate OK [17:15:45]SAM_PROTO_GetFieldsCounters done [17:15:45]requested_item shift.num is exist - process it [17:15:45]requested_item shift.opened is exist - process it [17:15:45]req_shift_opened [17:15:45]FM_GetShiftState [17:15:45]SAM_PROTO_GetShiftState [17:15:45]wFMCommunicate request_size=4 [17:15:45]MH_SAM_APDU [17:15:45]CAPDU: 80 13 01 00 [17:15:45]Write to MH i2c: E2 08 00 5F 19 80 13 01 00 00 00 00 00 F5 [17:15:45]Write i2c OK [17:15:45]MH_I2C_Read... [17:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:45]Read from MH i2c: E2 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 0E 00 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 0E 00 5F 19 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 36 [17:15:45]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:15:45]wFMCommunicate OK [17:15:45]SAM_PROTO_GetShiftState done [17:15:45]FM_GetShiftState done [17:15:45]req_shift_opened done [17:15:45]requested_item shift.open_date is exist - process it [17:15:45]req_shift_open_date [17:15:45]req_shift_open_date done [17:15:45]produce_requested_data done [17:15:45]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115712,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:15:45]process_action_free close_receipt [17:15:45]json_value_free [17:15:45]json_value_free done [17:15:45]process_json_proto returns [17:15:45]Send response to host [17:15:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115712,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:15:45]free response buf [17:15:45]execute_script done [17:15:45]execute_script returns [17:15:45]free content buf [17:15:45]Sock 7.Close socket [17:15:45]Sock 7.Thread stoped [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:01]accept exits with 9 [17:17:01]New connection [17:17:01]New thread 3066879332 created [17:17:01]Thread 3067022692 joined [17:17:01]Waiting for new connection... [17:17:01] Sock 9.Parse request [17:17:01]Sock 9.Check first char [17:17:01]Sock 9.First char is OK [17:17:01]request: POST /json_proto HTTP/1.0 [17:17:01]Method: POST [17:17:01]URL: /json_proto [17:17:01]Method is POST - this is cgi request [17:17:01]url: /json_proto [17:17:01]query_string will be loaded in cgi processing [17:17:01]execute_cgi json_proto POST (null) [17:17:01]execute_cgi path=json_proto method=POST [17:17:01]POST find Content-Length [17:17:01]Host: 172.17.41.136:8080 [17:17:01]Content-Length: 660 [17:17:01]Content-Type: application/json [17:17:01] [17:17:01]POST finish read [17:17:01]Found Content-Length = 660 [17:17:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:17:01]execute_script... [17:17: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)24617870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:17:01]POST & json_proto [17:17:01]process_json_proto [17:17:01]json parsed OK: [17:17:01]protocol is kg_v1.0 [17:17:01]action value=close_receipt [17:17:01]process_action close_receipt [17:17:01]cmd_close_receipt [17:17:01]MH_GetDate [17:17:01]Write to MH i2c: F0 00 00 60 19 68 [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: F0 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: F0 09 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: F0 09 00 60 19 00 8E A2 F1 66 1B D0 5A 64 A1 [17:17:01]GetLastDocTimeStamp 1727111742 [17:17:01]current date 1727111822 [17:17:01]FM_GetShiftState [17:17:01]SAM_PROTO_GetShiftState [17:17:01]wFMCommunicate request_size=4 [17:17:01]MH_SAM_APDU [17:17:01]CAPDU: 80 13 01 00 [17:17:01]Write to MH i2c: E2 08 00 61 19 80 13 01 00 00 00 00 00 F7 [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:01]Read from MH i2c: E2 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 0E 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 0E 00 61 19 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 38 [17:17:01]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:17:01]wFMCommunicate OK [17:17:01]SAM_PROTO_GetShiftState done [17:17:01]FM_GetShiftState done [17:17:01]opened in 1727052070 [17:17:01]opened+sec_in_day 1727138470 [17:17:01]quantity*price = 50034 [17:17:01]sum+1 = 50036 [17:17:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 196 23.09.2024 17:17 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115713 ФПД: 43799129010842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171702&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115713&fm=43799129010842&tin=02508201610067®Number=0000000000091831&sum=50000 [17:17:02]StoreToDocumentArchive [17:17:02]shift 472 fd 115713 [17:17:02]save to /storage/0472/doc_00115713 [17:17:02]save last doc name /storage/0472/doc_00115713 to /storage/kkm_last_doc_name [17:17:02]save OK [17:17:02]Clear old archive folders... [17:17:02]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:17:02]tlvbuf is 01807530 [17:17:02]SAM_PROTO_ClearQueue [17:17:02]wFMCommunicate request_size=4 [17:17:02]MH_SAM_APDU [17:17:02]CAPDU: 80 09 00 00 [17:17:02]Write to MH i2c: E2 08 00 6E 19 80 09 00 00 00 00 00 00 F9 [17:17:02]Write i2c OK [17:17:02]MH_I2C_Read... [17:17:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:02]Read from MH i2c: E2 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: E2 03 00 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: E2 03 00 6E 19 00 90 00 FB [17:17:02]RAPDU: 90 00 [17:17:02]wFMCommunicate OK [17:17:02]SAM_PROTO_ClearQueue done [17:17:02]KKMCreateOFDPacket [17:17:02]OFDProtocolAddRootSTLVToBuf [17:17:02]FM_MakeSignedData [17:17:02]FM_MakeSignedData [17:17:02]SAM_PROTO_SignData [17:17:02]wFMCommunicate request_size=4 [17:17:02]MH_SAM_APDU [17:17:02]CAPDU: 80 0D 01 02 [17:17:02]Write to MH i2c: E2 08 00 6F 19 80 0D 01 02 00 00 00 00 01 [17:17:02]Write i2c OK [17:17:02]MH_I2C_Read... [17:17:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:02]Read from MH i2c: E2 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: E2 03 00 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: E2 03 00 6F 19 00 90 00 FC [17:17:02]RAPDU: 90 00 [17:17:02]wFMCommunicate OK [17:17:02]wFMCommunicate request_size=253 [17:17:02]MH_SAM_APDU [17:17:02]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 8E A2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 01 C4 01 00 35 04 06 00 27 D5 C7 86 B2 9A [17:17:02]Write to MH i2c: E2 00 01 70 19 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 8E A2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 01 C4 01 00 35 04 06 00 27 D5 C7 86 B2 9A 00 00 9A [17:17:02]Write i2c OK [17:17:02]MH_I2C_Read... [17:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:02]Read from MH i2c: E2 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: E2 03 00 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: E2 03 00 70 19 00 90 00 FD [17:17:02]RAPDU: 90 00 [17:17:02]wFMCommunicate OK [17:17:02]wFMCommunicate request_size=4 [17:17:02]MH_SAM_APDU [17:17:02]CAPDU: 80 0D 03 02 [17:17:02]Write to MH i2c: E2 08 00 71 19 80 0D 03 02 00 00 00 00 05 [17:17:02]Write i2c OK [17:17:02]MH_I2C_Read... [17:17:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:02]Read from MH i2c: E2 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: E2 0B 00 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: E2 0B 00 71 19 00 BD 43 CF 9A 40 2C 42 5C 90 00 79 [17:17:02]RAPDU: BD 43 CF 9A 40 2C 42 5C 90 00 [17:17:02]wFMCommunicate OK [17:17:02]SAM_PROTO_SignData done [17:17:02]FM_MakeSignedData done [17:17:02]CreateOFDProtocolMessage [17:17:02]wFMCommunicate request_size=4 [17:17:02]MH_SAM_APDU [17:17:02]CAPDU: 80 11 00 00 [17:17:02]Write to MH i2c: E2 08 00 72 19 80 11 00 00 00 00 00 00 05 [17:17:02]Write i2c OK [17:17:02]MH_I2C_Read... [17:17:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:02]Read from MH i2c: E2 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: E2 17 00 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: E2 17 00 72 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 53 [17:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:17:02]wFMCommunicate OK [17:17:02]CreateOFDProtocolMessage done [17:17:02]OFDSenderStorePacket 115713 [17:17:02]StoreOFDPacket docnum=115713 [17:17:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 70 A6 00 01 A6 0F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 8E A2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 01 C4 01 00 35 04 06 00 27 D5 C7 86 B2 9A BD 43 CF 9A 40 2C 42 5C [17:17:02]CheckFolder [17:17:02]dirname=/storage/ofd_packets [17:17:02]CheckFolder done [17:17:02]ProducePacketName [17:17:02]name=ofd_packets/00115713 [17:17:02]NVStorageSaveData ofd_packets/00115713 [17:17:02]File name is /storage/ofd_packets/00115713 [17:17:02]Write 294 bytes [17:17:02]NVStorageSaveData done [17:17:02]OFDSenderStorePacket done [17:17:02]KKMCreateOFDPacket done [17:17:02]NVStorageSaveData kkm_last_timestamp [17:17:02]File name is /storage/kkm_last_timestamp [17:17:02]Write 4 bytes [17:17:02]NVStorageSaveData done [17:17:02]ExternCall_PrintAddStr [17:17:02]wPrintStart [17:17:02]Write to MH i2c: 01 00 00 73 19 8C [17:17:02]Write i2c OK [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: 01 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: 01 07 00 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: 01 07 00 73 19 00 00 00 00 00 FF 0F A1 [17:17:02]RasterBufferAndPrint [17:17:02]line Счет N : (1)24617870 [17:17:02]line ИНН: 02508201610067 [17:17:02]line Контрольно-Кассовый Чек [17:17:02]line ПРОДАЖА [17:17:02]line ТРК (МРК, ГНК) : 64 [17:17:02]line Товар: 2710124130 [17:17:02]line SU-92 [17:17:02]line 7.220 * 69.30 [17:17:02]line = 500.35 [17:17:02]line НДС 12% НСП 1% [17:17:02]line > о реализуемом товаре [17:17:02]line ОКРУГЛЕНИЕ: -0.35 [17:17:02]line ИТОГО: 500.00 [17:17:02]line Внесено: 500.00 [17:17:02]line СДАЧА: 0.00 [17:17:02]line НСП 1% : 4.43 [17:17:02]line НДС 12% : 53.13 [17:17:02]line Наличными: 500.00 [17:17:02]line Безнал.: 0.00 [17:17:02]line Место: АЗС № 90 "Партнер Нефть" [17:17:02]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:17:02]line СНО: Общий режим [17:17:02]line Чек 196 23.09.2024 17:17 [17:17:02]line Смена: 472 ФФД: 1.0 [17:17:02]line ЗНМ: 0300000120 [17:17:02]line РНМ: 0000000000091831 [17:17:02]line Версия ККМ: 001 [17:17:02]line ФМ: 0000000000871830 [17:17:02]line ФД: 115713 [17:17:02]line ФПД: 43799129010842 [17:17:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171702&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115713&fm=43799129010842&tin=02508201610067®Number=0000000000091831&sum=50000 [17:17:03]OFD Sender: Processing packet 115713 [packets to send 482, broken 481] [17:17:03]ProducePacketName [17:17:03]name=ofd_packets/00115713 [17:17:03]OFD Sender: To server: pG, [17:17:03]CommunicateWithHost lk.salyk.kg:30040 [17:17:03]ConnectInit lk.salyk.kg [17:17:03]written 0, free lines is 4095 [17:17:03]Connected sock=10 [17:17: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 38 33 30 08 01 00 00 70 A6 00 01 A6 0F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 8E A2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 01 C4 01 00 35 04 06 00 27 D5 C7 86 B2 9A BD 43 CF 9A 40 2C 42 5C [17:17:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B0 0B 47 00 6C 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 38 33 30 10 04 04 00 01 C4 01 00 F4 03 04 00 D0 47 F1 66 B6 04 01 00 00 CB 2E B1 11 2F E2 47 AE [17:17:03]CommunicateWithHost err = 0 [17:17:03]CheckOFDResponse [17:17:03]1017 (14) - 77093643461234 [17:17:03]1041 (16) - 0000000000871830 [17:17:03]1040 (4) - 115713 [17:17:03]1012 (4) - 23.09.2024 10:49 [17:17:03]1206 (1) - 0 [17:17:03]OFD Sender: Remove packet 115713 [17:17:03]ProducePacketName [17:17:03]name=ofd_packets/00115713 [17:17:03]NVStorageDeleteData [17:17:03]Write to MH i2c: 01 00 00 9D 19 B6 [17:17:03]Write i2c OK [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: 01 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: 01 07 00 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: 01 07 00 9D 19 00 00 00 00 00 60 0C 29 [17:17:03]RasterBufferAndPrint [17:17:03]line [17:17:03]line [17:17:03]line [17:17:03]line [17:17:03]line [17:17:03]written 0, free lines is 3174 [17:17:03]MH_Cut [17:17:03]Write to MH i2c: D1 01 00 A4 19 01 8F [17:17:03]Write i2c OK [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: D1 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: D1 01 00 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: D1 01 00 A4 19 00 8E [17:17:03]Write to MH i2c: 01 00 00 A5 19 BE [17:17:03]Write i2c OK [17:17:03]MH_I2C_Read... [17:17:04]OFD Sender: No OFD packet to send [17:17:04]*** Cut start [17:17:04]*** Partial cut [17:17:04]*** CUTSNS_PIN = 1 [17:17:04]*** CUTSNS_PIN = 0 [17:17:05]*** Brake cut motor [17:17:05]Read from MH i2c: 01 [17:17:05]MH_I2C_Read... [17:17:05]*** Stop cut motor [17:17:05]*** Cut end [17:17:05]Read from MH i2c: 01 07 00 [17:17:05]MH_I2C_Read... [17:17:05]Read from MH i2c: 01 07 00 A5 19 00 00 00 00 00 FF 0F D3 [17:17:05]process_action close_receipt done [17:17:05]requested_data is exist [17:17:05]produce_requested_data [17:17:05]requested_item fm.sn is exist - process it [17:17:05]wFMCommunicate request_size=4 [17:17:05]MH_SAM_APDU [17:17:05]CAPDU: 80 11 00 00 [17:17:05]Write to MH i2c: E2 08 00 A6 19 80 11 00 00 00 00 00 00 39 [17:17:05]Write i2c OK [17:17:05]MH_I2C_Read... [17:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:05]Read from MH i2c: E2 [17:17:05]MH_I2C_Read... [17:17:05]Read from MH i2c: E2 17 00 [17:17:05]MH_I2C_Read... [17:17:05]Read from MH i2c: E2 17 00 A6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 87 [17:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:17:05]wFMCommunicate OK [17:17:05]requested_item fd.num is exist - process it [17:17:05]SAM_PROTO_GetFieldsCounters [17:17:05]wFMCommunicate request_size=4 [17:17:05]MH_SAM_APDU [17:17:05]CAPDU: 80 13 00 00 [17:17:05]Write to MH i2c: E2 08 00 A7 19 80 13 00 00 00 00 00 00 3C [17:17:05]Write i2c OK [17:17:05]MH_I2C_Read... [17:17:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:05]Read from MH i2c: E2 [17:17:05]MH_I2C_Read... [17:17:05]Read from MH i2c: E2 62 00 [17:17:05]MH_I2C_Read... [17:17:05]Read from MH i2c: E2 62 00 A7 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 01 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [17:17: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 01 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:05]wFMCommunicate OK [17:17:05]SAM_PROTO_GetFieldsCounters done [17:17:05]requested_item shift.num is exist - process it [17:17:05]requested_item shift.opened is exist - process it [17:17:05]req_shift_opened [17:17:05]FM_GetShiftState [17:17:05]SAM_PROTO_GetShiftState [17:17:05]wFMCommunicate request_size=4 [17:17:05]MH_SAM_APDU [17:17:05]CAPDU: 80 13 01 00 [17:17:05]Write to MH i2c: E2 08 00 A8 19 80 13 01 00 00 00 00 00 3E [17:17:05]Write i2c OK [17:17:05]MH_I2C_Read... [17:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:05]Read from MH i2c: E2 [17:17:05]MH_I2C_Read... [17:17:05]Read from MH i2c: E2 0E 00 [17:17:05]MH_I2C_Read... [17:17:05]Read from MH i2c: E2 0E 00 A8 19 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7F [17:17:05]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:17:05]wFMCommunicate OK [17:17:05]SAM_PROTO_GetShiftState done [17:17:05]FM_GetShiftState done [17:17:05]req_shift_opened done [17:17:05]requested_item shift.open_date is exist - process it [17:17:05]req_shift_open_date [17:17:05]req_shift_open_date done [17:17:05]produce_requested_data done [17:17:05]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115713,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:17:05]process_action_free close_receipt [17:17:05]json_value_free [17:17:05]json_value_free done [17:17:05]process_json_proto returns [17:17:05]Send response to host [17:17:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115713,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:17:05]free response buf [17:17:05]execute_script done [17:17:05]execute_script returns [17:17:05]free content buf [17:17:05]Sock 9.Close socket [17:17:05]Sock 9.Thread stoped [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:03]accept exits with 7 [17:19:03]New connection [17:19:03]New thread 3067022692 created [17:19:03]Thread 3066879332 joined [17:19:03]Waiting for new connection... [17:19:03] Sock 7.Parse request [17:19:03]Sock 7.Check first char [17:19:03]Sock 7.First char is OK [17:19:03]request: POST /json_proto HTTP/1.0 [17:19:03]Method: POST [17:19:03]URL: /json_proto [17:19:03]Method is POST - this is cgi request [17:19:03]url: /json_proto [17:19:03]query_string will be loaded in cgi processing [17:19:03]execute_cgi json_proto POST (null) [17:19:03]execute_cgi path=json_proto method=POST [17:19:03]POST find Content-Length [17:19:03]Host: 172.17.41.136:8080 [17:19:03]Content-Length: 796 [17:19:03]Content-Type: application/json [17:19:03] [17:19:03]POST finish read [17:19:03]Found Content-Length = 796 [17:19:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:03]execute_script... [17:19:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:03]POST & json_proto [17:19:03]process_json_proto [17:19:03]json parsed OK: [17:19:03]protocol is kg_v1.0 [17:19:03]action value=close_receipt [17:19:03]process_action close_receipt [17:19:03]cmd_close_receipt [17:19:03]MH_GetDate [17:19:03]Write to MH i2c: F0 00 00 A9 19 B1 [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: F0 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: F0 09 00 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: F0 09 00 A9 19 00 08 A3 F1 66 1B D0 5A 64 65 [17:19:03]GetLastDocTimeStamp 1727111822 [17:19:03]current date 1727111944 [17:19:03]FM_GetShiftState [17:19:03]SAM_PROTO_GetShiftState [17:19:03]wFMCommunicate request_size=4 [17:19:03]MH_SAM_APDU [17:19:03]CAPDU: 80 13 01 00 [17:19:03]Write to MH i2c: E2 08 00 AA 19 80 13 01 00 00 00 00 00 40 [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:03]Read from MH i2c: E2 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: E2 0E 00 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: E2 0E 00 AA 19 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 81 [17:19:03]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:19:03]wFMCommunicate OK [17:19:03]SAM_PROTO_GetShiftState done [17:19:03]FM_GetShiftState done [17:19:03]opened in 1727052070 [17:19:03]opened+sec_in_day 1727138470 [17:19:03]quantity*price = 0 [17:19:03]sum+1 = 1 [17:19:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 197 23.09.2024 17:19 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливные Талоны 1 ФМ: 0000000000871830 ФД: 115714 ФПД: 132595124527205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171904&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115714&fm=132595124527205&tin=02508201610067®Number=0000000000091831&sum=0 [17:19:04]StoreToDocumentArchive [17:19:04]shift 472 fd 115714 [17:19:04]save to /storage/0472/doc_00115714 [17:19:04]save last doc name /storage/0472/doc_00115714 to /storage/kkm_last_doc_name [17:19:04]save OK [17:19:04]Clear old archive folders... [17:19:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:04]tlvbuf is 017D3FE0 [17:19:04]SAM_PROTO_ClearQueue [17:19:04]wFMCommunicate request_size=4 [17:19:04]MH_SAM_APDU [17:19:04]CAPDU: 80 09 00 00 [17:19:04]Write to MH i2c: E2 08 00 B7 19 80 09 00 00 00 00 00 00 42 [17:19:04]Write i2c OK [17:19:04]MH_I2C_Read... [17:19:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:04]Read from MH i2c: E2 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 03 00 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 03 00 B7 19 00 90 00 44 [17:19:04]RAPDU: 90 00 [17:19:04]wFMCommunicate OK [17:19:04]SAM_PROTO_ClearQueue done [17:19:04]KKMCreateOFDPacket [17:19:04]OFDProtocolAddRootSTLVToBuf [17:19:04]FM_MakeSignedData [17:19:04]FM_MakeSignedData [17:19:04]SAM_PROTO_SignData [17:19:04]wFMCommunicate request_size=4 [17:19:04]MH_SAM_APDU [17:19:04]CAPDU: 80 0D 01 02 [17:19:04]Write to MH i2c: E2 08 00 B8 19 80 0D 01 02 00 00 00 00 4A [17:19:04]Write i2c OK [17:19:04]MH_I2C_Read... [17:19:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:04]Read from MH i2c: E2 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 03 00 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 03 00 B8 19 00 90 00 45 [17:19:04]RAPDU: 90 00 [17:19:04]wFMCommunicate OK [17:19:04]wFMCommunicate request_size=255 [17:19:04]MH_SAM_APDU [17:19:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C5 00 00 00 F4 03 04 00 08 A3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 02 C4 01 00 35 04 06 00 78 [17:19:04]Write to MH i2c: E2 02 01 B9 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C5 00 00 00 F4 03 04 00 08 A3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 02 C4 01 00 35 04 06 00 78 00 00 07 [17:19:04]Write i2c OK [17:19:04]MH_I2C_Read... [17:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:04]Read from MH i2c: E2 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 03 00 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 03 00 B9 19 00 90 00 46 [17:19:04]RAPDU: 90 00 [17:19:04]wFMCommunicate OK [17:19:04]wFMCommunicate request_size=10 [17:19:04]MH_SAM_APDU [17:19:04]CAPDU: 80 0D 02 02 05 98 35 4B E0 65 [17:19:04]Write to MH i2c: E2 0D 00 BA 19 80 0D 02 02 05 00 98 35 4B E0 65 00 00 B4 [17:19:04]Write i2c OK [17:19:04]MH_I2C_Read... [17:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:04]Read from MH i2c: E2 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 03 00 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 03 00 BA 19 00 90 00 47 [17:19:04]RAPDU: 90 00 [17:19:04]wFMCommunicate OK [17:19:04]wFMCommunicate request_size=4 [17:19:04]MH_SAM_APDU [17:19:04]CAPDU: 80 0D 03 02 [17:19:04]Write to MH i2c: E2 08 00 BB 19 80 0D 03 02 00 00 00 00 4F [17:19:04]Write i2c OK [17:19:04]MH_I2C_Read... [17:19:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:04]Read from MH i2c: E2 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 0B 00 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 0B 00 BB 19 00 2F 77 3F F7 83 2D 06 18 90 00 FA [17:19:04]RAPDU: 2F 77 3F F7 83 2D 06 18 90 00 [17:19:04]wFMCommunicate OK [17:19:04]SAM_PROTO_SignData done [17:19:04]FM_MakeSignedData done [17:19:04]CreateOFDProtocolMessage [17:19:04]wFMCommunicate request_size=4 [17:19:04]MH_SAM_APDU [17:19:04]CAPDU: 80 11 00 00 [17:19:04]Write to MH i2c: E2 08 00 BC 19 80 11 00 00 00 00 00 00 4F [17:19:04]Write i2c OK [17:19:04]MH_I2C_Read... [17:19:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:05]Read from MH i2c: E2 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: E2 17 00 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: E2 17 00 BC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9D [17:19:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:19:05]wFMCommunicate OK [17:19:05]CreateOFDProtocolMessage done [17:19:05]OFDSenderStorePacket 115714 [17:19:05]StoreOFDPacket docnum=115714 [17:19:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 BB C6 07 01 49 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C5 00 00 00 F4 03 04 00 08 A3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 02 C4 01 00 35 04 06 00 78 98 35 4B E0 65 2F 77 3F F7 83 2D 06 18 [17:19:05]CheckFolder [17:19:05]dirname=/storage/ofd_packets [17:19:05]CheckFolder done [17:19:05]ProducePacketName [17:19:05]name=ofd_packets/00115714 [17:19:05]NVStorageSaveData ofd_packets/00115714 [17:19:05]File name is /storage/ofd_packets/00115714 [17:19:05]Write 301 bytes [17:19:05]NVStorageSaveData done [17:19:05]OFDSenderStorePacket done [17:19:05]KKMCreateOFDPacket done [17:19:05]NVStorageSaveData kkm_last_timestamp [17:19:05]File name is /storage/kkm_last_timestamp [17:19:05]Write 4 bytes [17:19:05]NVStorageSaveData done [17:19:05]ExternCall_PrintAddStr [17:19:05]wPrintStart [17:19:05]Write to MH i2c: 01 00 00 BD 19 D6 [17:19:05]Write i2c OK [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: 01 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: 01 07 00 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: 01 07 00 BD 19 00 00 00 00 00 FF 0F EB [17:19:05]RasterBufferAndPrint [17:19:05]line Счет N : (1)24617867 [17:19:05]line ИНН: 02508201610067 [17:19:05]line Контрольно-Кассовый Чек [17:19:05]line ПРОДАЖА [17:19:05]line ТРК (МРК, ГНК) : 43 [17:19:05]line Товар: 2710124130 [17:19:05]line Аи-92-К-5 [17:19:05]line 40.000 * 0.00 [17:19:05]line = 0.00 [17:19:05]line НДС 12% НСП 1% [17:19:05]line > о реализуемом товаре [17:19:05]line ИТОГО: 0.00 [17:19:05]line НСП 1% : 0.00 [17:19:05]line НДС 12% : 0.00 [17:19:05]line Наличными: 0.00 [17:19:05]line Безнал.: 0.00 [17:19:05]line Место: АЗС № 90 "Партнер Нефть" [17:19:05]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:19:05]line СНО: Общий режим [17:19:05]line Чек 197 23.09.2024 17:19 [17:19:05]line Смена: 472 ФФД: 1.0 [17:19:05]line ЗНМ: 0300000120 [17:19:05]line РНМ: 0000000000091831 [17:19:05]line Версия ККМ: 001 [17:19:05]line Талоны: Топливные Талоны [17:19:05]line 1 [17:19:05]line ФМ: 0000000000871830 [17:19:05]line ФД: 115714 [17:19:05]line ФПД: 132595124527205 [17:19:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171904&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115714&fm=132595124527205&tin=02508201610067®Number=0000000000091831&sum=0 [17:19:05]written 0, free lines is 4095 [17:19:05]OFD Sender: Processing packet 115714 [packets to send 482, broken 481] [17:19:05]ProducePacketName [17:19:05]name=ofd_packets/00115714 [17:19:05]OFD Sender: To server: pG, [17:19:05]CommunicateWithHost lk.salyk.kg:30040 [17:19:05]ConnectInit lk.salyk.kg [17:19:05]Connected sock=10 [17:19:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 BB C6 07 01 49 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C5 00 00 00 F4 03 04 00 08 A3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 02 C4 01 00 35 04 06 00 78 98 35 4B E0 65 2F 77 3F F7 83 2D 06 18 [17:19:05]Write to MH i2c: 01 00 00 E6 19 FF [17:19:05]Write i2c OK [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: 01 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: 01 07 00 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: 01 07 00 E6 19 00 00 00 00 00 6F 0C 81 [17:19:05]RasterBufferAndPrint [17:19:05]line [17:19:05]line [17:19:05]line [17:19:05]line [17:19:05]line [17:19:05]written 0, free lines is 3187 [17:19:05]MH_Cut [17:19:05]Write to MH i2c: D1 01 00 ED 19 01 D8 [17:19:05]Write i2c OK [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: D1 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: D1 01 00 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: D1 01 00 ED 19 00 D7 [17:19:05]Write to MH i2c: 01 00 00 EE 19 07 [17:19:05]Write i2c OK [17:19:05]MH_I2C_Read... [17:19:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E2 9F 47 00 45 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 02 C4 01 00 F4 03 04 00 4A 48 F1 66 B6 04 01 00 00 A1 0A 89 0E 90 2A EA 40 [17:19:05]CommunicateWithHost err = 0 [17:19:05]CheckOFDResponse [17:19:05]1017 (14) - 77093643461234 [17:19:05]1041 (16) - 0000000000871830 [17:19:05]1040 (4) - 115714 [17:19:05]1012 (4) - 23.09.2024 10:51 [17:19:05]1206 (1) - 0 [17:19:05]OFD Sender: Remove packet 115714 [17:19:05]ProducePacketName [17:19:05]name=ofd_packets/00115714 [17:19:05]NVStorageDeleteData [17:19:06]OFD Sender: No OFD packet to send [17:19:06]*** Cut start [17:19:06]*** Partial cut [17:19:06]*** CUTSNS_PIN = 1 [17:19:06]*** CUTSNS_PIN = 0 [17:19:07]*** Brake cut motor [17:19:07]Read from MH i2c: 01 [17:19:07]MH_I2C_Read... [17:19:07]*** Stop cut motor [17:19:07]*** Cut end [17:19:07]Read from MH i2c: 01 07 00 [17:19:07]MH_I2C_Read... [17:19:07]Read from MH i2c: 01 07 00 EE 19 00 00 00 00 00 FF 0F 1C [17:19:07]process_action close_receipt done [17:19:07]requested_data is exist [17:19:07]produce_requested_data [17:19:07]requested_item fm.sn is exist - process it [17:19:07]wFMCommunicate request_size=4 [17:19:07]MH_SAM_APDU [17:19:07]CAPDU: 80 11 00 00 [17:19:07]Write to MH i2c: E2 08 00 EF 19 80 11 00 00 00 00 00 00 82 [17:19:07]Write i2c OK [17:19:07]MH_I2C_Read... [17:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:07]Read from MH i2c: E2 [17:19:07]MH_I2C_Read... [17:19:07]Read from MH i2c: E2 17 00 [17:19:07]MH_I2C_Read... [17:19:07]Read from MH i2c: E2 17 00 EF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D0 [17:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:19:07]wFMCommunicate OK [17:19:07]requested_item fd.num is exist - process it [17:19:07]SAM_PROTO_GetFieldsCounters [17:19:07]wFMCommunicate request_size=4 [17:19:07]MH_SAM_APDU [17:19:07]CAPDU: 80 13 00 00 [17:19:07]Write to MH i2c: E2 08 00 F0 19 80 13 00 00 00 00 00 00 85 [17:19:07]Write i2c OK [17:19:07]MH_I2C_Read... [17:19:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:07]Read from MH i2c: E2 [17:19:07]MH_I2C_Read... [17:19:07]Read from MH i2c: E2 62 00 [17:19:07]MH_I2C_Read... [17:19:07]Read from MH i2c: E2 62 00 F0 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 02 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [17:19:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 02 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:07]wFMCommunicate OK [17:19:07]SAM_PROTO_GetFieldsCounters done [17:19:07]requested_item shift.num is exist - process it [17:19:07]requested_item shift.opened is exist - process it [17:19:07]req_shift_opened [17:19:07]FM_GetShiftState [17:19:07]SAM_PROTO_GetShiftState [17:19:07]wFMCommunicate request_size=4 [17:19:07]MH_SAM_APDU [17:19:07]CAPDU: 80 13 01 00 [17:19:07]Write to MH i2c: E2 08 00 F1 19 80 13 01 00 00 00 00 00 87 [17:19:07]Write i2c OK [17:19:07]MH_I2C_Read... [17:19:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:07]Read from MH i2c: E2 [17:19:07]MH_I2C_Read... [17:19:07]Read from MH i2c: E2 0E 00 [17:19:07]MH_I2C_Read... [17:19:07]Read from MH i2c: E2 0E 00 F1 19 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C8 [17:19:07]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:19:07]wFMCommunicate OK [17:19:07]SAM_PROTO_GetShiftState done [17:19:07]FM_GetShiftState done [17:19:07]req_shift_opened done [17:19:07]requested_item shift.open_date is exist - process it [17:19:07]req_shift_open_date [17:19:07]req_shift_open_date done [17:19:07]produce_requested_data done [17:19:07]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115714,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:19:07]process_action_free close_receipt [17:19:07]json_value_free [17:19:07]json_value_free done [17:19:07]process_json_proto returns [17:19:07]Send response to host [17:19:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115714,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:19:07]free response buf [17:19:07]execute_script done [17:19:07]execute_script returns [17:19:07]free content buf [17:19:07]Sock 7.Close socket [17:19:07]Sock 7.Thread stoped [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:46]accept exits with 9 [17:19:46]New connection [17:19:46]New thread 3066879332 created [17:19:46]Thread 3067022692 joined [17:19:46]Waiting for new connection... [17:19:46] Sock 9.Parse request [17:19:46]Sock 9.Check first char [17:19:46]Sock 9.First char is OK [17:19:46]request: POST /json_proto HTTP/1.0 [17:19:46]Method: POST [17:19:46]URL: /json_proto [17:19:46]Method is POST - this is cgi request [17:19:46]url: /json_proto [17:19:46]query_string will be loaded in cgi processing [17:19:46]execute_cgi json_proto POST (null) [17:19:46]execute_cgi path=json_proto method=POST [17:19:46]POST find Content-Length [17:19:46]Host: 172.17.41.136:8080 [17:19:46]Content-Length: 805 [17:19:46]Content-Type: application/json [17:19:46] [17:19:46]POST finish read [17:19:46]Found Content-Length = 805 [17:19:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:46]execute_script... [17:19: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)24617871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:46]POST & json_proto [17:19:46]process_json_proto [17:19:46]json parsed OK: [17:19:46]protocol is kg_v1.0 [17:19:46]action value=close_receipt [17:19:46]process_action close_receipt [17:19:46]cmd_close_receipt [17:19:46]MH_GetDate [17:19:46]Write to MH i2c: F0 00 00 F2 19 FA [17:19:46]Write i2c OK [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: F0 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: F0 09 00 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: F0 09 00 F2 19 00 33 A3 F1 66 1B D0 5A 64 D9 [17:19:46]GetLastDocTimeStamp 1727111944 [17:19:46]current date 1727111987 [17:19:46]FM_GetShiftState [17:19:46]SAM_PROTO_GetShiftState [17:19:46]wFMCommunicate request_size=4 [17:19:46]MH_SAM_APDU [17:19:46]CAPDU: 80 13 01 00 [17:19:46]Write to MH i2c: E2 08 00 F3 19 80 13 01 00 00 00 00 00 89 [17:19:46]Write i2c OK [17:19:46]MH_I2C_Read... [17:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:46]Read from MH i2c: E2 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 0E 00 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 0E 00 F3 19 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CA [17:19:46]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:19:46]wFMCommunicate OK [17:19:46]SAM_PROTO_GetShiftState done [17:19:46]FM_GetShiftState done [17:19:46]opened in 1727052070 [17:19:46]opened+sec_in_day 1727138470 [17:19:46]quantity*price = 100021 [17:19:46]sum+1 = 100023 [17:19:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 198 23.09.2024 17:19 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115715 ФПД: 169484326497352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171947&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115715&fm=169484326497352&tin=02508201610067®Number=0000000000091831&sum=100022 [17:19:47]StoreToDocumentArchive [17:19:47]shift 472 fd 115715 [17:19:47]save to /storage/0472/doc_00115715 [17:19:47]save last doc name /storage/0472/doc_00115715 to /storage/kkm_last_doc_name [17:19:47]save OK [17:19:47]Clear old archive folders... [17:19:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:47]tlvbuf is 01827030 [17:19:47]SAM_PROTO_ClearQueue [17:19:47]wFMCommunicate request_size=4 [17:19:47]MH_SAM_APDU [17:19:47]CAPDU: 80 09 00 00 [17:19:47]Write to MH i2c: E2 08 00 00 1A 80 09 00 00 00 00 00 00 8C [17:19:47]Write i2c OK [17:19:47]MH_I2C_Read... [17:19:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:47]Read from MH i2c: E2 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 03 00 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 03 00 00 1A 00 90 00 8E [17:19:47]RAPDU: 90 00 [17:19:47]wFMCommunicate OK [17:19:47]SAM_PROTO_ClearQueue done [17:19:47]KKMCreateOFDPacket [17:19:47]OFDProtocolAddRootSTLVToBuf [17:19:47]FM_MakeSignedData [17:19:47]FM_MakeSignedData [17:19:47]SAM_PROTO_SignData [17:19:47]wFMCommunicate request_size=4 [17:19:47]MH_SAM_APDU [17:19:47]CAPDU: 80 0D 01 02 [17:19:47]Write to MH i2c: E2 08 00 01 1A 80 0D 01 02 00 00 00 00 94 [17:19:47]Write i2c OK [17:19:47]MH_I2C_Read... [17:19:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:47]Read from MH i2c: E2 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 03 00 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 03 00 01 1A 00 90 00 8F [17:19:47]RAPDU: 90 00 [17:19:47]wFMCommunicate OK [17:19:47]wFMCommunicate request_size=255 [17:19:47]MH_SAM_APDU [17:19: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 35 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 C6 00 00 00 F4 03 04 00 33 A3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 03 C4 01 00 35 04 06 00 9A [17:19:47]Write to MH i2c: E2 02 01 02 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 35 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 C6 00 00 00 F4 03 04 00 33 A3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 03 C4 01 00 35 04 06 00 9A 00 00 92 [17:19:47]Write i2c OK [17:19:47]MH_I2C_Read... [17:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:48]Read from MH i2c: E2 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 03 00 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 03 00 02 1A 00 90 00 90 [17:19:48]RAPDU: 90 00 [17:19:48]wFMCommunicate OK [17:19:48]wFMCommunicate request_size=10 [17:19:48]MH_SAM_APDU [17:19:48]CAPDU: 80 0D 02 02 05 25 25 13 6C 48 [17:19:48]Write to MH i2c: E2 0D 00 03 1A 80 0D 02 02 05 00 25 25 13 6C 48 00 00 B2 [17:19:48]Write i2c OK [17:19:48]MH_I2C_Read... [17:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:48]Read from MH i2c: E2 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 03 00 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 03 00 03 1A 00 90 00 91 [17:19:48]RAPDU: 90 00 [17:19:48]wFMCommunicate OK [17:19:48]wFMCommunicate request_size=4 [17:19:48]MH_SAM_APDU [17:19:48]CAPDU: 80 0D 03 02 [17:19:48]Write to MH i2c: E2 08 00 04 1A 80 0D 03 02 00 00 00 00 99 [17:19:48]Write i2c OK [17:19:48]MH_I2C_Read... [17:19:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:48]Read from MH i2c: E2 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 0B 00 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 0B 00 04 1A 00 14 89 E3 68 EE 26 5F 5B 90 00 50 [17:19:48]RAPDU: 14 89 E3 68 EE 26 5F 5B 90 00 [17:19:48]wFMCommunicate OK [17:19:48]SAM_PROTO_SignData done [17:19:48]FM_MakeSignedData done [17:19:48]CreateOFDProtocolMessage [17:19:48]wFMCommunicate request_size=4 [17:19:48]MH_SAM_APDU [17:19:48]CAPDU: 80 11 00 00 [17:19:48]Write to MH i2c: E2 08 00 05 1A 80 11 00 00 00 00 00 00 99 [17:19:48]Write i2c OK [17:19:48]MH_I2C_Read... [17:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:48]Read from MH i2c: E2 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 17 00 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 17 00 05 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E7 [17:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:19:48]wFMCommunicate OK [17:19:48]CreateOFDProtocolMessage done [17:19:48]OFDSenderStorePacket 115715 [17:19:48]StoreOFDPacket docnum=115715 [17:19:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 9D EA 07 01 BA 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 C6 00 00 00 F4 03 04 00 33 A3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 03 C4 01 00 35 04 06 00 9A 25 25 13 6C 48 14 89 E3 68 EE 26 5F 5B [17:19:48]CheckFolder [17:19:48]dirname=/storage/ofd_packets [17:19:48]CheckFolder done [17:19:48]ProducePacketName [17:19:48]name=ofd_packets/00115715 [17:19:48]NVStorageSaveData ofd_packets/00115715 [17:19:48]File name is /storage/ofd_packets/00115715 [17:19:48]Write 301 bytes [17:19:48]NVStorageSaveData done [17:19:48]OFDSenderStorePacket done [17:19:48]KKMCreateOFDPacket done [17:19:48]NVStorageSaveData kkm_last_timestamp [17:19:48]File name is /storage/kkm_last_timestamp [17:19:48]Write 4 bytes [17:19:48]NVStorageSaveData done [17:19:48]ExternCall_PrintAddStr [17:19:48]wPrintStart [17:19:48]Write to MH i2c: 01 00 00 06 1A 20 [17:19:48]Write i2c OK [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: 01 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: 01 07 00 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: 01 07 00 06 1A 00 00 00 00 00 FF 0F 35 [17:19:48]RasterBufferAndPrint [17:19:48]line Счет N : (1)24617871 [17:19:48]line ИНН: 02508201610067 [17:19:48]line Контрольно-Кассовый Чек [17:19:48]line ПРОДАЖА [17:19:48]line ТРК (МРК, ГНК) : 62 [17:19:48]line Товар: 2710124500 [17:19:48]line Аи-95-К-5 [17:19:48]line 13.480 * 74.20 [17:19:48]line = 1000.22 [17:19:48]line НДС 12% НСП 1% [17:19:48]line > о реализуемом товаре [17:19:48]line ИТОГО: 1000.22 [17:19:48]line НСП 1% : 8.85 [17:19:48]line НДС 12% : 106.22 [17:19:48]line Наличными: 0.00 [17:19:48]line Безнал.: 1000.22 [17:19:48]line Место: АЗС № 90 "Партнер Нефть" [17:19:48]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:19:48]line СНО: Общий режим [17:19:48]line Чек 198 23.09.2024 17:19 [17:19:48]line Смена: 472 ФФД: 1.0 [17:19:48]line ЗНМ: 0300000120 [17:19:48]line РНМ: 0000000000091831 [17:19:48]line Версия ККМ: 001 [17:19:48]line Платежная система: O! деньги [17:19:48]line ФМ: 0000000000871830 [17:19:48]line ФД: 115715 [17:19:48]line ФПД: 169484326497352 [17:19:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T171947&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115715&fm=169484326497352&tin=02508201610067®Number=0000000000091831&sum=100022 [17:19:48]written 0, free lines is 4095 [17:19:48]OFD Sender: Processing packet 115715 [packets to send 482, broken 481] [17:19:48]ProducePacketName [17:19:48]name=ofd_packets/00115715 [17:19:48]OFD Sender: To server: pG, [17:19:48]CommunicateWithHost lk.salyk.kg:30040 [17:19:48]ConnectInit lk.salyk.kg [17:19:48]Connected sock=10 [17:19: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 38 33 30 0F 01 00 00 9D EA 07 01 BA 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 C6 00 00 00 F4 03 04 00 33 A3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 03 C4 01 00 35 04 06 00 9A 25 25 13 6C 48 14 89 E3 68 EE 26 5F 5B [17:19:48]Write to MH i2c: 01 00 00 2F 1A 49 [17:19:48]Write i2c OK [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: 01 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: 01 07 00 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: 01 07 00 2F 1A 00 00 00 00 00 6E 0C CA [17:19:48]RasterBufferAndPrint [17:19:48]line [17:19:48]line [17:19:48]line [17:19:48]line [17:19:48]line [17:19:48]written 0, free lines is 3186 [17:19:48]MH_Cut [17:19:48]Write to MH i2c: D1 01 00 36 1A 01 22 [17:19:48]Write i2c OK [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: D1 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: D1 01 00 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: D1 01 00 36 1A 00 21 [17:19:48]Write to MH i2c: 01 00 00 37 1A 51 [17:19:48]Write i2c OK [17:19:48]MH_I2C_Read... [17:19:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D4 EB 47 00 C3 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 03 C4 01 00 F4 03 04 00 75 48 F1 66 B6 04 01 00 00 DC 06 C9 59 F7 5F 16 BE [17:19:48]CommunicateWithHost err = 0 [17:19:48]CheckOFDResponse [17:19:48]1017 (14) - 77093643461234 [17:19:48]1041 (16) - 0000000000871830 [17:19:48]1040 (4) - 115715 [17:19:48]1012 (4) - 23.09.2024 10:52 [17:19:48]1206 (1) - 0 [17:19:48]OFD Sender: Remove packet 115715 [17:19:48]ProducePacketName [17:19:48]name=ofd_packets/00115715 [17:19:48]NVStorageDeleteData [17:19:49]OFD Sender: No OFD packet to send [17:19:50]*** Cut start [17:19:50]*** Partial cut [17:19:50]*** CUTSNS_PIN = 1 [17:19:50]*** CUTSNS_PIN = 0 [17:19:50]*** Brake cut motor [17:19:50]Read from MH i2c: 01 [17:19:50]MH_I2C_Read... [17:19:50]*** Stop cut motor [17:19:50]*** Cut end [17:19:50]Read from MH i2c: 01 07 00 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: 01 07 00 37 1A 00 00 00 00 00 FF 0F 66 [17:19:50]process_action close_receipt done [17:19:50]requested_data is exist [17:19:50]produce_requested_data [17:19:50]requested_item fm.sn is exist - process it [17:19:50]wFMCommunicate request_size=4 [17:19:50]MH_SAM_APDU [17:19:50]CAPDU: 80 11 00 00 [17:19:50]Write to MH i2c: E2 08 00 38 1A 80 11 00 00 00 00 00 00 CC [17:19:50]Write i2c OK [17:19:50]MH_I2C_Read... [17:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:50]Read from MH i2c: E2 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 17 00 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 17 00 38 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1A [17:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:19:50]wFMCommunicate OK [17:19:50]requested_item fd.num is exist - process it [17:19:50]SAM_PROTO_GetFieldsCounters [17:19:50]wFMCommunicate request_size=4 [17:19:50]MH_SAM_APDU [17:19:50]CAPDU: 80 13 00 00 [17:19:50]Write to MH i2c: E2 08 00 39 1A 80 13 00 00 00 00 00 00 CF [17:19:50]Write i2c OK [17:19:50]MH_I2C_Read... [17:19:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:50]Read from MH i2c: E2 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 62 00 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 62 00 39 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 03 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [17:19: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 03 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:50]wFMCommunicate OK [17:19:50]SAM_PROTO_GetFieldsCounters done [17:19:50]requested_item shift.num is exist - process it [17:19:50]requested_item shift.opened is exist - process it [17:19:50]req_shift_opened [17:19:50]FM_GetShiftState [17:19:50]SAM_PROTO_GetShiftState [17:19:50]wFMCommunicate request_size=4 [17:19:50]MH_SAM_APDU [17:19:50]CAPDU: 80 13 01 00 [17:19:50]Write to MH i2c: E2 08 00 3A 1A 80 13 01 00 00 00 00 00 D1 [17:19:50]Write i2c OK [17:19:50]MH_I2C_Read... [17:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:50]Read from MH i2c: E2 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 0E 00 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 0E 00 3A 1A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 12 [17:19:50]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:19:50]wFMCommunicate OK [17:19:50]SAM_PROTO_GetShiftState done [17:19:50]FM_GetShiftState done [17:19:50]req_shift_opened done [17:19:50]requested_item shift.open_date is exist - process it [17:19:50]req_shift_open_date [17:19:50]req_shift_open_date done [17:19:50]produce_requested_data done [17:19:50]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115715,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:19:50]process_action_free close_receipt [17:19:50]json_value_free [17:19:50]json_value_free done [17:19:50]process_json_proto returns [17:19:50]Send response to host [17:19:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115715,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:19:50]free response buf [17:19:50]execute_script done [17:19:50]execute_script returns [17:19:50]free content buf [17:19:50]Sock 9.Close socket [17:19:50]Sock 9.Thread stoped [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:51]accept exits with 7 [17:20:51]New connection [17:20:51]New thread 3067022692 created [17:20:51]Thread 3066879332 joined [17:20:51]Waiting for new connection... [17:20:51] Sock 7.Parse request [17:20:51]Sock 7.Check first char [17:20:51]Sock 7.First char is OK [17:20:51]request: POST /json_proto HTTP/1.0 [17:20:51]Method: POST [17:20:51]URL: /json_proto [17:20:51]Method is POST - this is cgi request [17:20:51]url: /json_proto [17:20:51]query_string will be loaded in cgi processing [17:20:51]execute_cgi json_proto POST (null) [17:20:51]execute_cgi path=json_proto method=POST [17:20:51]POST find Content-Length [17:20:51]Host: 172.17.41.136:8080 [17:20:51]Content-Length: 802 [17:20:51]Content-Type: application/json [17:20:51] [17:20:51]POST finish read [17:20:51]Found Content-Length = 802 [17:20:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:51]execute_script... [17:20:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:51]POST & json_proto [17:20:51]process_json_proto [17:20:51]json parsed OK: [17:20:51]protocol is kg_v1.0 [17:20:51]action value=close_receipt [17:20:51]process_action close_receipt [17:20:51]cmd_close_receipt [17:20:51]MH_GetDate [17:20:51]Write to MH i2c: F0 00 00 3B 1A 44 [17:20:51]Write i2c OK [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: F0 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: F0 09 00 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: F0 09 00 3B 1A 00 74 A3 F1 66 1B D0 5A 64 64 [17:20:51]GetLastDocTimeStamp 1727111987 [17:20:51]current date 1727112052 [17:20:51]FM_GetShiftState [17:20:51]SAM_PROTO_GetShiftState [17:20:51]wFMCommunicate request_size=4 [17:20:51]MH_SAM_APDU [17:20:51]CAPDU: 80 13 01 00 [17:20:51]Write to MH i2c: E2 08 00 3C 1A 80 13 01 00 00 00 00 00 D3 [17:20:51]Write i2c OK [17:20:51]MH_I2C_Read... [17:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:51]Read from MH i2c: E2 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: E2 0E 00 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: E2 0E 00 3C 1A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 14 [17:20:51]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:20:51]wFMCommunicate OK [17:20:51]SAM_PROTO_GetShiftState done [17:20:51]FM_GetShiftState done [17:20:51]opened in 1727052070 [17:20:51]opened+sec_in_day 1727138470 [17:20:51]quantity*price = 200025 [17:20:51]sum+1 = 200026 [17:20:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 199 23.09.2024 17:20 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115716 ФПД: 38618074438286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T172052&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115716&fm=38618074438286&tin=02508201610067®Number=0000000000091831&sum=200025 [17:20:52]StoreToDocumentArchive [17:20:52]shift 472 fd 115716 [17:20:52]save to /storage/0472/doc_00115716 [17:20:52]save last doc name /storage/0472/doc_00115716 to /storage/kkm_last_doc_name [17:20:52]save OK [17:20:52]Clear old archive folders... [17:20:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:20:52]tlvbuf is 017BC6C0 [17:20:52]SAM_PROTO_ClearQueue [17:20:52]wFMCommunicate request_size=4 [17:20:52]MH_SAM_APDU [17:20:52]CAPDU: 80 09 00 00 [17:20:52]Write to MH i2c: E2 08 00 49 1A 80 09 00 00 00 00 00 00 D5 [17:20:52]Write i2c OK [17:20:52]MH_I2C_Read... [17:20:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:52]Read from MH i2c: E2 [17:20:52]MH_I2C_Read... [17:20:52]Read from MH i2c: E2 03 00 [17:20:52]MH_I2C_Read... [17:20:52]Read from MH i2c: E2 03 00 49 1A 00 90 00 D7 [17:20:52]RAPDU: 90 00 [17:20:52]wFMCommunicate OK [17:20:52]SAM_PROTO_ClearQueue done [17:20:52]KKMCreateOFDPacket [17:20:52]OFDProtocolAddRootSTLVToBuf [17:20:52]FM_MakeSignedData [17:20:52]FM_MakeSignedData [17:20:52]SAM_PROTO_SignData [17:20:52]wFMCommunicate request_size=4 [17:20:52]MH_SAM_APDU [17:20:52]CAPDU: 80 0D 01 02 [17:20:52]Write to MH i2c: E2 08 00 4A 1A 80 0D 01 02 00 00 00 00 DD [17:20:52]Write i2c OK [17:20:52]MH_I2C_Read... [17:20:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:52]Read from MH i2c: E2 [17:20:52]MH_I2C_Read... [17:20:52]Read from MH i2c: E2 03 00 [17:20:52]MH_I2C_Read... [17:20:52]Read from MH i2c: E2 03 00 4A 1A 00 90 00 D8 [17:20:52]RAPDU: 90 00 [17:20:52]wFMCommunicate OK [17:20:52]wFMCommunicate request_size=255 [17:20:52]MH_SAM_APDU [17:20:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 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 C7 00 00 00 F4 03 04 00 74 A3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 04 C4 01 00 35 04 06 00 23 1F 78 9B [17:20:52]Write to MH i2c: E2 02 01 4B 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C7 00 00 00 F4 03 04 00 74 A3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 04 C4 01 00 35 04 06 00 23 1F 78 9B 00 00 A6 [17:20:52]Write i2c OK [17:20:52]MH_I2C_Read... [17:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:53]Read from MH i2c: E2 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 03 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 03 00 4B 1A 00 90 00 D9 [17:20:53]RAPDU: 90 00 [17:20:53]wFMCommunicate OK [17:20:53]wFMCommunicate request_size=7 [17:20:53]MH_SAM_APDU [17:20:53]CAPDU: 80 0D 02 02 02 DA 8E [17:20:53]Write to MH i2c: E2 0A 00 4C 1A 80 0D 02 02 02 00 DA 8E 00 00 4C [17:20:53]Write i2c OK [17:20:53]MH_I2C_Read... [17:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:53]Read from MH i2c: E2 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 03 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 03 00 4C 1A 00 90 00 DA [17:20:53]RAPDU: 90 00 [17:20:53]wFMCommunicate OK [17:20:53]wFMCommunicate request_size=4 [17:20:53]MH_SAM_APDU [17:20:53]CAPDU: 80 0D 03 02 [17:20:53]Write to MH i2c: E2 08 00 4D 1A 80 0D 03 02 00 00 00 00 E2 [17:20:53]Write i2c OK [17:20:53]MH_I2C_Read... [17:20:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:53]Read from MH i2c: E2 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 0B 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 0B 00 4D 1A 00 02 5F 4C 6A 6A 7A FD EF 90 00 CA [17:20:53]RAPDU: 02 5F 4C 6A 6A 7A FD EF 90 00 [17:20:53]wFMCommunicate OK [17:20:53]SAM_PROTO_SignData done [17:20:53]FM_MakeSignedData done [17:20:53]CreateOFDProtocolMessage [17:20:53]wFMCommunicate request_size=4 [17:20:53]MH_SAM_APDU [17:20:53]CAPDU: 80 11 00 00 [17:20:53]Write to MH i2c: E2 08 00 4E 1A 80 11 00 00 00 00 00 00 E2 [17:20:53]Write i2c OK [17:20:53]MH_I2C_Read... [17:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:53]Read from MH i2c: E2 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 17 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 17 00 4E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 30 [17:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:20:53]wFMCommunicate OK [17:20:53]CreateOFDProtocolMessage done [17:20:53]OFDSenderStorePacket 115716 [17:20:53]StoreOFDPacket docnum=115716 [17:20:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 81 5A 04 01 14 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 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C7 00 00 00 F4 03 04 00 74 A3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 04 C4 01 00 35 04 06 00 23 1F 78 9B DA 8E 02 5F 4C 6A 6A 7A FD EF [17:20:53]CheckFolder [17:20:53]dirname=/storage/ofd_packets [17:20:53]CheckFolder done [17:20:53]ProducePacketName [17:20:53]name=ofd_packets/00115716 [17:20:53]NVStorageSaveData ofd_packets/00115716 [17:20:53]File name is /storage/ofd_packets/00115716 [17:20:53]Write 298 bytes [17:20:53]NVStorageSaveData done [17:20:53]OFDSenderStorePacket done [17:20:53]KKMCreateOFDPacket done [17:20:53]NVStorageSaveData kkm_last_timestamp [17:20:53]File name is /storage/kkm_last_timestamp [17:20:53]Write 4 bytes [17:20:53]NVStorageSaveData done [17:20:53]ExternCall_PrintAddStr [17:20:53]wPrintStart [17:20:53]Write to MH i2c: 01 00 00 4F 1A 69 [17:20:53]Write i2c OK [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: 01 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: 01 07 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: 01 07 00 4F 1A 00 00 00 00 00 FF 0F 7E [17:20:53]RasterBufferAndPrint [17:20:53]line Счет N : (1)24617872 [17:20:53]line ИНН: 02508201610067 [17:20:53]line Контрольно-Кассовый Чек [17:20:53]line ПРОДАЖА [17:20:53]line ТРК (МРК, ГНК) : 22 [17:20:53]line Товар: 2710194210 [17:20:53]line ДТ-К-5 [17:20:53]line 26.250 * 76.20 [17:20:53]line = 2000.25 [17:20:53]line НДС 12% НСП 1% [17:20:53]line > о реализуемом товаре [17:20:53]line ИТОГО: 2000.25 [17:20:53]line НСП 1% : 17.70 [17:20:53]line НДС 12% : 212.42 [17:20:53]line Наличными: 0.00 [17:20:53]line Безнал.: 2000.25 [17:20:53]line Место: АЗС № 90 "Партнер Нефть" [17:20:53]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:20:53]line СНО: Общий режим [17:20:53]line Чек 199 23.09.2024 17:20 [17:20:53]line Смена: 472 ФФД: 1.0 [17:20:53]line ЗНМ: 0300000120 [17:20:53]line РНМ: 0000000000091831 [17:20:53]line Версия ККМ: 001 [17:20:53]line Платежная система: O! деньги [17:20:53]line ФМ: 0000000000871830 [17:20:53]line ФД: 115716 [17:20:53]line ФПД: 38618074438286 [17:20:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T172052&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115716&fm=38618074438286&tin=02508201610067®Number=0000000000091831&sum=200025 [17:20:53]written 0, free lines is 4095 [17:20:53]OFD Sender: Processing packet 115716 [packets to send 482, broken 481] [17:20:53]ProducePacketName [17:20:53]name=ofd_packets/00115716 [17:20:53]OFD Sender: To server: pG, [17:20:53]CommunicateWithHost lk.salyk.kg:30040 [17:20:53]ConnectInit lk.salyk.kg [17:20:53]Connected sock=10 [17:20:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 81 5A 04 01 14 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 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C7 00 00 00 F4 03 04 00 74 A3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 04 C4 01 00 35 04 06 00 23 1F 78 9B DA 8E 02 5F 4C 6A 6A 7A FD EF [17:20:53]Write to MH i2c: 01 00 00 78 1A 92 [17:20:53]Write i2c OK [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: 01 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: 01 07 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: 01 07 00 78 1A 00 00 00 00 00 74 0C 19 [17:20:53]RasterBufferAndPrint [17:20:53]line [17:20:53]line [17:20:53]line [17:20:53]line [17:20:53]line [17:20:53]written 0, free lines is 3193 [17:20:53]MH_Cut [17:20:53]Write to MH i2c: D1 01 00 7F 1A 01 6B [17:20:53]Write i2c OK [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: D1 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: D1 01 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: D1 01 00 7F 1A 00 6A [17:20:53]Write to MH i2c: 01 00 00 80 1A 9A [17:20:53]Write i2c OK [17:20:53]MH_I2C_Read... [17:20:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 03 33 47 00 87 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 04 C4 01 00 F4 03 04 00 B6 48 F1 66 B6 04 01 00 00 E3 97 93 A6 3E 59 41 E7 [17:20:53]CommunicateWithHost err = 0 [17:20:53]CheckOFDResponse [17:20:53]1017 (14) - 77093643461234 [17:20:53]1041 (16) - 0000000000871830 [17:20:53]1040 (4) - 115716 [17:20:53]1012 (4) - 23.09.2024 10:53 [17:20:53]1206 (1) - 0 [17:20:53]OFD Sender: Remove packet 115716 [17:20:53]ProducePacketName [17:20:53]name=ofd_packets/00115716 [17:20:53]NVStorageDeleteData [17:20:54]OFD Sender: No OFD packet to send [17:20:54]*** Cut start [17:20:54]*** Partial cut [17:20:54]*** CUTSNS_PIN = 1 [17:20:54]*** CUTSNS_PIN = 0 [17:20:55]*** Brake cut motor [17:20:55]Read from MH i2c: 01 [17:20:55]MH_I2C_Read... [17:20:55]*** Stop cut motor [17:20:55]*** Cut end [17:20:55]Read from MH i2c: 01 07 00 [17:20:55]MH_I2C_Read... [17:20:55]Read from MH i2c: 01 07 00 80 1A 00 00 00 00 00 FF 0F AF [17:20:55]process_action close_receipt done [17:20:55]requested_data is exist [17:20:55]produce_requested_data [17:20:55]requested_item fm.sn is exist - process it [17:20:55]wFMCommunicate request_size=4 [17:20:55]MH_SAM_APDU [17:20:55]CAPDU: 80 11 00 00 [17:20:55]Write to MH i2c: E2 08 00 81 1A 80 11 00 00 00 00 00 00 15 [17:20:55]Write i2c OK [17:20:55]MH_I2C_Read... [17:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:55]Read from MH i2c: E2 [17:20:55]MH_I2C_Read... [17:20:55]Read from MH i2c: E2 17 00 [17:20:55]MH_I2C_Read... [17:20:55]Read from MH i2c: E2 17 00 81 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 63 [17:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:20:55]wFMCommunicate OK [17:20:55]requested_item fd.num is exist - process it [17:20:55]SAM_PROTO_GetFieldsCounters [17:20:55]wFMCommunicate request_size=4 [17:20:55]MH_SAM_APDU [17:20:55]CAPDU: 80 13 00 00 [17:20:55]Write to MH i2c: E2 08 00 82 1A 80 13 00 00 00 00 00 00 18 [17:20:55]Write i2c OK [17:20:55]MH_I2C_Read... [17:20:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:55]Read from MH i2c: E2 [17:20:55]MH_I2C_Read... [17:20:55]Read from MH i2c: E2 62 00 [17:20:55]MH_I2C_Read... [17:20:55]Read from MH i2c: E2 62 00 82 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 04 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [17:20:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 04 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:55]wFMCommunicate OK [17:20:55]SAM_PROTO_GetFieldsCounters done [17:20:55]requested_item shift.num is exist - process it [17:20:55]requested_item shift.opened is exist - process it [17:20:55]req_shift_opened [17:20:55]FM_GetShiftState [17:20:55]SAM_PROTO_GetShiftState [17:20:55]wFMCommunicate request_size=4 [17:20:55]MH_SAM_APDU [17:20:55]CAPDU: 80 13 01 00 [17:20:55]Write to MH i2c: E2 08 00 83 1A 80 13 01 00 00 00 00 00 1A [17:20:55]Write i2c OK [17:20:55]MH_I2C_Read... [17:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:55]Read from MH i2c: E2 [17:20:55]MH_I2C_Read... [17:20:55]Read from MH i2c: E2 0E 00 [17:20:55]MH_I2C_Read... [17:20:55]Read from MH i2c: E2 0E 00 83 1A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5B [17:20:55]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:20:55]wFMCommunicate OK [17:20:55]SAM_PROTO_GetShiftState done [17:20:55]FM_GetShiftState done [17:20:55]req_shift_opened done [17:20:55]requested_item shift.open_date is exist - process it [17:20:55]req_shift_open_date [17:20:55]req_shift_open_date done [17:20:55]produce_requested_data done [17:20:55]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115716,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:20:55]process_action_free close_receipt [17:20:55]json_value_free [17:20:55]json_value_free done [17:20:55]process_json_proto returns [17:20:55]Send response to host [17:20:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115716,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:20:55]free response buf [17:20:55]execute_script done [17:20:55]execute_script returns [17:20:55]free content buf [17:20:55]Sock 7.Close socket [17:20:55]Sock 7.Thread stoped [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:38]accept exits with 9 [17:24:38]New connection [17:24:38]New thread 3066879332 created [17:24:38]Thread 3067022692 joined [17:24:38]Waiting for new connection... [17:24:38] Sock 9.Parse request [17:24:38]Sock 9.Check first char [17:24:38]Sock 9.First char is OK [17:24:38]request: POST /json_proto HTTP/1.0 [17:24:38]Method: POST [17:24:38]URL: /json_proto [17:24:38]Method is POST - this is cgi request [17:24:38]url: /json_proto [17:24:38]query_string will be loaded in cgi processing [17:24:38]execute_cgi json_proto POST (null) [17:24:38]execute_cgi path=json_proto method=POST [17:24:38]POST find Content-Length [17:24:38]Host: 172.17.41.136:8080 [17:24:38]Content-Length: 1044 [17:24:38]Content-Type: application/json [17:24:38] [17:24:38]POST finish read [17:24:38]Found Content-Length = 1044 [17:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344056", "tax_sys" : 0, "items" : [ { "code": "4700028325357", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 0,5\u043B", "price" : 390.00, "quantity" : 1.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:38]execute_script... [17:24:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344056", "tax_sys" : 0, "items" : [ { "code": "4700028325357", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 0,5\u043B", "price" : 390.00, "quantity" : 1.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:38]POST & json_proto [17:24:38]process_json_proto [17:24:38]json parsed OK: [17:24:38]protocol is kg_v1.0 [17:24:38]action value=close_receipt [17:24:38]process_action close_receipt [17:24:38]cmd_close_receipt [17:24:38]MH_GetDate [17:24:38]Write to MH i2c: F0 00 00 84 1A 8D [17:24:38]Write i2c OK [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: F0 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: F0 09 00 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: F0 09 00 84 1A 00 57 A4 F1 66 1B D0 5A 64 91 [17:24:38]GetLastDocTimeStamp 1727112052 [17:24:38]current date 1727112279 [17:24:38]FM_GetShiftState [17:24:38]SAM_PROTO_GetShiftState [17:24:38]wFMCommunicate request_size=4 [17:24:38]MH_SAM_APDU [17:24:38]CAPDU: 80 13 01 00 [17:24:38]Write to MH i2c: E2 08 00 85 1A 80 13 01 00 00 00 00 00 1C [17:24:38]Write i2c OK [17:24:38]MH_I2C_Read... [17:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:38]Read from MH i2c: E2 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: E2 0E 00 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: E2 0E 00 85 1A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5D [17:24:38]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:24:38]wFMCommunicate OK [17:24:38]SAM_PROTO_GetShiftState done [17:24:38]FM_GetShiftState done [17:24:38]opened in 1727052070 [17:24:38]opened+sec_in_day 1727138470 [17:24:38]quantity*price = 39000 [17:24:38]sum+1 = 39001 [17:24:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 200 23.09.2024 17:24 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115717 ФПД: 80606877049254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T172439&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115717&fm=80606877049254&tin=02508201610067®Number=0000000000091831&sum=50000 0 [17:24:39]StoreToDocumentArchive [17:24:39]shift 472 fd 115717 [17:24:39]save to /storage/0472/doc_00115717 [17:24:39]save last doc name /storage/0472/doc_00115717 to /storage/kkm_last_doc_name [17:24:39]save OK [17:24:39]Clear old archive folders... [17:24:39]ProcessDocumentItem done err = 0, tmpTLVsize=373 [17:24:39]tlvbuf is 0180E390 [17:24:39]SAM_PROTO_ClearQueue [17:24:39]wFMCommunicate request_size=4 [17:24:39]MH_SAM_APDU [17:24:39]CAPDU: 80 09 00 00 [17:24:39]Write to MH i2c: E2 08 00 92 1A 80 09 00 00 00 00 00 00 1E [17:24:39]Write i2c OK [17:24:39]MH_I2C_Read... [17:24:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:39]Read from MH i2c: E2 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: E2 03 00 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: E2 03 00 92 1A 00 90 00 20 [17:24:39]RAPDU: 90 00 [17:24:39]wFMCommunicate OK [17:24:39]SAM_PROTO_ClearQueue done [17:24:39]KKMCreateOFDPacket [17:24:39]OFDProtocolAddRootSTLVToBuf [17:24:39]FM_MakeSignedData [17:24:39]FM_MakeSignedData [17:24:39]SAM_PROTO_SignData [17:24:39]wFMCommunicate request_size=4 [17:24:39]MH_SAM_APDU [17:24:39]CAPDU: 80 0D 01 02 [17:24:39]Write to MH i2c: E2 08 00 93 1A 80 0D 01 02 00 00 00 00 26 [17:24:39]Write i2c OK [17:24:39]MH_I2C_Read... [17:24:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:39]Read from MH i2c: E2 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: E2 03 00 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: E2 03 00 93 1A 00 90 00 21 [17:24:39]RAPDU: 90 00 [17:24:39]wFMCommunicate OK [17:24:39]wFMCommunicate request_size=255 [17:24:39]MH_SAM_APDU [17:24:39]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 [17:24:39]Write to MH i2c: E2 02 01 94 1A 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 00 00 A2 [17:24:39]Write i2c OK [17:24:39]MH_I2C_Read... [17:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:40]Read from MH i2c: E2 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 03 00 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 03 00 94 1A 00 90 00 22 [17:24:40]RAPDU: 90 00 [17:24:40]wFMCommunicate OK [17:24:40]wFMCommunicate request_size=132 [17:24:40]MH_SAM_APDU [17:24:40]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 57 A4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 05 C4 01 00 35 04 06 00 49 4F C0 45 E1 A6 [17:24:40]Write to MH i2c: E2 87 00 95 1A 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 57 A4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 05 C4 01 00 35 04 06 00 49 4F C0 45 E1 A6 00 00 20 [17:24:40]Write i2c OK [17:24:40]MH_I2C_Read... [17:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:40]Read from MH i2c: E2 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 03 00 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 03 00 95 1A 00 90 00 23 [17:24:40]RAPDU: 90 00 [17:24:40]wFMCommunicate OK [17:24:40]wFMCommunicate request_size=4 [17:24:40]MH_SAM_APDU [17:24:40]CAPDU: 80 0D 03 02 [17:24:40]Write to MH i2c: E2 08 00 96 1A 80 0D 03 02 00 00 00 00 2B [17:24:40]Write i2c OK [17:24:40]MH_I2C_Read... [17:24:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:40]Read from MH i2c: E2 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 0B 00 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 0B 00 96 1A 00 20 C5 8B 08 D6 BC 2D 39 90 00 9C [17:24:40]RAPDU: 20 C5 8B 08 D6 BC 2D 39 90 00 [17:24:40]wFMCommunicate OK [17:24:40]SAM_PROTO_SignData done [17:24:40]FM_MakeSignedData done [17:24:40]CreateOFDProtocolMessage [17:24:40]wFMCommunicate request_size=4 [17:24:40]MH_SAM_APDU [17:24:40]CAPDU: 80 11 00 00 [17:24:40]Write to MH i2c: E2 08 00 97 1A 80 11 00 00 00 00 00 00 2B [17:24:40]Write i2c OK [17:24:40]MH_I2C_Read... [17:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:40]Read from MH i2c: E2 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 17 00 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 17 00 97 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 79 [17:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:24:40]wFMCommunicate OK [17:24:40]CreateOFDProtocolMessage done [17:24:40]OFDSenderStorePacket 115717 [17:24:40]StoreOFDPacket docnum=115717 [17:24:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 89 01 00 00 97 56 81 01 07 9A 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 57 A4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 05 C4 01 00 35 04 06 00 49 4F C0 45 E1 A6 20 C5 8B 08 D6 BC 2D 39 [17:24:40]CheckFolder [17:24:40]dirname=/storage/ofd_packets [17:24:40]CheckFolder done [17:24:40]ProducePacketName [17:24:40]name=ofd_packets/00115717 [17:24:40]NVStorageSaveData ofd_packets/00115717 [17:24:40]File name is /storage/ofd_packets/00115717 [17:24:40]Write 423 bytes [17:24:40]NVStorageSaveData done [17:24:40]OFDSenderStorePacket done [17:24:40]KKMCreateOFDPacket done [17:24:40]NVStorageSaveData kkm_last_timestamp [17:24:40]File name is /storage/kkm_last_timestamp [17:24:40]Write 4 bytes [17:24:40]NVStorageSaveData done [17:24:40]ExternCall_PrintAddStr [17:24:40]wPrintStart [17:24:40]Write to MH i2c: 01 00 00 98 1A B2 [17:24:40]Write i2c OK [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: 01 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: 01 07 00 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: 01 07 00 98 1A 00 00 00 00 00 FF 0F C7 [17:24:40]RasterBufferAndPrint [17:24:40]line Счет N : (3)344056 [17:24:40]line ИНН: 02508201610067 [17:24:40]line Контрольно-Кассовый Чек [17:24:40]line ПРОДАЖА [17:24:40]line Товар: 4700028325357 [17:24:40]line Водка Антивирус 0,5л [17:24:40]line 1.000 * 390.00 [17:24:40]line = 390.00 [17:24:40]line НДС 12% НСП 1% [17:24:40]line > о реализуемом товаре [17:24:40]line Товар: 4870001570071 [17:24:40]line Напиток Pepsi 1л [17:24:40]line 1.000 * 110.00 [17:24:40]line = 110.00 [17:24:40]line НДС 12% НСП 1% [17:24:40]line > о реализуемом товаре [17:24:40]line ИТОГО: 500.00 [17:24:40]line НСП 1% : 4.42 [17:24:40]line НДС 12% : 53.10 [17:24:40]line Наличными: 0.00 [17:24:40]line Безнал.: 500.00 [17:24:40]line Место: АЗС № 90 "Партнер Нефть" [17:24:40]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:24:40]line СНО: Общий режим [17:24:40]line Чек 200 23.09.2024 17:24 [17:24:40]line Смена: 472 ФФД: 1.0 [17:24:40]line ЗНМ: 0300000120 [17:24:40]line РНМ: 0000000000091831 [17:24:40]line Версия ККМ: 001 [17:24:40]line Платежная система: O! деньги [17:24:40]line ФМ: 0000000000871830 [17:24:40]line ФД: 115717 [17:24:40]line ФПД: 80606877049254 [17:24:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T172439&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115717&fm=80606877049254&tin=02508201610067®Number=0000000000091831&sum=50000 [17:24:40]line 0 [17:24:40]OFD Sender: Processing packet 115717 [packets to send 482, broken 481] [17:24:40]ProducePacketName [17:24:40]name=ofd_packets/00115717 [17:24:40]OFD Sender: To server: pG, [17:24:40]CommunicateWithHost lk.salyk.kg:30040 [17:24:40]ConnectInit lk.salyk.kg [17:24:40]written 0, free lines is 4095 [17:24:41]Connected sock=10 [17:24:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 89 01 00 00 97 56 81 01 07 9A 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 57 A4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 05 C4 01 00 35 04 06 00 49 4F C0 45 E1 A6 20 C5 8B 08 D6 BC 2D 39 [17:24:41]Write to MH i2c: 01 00 00 C7 1A E1 [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: 01 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: 01 07 00 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: 01 07 00 C7 1A 00 00 00 00 00 E2 0B D5 [17:24:41]RasterBufferAndPrint [17:24:41]line [17:24:41]line [17:24:41]line [17:24:41]line [17:24:41]line [17:24:41]written 0, free lines is 3045 [17:24:41]MH_Cut [17:24:41]Write to MH i2c: D1 01 00 CE 1A 01 BA [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: D1 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: D1 01 00 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: D1 01 00 CE 1A 00 B9 [17:24:41]Write to MH i2c: 01 00 00 CF 1A E9 [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 25 16 47 00 74 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 38 33 30 10 04 04 00 05 C4 01 00 F4 03 04 00 9A 49 F1 66 B6 04 01 00 00 13 F1 F5 CF 3E C4 A3 03 [17:24:41]CommunicateWithHost err = 0 [17:24:41]CheckOFDResponse [17:24:41]1017 (14) - 77093643461234 [17:24:41]1041 (16) - 0000000000871830 [17:24:41]1040 (4) - 115717 [17:24:41]1012 (4) - 23.09.2024 10:57 [17:24:41]1206 (1) - 0 [17:24:41]OFD Sender: Remove packet 115717 [17:24:41]ProducePacketName [17:24:41]name=ofd_packets/00115717 [17:24:41]NVStorageDeleteData [17:24:41]OFD Sender: No OFD packet to send [17:24:42]*** Cut start [17:24:42]*** Partial cut [17:24:42]*** CUTSNS_PIN = 1 [17:24:42]*** CUTSNS_PIN = 0 [17:24:43]*** Brake cut motor [17:24:43]Read from MH i2c: 01 [17:24:43]MH_I2C_Read... [17:24:43]*** Stop cut motor [17:24:43]*** Cut end [17:24:43]Read from MH i2c: 01 07 00 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: 01 07 00 CF 1A 00 00 00 00 00 FF 0F FE [17:24:43]process_action close_receipt done [17:24:43]requested_data is exist [17:24:43]produce_requested_data [17:24:43]requested_item fm.sn is exist - process it [17:24:43]wFMCommunicate request_size=4 [17:24:43]MH_SAM_APDU [17:24:43]CAPDU: 80 11 00 00 [17:24:43]Write to MH i2c: E2 08 00 D0 1A 80 11 00 00 00 00 00 00 64 [17:24:43]Write i2c OK [17:24:43]MH_I2C_Read... [17:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:43]Read from MH i2c: E2 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: E2 17 00 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: E2 17 00 D0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B2 [17:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:24:43]wFMCommunicate OK [17:24:43]requested_item fd.num is exist - process it [17:24:43]SAM_PROTO_GetFieldsCounters [17:24:43]wFMCommunicate request_size=4 [17:24:43]MH_SAM_APDU [17:24:43]CAPDU: 80 13 00 00 [17:24:43]Write to MH i2c: E2 08 00 D1 1A 80 13 00 00 00 00 00 00 67 [17:24:43]Write i2c OK [17:24:43]MH_I2C_Read... [17:24:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:43]Read from MH i2c: E2 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: E2 62 00 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: E2 62 00 D1 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 05 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [17:24: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 05 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:43]wFMCommunicate OK [17:24:43]SAM_PROTO_GetFieldsCounters done [17:24:43]requested_item shift.num is exist - process it [17:24:43]requested_item shift.opened is exist - process it [17:24:43]req_shift_opened [17:24:43]FM_GetShiftState [17:24:43]SAM_PROTO_GetShiftState [17:24:43]wFMCommunicate request_size=4 [17:24:43]MH_SAM_APDU [17:24:43]CAPDU: 80 13 01 00 [17:24:43]Write to MH i2c: E2 08 00 D2 1A 80 13 01 00 00 00 00 00 69 [17:24:43]Write i2c OK [17:24:43]MH_I2C_Read... [17:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:43]Read from MH i2c: E2 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: E2 0E 00 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: E2 0E 00 D2 1A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 AA [17:24:43]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:24:43]wFMCommunicate OK [17:24:43]SAM_PROTO_GetShiftState done [17:24:43]FM_GetShiftState done [17:24:43]req_shift_opened done [17:24:43]requested_item shift.open_date is exist - process it [17:24:43]req_shift_open_date [17:24:43]req_shift_open_date done [17:24:43]produce_requested_data done [17:24:43]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115717,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:24:43]process_action_free close_receipt [17:24:43]json_value_free [17:24:43]json_value_free done [17:24:43]process_json_proto returns [17:24:43]Send response to host [17:24:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115717,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:24:43]free response buf [17:24:43]execute_script done [17:24:43]execute_script returns [17:24:43]free content buf [17:24:43]Sock 9.Close socket [17:24:43]Sock 9.Thread stoped [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:40]accept exits with 7 [17:30:40]New connection [17:30:40]New thread 3067022692 created [17:30:40]Thread 3066879332 joined [17:30:40]Waiting for new connection... [17:30:40] Sock 7.Parse request [17:30:40]Sock 7.Check first char [17:30:40]Sock 7.First char is OK [17:30:40]request: POST /json_proto HTTP/1.0 [17:30:40]Method: POST [17:30:40]URL: /json_proto [17:30:40]Method is POST - this is cgi request [17:30:40]url: /json_proto [17:30:40]query_string will be loaded in cgi processing [17:30:40]execute_cgi json_proto POST (null) [17:30:40]execute_cgi path=json_proto method=POST [17:30:40]POST find Content-Length [17:30:40]Host: 172.17.41.136:8080 [17:30:40]Content-Length: 756 [17:30:40]Content-Type: application/json [17:30:40] [17:30:40]POST finish read [17:30:40]Found Content-Length = 756 [17:30:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30131942", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:40]execute_script... [17:30: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)24617880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30131942", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:40]POST & json_proto [17:30:40]process_json_proto [17:30:40]json parsed OK: [17:30:40]protocol is kg_v1.0 [17:30:40]action value=close_receipt [17:30:40]process_action close_receipt [17:30:40]cmd_close_receipt [17:30:40]MH_GetDate [17:30:40]Write to MH i2c: F0 00 00 D3 1A DC [17:30:40]Write i2c OK [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: F0 [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: F0 09 00 [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: F0 09 00 D3 1A 00 C1 A5 F1 66 1B D0 5A 64 4B [17:30:40]GetLastDocTimeStamp 1727112279 [17:30:40]current date 1727112641 [17:30:40]FM_GetShiftState [17:30:40]SAM_PROTO_GetShiftState [17:30:40]wFMCommunicate request_size=4 [17:30:40]MH_SAM_APDU [17:30:40]CAPDU: 80 13 01 00 [17:30:40]Write to MH i2c: E2 08 00 D4 1A 80 13 01 00 00 00 00 00 6B [17:30:40]Write i2c OK [17:30:40]MH_I2C_Read... [17:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:40]Read from MH i2c: E2 [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: E2 0E 00 [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: E2 0E 00 D4 1A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 AC [17:30:40]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:30:40]wFMCommunicate OK [17:30:40]SAM_PROTO_GetShiftState done [17:30:40]FM_GetShiftState done [17:30:40]opened in 1727052070 [17:30:40]opened+sec_in_day 1727138470 [17:30:40]quantity*price = 0 [17:30:40]sum+1 = 1 [17:30:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 201 23.09.2024 17:30 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30131942 ФМ: 0000000000871830 ФД: 115718 ФПД: 647750190593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173041&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115718&fm=647750190593&tin=02508201610067®Number=0000000000091831&sum=0 [17:30:41]StoreToDocumentArchive [17:30:41]shift 472 fd 115718 [17:30:41]save to /storage/0472/doc_00115718 [17:30:41]save last doc name /storage/0472/doc_00115718 to /storage/kkm_last_doc_name [17:30:41]save OK [17:30:41]Clear old archive folders... [17:30:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:41]tlvbuf is 01826EE0 [17:30:41]SAM_PROTO_ClearQueue [17:30:41]wFMCommunicate request_size=4 [17:30:41]MH_SAM_APDU [17:30:41]CAPDU: 80 09 00 00 [17:30:41]Write to MH i2c: E2 08 00 E1 1A 80 09 00 00 00 00 00 00 6D [17:30:41]Write i2c OK [17:30:41]MH_I2C_Read... [17:30:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:41]Read from MH i2c: E2 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: E2 03 00 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: E2 03 00 E1 1A 00 90 00 6F [17:30:41]RAPDU: 90 00 [17:30:41]wFMCommunicate OK [17:30:41]SAM_PROTO_ClearQueue done [17:30:41]KKMCreateOFDPacket [17:30:41]OFDProtocolAddRootSTLVToBuf [17:30:41]FM_MakeSignedData [17:30:41]FM_MakeSignedData [17:30:41]SAM_PROTO_SignData [17:30:41]wFMCommunicate request_size=4 [17:30:41]MH_SAM_APDU [17:30:41]CAPDU: 80 0D 01 02 [17:30:41]Write to MH i2c: E2 08 00 E2 1A 80 0D 01 02 00 00 00 00 75 [17:30:41]Write i2c OK [17:30:41]MH_I2C_Read... [17:30:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:41]Read from MH i2c: E2 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: E2 03 00 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: E2 03 00 E2 1A 00 90 00 70 [17:30:41]RAPDU: 90 00 [17:30:41]wFMCommunicate OK [17:30:41]wFMCommunicate request_size=255 [17:30:41]MH_SAM_APDU [17:30:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 C1 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 06 C4 01 00 35 04 06 00 00 [17:30:41]Write to MH i2c: E2 02 01 E3 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 C1 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 06 C4 01 00 35 04 06 00 00 00 00 D8 [17:30:41]Write i2c OK [17:30:41]MH_I2C_Read... [17:30:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:41]Read from MH i2c: E2 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: E2 03 00 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: E2 03 00 E3 1A 00 90 00 71 [17:30:41]RAPDU: 90 00 [17:30:41]wFMCommunicate OK [17:30:41]wFMCommunicate request_size=10 [17:30:41]MH_SAM_APDU [17:30:41]CAPDU: 80 0D 02 02 05 96 D0 EB 86 01 [17:30:41]Write to MH i2c: E2 0D 00 E4 1A 80 0D 02 02 05 00 96 D0 EB 86 01 00 00 5A [17:30:41]Write i2c OK [17:30:41]MH_I2C_Read... [17:30:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:41]Read from MH i2c: E2 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: E2 03 00 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: E2 03 00 E4 1A 00 90 00 72 [17:30:41]RAPDU: 90 00 [17:30:41]wFMCommunicate OK [17:30:41]wFMCommunicate request_size=4 [17:30:41]MH_SAM_APDU [17:30:41]CAPDU: 80 0D 03 02 [17:30:41]Write to MH i2c: E2 08 00 E5 1A 80 0D 03 02 00 00 00 00 7A [17:30:41]Write i2c OK [17:30:41]MH_I2C_Read... [17:30:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:41]Read from MH i2c: E2 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: E2 0B 00 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: E2 0B 00 E5 1A 00 D1 EA 7B 47 75 A6 4D 10 90 00 70 [17:30:41]RAPDU: D1 EA 7B 47 75 A6 4D 10 90 00 [17:30:41]wFMCommunicate OK [17:30:41]SAM_PROTO_SignData done [17:30:41]FM_MakeSignedData done [17:30:41]CreateOFDProtocolMessage [17:30:41]wFMCommunicate request_size=4 [17:30:41]MH_SAM_APDU [17:30:41]CAPDU: 80 11 00 00 [17:30:41]Write to MH i2c: E2 08 00 E6 1A 80 11 00 00 00 00 00 00 7A [17:30:41]Write i2c OK [17:30:41]MH_I2C_Read... [17:30:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:41]Read from MH i2c: E2 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: E2 17 00 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: E2 17 00 E6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C8 [17:30:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:30:41]wFMCommunicate OK [17:30:41]CreateOFDProtocolMessage done [17:30:41]OFDSenderStorePacket 115718 [17:30:41]StoreOFDPacket docnum=115718 [17:30:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 2F F1 07 01 83 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 C1 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 06 C4 01 00 35 04 06 00 00 96 D0 EB 86 01 D1 EA 7B 47 75 A6 4D 10 [17:30:41]CheckFolder [17:30:41]dirname=/storage/ofd_packets [17:30:41]CheckFolder done [17:30:41]ProducePacketName [17:30:41]name=ofd_packets/00115718 [17:30:41]NVStorageSaveData ofd_packets/00115718 [17:30:41]File name is /storage/ofd_packets/00115718 [17:30:41]Write 301 bytes [17:30:41]NVStorageSaveData done [17:30:41]OFDSenderStorePacket done [17:30:41]KKMCreateOFDPacket done [17:30:41]NVStorageSaveData kkm_last_timestamp [17:30:41]File name is /storage/kkm_last_timestamp [17:30:41]Write 4 bytes [17:30:41]NVStorageSaveData done [17:30:42]ExternCall_PrintAddStr [17:30:42]wPrintStart [17:30:42]Write to MH i2c: 01 00 00 E7 1A 01 [17:30:42]Write i2c OK [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: 01 [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: 01 07 00 [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: 01 07 00 E7 1A 00 00 00 00 00 FF 0F 16 [17:30:42]RasterBufferAndPrint [17:30:42]line Счет N : (1)24617880 [17:30:42]line ИНН: 02508201610067 [17:30:42]line Контрольно-Кассовый Чек [17:30:42]line ПРОДАЖА [17:30:42]line ТРК (МРК, ГНК) : 43 [17:30:42]line Товар: 2710124130 [17:30:42]line Аи-92-К-5 [17:30:42]line 10.000 * 0.00 [17:30:42]line = 0.00 [17:30:42]line НДС 12% НСП 1% [17:30:42]line > о реализуемом товаре [17:30:42]line ИТОГО: 0.00 [17:30:42]line НСП 1% : 0.00 [17:30:42]line НДС 12% : 0.00 [17:30:42]line Наличными: 0.00 [17:30:42]line Безнал.: 0.00 [17:30:42]line Место: АЗС № 90 "Партнер Нефть" [17:30:42]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:30:42]line СНО: Общий режим [17:30:42]line Чек 201 23.09.2024 17:30 [17:30:42]line Смена: 472 ФФД: 1.0 [17:30:42]line ЗНМ: 0300000120 [17:30:42]line РНМ: 0000000000091831 [17:30:42]line Версия ККМ: 001 [17:30:42]line Талоны: ТК ГПНА Online [17:30:42]line 30131942 [17:30:42]line ФМ: 0000000000871830 [17:30:42]line ФД: 115718 [17:30:42]line ФПД: 647750190593 [17:30:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173041&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115718&fm=647750190593&tin=02508201610067®Number=0000000000091831&sum=0 [17:30:42]written 0, free lines is 4095 [17:30:42]OFD Sender: Processing packet 115718 [packets to send 482, broken 481] [17:30:42]ProducePacketName [17:30:42]name=ofd_packets/00115718 [17:30:42]OFD Sender: To server: pG, [17:30:42]CommunicateWithHost lk.salyk.kg:30040 [17:30:42]ConnectInit lk.salyk.kg [17:30:42]Write to MH i2c: 01 00 00 10 1B 2B [17:30:42]Write i2c OK [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: 01 [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: 01 07 00 [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: 01 07 00 10 1B 00 00 00 00 00 6B 0C A9 [17:30:42]RasterBufferAndPrint [17:30:42]line [17:30:42]line [17:30:42]line [17:30:42]line [17:30:42]line [17:30:42]written 0, free lines is 3182 [17:30:42]MH_Cut [17:30:42]Write to MH i2c: D1 01 00 17 1B 01 04 [17:30:42]Write i2c OK [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: D1 [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: D1 01 00 [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: D1 01 00 17 1B 00 03 [17:30:42]Write to MH i2c: 01 00 00 18 1B 33 [17:30:42]Write i2c OK [17:30:42]MH_I2C_Read... [17:30:42]Connected sock=11 [17:30: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 38 33 30 0F 01 00 00 2F F1 07 01 83 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 C1 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 06 C4 01 00 35 04 06 00 00 96 D0 EB 86 01 D1 EA 7B 47 75 A6 4D 10 [17:30:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 97 38 47 00 76 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 38 33 30 10 04 04 00 06 C4 01 00 F4 03 04 00 03 4B F1 66 B6 04 01 00 00 40 F9 0A 56 05 82 BC E2 [17:30:42]CommunicateWithHost err = 0 [17:30:42]CheckOFDResponse [17:30:42]1017 (14) - 77093643461234 [17:30:42]1041 (16) - 0000000000871830 [17:30:42]1040 (4) - 115718 [17:30:42]1012 (4) - 23.09.2024 11:03 [17:30:42]1206 (1) - 0 [17:30:42]OFD Sender: Remove packet 115718 [17:30:42]ProducePacketName [17:30:42]name=ofd_packets/00115718 [17:30:42]NVStorageDeleteData [17:30:43]OFD Sender: No OFD packet to send [17:30:43]*** Cut start [17:30:43]*** Partial cut [17:30:43]*** CUTSNS_PIN = 1 [17:30:43]*** CUTSNS_PIN = 0 [17:30:44]*** Brake cut motor [17:30:44]Read from MH i2c: 01 [17:30:44]MH_I2C_Read... [17:30:44]*** Stop cut motor [17:30:44]*** Cut end [17:30:44]Read from MH i2c: 01 07 00 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: 01 07 00 18 1B 00 00 00 00 00 FF 0F 48 [17:30:44]process_action close_receipt done [17:30:44]requested_data is exist [17:30:44]produce_requested_data [17:30:44]requested_item fm.sn is exist - process it [17:30:44]wFMCommunicate request_size=4 [17:30:44]MH_SAM_APDU [17:30:44]CAPDU: 80 11 00 00 [17:30:44]Write to MH i2c: E2 08 00 19 1B 80 11 00 00 00 00 00 00 AE [17:30:44]Write i2c OK [17:30:44]MH_I2C_Read... [17:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:44]Read from MH i2c: E2 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 17 00 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 17 00 19 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FC [17:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:30:44]wFMCommunicate OK [17:30:44]requested_item fd.num is exist - process it [17:30:44]SAM_PROTO_GetFieldsCounters [17:30:44]wFMCommunicate request_size=4 [17:30:44]MH_SAM_APDU [17:30:44]CAPDU: 80 13 00 00 [17:30:44]Write to MH i2c: E2 08 00 1A 1B 80 13 00 00 00 00 00 00 B1 [17:30:44]Write i2c OK [17:30:44]MH_I2C_Read... [17:30:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:44]Read from MH i2c: E2 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 62 00 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 62 00 1A 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 06 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [17:30: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 06 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:44]wFMCommunicate OK [17:30:44]SAM_PROTO_GetFieldsCounters done [17:30:44]requested_item shift.num is exist - process it [17:30:44]requested_item shift.opened is exist - process it [17:30:44]req_shift_opened [17:30:44]FM_GetShiftState [17:30:44]SAM_PROTO_GetShiftState [17:30:44]wFMCommunicate request_size=4 [17:30:44]MH_SAM_APDU [17:30:44]CAPDU: 80 13 01 00 [17:30:44]Write to MH i2c: E2 08 00 1B 1B 80 13 01 00 00 00 00 00 B3 [17:30:44]Write i2c OK [17:30:44]MH_I2C_Read... [17:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:44]Read from MH i2c: E2 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 0E 00 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 0E 00 1B 1B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F4 [17:30:44]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:30:44]wFMCommunicate OK [17:30:44]SAM_PROTO_GetShiftState done [17:30:44]FM_GetShiftState done [17:30:44]req_shift_opened done [17:30:44]requested_item shift.open_date is exist - process it [17:30:44]req_shift_open_date [17:30:44]req_shift_open_date done [17:30:44]produce_requested_data done [17:30:44]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115718,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:30:44]process_action_free close_receipt [17:30:44]json_value_free [17:30:44]json_value_free done [17:30:44]process_json_proto returns [17:30:44]Send response to host [17:30:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115718,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:30:44]free response buf [17:30:44]execute_script done [17:30:44]execute_script returns [17:30:44]free content buf [17:30:44]Sock 7.Close socket [17:30:44]Sock 7.Thread stoped [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:57]accept exits with 9 [17:30:57]New connection [17:30:57]New thread 3066879332 created [17:30:57]Thread 3067022692 joined [17:30:57]Waiting for new connection... [17:30:57] Sock 9.Parse request [17:30:57]Sock 9.Check first char [17:30:57]Sock 9.First char is OK [17:30:57]request: POST /json_proto HTTP/1.0 [17:30:57]Method: POST [17:30:57]URL: /json_proto [17:30:57]Method is POST - this is cgi request [17:30:57]url: /json_proto [17:30:57]query_string will be loaded in cgi processing [17:30:57]execute_cgi json_proto POST (null) [17:30:57]execute_cgi path=json_proto method=POST [17:30:57]POST find Content-Length [17:30:57]Host: 172.17.41.136:8080 [17:30:57]Content-Length: 660 [17:30:57]Content-Type: application/json [17:30:57] [17:30:57]POST finish read [17:30:57]Found Content-Length = 660 [17:30:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 5.780, "sum" : 400.55, "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" ] } } [17:30:57]execute_script... [17:30: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)24617883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 5.780, "sum" : 400.55, "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" ] } } [17:30:57]POST & json_proto [17:30:57]process_json_proto [17:30:57]json parsed OK: [17:30:57]protocol is kg_v1.0 [17:30:57]action value=close_receipt [17:30:57]process_action close_receipt [17:30:57]cmd_close_receipt [17:30:57]MH_GetDate [17:30:57]Write to MH i2c: F0 00 00 1C 1B 26 [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: F0 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: F0 09 00 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: F0 09 00 1C 1B 00 D3 A5 F1 66 1B D0 5A 64 A7 [17:30:57]GetLastDocTimeStamp 1727112641 [17:30:57]current date 1727112659 [17:30:57]FM_GetShiftState [17:30:57]SAM_PROTO_GetShiftState [17:30:57]wFMCommunicate request_size=4 [17:30:57]MH_SAM_APDU [17:30:57]CAPDU: 80 13 01 00 [17:30:57]Write to MH i2c: E2 08 00 1D 1B 80 13 01 00 00 00 00 00 B5 [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:57]Read from MH i2c: E2 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: E2 0E 00 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: E2 0E 00 1D 1B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 F6 [17:30:57]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:30:57]wFMCommunicate OK [17:30:57]SAM_PROTO_GetShiftState done [17:30:57]FM_GetShiftState done [17:30:57]opened in 1727052070 [17:30:57]opened+sec_in_day 1727138470 [17:30:57]quantity*price = 40055 [17:30:57]sum+1 = 40056 [17:30:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 202 23.09.2024 17:30 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115719 ФПД: 226680838652385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173059&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115719&fm=226680838652385&tin=02508201610067®Number=0000000000091831&sum=40000 [17:30:59]StoreToDocumentArchive [17:30:59]shift 472 fd 115719 [17:30:59]save to /storage/0472/doc_00115719 [17:30:59]save last doc name /storage/0472/doc_00115719 to /storage/kkm_last_doc_name [17:30:59]save OK [17:30:59]Clear old archive folders... [17:30:59]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:30:59]tlvbuf is B6EEB830 [17:30:59]SAM_PROTO_ClearQueue [17:30:59]wFMCommunicate request_size=4 [17:30:59]MH_SAM_APDU [17:30:59]CAPDU: 80 09 00 00 [17:30:59]Write to MH i2c: E2 08 00 2A 1B 80 09 00 00 00 00 00 00 B7 [17:30:59]Write i2c OK [17:30:59]MH_I2C_Read... [17:30:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:59]Read from MH i2c: E2 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 03 00 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 03 00 2A 1B 00 90 00 B9 [17:30:59]RAPDU: 90 00 [17:30:59]wFMCommunicate OK [17:30:59]SAM_PROTO_ClearQueue done [17:30:59]KKMCreateOFDPacket [17:30:59]OFDProtocolAddRootSTLVToBuf [17:30:59]FM_MakeSignedData [17:30:59]FM_MakeSignedData [17:30:59]SAM_PROTO_SignData [17:30:59]wFMCommunicate request_size=4 [17:30:59]MH_SAM_APDU [17:30:59]CAPDU: 80 0D 01 02 [17:30:59]Write to MH i2c: E2 08 00 2B 1B 80 0D 01 02 00 00 00 00 BF [17:30:59]Write i2c OK [17:30:59]MH_I2C_Read... [17:30:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:59]Read from MH i2c: E2 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 03 00 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 03 00 2B 1B 00 90 00 BA [17:30:59]RAPDU: 90 00 [17:30:59]wFMCommunicate OK [17:30:59]wFMCommunicate request_size=253 [17:30:59]MH_SAM_APDU [17:30:59]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 77 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 9E 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 CA 00 00 00 F4 03 04 00 D3 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 07 C4 01 00 35 04 06 00 CE 2A 3E DD 81 E1 [17:30:59]Write to MH i2c: E2 00 01 2C 1B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 77 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 9E 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 CA 00 00 00 F4 03 04 00 D3 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 07 C4 01 00 35 04 06 00 CE 2A 3E DD 81 E1 00 00 D5 [17:30:59]Write i2c OK [17:30:59]MH_I2C_Read... [17:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:59]Read from MH i2c: E2 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 03 00 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 03 00 2C 1B 00 90 00 BB [17:30:59]RAPDU: 90 00 [17:30:59]wFMCommunicate OK [17:30:59]wFMCommunicate request_size=4 [17:30:59]MH_SAM_APDU [17:30:59]CAPDU: 80 0D 03 02 [17:30:59]Write to MH i2c: E2 08 00 2D 1B 80 0D 03 02 00 00 00 00 C3 [17:30:59]Write i2c OK [17:30:59]MH_I2C_Read... [17:30:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:59]Read from MH i2c: E2 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 0B 00 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 0B 00 2D 1B 00 F5 2E 31 DE 5B 08 D9 B4 90 00 E6 [17:30:59]RAPDU: F5 2E 31 DE 5B 08 D9 B4 90 00 [17:30:59]wFMCommunicate OK [17:30:59]SAM_PROTO_SignData done [17:30:59]FM_MakeSignedData done [17:30:59]CreateOFDProtocolMessage [17:30:59]wFMCommunicate request_size=4 [17:30:59]MH_SAM_APDU [17:30:59]CAPDU: 80 11 00 00 [17:30:59]Write to MH i2c: E2 08 00 2E 1B 80 11 00 00 00 00 00 00 C3 [17:30:59]Write i2c OK [17:30:59]MH_I2C_Read... [17:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:59]Read from MH i2c: E2 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 17 00 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 17 00 2E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 11 [17:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:30:59]wFMCommunicate OK [17:30:59]CreateOFDProtocolMessage done [17:30:59]OFDSenderStorePacket 115719 [17:30:59]StoreOFDPacket docnum=115719 [17:30:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 F2 09 00 01 FF 80 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 77 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 9E 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 CA 00 00 00 F4 03 04 00 D3 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 07 C4 01 00 35 04 06 00 CE 2A 3E DD 81 E1 F5 2E 31 DE 5B 08 D9 B4 [17:30:59]CheckFolder [17:30:59]dirname=/storage/ofd_packets [17:30:59]CheckFolder done [17:30:59]ProducePacketName [17:30:59]name=ofd_packets/00115719 [17:30:59]NVStorageSaveData ofd_packets/00115719 [17:30:59]File name is /storage/ofd_packets/00115719 [17:30:59]Write 294 bytes [17:30:59]NVStorageSaveData done [17:30:59]OFDSenderStorePacket done [17:30:59]KKMCreateOFDPacket done [17:30:59]NVStorageSaveData kkm_last_timestamp [17:30:59]File name is /storage/kkm_last_timestamp [17:30:59]Write 4 bytes [17:30:59]NVStorageSaveData done [17:30:59]ExternCall_PrintAddStr [17:30:59]wPrintStart [17:30:59]Write to MH i2c: 01 00 00 2F 1B 4A [17:30:59]Write i2c OK [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: 01 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: 01 07 00 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: 01 07 00 2F 1B 00 00 00 00 00 FF 0F 5F [17:30:59]RasterBufferAndPrint [17:30:59]line Счет N : (1)24617883 [17:30:59]line ИНН: 02508201610067 [17:30:59]line Контрольно-Кассовый Чек [17:30:59]line ПРОДАЖА [17:30:59]line ТРК (МРК, ГНК) : 54 [17:30:59]line Товар: 2710124130 [17:30:59]line SU-92 [17:30:59]line 5.780 * 69.30 [17:30:59]line = 400.55 [17:30:59]line НДС 12% НСП 1% [17:30:59]line > о реализуемом товаре [17:30:59]line ОКРУГЛЕНИЕ: -0.55 [17:30:59]line ИТОГО: 400.00 [17:30:59]line Внесено: 400.00 [17:30:59]line СДАЧА: 0.00 [17:30:59]line НСП 1% : 3.54 [17:30:59]line НДС 12% : 42.54 [17:30:59]line Наличными: 400.00 [17:30:59]line Безнал.: 0.00 [17:30:59]line Место: АЗС № 90 "Партнер Нефть" [17:30:59]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:30:59]line СНО: Общий режим [17:30:59]line Чек 202 23.09.2024 17:30 [17:30:59]line Смена: 472 ФФД: 1.0 [17:30:59]line ЗНМ: 0300000120 [17:30:59]line РНМ: 0000000000091831 [17:30:59]line Версия ККМ: 001 [17:30:59]line ФМ: 0000000000871830 [17:30:59]line ФД: 115719 [17:30:59]line ФПД: 226680838652385 [17:30:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173059&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115719&fm=226680838652385&tin=02508201610067®Number=0000000000091831&sum=40000 [17:30:59]OFD Sender: Processing packet 115719 [packets to send 482, broken 481] [17:30:59]ProducePacketName [17:30:59]name=ofd_packets/00115719 [17:30:59]OFD Sender: To server: pG, [17:30:59]CommunicateWithHost lk.salyk.kg:30040 [17:30:59]ConnectInit lk.salyk.kg [17:30:59]written 0, free lines is 4095 [17:31:00]Connected sock=10 [17:31: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 38 33 30 08 01 00 00 F2 09 00 01 FF 80 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 77 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 9E 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 CA 00 00 00 F4 03 04 00 D3 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 07 C4 01 00 35 04 06 00 CE 2A 3E DD 81 E1 F5 2E 31 DE 5B 08 D9 B4 [17:31:00]Write to MH i2c: 01 00 00 59 1B 74 [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: 01 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: 01 07 00 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: 01 07 00 59 1B 00 00 00 00 00 4D 0C D4 [17:31:00]RasterBufferAndPrint [17:31:00]line [17:31:00]line [17:31:00]line [17:31:00]line [17:31:00]line [17:31:00]written 0, free lines is 3153 [17:31:00]MH_Cut [17:31:00]Write to MH i2c: D1 01 00 60 1B 01 4D [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: D1 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: D1 01 00 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: D1 01 00 60 1B 00 4C [17:31:00]Write to MH i2c: 01 00 00 61 1B 7C [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 33 CC 47 00 C9 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 07 C4 01 00 F4 03 04 00 15 4B F1 66 B6 04 01 00 00 2B 10 BC 06 23 9C 7B 7C [17:31:00]CommunicateWithHost err = 0 [17:31:00]CheckOFDResponse [17:31:00]1017 (14) - 77093643461234 [17:31:00]1041 (16) - 0000000000871830 [17:31:00]1040 (4) - 115719 [17:31:00]1012 (4) - 23.09.2024 11:03 [17:31:00]1206 (1) - 0 [17:31:00]OFD Sender: Remove packet 115719 [17:31:00]ProducePacketName [17:31:00]name=ofd_packets/00115719 [17:31:00]NVStorageDeleteData [17:31:01]OFD Sender: No OFD packet to send [17:31:01]*** Cut start [17:31:01]*** Partial cut [17:31:01]*** CUTSNS_PIN = 1 [17:31:01]*** CUTSNS_PIN = 0 [17:31:01]*** Brake cut motor [17:31:02]Read from MH i2c: 01 [17:31:02]MH_I2C_Read... [17:31:02]*** Stop cut motor [17:31:02]*** Cut end [17:31:02]Read from MH i2c: 01 07 00 [17:31:02]MH_I2C_Read... [17:31:02]Read from MH i2c: 01 07 00 61 1B 00 00 00 00 00 FF 0F 91 [17:31:02]process_action close_receipt done [17:31:02]requested_data is exist [17:31:02]produce_requested_data [17:31:02]requested_item fm.sn is exist - process it [17:31:02]wFMCommunicate request_size=4 [17:31:02]MH_SAM_APDU [17:31:02]CAPDU: 80 11 00 00 [17:31:02]Write to MH i2c: E2 08 00 62 1B 80 11 00 00 00 00 00 00 F7 [17:31:02]Write i2c OK [17:31:02]MH_I2C_Read... [17:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:02]Read from MH i2c: E2 [17:31:02]MH_I2C_Read... [17:31:02]Read from MH i2c: E2 17 00 [17:31:02]MH_I2C_Read... [17:31:02]Read from MH i2c: E2 17 00 62 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 45 [17:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:31:02]wFMCommunicate OK [17:31:02]requested_item fd.num is exist - process it [17:31:02]SAM_PROTO_GetFieldsCounters [17:31:02]wFMCommunicate request_size=4 [17:31:02]MH_SAM_APDU [17:31:02]CAPDU: 80 13 00 00 [17:31:02]Write to MH i2c: E2 08 00 63 1B 80 13 00 00 00 00 00 00 FA [17:31:02]Write i2c OK [17:31:02]MH_I2C_Read... [17:31:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:02]Read from MH i2c: E2 [17:31:02]MH_I2C_Read... [17:31:02]Read from MH i2c: E2 62 00 [17:31:02]MH_I2C_Read... [17:31:02]Read from MH i2c: E2 62 00 63 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 07 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [17:31: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 07 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:02]wFMCommunicate OK [17:31:02]SAM_PROTO_GetFieldsCounters done [17:31:02]requested_item shift.num is exist - process it [17:31:02]requested_item shift.opened is exist - process it [17:31:02]req_shift_opened [17:31:02]FM_GetShiftState [17:31:02]SAM_PROTO_GetShiftState [17:31:02]wFMCommunicate request_size=4 [17:31:02]MH_SAM_APDU [17:31:02]CAPDU: 80 13 01 00 [17:31:02]Write to MH i2c: E2 08 00 64 1B 80 13 01 00 00 00 00 00 FC [17:31:02]Write i2c OK [17:31:02]MH_I2C_Read... [17:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:02]Read from MH i2c: E2 [17:31:02]MH_I2C_Read... [17:31:02]Read from MH i2c: E2 0E 00 [17:31:02]MH_I2C_Read... [17:31:02]Read from MH i2c: E2 0E 00 64 1B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 3D [17:31:02]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:31:02]wFMCommunicate OK [17:31:02]SAM_PROTO_GetShiftState done [17:31:02]FM_GetShiftState done [17:31:02]req_shift_opened done [17:31:02]requested_item shift.open_date is exist - process it [17:31:02]req_shift_open_date [17:31:02]req_shift_open_date done [17:31:02]produce_requested_data done [17:31:02]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115719,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:31:02]process_action_free close_receipt [17:31:02]json_value_free [17:31:02]json_value_free done [17:31:02]process_json_proto returns [17:31:02]Send response to host [17:31:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115719,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:31:02]free response buf [17:31:02]execute_script done [17:31:02]execute_script returns [17:31:02]free content buf [17:31:02]Sock 9.Close socket [17:31:02]Sock 9.Thread stoped [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:19]accept exits with 7 [17:31:19]New connection [17:31:19]New thread 3067022692 created [17:31:19]Thread 3066879332 joined [17:31:19]Waiting for new connection... [17:31:19] Sock 7.Parse request [17:31:19]Sock 7.Check first char [17:31:19]Sock 7.First char is OK [17:31:19]request: POST /json_proto HTTP/1.0 [17:31:19]Method: POST [17:31:19]URL: /json_proto [17:31:19]Method is POST - this is cgi request [17:31:19]url: /json_proto [17:31:19]query_string will be loaded in cgi processing [17:31:19]execute_cgi json_proto POST (null) [17:31:19]execute_cgi path=json_proto method=POST [17:31:19]POST find Content-Length [17:31:19]Host: 172.17.41.136:8080 [17:31:19]Content-Length: 679 [17:31:19]Content-Type: application/json [17:31:19] [17:31:19]POST finish read [17:31:19]Found Content-Length = 679 [17:31:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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" ] } } [17:31:19]execute_script... [17:31: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)24617882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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" ] } } [17:31:19]POST & json_proto [17:31:19]process_json_proto [17:31:19]json parsed OK: [17:31:19]protocol is kg_v1.0 [17:31:19]action value=close_receipt [17:31:19]process_action close_receipt [17:31:19]cmd_close_receipt [17:31:19]MH_GetDate [17:31:19]Write to MH i2c: F0 00 00 65 1B 6F [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: F0 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: F0 09 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: F0 09 00 65 1B 00 E8 A5 F1 66 1B D0 5A 64 05 [17:31:19]GetLastDocTimeStamp 1727112659 [17:31:19]current date 1727112680 [17:31:19]FM_GetShiftState [17:31:19]SAM_PROTO_GetShiftState [17:31:19]wFMCommunicate request_size=4 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 13 01 00 [17:31:19]Write to MH i2c: E2 08 00 66 1B 80 13 01 00 00 00 00 00 FE [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 0E 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 0E 00 66 1B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 3F [17:31:19]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:31:19]wFMCommunicate OK [17:31:19]SAM_PROTO_GetShiftState done [17:31:19]FM_GetShiftState done [17:31:19]opened in 1727052070 [17:31:19]opened+sec_in_day 1727138470 [17:31:19]quantity*price = 70044 [17:31:19]sum+1 = 70046 [17:31: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 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 203 23.09.2024 17:31 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115720 ФПД: 202725583299100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173120&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115720&fm=202725583299100&tin=02508201610067®Number=0000000000091831&sum=70000 [17:31:20]StoreToDocumentArchive [17:31:20]shift 472 fd 115720 [17:31:20]save to /storage/0472/doc_00115720 [17:31:20]save last doc name /storage/0472/doc_00115720 to /storage/kkm_last_doc_name [17:31:20]save OK [17:31:20]Clear old archive folders... [17:31:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:20]tlvbuf is 01813D40 [17:31:20]SAM_PROTO_ClearQueue [17:31:20]wFMCommunicate request_size=4 [17:31:20]MH_SAM_APDU [17:31:20]CAPDU: 80 09 00 00 [17:31:20]Write to MH i2c: E2 08 00 73 1B 80 09 00 00 00 00 00 00 00 [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:20]Read from MH i2c: E2 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: E2 03 00 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: E2 03 00 73 1B 00 90 00 02 [17:31:20]RAPDU: 90 00 [17:31:20]wFMCommunicate OK [17:31:20]SAM_PROTO_ClearQueue done [17:31:20]KKMCreateOFDPacket [17:31:20]OFDProtocolAddRootSTLVToBuf [17:31:20]FM_MakeSignedData [17:31:20]FM_MakeSignedData [17:31:20]SAM_PROTO_SignData [17:31:20]wFMCommunicate request_size=4 [17:31:20]MH_SAM_APDU [17:31:20]CAPDU: 80 0D 01 02 [17:31:20]Write to MH i2c: E2 08 00 74 1B 80 0D 01 02 00 00 00 00 08 [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:20]Read from MH i2c: E2 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: E2 03 00 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: E2 03 00 74 1B 00 90 00 03 [17:31:20]RAPDU: 90 00 [17:31:20]wFMCommunicate OK [17:31:20]wFMCommunicate request_size=255 [17:31:20]MH_SAM_APDU [17:31: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 35 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 CB 00 00 00 F4 03 04 00 E8 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 08 C4 01 00 35 04 06 00 B8 [17:31:20]Write to MH i2c: E2 02 01 75 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 35 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 CB 00 00 00 F4 03 04 00 E8 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 08 C4 01 00 35 04 06 00 B8 00 00 83 [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 75 1B 00 90 00 04 [17:31:21]RAPDU: 90 00 [17:31:21]wFMCommunicate OK [17:31:21]wFMCommunicate request_size=10 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 0D 02 02 05 60 BA 61 22 1C [17:31:21]Write to MH i2c: E2 0D 00 76 1B 80 0D 02 02 05 00 60 BA 61 22 1C 00 00 CE [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:21]OFD Sender: No OFD packet to send [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 76 1B 00 90 00 05 [17:31:21]RAPDU: 90 00 [17:31:21]wFMCommunicate OK [17:31:21]wFMCommunicate request_size=4 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 0D 03 02 [17:31:21]Write to MH i2c: E2 08 00 77 1B 80 0D 03 02 00 00 00 00 0D [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 0B 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 0B 00 77 1B 00 03 3D FA DD 0D EE 31 1D 90 00 6E [17:31:21]RAPDU: 03 3D FA DD 0D EE 31 1D 90 00 [17:31:21]wFMCommunicate OK [17:31:21]SAM_PROTO_SignData done [17:31:21]FM_MakeSignedData done [17:31:21]CreateOFDProtocolMessage [17:31:21]wFMCommunicate request_size=4 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 11 00 00 [17:31:21]Write to MH i2c: E2 08 00 78 1B 80 11 00 00 00 00 00 00 0D [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 17 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 17 00 78 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5B [17:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:31:21]wFMCommunicate OK [17:31:21]CreateOFDProtocolMessage done [17:31:21]OFDSenderStorePacket 115720 [17:31:21]StoreOFDPacket docnum=115720 [17:31:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 56 BD 07 01 52 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 CB 00 00 00 F4 03 04 00 E8 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 08 C4 01 00 35 04 06 00 B8 60 BA 61 22 1C 03 3D FA DD 0D EE 31 1D [17:31:21]CheckFolder [17:31:21]dirname=/storage/ofd_packets [17:31:21]CheckFolder done [17:31:21]ProducePacketName [17:31:21]name=ofd_packets/00115720 [17:31:21]NVStorageSaveData ofd_packets/00115720 [17:31:21]File name is /storage/ofd_packets/00115720 [17:31:21]Write 301 bytes [17:31:21]NVStorageSaveData done [17:31:21]OFDSenderStorePacket done [17:31:21]KKMCreateOFDPacket done [17:31:21]NVStorageSaveData kkm_last_timestamp [17:31:21]File name is /storage/kkm_last_timestamp [17:31:21]Write 4 bytes [17:31:21]NVStorageSaveData done [17:31:21]ExternCall_PrintAddStr [17:31:21]wPrintStart [17:31:21]Write to MH i2c: 01 00 00 79 1B 94 [17:31:21]OFD Sender: Processing packet 115720 [packets to send 482, broken 481] [17:31:21]ProducePacketName [17:31:21]name=ofd_packets/00115720 [17:31:21]OFD Sender: To server: pG, [17:31:21]CommunicateWithHost lk.salyk.kg:30040 [17:31:21]ConnectInit lk.salyk.kg [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: 01 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: 01 07 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: 01 07 00 79 1B 00 00 00 00 00 FF 0F A9 [17:31:21]RasterBufferAndPrint [17:31:21]line Счет N : (1)24617882 [17:31:21]line ИНН: 02508201610067 [17:31:21]line Контрольно-Кассовый Чек [17:31:21]line ПРОДАЖА [17:31:21]line ТРК (МРК, ГНК) : 62 [17:31:21]line Товар: 2710124500 [17:31:21]line Аи-95-К-5 [17:31:21]line 9.440 * 74.20 [17:31:21]line = 700.45 [17:31:21]line НДС 12% НСП 1% [17:31:21]line > о реализуемом товаре [17:31:21]line ОКРУГЛЕНИЕ: -0.45 [17:31:21]line ИТОГО: 700.00 [17:31:21]line Внесено: 700.00 [17:31:21]line СДАЧА: 0.00 [17:31:21]line НСП 1% : 6.20 [17:31:21]line НДС 12% : 74.38 [17:31:21]line Наличными: 700.00 [17:31:21]line Безнал.: 0.00 [17:31:21]line Место: АЗС № 90 "Партнер Нефть" [17:31:21]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:31:21]line СНО: Общий режим [17:31:21]line Чек 203 23.09.2024 17:31 [17:31:21]line Смена: 472 ФФД: 1.0 [17:31:21]line ЗНМ: 0300000120 [17:31:21]line РНМ: 0000000000091831 [17:31:21]line Версия ККМ: 001 [17:31:21]line ФМ: 0000000000871830 [17:31:21]line ФД: 115720 [17:31:21]line ФПД: 202725583299100 [17:31:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173120&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115720&fm=202725583299100&tin=02508201610067®Number=0000000000091831&sum=70000 [17:31:21]Connected sock=10 [17:31: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 38 33 30 0F 01 00 00 56 BD 07 01 52 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 CB 00 00 00 F4 03 04 00 E8 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 08 C4 01 00 35 04 06 00 B8 60 BA 61 22 1C 03 3D FA DD 0D EE 31 1D [17:31:21]written 0, free lines is 4095 [17:31:22]Write to MH i2c: 01 00 00 A3 1B BE [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 07 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 07 00 A3 1B 00 00 00 00 00 55 0C 26 [17:31:22]RasterBufferAndPrint [17:31:22]line [17:31:22]line [17:31:22]line [17:31:22]line [17:31:22]line [17:31:22]written 0, free lines is 3162 [17:31:22]MH_Cut [17:31:22]Write to MH i2c: D1 01 00 AA 1B 01 97 [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: D1 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: D1 01 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: D1 01 00 AA 1B 00 96 [17:31:22]Write to MH i2c: 01 00 00 AB 1B C6 [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D9 52 47 00 1F 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 38 33 30 10 04 04 00 08 C4 01 00 F4 03 04 00 2A 4B F1 66 B6 04 01 00 00 4F 9E C8 51 50 98 00 4E [17:31:22]CommunicateWithHost err = 0 [17:31:22]CheckOFDResponse [17:31:22]1017 (14) - 77093643461234 [17:31:22]1041 (16) - 0000000000871830 [17:31:22]1040 (4) - 115720 [17:31:22]1012 (4) - 23.09.2024 11:04 [17:31:22]1206 (1) - 0 [17:31:22]OFD Sender: Remove packet 115720 [17:31:22]ProducePacketName [17:31:22]name=ofd_packets/00115720 [17:31:22]NVStorageDeleteData [17:31:22]OFD Sender: No OFD packet to send [17:31:23]*** Cut start [17:31:23]*** Partial cut [17:31:23]*** CUTSNS_PIN = 1 [17:31:23]*** CUTSNS_PIN = 0 [17:31:23]*** Brake cut motor [17:31:23]Read from MH i2c: 01 [17:31:23]MH_I2C_Read... [17:31:23]*** Stop cut motor [17:31:23]*** Cut end [17:31:23]Read from MH i2c: 01 07 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: 01 07 00 AB 1B 00 00 00 00 00 FF 0F DB [17:31:23]process_action close_receipt done [17:31:23]requested_data is exist [17:31:23]produce_requested_data [17:31:23]requested_item fm.sn is exist - process it [17:31:23]wFMCommunicate request_size=4 [17:31:23]MH_SAM_APDU [17:31:23]CAPDU: 80 11 00 00 [17:31:23]Write to MH i2c: E2 08 00 AC 1B 80 11 00 00 00 00 00 00 41 [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:23]Read from MH i2c: E2 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 17 00 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 17 00 AC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8F [17:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:31:24]wFMCommunicate OK [17:31:24]requested_item fd.num is exist - process it [17:31:24]SAM_PROTO_GetFieldsCounters [17:31:24]wFMCommunicate request_size=4 [17:31:24]MH_SAM_APDU [17:31:24]CAPDU: 80 13 00 00 [17:31:24]Write to MH i2c: E2 08 00 AD 1B 80 13 00 00 00 00 00 00 44 [17:31:24]Write i2c OK [17:31:24]MH_I2C_Read... [17:31:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:24]Read from MH i2c: E2 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 62 00 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 62 00 AD 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 08 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [17:31: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 08 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:24]wFMCommunicate OK [17:31:24]SAM_PROTO_GetFieldsCounters done [17:31:24]requested_item shift.num is exist - process it [17:31:24]requested_item shift.opened is exist - process it [17:31:24]req_shift_opened [17:31:24]FM_GetShiftState [17:31:24]SAM_PROTO_GetShiftState [17:31:24]wFMCommunicate request_size=4 [17:31:24]MH_SAM_APDU [17:31:24]CAPDU: 80 13 01 00 [17:31:24]Write to MH i2c: E2 08 00 AE 1B 80 13 01 00 00 00 00 00 46 [17:31:24]Write i2c OK [17:31:24]MH_I2C_Read... [17:31:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:24]Read from MH i2c: E2 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 0E 00 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 0E 00 AE 1B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 87 [17:31:24]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:31:24]wFMCommunicate OK [17:31:24]SAM_PROTO_GetShiftState done [17:31:24]FM_GetShiftState done [17:31:24]req_shift_opened done [17:31:24]requested_item shift.open_date is exist - process it [17:31:24]req_shift_open_date [17:31:24]req_shift_open_date done [17:31:24]produce_requested_data done [17:31:24]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115720,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:31:24]process_action_free close_receipt [17:31:24]json_value_free [17:31:24]json_value_free done [17:31:24]process_json_proto returns [17:31:24]Send response to host [17:31:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115720,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:31:24]free response buf [17:31:24]execute_script done [17:31:24]execute_script returns [17:31:24]free content buf [17:31:24]Sock 7.Close socket [17:31:24]Sock 7.Thread stoped [17:31:27]OFD Sender: No OFD packet to send [17:31:30]accept exits with 9 [17:31:30]New connection [17:31:30]New thread 3066879332 created [17:31:30]Thread 3067022692 joined [17:31:30]Waiting for new connection... [17:31:30] Sock 9.Parse request [17:31:30]Sock 9.Check first char [17:31:30]Sock 9.First char is OK [17:31:30]request: POST /json_proto HTTP/1.0 [17:31:30]Method: POST [17:31:30]URL: /json_proto [17:31:30]Method is POST - this is cgi request [17:31:30]url: /json_proto [17:31:30]query_string will be loaded in cgi processing [17:31:30]execute_cgi json_proto POST (null) [17:31:30]execute_cgi path=json_proto method=POST [17:31:30]POST find Content-Length [17:31:30]Host: 172.17.41.136:8080 [17:31:30]Content-Length: 676 [17:31:30]Content-Type: application/json [17:31:30] [17:31:30]POST finish read [17:31:30]Found Content-Length = 676 [17:31:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:30]execute_script... [17:31: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)24617884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:30]POST & json_proto [17:31:30]process_json_proto [17:31:30]json parsed OK: [17:31:30]protocol is kg_v1.0 [17:31:30]action value=close_receipt [17:31:30]process_action close_receipt [17:31:30]cmd_close_receipt [17:31:30]MH_GetDate [17:31:30]Write to MH i2c: F0 00 00 AF 1B B9 [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: F0 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: F0 09 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: F0 09 00 AF 1B 00 F3 A5 F1 66 1B D0 5A 64 5A [17:31:30]GetLastDocTimeStamp 1727112680 [17:31:30]current date 1727112691 [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 B0 1B 80 13 01 00 00 00 00 00 48 [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 B0 1B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 89 [17:31:30]RAPDU: 09 00 01 26 B9 F0 66 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]opened in 1727052070 [17:31:30]opened+sec_in_day 1727138470 [17:31:30]quantity*price = 50063 [17:31:30]sum+1 = 50064 [17:31:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 204 23.09.2024 17:31 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115721 ФПД: 222716428515894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173131&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115721&fm=222716428515894&tin=02508201610067®Number=0000000000091831&sum=50000 [17:31:31]StoreToDocumentArchive [17:31:31]shift 472 fd 115721 [17:31:31]save to /storage/0472/doc_00115721 [17:31:31]save last doc name /storage/0472/doc_00115721 to /storage/kkm_last_doc_name [17:31:31]save OK [17:31:31]Clear old archive folders... [17:31:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:31:31]tlvbuf is 018058F0 [17:31:31]SAM_PROTO_ClearQueue [17:31:31]wFMCommunicate request_size=4 [17:31:31]MH_SAM_APDU [17:31:31]CAPDU: 80 09 00 00 [17:31:31]Write to MH i2c: E2 08 00 BD 1B 80 09 00 00 00 00 00 00 4A [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:31]Read from MH i2c: E2 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 03 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 03 00 BD 1B 00 90 00 4C [17:31:31]RAPDU: 90 00 [17:31:31]wFMCommunicate OK [17:31:31]SAM_PROTO_ClearQueue done [17:31:31]KKMCreateOFDPacket [17:31:31]OFDProtocolAddRootSTLVToBuf [17:31:31]FM_MakeSignedData [17:31:31]FM_MakeSignedData [17:31:31]SAM_PROTO_SignData [17:31:31]wFMCommunicate request_size=4 [17:31:31]MH_SAM_APDU [17:31:31]CAPDU: 80 0D 01 02 [17:31:31]Write to MH i2c: E2 08 00 BE 1B 80 0D 01 02 00 00 00 00 52 [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:31]Read from MH i2c: E2 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 03 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 03 00 BE 1B 00 90 00 4D [17:31:31]RAPDU: 90 00 [17:31:31]wFMCommunicate OK [17:31:31]wFMCommunicate request_size=255 [17:31:31]MH_SAM_APDU [17:31:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CC 00 00 00 F4 03 04 00 F3 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 09 C4 01 00 35 04 06 00 CA 8F 35 9B [17:31:31]Write to MH i2c: E2 02 01 BF 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CC 00 00 00 F4 03 04 00 F3 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 09 C4 01 00 35 04 06 00 CA 8F 35 9B 00 00 E2 [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:31]Read from MH i2c: E2 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 03 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 03 00 BF 1B 00 90 00 4E [17:31:31]RAPDU: 90 00 [17:31:31]wFMCommunicate OK [17:31:31]wFMCommunicate request_size=7 [17:31:31]MH_SAM_APDU [17:31:31]CAPDU: 80 0D 02 02 02 7A 36 [17:31:31]Write to MH i2c: E2 0A 00 C0 1B 80 0D 02 02 02 00 7A 36 00 00 09 [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:31]Read from MH i2c: E2 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 03 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 03 00 C0 1B 00 90 00 4F [17:31:31]RAPDU: 90 00 [17:31:31]wFMCommunicate OK [17:31:31]wFMCommunicate request_size=4 [17:31:31]MH_SAM_APDU [17:31:31]CAPDU: 80 0D 03 02 [17:31:31]Write to MH i2c: E2 08 00 C1 1B 80 0D 03 02 00 00 00 00 57 [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:31]Read from MH i2c: E2 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 0B 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 0B 00 C1 1B 00 32 54 91 CD F5 04 27 94 90 00 F0 [17:31:31]RAPDU: 32 54 91 CD F5 04 27 94 90 00 [17:31:31]wFMCommunicate OK [17:31:31]SAM_PROTO_SignData done [17:31:31]FM_MakeSignedData done [17:31:31]CreateOFDProtocolMessage [17:31:31]wFMCommunicate request_size=4 [17:31:31]MH_SAM_APDU [17:31:31]CAPDU: 80 11 00 00 [17:31:31]Write to MH i2c: E2 08 00 C2 1B 80 11 00 00 00 00 00 00 57 [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:31]Read from MH i2c: E2 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 17 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 17 00 C2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A5 [17:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:31:31]wFMCommunicate OK [17:31:31]CreateOFDProtocolMessage done [17:31:31]OFDSenderStorePacket 115721 [17:31:31]StoreOFDPacket docnum=115721 [17:31:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 8E F9 04 01 25 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 F3 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 09 C4 01 00 35 04 06 00 CA 8F 35 9B 7A 36 32 54 91 CD F5 04 27 94 [17:31:31]CheckFolder [17:31:31]dirname=/storage/ofd_packets [17:31:31]CheckFolder done [17:31:31]ProducePacketName [17:31:31]name=ofd_packets/00115721 [17:31:31]NVStorageSaveData ofd_packets/00115721 [17:31:31]File name is /storage/ofd_packets/00115721 [17:31:31]Write 298 bytes [17:31:31]NVStorageSaveData done [17:31:31]OFDSenderStorePacket done [17:31:31]KKMCreateOFDPacket done [17:31:31]NVStorageSaveData kkm_last_timestamp [17:31:31]File name is /storage/kkm_last_timestamp [17:31:31]Write 4 bytes [17:31:31]NVStorageSaveData done [17:31:31]ExternCall_PrintAddStr [17:31:31]wPrintStart [17:31:31]Write to MH i2c: 01 00 00 C3 1B DE [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 07 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 07 00 C3 1B 00 00 00 00 00 FF 0F F3 [17:31:31]RasterBufferAndPrint [17:31:31]line Счет N : (1)24617884 [17:31:31]line ИНН: 02508201610067 [17:31:31]line Контрольно-Кассовый Чек [17:31:31]line ПРОДАЖА [17:31:31]line ТРК (МРК, ГНК) : 11 [17:31:31]line Товар: 2710194210 [17:31:31]line ДТ-К-5 [17:31:31]line 6.570 * 76.20 [17:31:31]line = 500.63 [17:31:31]line НДС 12% НСП 1% [17:31:31]line > о реализуемом товаре [17:31:31]line ОКРУГЛЕНИЕ: -0.63 [17:31:31]line ИТОГО: 500.00 [17:31:31]line Внесено: 500.00 [17:31:31]line СДАЧА: 0.00 [17:31:31]line НСП 1% : 4.43 [17:31:31]line НДС 12% : 53.16 [17:31:31]line Наличными: 500.00 [17:31:31]line Безнал.: 0.00 [17:31:31]line Место: АЗС № 90 "Партнер Нефть" [17:31:31]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:31:31]line СНО: Общий режим [17:31:31]line Чек 204 23.09.2024 17:31 [17:31:31]line Смена: 472 ФФД: 1.0 [17:31:31]line ЗНМ: 0300000120 [17:31:31]line РНМ: 0000000000091831 [17:31:31]line Версия ККМ: 001 [17:31:31]line ФМ: 0000000000871830 [17:31:31]line ФД: 115721 [17:31:31]line ФПД: 222716428515894 [17:31:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173131&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115721&fm=222716428515894&tin=02508201610067®Number=0000000000091831&sum=50000 [17:31:31]OFD Sender: Processing packet 115721 [packets to send 482, broken 481] [17:31:31]ProducePacketName [17:31:31]name=ofd_packets/00115721 [17:31:31]OFD Sender: To server: pG, [17:31:31]CommunicateWithHost lk.salyk.kg:30040 [17:31:31]ConnectInit lk.salyk.kg [17:31:31]written 0, free lines is 4095 [17:31:32]Connected sock=11 [17:31: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 38 33 30 0C 01 00 00 8E F9 04 01 25 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 F3 A5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 09 C4 01 00 35 04 06 00 CA 8F 35 9B 7A 36 32 54 91 CD F5 04 27 94 [17:31:32]Write to MH i2c: 01 00 00 ED 1B 08 [17:31:32]Write i2c OK [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: 01 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: 01 07 00 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: 01 07 00 ED 1B 00 00 00 00 00 63 0C 7E [17:31:32]RasterBufferAndPrint [17:31:32]line [17:31:32]line [17:31:32]line [17:31:32]line [17:31:32]line [17:31:32]written 0, free lines is 3176 [17:31:32]MH_Cut [17:31:32]Write to MH i2c: D1 01 00 F4 1B 01 E1 [17:31:32]Write i2c OK [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: D1 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: D1 01 00 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: D1 01 00 F4 1B 00 E0 [17:31:32]Write to MH i2c: 01 00 00 F5 1B 10 [17:31:32]Write i2c OK [17:31:32]MH_I2C_Read... [17:31:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 FD F7 47 00 28 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 09 C4 01 00 F4 03 04 00 35 4B F1 66 B6 04 01 00 00 0F 63 B2 DF 4D 14 5F 2B [17:31:32]CommunicateWithHost err = 0 [17:31:32]CheckOFDResponse [17:31:32]1017 (14) - 77093643461234 [17:31:32]1041 (16) - 0000000000871830 [17:31:32]1040 (4) - 115721 [17:31:32]1012 (4) - 23.09.2024 11:04 [17:31:32]1206 (1) - 0 [17:31:32]OFD Sender: Remove packet 115721 [17:31:32]ProducePacketName [17:31:32]name=ofd_packets/00115721 [17:31:32]NVStorageDeleteData [17:31:33]OFD Sender: No OFD packet to send [17:31:33]*** Cut start [17:31:33]*** Partial cut [17:31:33]*** CUTSNS_PIN = 1 [17:31:33]*** CUTSNS_PIN = 0 [17:31:33]*** Brake cut motor [17:31:34]Read from MH i2c: 01 [17:31:34]MH_I2C_Read... [17:31:34]*** Stop cut motor [17:31:34]*** Cut end [17:31:34]Read from MH i2c: 01 07 00 [17:31:34]MH_I2C_Read... [17:31:34]Read from MH i2c: 01 07 00 F5 1B 00 00 00 00 00 FF 0F 25 [17:31:34]process_action close_receipt done [17:31:34]requested_data is exist [17:31:34]produce_requested_data [17:31:34]requested_item fm.sn is exist - process it [17:31:34]wFMCommunicate request_size=4 [17:31:34]MH_SAM_APDU [17:31:34]CAPDU: 80 11 00 00 [17:31:34]Write to MH i2c: E2 08 00 F6 1B 80 11 00 00 00 00 00 00 8B [17:31:34]Write i2c OK [17:31:34]MH_I2C_Read... [17:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:34]Read from MH i2c: E2 [17:31:34]MH_I2C_Read... [17:31:34]Read from MH i2c: E2 17 00 [17:31:34]MH_I2C_Read... [17:31:34]Read from MH i2c: E2 17 00 F6 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D9 [17:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:31:34]wFMCommunicate OK [17:31:34]requested_item fd.num is exist - process it [17:31:34]SAM_PROTO_GetFieldsCounters [17:31:34]wFMCommunicate request_size=4 [17:31:34]MH_SAM_APDU [17:31:34]CAPDU: 80 13 00 00 [17:31:34]Write to MH i2c: E2 08 00 F7 1B 80 13 00 00 00 00 00 00 8E [17:31:34]Write i2c OK [17:31:34]MH_I2C_Read... [17:31:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:34]Read from MH i2c: E2 [17:31:34]MH_I2C_Read... [17:31:34]Read from MH i2c: E2 62 00 [17:31:34]MH_I2C_Read... [17:31:34]Read from MH i2c: E2 62 00 F7 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 09 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [17:31: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 09 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:34]wFMCommunicate OK [17:31:34]SAM_PROTO_GetFieldsCounters done [17:31:34]requested_item shift.num is exist - process it [17:31:34]requested_item shift.opened is exist - process it [17:31:34]req_shift_opened [17:31:34]FM_GetShiftState [17:31:34]SAM_PROTO_GetShiftState [17:31:34]wFMCommunicate request_size=4 [17:31:34]MH_SAM_APDU [17:31:34]CAPDU: 80 13 01 00 [17:31:34]Write to MH i2c: E2 08 00 F8 1B 80 13 01 00 00 00 00 00 90 [17:31:34]Write i2c OK [17:31:34]MH_I2C_Read... [17:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:34]Read from MH i2c: E2 [17:31:34]MH_I2C_Read... [17:31:34]Read from MH i2c: E2 0E 00 [17:31:34]MH_I2C_Read... [17:31:34]Read from MH i2c: E2 0E 00 F8 1B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D1 [17:31:34]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:31:34]wFMCommunicate OK [17:31:34]SAM_PROTO_GetShiftState done [17:31:34]FM_GetShiftState done [17:31:34]req_shift_opened done [17:31:34]requested_item shift.open_date is exist - process it [17:31:34]req_shift_open_date [17:31:34]req_shift_open_date done [17:31:34]produce_requested_data done [17:31:34]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115721,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:31:34]process_action_free close_receipt [17:31:34]json_value_free [17:31:34]json_value_free done [17:31:34]process_json_proto returns [17:31:34]Send response to host [17:31:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115721,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:31:34]free response buf [17:31:34]execute_script done [17:31:34]execute_script returns [17:31:34]free content buf [17:31:34]Sock 9.Close socket [17:31:34]Sock 9.Thread stoped [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:41]accept exits with 7 [17:32:41]New connection [17:32:41]New thread 3067022692 created [17:32:41]Thread 3066879332 joined [17:32:41]Waiting for new connection... [17:32:41] Sock 7.Parse request [17:32:41]Sock 7.Check first char [17:32:41]Sock 7.First char is OK [17:32:41]request: POST /json_proto HTTP/1.0 [17:32:41]Method: POST [17:32:41]URL: /json_proto [17:32:41]Method is POST - this is cgi request [17:32:41]url: /json_proto [17:32:41]query_string will be loaded in cgi processing [17:32:41]execute_cgi json_proto POST (null) [17:32:41]execute_cgi path=json_proto method=POST [17:32:41]POST find Content-Length [17:32:41]Host: 172.17.41.136:8080 [17:32:41]Content-Length: 979 [17:32:41]Content-Type: application/json [17:32:41] [17:32:41]POST finish read [17:32:41]Found Content-Length = 979 [17:32:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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 90\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" ] } } [17:32:41]execute_script... [17:32: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)24617881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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 90\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" ] } } [17:32:41]POST & json_proto [17:32:41]process_json_proto [17:32:41]json parsed OK: [17:32:41]protocol is kg_v1.0 [17:32:41]action value=close_receipt [17:32:41]process_action close_receipt [17:32:41]cmd_close_receipt [17:32:41]MH_GetDate [17:32:41]Write to MH i2c: F0 00 00 F9 1B 03 [17:32:41]Write i2c OK [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: F0 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: F0 09 00 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: F0 09 00 F9 1B 00 3A A6 F1 66 1B D0 5A 64 EC [17:32:41]GetLastDocTimeStamp 1727112691 [17:32:41]current date 1727112762 [17:32:41]FM_GetShiftState [17:32:41]SAM_PROTO_GetShiftState [17:32:41]wFMCommunicate request_size=4 [17:32:41]MH_SAM_APDU [17:32:41]CAPDU: 80 13 01 00 [17:32:41]Write to MH i2c: E2 08 00 FA 1B 80 13 01 00 00 00 00 00 92 [17:32:41]Write i2c OK [17:32:41]MH_I2C_Read... [17:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:41]Read from MH i2c: E2 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 0E 00 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 0E 00 FA 1B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D3 [17:32:41]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:32:41]wFMCommunicate OK [17:32:41]SAM_PROTO_GetShiftState done [17:32:41]FM_GetShiftState done [17:32:41]opened in 1727052070 [17:32:41]opened+sec_in_day 1727138470 [17:32:41]quantity*price = 500004 [17:32:41]sum+1 = 500006 [17:32:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 205 23.09.2024 17:32 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Дисконтная программа ДТ номер 90 сэкономлено 66.49 сом ФМ: 0000000000871830 ФД: 115722 ФПД: 115529062845175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173242&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115722&fm=115529062845175&tin=02508201610067®Number=0000000000091831&sum=500000 [17:32:42]StoreToDocumentArchive [17:32:42]shift 472 fd 115722 [17:32:42]save to /storage/0472/doc_00115722 [17:32:42]save last doc name /storage/0472/doc_00115722 to /storage/kkm_last_doc_name [17:32:42]save OK [17:32:42]Clear old archive folders... [17:32:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:32:42]tlvbuf is 017D4970 [17:32:42]SAM_PROTO_ClearQueue [17:32:42]wFMCommunicate request_size=4 [17:32:42]MH_SAM_APDU [17:32:42]CAPDU: 80 09 00 00 [17:32:42]Write to MH i2c: E2 08 00 07 1C 80 09 00 00 00 00 00 00 95 [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:42]Read from MH i2c: E2 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 03 00 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 03 00 07 1C 00 90 00 97 [17:32:42]RAPDU: 90 00 [17:32:42]wFMCommunicate OK [17:32:42]SAM_PROTO_ClearQueue done [17:32:42]KKMCreateOFDPacket [17:32:42]OFDProtocolAddRootSTLVToBuf [17:32:42]FM_MakeSignedData [17:32:42]FM_MakeSignedData [17:32:42]SAM_PROTO_SignData [17:32:42]wFMCommunicate request_size=4 [17:32:42]MH_SAM_APDU [17:32:42]CAPDU: 80 0D 01 02 [17:32:42]Write to MH i2c: E2 08 00 08 1C 80 0D 01 02 00 00 00 00 9D [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:42]Read from MH i2c: E2 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 03 00 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 03 00 08 1C 00 90 00 98 [17:32:42]RAPDU: 90 00 [17:32:42]wFMCommunicate OK [17:32:42]wFMCommunicate request_size=255 [17:32:42]MH_SAM_APDU [17:32:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CD 00 00 00 F4 03 04 00 3A A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0A C4 01 00 35 04 06 00 69 12 B4 C0 [17:32:42]Write to MH i2c: E2 02 01 09 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CD 00 00 00 F4 03 04 00 3A A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0A C4 01 00 35 04 06 00 69 12 B4 C0 00 00 B8 [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:43]Read from MH i2c: E2 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 03 00 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 03 00 09 1C 00 90 00 99 [17:32:43]RAPDU: 90 00 [17:32:43]wFMCommunicate OK [17:32:43]wFMCommunicate request_size=7 [17:32:43]MH_SAM_APDU [17:32:43]CAPDU: 80 0D 02 02 02 8A F7 [17:32:43]Write to MH i2c: E2 0A 00 0A 1C 80 0D 02 02 02 00 8A F7 00 00 25 [17:32:43]Write i2c OK [17:32:43]MH_I2C_Read... [17:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:43]Read from MH i2c: E2 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 03 00 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 03 00 0A 1C 00 90 00 9A [17:32:43]RAPDU: 90 00 [17:32:43]wFMCommunicate OK [17:32:43]wFMCommunicate request_size=4 [17:32:43]MH_SAM_APDU [17:32:43]CAPDU: 80 0D 03 02 [17:32:43]Write to MH i2c: E2 08 00 0B 1C 80 0D 03 02 00 00 00 00 A2 [17:32:43]Write i2c OK [17:32:43]MH_I2C_Read... [17:32:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:43]Read from MH i2c: E2 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 0B 00 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 0B 00 0B 1C 00 C3 54 7E 0E 5F E7 26 DC 90 00 8E [17:32:43]RAPDU: C3 54 7E 0E 5F E7 26 DC 90 00 [17:32:43]wFMCommunicate OK [17:32:43]SAM_PROTO_SignData done [17:32:43]FM_MakeSignedData done [17:32:43]CreateOFDProtocolMessage [17:32:43]wFMCommunicate request_size=4 [17:32:43]MH_SAM_APDU [17:32:43]CAPDU: 80 11 00 00 [17:32:43]Write to MH i2c: E2 08 00 0C 1C 80 11 00 00 00 00 00 00 A2 [17:32:43]Write i2c OK [17:32:43]MH_I2C_Read... [17:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:43]Read from MH i2c: E2 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 17 00 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 17 00 0C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F0 [17:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:32:43]wFMCommunicate OK [17:32:43]CreateOFDProtocolMessage done [17:32:43]OFDSenderStorePacket 115722 [17:32:43]StoreOFDPacket docnum=115722 [17:32:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 6B 94 04 01 08 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CD 00 00 00 F4 03 04 00 3A A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0A C4 01 00 35 04 06 00 69 12 B4 C0 8A F7 C3 54 7E 0E 5F E7 26 DC [17:32:43]CheckFolder [17:32:43]dirname=/storage/ofd_packets [17:32:43]CheckFolder done [17:32:43]ProducePacketName [17:32:43]name=ofd_packets/00115722 [17:32:43]NVStorageSaveData ofd_packets/00115722 [17:32:43]File name is /storage/ofd_packets/00115722 [17:32:43]Write 298 bytes [17:32:43]NVStorageSaveData done [17:32:43]OFDSenderStorePacket done [17:32:43]KKMCreateOFDPacket done [17:32:43]NVStorageSaveData kkm_last_timestamp [17:32:43]File name is /storage/kkm_last_timestamp [17:32:43]Write 4 bytes [17:32:43]NVStorageSaveData done [17:32:43]ExternCall_PrintAddStr [17:32:43]wPrintStart [17:32:43]Write to MH i2c: 01 00 00 0D 1C 29 [17:32:43]Write i2c OK [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: 01 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: 01 07 00 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: 01 07 00 0D 1C 00 00 00 00 00 FF 0F 3E [17:32:43]RasterBufferAndPrint [17:32:43]line Счет N : (1)24617881 [17:32:43]line ИНН: 02508201610067 [17:32:43]line Контрольно-Кассовый Чек [17:32:43]line ПРОДАЖА [17:32:43]line ТРК (МРК, ГНК) : 22 [17:32:43]line Товар: 2710194210 [17:32:43]line ДТ-К-5 [17:32:43]line 66.490 * 75.20 [17:32:43]line = 5000.05 [17:32:43]line НДС 12% НСП 1% [17:32:43]line > о реализуемом товаре [17:32:43]line ОКРУГЛЕНИЕ: -0.05 [17:32:43]line ИТОГО: 5000.00 [17:32:43]line Внесено: 5000.00 [17:32:43]line СДАЧА: 0.00 [17:32:43]line НСП 1% : 44.25 [17:32:43]line НДС 12% : 530.98 [17:32:43]line Наличными: 5000.00 [17:32:43]line Безнал.: 0.00 [17:32:43]line Место: АЗС № 90 "Партнер Нефть" [17:32:43]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:32:43]line СНО: Общий режим [17:32:43]line Чек 205 23.09.2024 17:32 [17:32:43]line Смена: 472 ФФД: 1.0 [17:32:43]line ЗНМ: 0300000120 [17:32:43]line РНМ: 0000000000091831 [17:32:43]line Версия ККМ: 001 [17:32:43]line [17:32:43]line Дисконтная программа [17:32:43]line ДТ [17:32:43]line номер 90 [17:32:43]line сэкономлено 66.49 сом [17:32:43]line ФМ: 0000000000871830 [17:32:43]line ФД: 115722 [17:32:43]line ФПД: 115529062845175 [17:32:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173242&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115722&fm=115529062845175&tin=02508201610067®Number=0000000000091831&sum=500000 [17:32:43]OFD Sender: Processing packet 115722 [packets to send 482, broken 481] [17:32:43]ProducePacketName [17:32:43]name=ofd_packets/00115722 [17:32:43]OFD Sender: To server: pG, [17:32:43]CommunicateWithHost lk.salyk.kg:30040 [17:32:43]ConnectInit lk.salyk.kg [17:32:43]written 0, free lines is 4095 [17:32:43]Connected sock=10 [17:32: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 38 33 30 0C 01 00 00 6B 94 04 01 08 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CD 00 00 00 F4 03 04 00 3A A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0A C4 01 00 35 04 06 00 69 12 B4 C0 8A F7 C3 54 7E 0E 5F E7 26 DC [17:32:43]Write to MH i2c: 01 00 00 3C 1C 58 [17:32:43]Write i2c OK [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: 01 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: 01 07 00 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: 01 07 00 3C 1C 00 00 00 00 00 E9 0B 53 [17:32:43]RasterBufferAndPrint [17:32:43]line [17:32:43]line [17:32:43]line [17:32:43]line [17:32:43]line [17:32:43]written 0, free lines is 3053 [17:32:43]MH_Cut [17:32:43]Write to MH i2c: D1 01 00 43 1C 01 31 [17:32:43]Write i2c OK [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: D1 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: D1 01 00 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: D1 01 00 43 1C 00 30 [17:32:43]Write to MH i2c: 01 00 00 44 1C 60 [17:32:43]Write i2c OK [17:32:43]MH_I2C_Read... [17:32:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 5D 3B 47 00 66 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0A C4 01 00 F4 03 04 00 7C 4B F1 66 B6 04 01 00 00 81 3A F1 57 16 22 BF 3B [17:32:44]CommunicateWithHost err = 0 [17:32:44]CheckOFDResponse [17:32:44]1017 (14) - 77093643461234 [17:32:44]1041 (16) - 0000000000871830 [17:32:44]1040 (4) - 115722 [17:32:44]1012 (4) - 23.09.2024 11:05 [17:32:44]1206 (1) - 0 [17:32:44]OFD Sender: Remove packet 115722 [17:32:44]ProducePacketName [17:32:44]name=ofd_packets/00115722 [17:32:44]NVStorageDeleteData [17:32:44]OFD Sender: No OFD packet to send [17:32:45]*** Cut start [17:32:45]*** Partial cut [17:32:45]*** CUTSNS_PIN = 1 [17:32:45]*** CUTSNS_PIN = 0 [17:32:45]*** Brake cut motor [17:32:46]Read from MH i2c: 01 [17:32:46]MH_I2C_Read... [17:32:46]*** Stop cut motor [17:32:46]*** Cut end [17:32:46]Read from MH i2c: 01 07 00 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: 01 07 00 44 1C 00 00 00 00 00 FF 0F 75 [17:32:46]process_action close_receipt done [17:32:46]requested_data is exist [17:32:46]produce_requested_data [17:32:46]requested_item fm.sn is exist - process it [17:32:46]wFMCommunicate request_size=4 [17:32:46]MH_SAM_APDU [17:32:46]CAPDU: 80 11 00 00 [17:32:46]Write to MH i2c: E2 08 00 45 1C 80 11 00 00 00 00 00 00 DB [17:32:46]Write i2c OK [17:32:46]MH_I2C_Read... [17:32:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:46]Read from MH i2c: E2 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 17 00 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 17 00 45 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 29 [17:32:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:32:46]wFMCommunicate OK [17:32:46]requested_item fd.num is exist - process it [17:32:46]SAM_PROTO_GetFieldsCounters [17:32:46]wFMCommunicate request_size=4 [17:32:46]MH_SAM_APDU [17:32:46]CAPDU: 80 13 00 00 [17:32:46]Write to MH i2c: E2 08 00 46 1C 80 13 00 00 00 00 00 00 DE [17:32:46]Write i2c OK [17:32:46]MH_I2C_Read... [17:32:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:46]Read from MH i2c: E2 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 62 00 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 62 00 46 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0A C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [17:32: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0A C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:46]wFMCommunicate OK [17:32:46]SAM_PROTO_GetFieldsCounters done [17:32:46]requested_item shift.num is exist - process it [17:32:46]requested_item shift.opened is exist - process it [17:32:46]req_shift_opened [17:32:46]FM_GetShiftState [17:32:46]SAM_PROTO_GetShiftState [17:32:46]wFMCommunicate request_size=4 [17:32:46]MH_SAM_APDU [17:32:46]CAPDU: 80 13 01 00 [17:32:46]Write to MH i2c: E2 08 00 47 1C 80 13 01 00 00 00 00 00 E0 [17:32:46]Write i2c OK [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 [17:32:46]MH_I2C_Read... [17:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:46]Read from MH i2c: E2 0E 00 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 0E 00 47 1C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 21 [17:32:46]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:32:46]wFMCommunicate OK [17:32:46]SAM_PROTO_GetShiftState done [17:32:46]FM_GetShiftState done [17:32:46]req_shift_opened done [17:32:46]requested_item shift.open_date is exist - process it [17:32:46]req_shift_open_date [17:32:46]req_shift_open_date done [17:32:46]produce_requested_data done [17:32:46]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115722,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:32:46]process_action_free close_receipt [17:32:46]json_value_free [17:32:46]json_value_free done [17:32:46]process_json_proto returns [17:32:46]Send response to host [17:32:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115722,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:32:46]free response buf [17:32:46]execute_script done [17:32:46]execute_script returns [17:32:46]free content buf [17:32:46]Sock 7.Close socket [17:32:46]Sock 7.Thread stoped [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:30]accept exits with 9 [17:33:30]New connection [17:33:30]New thread 3066879332 created [17:33:30]Thread 3067022692 joined [17:33:30]Waiting for new connection... [17:33:30] Sock 9.Parse request [17:33:30]Sock 9.Check first char [17:33:30]Sock 9.First char is OK [17:33:30]request: POST /json_proto HTTP/1.0 [17:33:30]Method: POST [17:33:30]URL: /json_proto [17:33:30]Method is POST - this is cgi request [17:33:30]url: /json_proto [17:33:30]query_string will be loaded in cgi processing [17:33:30]execute_cgi json_proto POST (null) [17:33:30]execute_cgi path=json_proto method=POST [17:33:30]POST find Content-Length [17:33:30]Host: 172.17.41.136:8080 [17:33:30]Content-Length: 679 [17:33:30]Content-Type: application/json [17:33:30] [17:33:30]POST finish read [17:33:30]Found Content-Length = 679 [17:33:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:30]execute_script... [17:33: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)24617885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:30]POST & json_proto [17:33:30]process_json_proto [17:33:30]json parsed OK: [17:33:30]protocol is kg_v1.0 [17:33:30]action value=close_receipt [17:33:30]process_action close_receipt [17:33:30]cmd_close_receipt [17:33:30]MH_GetDate [17:33:30]Write to MH i2c: F0 00 00 48 1C 53 [17:33:30]Write i2c OK [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: F0 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: F0 09 00 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: F0 09 00 48 1C 00 6B A6 F1 66 1B D0 5A 64 6D [17:33:30]GetLastDocTimeStamp 1727112762 [17:33:30]current date 1727112811 [17:33:30]FM_GetShiftState [17:33:30]SAM_PROTO_GetShiftState [17:33:30]wFMCommunicate request_size=4 [17:33:30]MH_SAM_APDU [17:33:30]CAPDU: 80 13 01 00 [17:33:30]Write to MH i2c: E2 08 00 49 1C 80 13 01 00 00 00 00 00 E2 [17:33:30]Write i2c OK [17:33:30]MH_I2C_Read... [17:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:30]Read from MH i2c: E2 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: E2 0E 00 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: E2 0E 00 49 1C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 23 [17:33:30]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:33:30]wFMCommunicate OK [17:33:30]SAM_PROTO_GetShiftState done [17:33:30]FM_GetShiftState done [17:33:30]opened in 1727052070 [17:33:30]opened+sec_in_day 1727138470 [17:33:30]quantity*price = 30035 [17:33:30]sum+1 = 30036 [17:33:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 206 23.09.2024 17:33 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115723 ФПД: 273413223278197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173331&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115723&fm=273413223278197&tin=02508201610067®Number=0000000000091831&sum=30000 [17:33:31]StoreToDocumentArchive [17:33:31]shift 472 fd 115723 [17:33:31]save to /storage/0472/doc_00115723 [17:33:31]save last doc name /storage/0472/doc_00115723 to /storage/kkm_last_doc_name [17:33:31]save OK [17:33:31]Clear old archive folders... [17:33:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:31]tlvbuf is 017C60C0 [17:33:31]SAM_PROTO_ClearQueue [17:33:31]wFMCommunicate request_size=4 [17:33:31]MH_SAM_APDU [17:33:31]CAPDU: 80 09 00 00 [17:33:31]Write to MH i2c: E2 08 00 56 1C 80 09 00 00 00 00 00 00 E4 [17:33:31]Write i2c OK [17:33:31]MH_I2C_Read... [17:33:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:31]Read from MH i2c: E2 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 03 00 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 03 00 56 1C 00 90 00 E6 [17:33:31]RAPDU: 90 00 [17:33:31]wFMCommunicate OK [17:33:31]SAM_PROTO_ClearQueue done [17:33:31]KKMCreateOFDPacket [17:33:31]OFDProtocolAddRootSTLVToBuf [17:33:31]FM_MakeSignedData [17:33:31]FM_MakeSignedData [17:33:31]SAM_PROTO_SignData [17:33:31]wFMCommunicate request_size=4 [17:33:31]MH_SAM_APDU [17:33:31]CAPDU: 80 0D 01 02 [17:33:31]Write to MH i2c: E2 08 00 57 1C 80 0D 01 02 00 00 00 00 EC [17:33:31]Write i2c OK [17:33:31]MH_I2C_Read... [17:33:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:31]Read from MH i2c: E2 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 03 00 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 03 00 57 1C 00 90 00 E7 [17:33:31]RAPDU: 90 00 [17:33:31]wFMCommunicate OK [17:33:31]wFMCommunicate request_size=255 [17:33:31]MH_SAM_APDU [17:33:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 6B A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0B C4 01 00 35 04 06 00 F8 [17:33:31]Write to MH i2c: E2 02 01 58 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 6B A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0B C4 01 00 35 04 06 00 F8 00 00 59 [17:33:31]Write i2c OK [17:33:31]MH_I2C_Read... [17:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:31]Read from MH i2c: E2 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 03 00 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 03 00 58 1C 00 90 00 E8 [17:33:31]RAPDU: 90 00 [17:33:31]wFMCommunicate OK [17:33:31]wFMCommunicate request_size=10 [17:33:31]MH_SAM_APDU [17:33:31]CAPDU: 80 0D 02 02 05 AA FA 0C E6 75 [17:33:31]Write to MH i2c: E2 0D 00 59 1C 80 0D 02 02 05 00 AA FA 0C E6 75 00 00 04 [17:33:31]Write i2c OK [17:33:31]MH_I2C_Read... [17:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:31]Read from MH i2c: E2 [17:33:31]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 03 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 03 00 59 1C 00 90 00 E9 [17:33:32]RAPDU: 90 00 [17:33:32]wFMCommunicate OK [17:33:32]wFMCommunicate request_size=4 [17:33:32]MH_SAM_APDU [17:33:32]CAPDU: 80 0D 03 02 [17:33:32]Write to MH i2c: E2 08 00 5A 1C 80 0D 03 02 00 00 00 00 F1 [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:32]Read from MH i2c: E2 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 0B 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 0B 00 5A 1C 00 DC 12 96 CE 75 F6 A7 CF 90 00 25 [17:33:32]RAPDU: DC 12 96 CE 75 F6 A7 CF 90 00 [17:33:32]wFMCommunicate OK [17:33:32]SAM_PROTO_SignData done [17:33:32]FM_MakeSignedData done [17:33:32]CreateOFDProtocolMessage [17:33:32]wFMCommunicate request_size=4 [17:33:32]MH_SAM_APDU [17:33:32]CAPDU: 80 11 00 00 [17:33:32]Write to MH i2c: E2 08 00 5B 1C 80 11 00 00 00 00 00 00 F1 [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:32]Read from MH i2c: E2 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 17 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 17 00 5B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3F [17:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:33:32]wFMCommunicate OK [17:33:32]CreateOFDProtocolMessage done [17:33:32]OFDSenderStorePacket 115723 [17:33:32]StoreOFDPacket docnum=115723 [17:33:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 F9 E1 07 01 C2 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 6B A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0B C4 01 00 35 04 06 00 F8 AA FA 0C E6 75 DC 12 96 CE 75 F6 A7 CF [17:33:32]CheckFolder [17:33:32]dirname=/storage/ofd_packets [17:33:32]CheckFolder done [17:33:32]ProducePacketName [17:33:32]name=ofd_packets/00115723 [17:33:32]NVStorageSaveData ofd_packets/00115723 [17:33:32]File name is /storage/ofd_packets/00115723 [17:33:32]Write 301 bytes [17:33:32]NVStorageSaveData done [17:33:32]OFDSenderStorePacket done [17:33:32]KKMCreateOFDPacket done [17:33:32]NVStorageSaveData kkm_last_timestamp [17:33:32]File name is /storage/kkm_last_timestamp [17:33:32]Write 4 bytes [17:33:32]NVStorageSaveData done [17:33:32]ExternCall_PrintAddStr [17:33:32]wPrintStart [17:33:32]Write to MH i2c: 01 00 00 5C 1C 78 [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: 01 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: 01 07 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: 01 07 00 5C 1C 00 00 00 00 00 FF 0F 8D [17:33:32]RasterBufferAndPrint [17:33:32]line Счет N : (1)24617885 [17:33:32]line ИНН: 02508201610067 [17:33:32]line Контрольно-Кассовый Чек [17:33:32]line ПРОДАЖА [17:33:32]line ТРК (МРК, ГНК) : 43 [17:33:32]line Товар: 2710124130 [17:33:32]line Аи-92-К-5 [17:33:32]line 4.430 * 67.80 [17:33:32]line = 300.35 [17:33:32]line НДС 12% НСП 1% [17:33:32]line > о реализуемом товаре [17:33:32]line ОКРУГЛЕНИЕ: -0.35 [17:33:32]line ИТОГО: 300.00 [17:33:32]line Внесено: 300.00 [17:33:32]line СДАЧА: 0.00 [17:33:32]line НСП 1% : 2.66 [17:33:32]line НДС 12% : 31.90 [17:33:32]line Наличными: 300.00 [17:33:32]line Безнал.: 0.00 [17:33:32]line Место: АЗС № 90 "Партнер Нефть" [17:33:32]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:33:32]line СНО: Общий режим [17:33:32]line Чек 206 23.09.2024 17:33 [17:33:32]line Смена: 472 ФФД: 1.0 [17:33:32]line ЗНМ: 0300000120 [17:33:32]line РНМ: 0000000000091831 [17:33:32]line Версия ККМ: 001 [17:33:32]line ФМ: 0000000000871830 [17:33:32]line ФД: 115723 [17:33:32]line ФПД: 273413223278197 [17:33:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173331&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115723&fm=273413223278197&tin=02508201610067®Number=0000000000091831&sum=30000 [17:33:32]written 0, free lines is 4095 [17:33:32]OFD Sender: Processing packet 115723 [packets to send 482, broken 481] [17:33:32]ProducePacketName [17:33:32]name=ofd_packets/00115723 [17:33:32]OFD Sender: To server: pG, [17:33:32]CommunicateWithHost lk.salyk.kg:30040 [17:33:32]ConnectInit lk.salyk.kg [17:33:32]Connected sock=10 [17:33: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 38 33 30 0F 01 00 00 F9 E1 07 01 C2 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 6B A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0B C4 01 00 35 04 06 00 F8 AA FA 0C E6 75 DC 12 96 CE 75 F6 A7 CF [17:33:32]Write to MH i2c: 01 00 00 86 1C A2 [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: 01 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: 01 07 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: 01 07 00 86 1C 00 00 00 00 00 65 0C 1A [17:33:32]RasterBufferAndPrint [17:33:32]line [17:33:32]line [17:33:32]line [17:33:32]line [17:33:32]line [17:33:32]written 0, free lines is 3179 [17:33:32]MH_Cut [17:33:32]Write to MH i2c: D1 01 00 8D 1C 01 7B [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: D1 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: D1 01 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: D1 01 00 8D 1C 00 7A [17:33:32]Write to MH i2c: 01 00 00 8E 1C AA [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9D 9E 47 00 2F 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0B C4 01 00 F4 03 04 00 AD 4B F1 66 B6 04 01 00 00 F5 28 5C AC 15 FC 8A 3B [17:33:32]CommunicateWithHost err = 0 [17:33:32]CheckOFDResponse [17:33:32]1017 (14) - 77093643461234 [17:33:32]1041 (16) - 0000000000871830 [17:33:32]1040 (4) - 115723 [17:33:32]1012 (4) - 23.09.2024 11:06 [17:33:32]1206 (1) - 0 [17:33:32]OFD Sender: Remove packet 115723 [17:33:32]ProducePacketName [17:33:32]name=ofd_packets/00115723 [17:33:32]NVStorageDeleteData [17:33:33]OFD Sender: No OFD packet to send [17:33:33]*** Cut start [17:33:33]*** Partial cut [17:33:33]*** CUTSNS_PIN = 1 [17:33:33]*** CUTSNS_PIN = 0 [17:33:34]*** Brake cut motor [17:33:34]Read from MH i2c: 01 [17:33:34]MH_I2C_Read... [17:33:34]*** Stop cut motor [17:33:34]*** Cut end [17:33:34]Read from MH i2c: 01 07 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: 01 07 00 8E 1C 00 00 00 00 00 FF 0F BF [17:33:34]process_action close_receipt done [17:33:34]requested_data is exist [17:33:34]produce_requested_data [17:33:34]requested_item fm.sn is exist - process it [17:33:34]wFMCommunicate request_size=4 [17:33:34]MH_SAM_APDU [17:33:34]CAPDU: 80 11 00 00 [17:33:34]Write to MH i2c: E2 08 00 8F 1C 80 11 00 00 00 00 00 00 25 [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:34]Read from MH i2c: E2 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 17 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 17 00 8F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 73 [17:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:33:34]wFMCommunicate OK [17:33:34]requested_item fd.num is exist - process it [17:33:34]SAM_PROTO_GetFieldsCounters [17:33:34]wFMCommunicate request_size=4 [17:33:34]MH_SAM_APDU [17:33:34]CAPDU: 80 13 00 00 [17:33:34]Write to MH i2c: E2 08 00 90 1C 80 13 00 00 00 00 00 00 28 [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:34]Read from MH i2c: E2 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 62 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 62 00 90 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0B C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [17:33: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0B C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:34]wFMCommunicate OK [17:33:34]SAM_PROTO_GetFieldsCounters done [17:33:34]requested_item shift.num is exist - process it [17:33:34]requested_item shift.opened is exist - process it [17:33:34]req_shift_opened [17:33:34]FM_GetShiftState [17:33:34]SAM_PROTO_GetShiftState [17:33:34]wFMCommunicate request_size=4 [17:33:34]MH_SAM_APDU [17:33:34]CAPDU: 80 13 01 00 [17:33:34]Write to MH i2c: E2 08 00 91 1C 80 13 01 00 00 00 00 00 2A [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:34]Read from MH i2c: E2 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 0E 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 0E 00 91 1C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6B [17:33:34]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:33:34]wFMCommunicate OK [17:33:34]SAM_PROTO_GetShiftState done [17:33:34]FM_GetShiftState done [17:33:34]req_shift_opened done [17:33:34]requested_item shift.open_date is exist - process it [17:33:34]req_shift_open_date [17:33:34]req_shift_open_date done [17:33:34]produce_requested_data done [17:33:34]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115723,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:33:34]process_action_free close_receipt [17:33:34]json_value_free [17:33:34]json_value_free done [17:33:34]process_json_proto returns [17:33:34]Send response to host [17:33:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115723,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:33:34]free response buf [17:33:34]execute_script done [17:33:34]execute_script returns [17:33:34]free content buf [17:33:34]Sock 9.Close socket [17:33:34]Sock 9.Thread stoped [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:33:59]accept exits with 7 [17:33:59]New connection [17:33:59]New thread 3067022692 created [17:33:59]Thread 3066879332 joined [17:33:59]Waiting for new connection... [17:33:59] Sock 7.Parse request [17:33:59]Sock 7.Check first char [17:33:59]Sock 7.First char is OK [17:33:59]request: POST /json_proto HTTP/1.0 [17:33:59]Method: POST [17:33:59]URL: /json_proto [17:33:59]Method is POST - this is cgi request [17:33:59]url: /json_proto [17:33:59]query_string will be loaded in cgi processing [17:33:59]execute_cgi json_proto POST (null) [17:33:59]execute_cgi path=json_proto method=POST [17:33:59]POST find Content-Length [17:33:59]Host: 172.17.41.136:8080 [17:33:59]Content-Length: 691 [17:33:59]Content-Type: application/json [17:33:59] [17:33:59]POST finish read [17:33:59]Found Content-Length = 691 [17:33:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344057", "tax_sys" : 0, "items" : [ { "code": "4700321005017", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 43.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:59]execute_script... [17:33:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344057", "tax_sys" : 0, "items" : [ { "code": "4700321005017", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 43.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:59]POST & json_proto [17:33:59]process_json_proto [17:33:59]json parsed OK: [17:33:59]protocol is kg_v1.0 [17:33:59]action value=close_receipt [17:33:59]process_action close_receipt [17:33:59]cmd_close_receipt [17:33:59]MH_GetDate [17:33:59]Write to MH i2c: F0 00 00 92 1C 9D [17:33:59]Write i2c OK [17:33:59]MH_I2C_Read... [17:33:59]Read from MH i2c: F0 [17:33:59]MH_I2C_Read... [17:33:59]Read from MH i2c: F0 09 00 [17:33:59]MH_I2C_Read... [17:33:59]Read from MH i2c: F0 09 00 92 1C 00 88 A6 F1 66 1B D0 5A 64 D4 [17:33:59]GetLastDocTimeStamp 1727112811 [17:33:59]current date 1727112840 [17:33:59]FM_GetShiftState [17:33:59]SAM_PROTO_GetShiftState [17:33:59]wFMCommunicate request_size=4 [17:33:59]MH_SAM_APDU [17:33:59]CAPDU: 80 13 01 00 [17:33:59]Write to MH i2c: E2 08 00 93 1C 80 13 01 00 00 00 00 00 2C [17:33:59]Write i2c OK [17:33:59]MH_I2C_Read... [17:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:59]Read from MH i2c: E2 [17:33:59]MH_I2C_Read... [17:33:59]Read from MH i2c: E2 0E 00 [17:33:59]MH_I2C_Read... [17:33:59]Read from MH i2c: E2 0E 00 93 1C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6D [17:33:59]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:33:59]wFMCommunicate OK [17:33:59]SAM_PROTO_GetShiftState done [17:33:59]FM_GetShiftState done [17:33:59]opened in 1727052070 [17:33:59]opened+sec_in_day 1727138470 [17:33:59]quantity*price = 4300 [17:33:59]sum+1 = 4301 [17:33:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 43.00 НСП 1% : 0.38 НДС 12% : 4.57 Наличными: 43.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 207 23.09.2024 17:34 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115724 ФПД: 233367352587935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173400&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115724&fm=233367352587935&tin=02508201610067®Number=0000000000091831&sum=4300 0 [17:34:00]StoreToDocumentArchive [17:34:00]shift 472 fd 115724 [17:34:00]save to /storage/0472/doc_00115724 [17:34:00]save last doc name /storage/0472/doc_00115724 to /storage/kkm_last_doc_name [17:34:00]save OK [17:34:00]Clear old archive folders... [17:34:00]ProcessDocumentItem done err = 0, tmpTLVsize=294 [17:34:00]tlvbuf is 0180A3F0 [17:34:00]SAM_PROTO_ClearQueue [17:34:00]wFMCommunicate request_size=4 [17:34:00]MH_SAM_APDU [17:34:00]CAPDU: 80 09 00 00 [17:34:00]Write to MH i2c: E2 08 00 A0 1C 80 09 00 00 00 00 00 00 2E [17:34:00]Write i2c OK [17:34:00]MH_I2C_Read... [17:34:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:00]Read from MH i2c: E2 [17:34:00]MH_I2C_Read... [17:34:00]Read from MH i2c: E2 03 00 [17:34:00]MH_I2C_Read... [17:34:00]Read from MH i2c: E2 03 00 A0 1C 00 90 00 30 [17:34:00]RAPDU: 90 00 [17:34:00]wFMCommunicate OK [17:34:00]SAM_PROTO_ClearQueue done [17:34:00]KKMCreateOFDPacket [17:34:00]OFDProtocolAddRootSTLVToBuf [17:34:00]FM_MakeSignedData [17:34:00]FM_MakeSignedData [17:34:00]SAM_PROTO_SignData [17:34:00]wFMCommunicate request_size=4 [17:34:00]MH_SAM_APDU [17:34:00]CAPDU: 80 0D 01 02 [17:34:00]Write to MH i2c: E2 08 00 A1 1C 80 0D 01 02 00 00 00 00 36 [17:34:00]Write i2c OK [17:34:00]MH_I2C_Read... [17:34:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:00]Read from MH i2c: E2 [17:34:00]MH_I2C_Read... [17:34:00]Read from MH i2c: E2 03 00 [17:34:00]MH_I2C_Read... [17:34:00]Read from MH i2c: E2 03 00 A1 1C 00 90 00 31 [17:34:00]RAPDU: 90 00 [17:34:00]wFMCommunicate OK [17:34:00]wFMCommunicate request_size=255 [17:34:00]MH_SAM_APDU [17:34:00]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 88 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [17:34:00]Write to MH i2c: E2 02 01 A2 1C 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 88 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 C4 [17:34:00]Write i2c OK [17:34:00]MH_I2C_Read... [17:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:00]Read from MH i2c: E2 [17:34:00]MH_I2C_Read... [17:34:00]Read from MH i2c: E2 03 00 [17:34:00]MH_I2C_Read... [17:34:00]Read from MH i2c: E2 03 00 A2 1C 00 90 00 32 [17:34:00]RAPDU: 90 00 [17:34:00]wFMCommunicate OK [17:34:00]wFMCommunicate request_size=53 [17:34:00]MH_SAM_APDU [17:34:00]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0C C4 01 00 35 04 06 00 D4 3F 12 27 36 9F [17:34:00]Write to MH i2c: E2 38 00 A3 1C 80 0D 02 02 30 00 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0C C4 01 00 35 04 06 00 D4 3F 12 27 36 9F 00 00 18 [17:34:00]Write i2c OK [17:34:00]MH_I2C_Read... [17:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:01]Read from MH i2c: E2 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: E2 03 00 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: E2 03 00 A3 1C 00 90 00 33 [17:34:01]RAPDU: 90 00 [17:34:01]wFMCommunicate OK [17:34:01]wFMCommunicate request_size=4 [17:34:01]MH_SAM_APDU [17:34:01]CAPDU: 80 0D 03 02 [17:34:01]Write to MH i2c: E2 08 00 A4 1C 80 0D 03 02 00 00 00 00 3B [17:34:01]Write i2c OK [17:34:01]MH_I2C_Read... [17:34:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:01]Read from MH i2c: E2 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: E2 0B 00 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: E2 0B 00 A4 1C 00 8A 28 B0 4A 95 48 50 E6 90 00 FB [17:34:01]RAPDU: 8A 28 B0 4A 95 48 50 E6 90 00 [17:34:01]wFMCommunicate OK [17:34:01]SAM_PROTO_SignData done [17:34:01]FM_MakeSignedData done [17:34:01]CreateOFDProtocolMessage [17:34:01]wFMCommunicate request_size=4 [17:34:01]MH_SAM_APDU [17:34:01]CAPDU: 80 11 00 00 [17:34:01]Write to MH i2c: E2 08 00 A5 1C 80 11 00 00 00 00 00 00 3B [17:34:01]Write i2c OK [17:34:01]MH_I2C_Read... [17:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:01]Read from MH i2c: E2 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: E2 17 00 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: E2 17 00 A5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 89 [17:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:34:01]wFMCommunicate OK [17:34:01]CreateOFDProtocolMessage done [17:34:01]OFDSenderStorePacket 115724 [17:34:01]StoreOFDPacket docnum=115724 [17:34:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3A 01 00 00 36 06 32 01 7C 50 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 88 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0C C4 01 00 35 04 06 00 D4 3F 12 27 36 9F 8A 28 B0 4A 95 48 50 E6 [17:34:01]CheckFolder [17:34:01]dirname=/storage/ofd_packets [17:34:01]CheckFolder done [17:34:01]ProducePacketName [17:34:01]name=ofd_packets/00115724 [17:34:01]NVStorageSaveData ofd_packets/00115724 [17:34:01]File name is /storage/ofd_packets/00115724 [17:34:01]Write 344 bytes [17:34:01]NVStorageSaveData done [17:34:01]OFDSenderStorePacket done [17:34:01]KKMCreateOFDPacket done [17:34:01]NVStorageSaveData kkm_last_timestamp [17:34:01]File name is /storage/kkm_last_timestamp [17:34:01]Write 4 bytes [17:34:01]NVStorageSaveData done [17:34:01]ExternCall_PrintAddStr [17:34:01]wPrintStart [17:34:01]Write to MH i2c: 01 00 00 A6 1C C2 [17:34:01]Write i2c OK [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: 01 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: 01 07 00 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: 01 07 00 A6 1C 00 00 00 00 00 FF 0F D7 [17:34:01]RasterBufferAndPrint [17:34:01]line Счет N : (3)344057 [17:34:01]line ИНН: 02508201610067 [17:34:01]line Контрольно-Кассовый Чек [17:34:01]line ПРОДАЖА [17:34:01]line Товар: 4700321005017 [17:34:01]line Арахис Mike жареный соленый 50г [17:34:01]line 1.000 * 43.00 [17:34:01]line = 43.00 [17:34:01]line НДС 12% НСП 1% [17:34:01]line > о реализуемом товаре [17:34:01]line ИТОГО: 43.00 [17:34:01]line НСП 1% : 0.38 [17:34:01]line НДС 12% : 4.57 [17:34:01]line Наличными: 43.00 [17:34:01]line Безнал.: 0.00 [17:34:01]line Место: АЗС № 90 "Партнер Нефть" [17:34:01]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:34:01]line СНО: Общий режим [17:34:01]line Чек 207 23.09.2024 17:34 [17:34:01]line Смена: 472 ФФД: 1.0 [17:34:01]line ЗНМ: 0300000120 [17:34:01]line РНМ: 0000000000091831 [17:34:01]line Версия ККМ: 001 [17:34:01]line ФМ: 0000000000871830 [17:34:01]line ФД: 115724 [17:34:01]line ФПД: 233367352587935 [17:34:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173400&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115724&fm=233367352587935&tin=02508201610067®Number=0000000000091831&sum=4300 [17:34:01]OFD Sender: Processing packet 115724 [packets to send 482, broken 481] [17:34:01]ProducePacketName [17:34:01]name=ofd_packets/00115724 [17:34:01]OFD Sender: To server: pG, [17:34:01]CommunicateWithHost lk.salyk.kg:30040 [17:34:01]ConnectInit lk.salyk.kg [17:34:01]line 0 [17:34:01]written 0, free lines is 4095 [17:34:01]Connected sock=10 [17:34: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 38 33 30 3A 01 00 00 36 06 32 01 7C 50 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 88 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0C C4 01 00 35 04 06 00 D4 3F 12 27 36 9F 8A 28 B0 4A 95 48 50 E6 [17:34:01]Write to MH i2c: 01 00 00 CE 1C EA [17:34:01]Write i2c OK [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: 01 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: 01 07 00 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: 01 07 00 CE 1C 00 00 00 00 00 65 0C 62 [17:34:01]RasterBufferAndPrint [17:34:01]line [17:34:01]line [17:34:01]line [17:34:01]line [17:34:01]line [17:34:01]written 0, free lines is 3176 [17:34:01]MH_Cut [17:34:01]Write to MH i2c: D1 01 00 D5 1C 01 C3 [17:34:01]Write i2c OK [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: D1 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: D1 01 00 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: D1 01 00 D5 1C 00 C2 [17:34:01]Write to MH i2c: 01 00 00 D6 1C F2 [17:34:01]Write i2c OK [17:34:01]MH_I2C_Read... [17: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 38 33 30 4F 00 00 00 8F 9E 47 00 1F 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 38 33 30 10 04 04 00 0C C4 01 00 F4 03 04 00 CA 4B F1 66 B6 04 01 00 00 20 C2 7E 41 DB 35 0C 8B [17:34:02]CommunicateWithHost err = 0 [17:34:02]CheckOFDResponse [17:34:02]1017 (14) - 77093643461234 [17:34:02]1041 (16) - 0000000000871830 [17:34:02]1040 (4) - 115724 [17:34:02]1012 (4) - 23.09.2024 11:06 [17:34:02]1206 (1) - 0 [17:34:02]OFD Sender: Remove packet 115724 [17:34:02]ProducePacketName [17:34:02]name=ofd_packets/00115724 [17:34:02]NVStorageDeleteData [17:34:02]OFD Sender: No OFD packet to send [17:34:03]*** Cut start [17:34:03]*** Partial cut [17:34:03]*** CUTSNS_PIN = 1 [17:34:03]*** CUTSNS_PIN = 0 [17:34:03]*** Brake cut motor [17:34:03]Read from MH i2c: 01 [17:34:03]MH_I2C_Read... [17:34:03]*** Stop cut motor [17:34:03]*** Cut end [17:34:03]Read from MH i2c: 01 07 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: 01 07 00 D6 1C 00 00 00 00 00 FF 0F 07 [17:34:03]process_action close_receipt done [17:34:03]requested_data is exist [17:34:03]produce_requested_data [17:34:03]requested_item fm.sn is exist - process it [17:34:03]wFMCommunicate request_size=4 [17:34:03]MH_SAM_APDU [17:34:03]CAPDU: 80 11 00 00 [17:34:03]Write to MH i2c: E2 08 00 D7 1C 80 11 00 00 00 00 00 00 6D [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 17 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 17 00 D7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BB [17:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:34:03]wFMCommunicate OK [17:34:03]requested_item fd.num is exist - process it [17:34:03]SAM_PROTO_GetFieldsCounters [17:34:03]wFMCommunicate request_size=4 [17:34:03]MH_SAM_APDU [17:34:03]CAPDU: 80 13 00 00 [17:34:03]Write to MH i2c: E2 08 00 D8 1C 80 13 00 00 00 00 00 00 70 [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 62 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 62 00 D8 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0C C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [17:34: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0C C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:03]wFMCommunicate OK [17:34:03]SAM_PROTO_GetFieldsCounters done [17:34:03]requested_item shift.num is exist - process it [17:34:03]requested_item shift.opened is exist - process it [17:34:03]req_shift_opened [17:34:03]FM_GetShiftState [17:34:03]SAM_PROTO_GetShiftState [17:34:03]wFMCommunicate request_size=4 [17:34:03]MH_SAM_APDU [17:34:03]CAPDU: 80 13 01 00 [17:34:03]Write to MH i2c: E2 08 00 D9 1C 80 13 01 00 00 00 00 00 72 [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:04]Read from MH i2c: E2 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 0E 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: E2 0E 00 D9 1C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B3 [17:34:04]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:34:04]wFMCommunicate OK [17:34:04]SAM_PROTO_GetShiftState done [17:34:04]FM_GetShiftState done [17:34:04]req_shift_opened done [17:34:04]requested_item shift.open_date is exist - process it [17:34:04]req_shift_open_date [17:34:04]req_shift_open_date done [17:34:04]produce_requested_data done [17:34:04]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115724,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:34:04]process_action_free close_receipt [17:34:04]json_value_free [17:34:04]json_value_free done [17:34:04]process_json_proto returns [17:34:04]Send response to host [17:34:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115724,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:34:04]free response buf [17:34:04]execute_script done [17:34:04]execute_script returns [17:34:04]free content buf [17:34:04]Sock 7.Close socket [17:34:04]Sock 7.Thread stoped [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:14]accept exits with 9 [17:34:14]New connection [17:34:14]New thread 3066879332 created [17:34:14]Thread 3067022692 joined [17:34:14]Waiting for new connection... [17:34:14] Sock 9.Parse request [17:34:14]Sock 9.Check first char [17:34:14]Sock 9.First char is OK [17:34:14]request: POST /json_proto HTTP/1.0 [17:34:14]Method: POST [17:34:14]URL: /json_proto [17:34:14]Method is POST - this is cgi request [17:34:14]url: /json_proto [17:34:14]query_string will be loaded in cgi processing [17:34:14]execute_cgi json_proto POST (null) [17:34:14]execute_cgi path=json_proto method=POST [17:34:14]POST find Content-Length [17:34:14]Host: 172.17.41.136:8080 [17:34:14]Content-Length: 623 [17:34:14]Content-Type: application/json [17:34:14] [17:34:14]POST finish read [17:34:14]Found Content-Length = 623 [17:34:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344058", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:14]execute_script... [17:34: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 : (3)344058", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:14]POST & json_proto [17:34:14]process_json_proto [17:34:14]json parsed OK: [17:34:14]protocol is kg_v1.0 [17:34:14]action value=close_receipt [17:34:14]process_action close_receipt [17:34:14]cmd_close_receipt [17:34:14]MH_GetDate [17:34:14]Write to MH i2c: F0 00 00 DA 1C E5 [17:34:14]Write i2c OK [17:34:14]MH_I2C_Read... [17:34:14]Read from MH i2c: F0 [17:34:14]MH_I2C_Read... [17:34:14]Read from MH i2c: F0 09 00 [17:34:14]MH_I2C_Read... [17:34:14]Read from MH i2c: F0 09 00 DA 1C 00 97 A6 F1 66 1B D0 5A 64 2B [17:34:14]GetLastDocTimeStamp 1727112840 [17:34:14]current date 1727112855 [17:34:14]FM_GetShiftState [17:34:14]SAM_PROTO_GetShiftState [17:34:14]wFMCommunicate request_size=4 [17:34:14]MH_SAM_APDU [17:34:14]CAPDU: 80 13 01 00 [17:34:14]Write to MH i2c: E2 08 00 DB 1C 80 13 01 00 00 00 00 00 74 [17:34:14]Write i2c OK [17:34:14]MH_I2C_Read... [17:34:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:14]Read from MH i2c: E2 [17:34:14]MH_I2C_Read... [17:34:14]Read from MH i2c: E2 0E 00 [17:34:14]MH_I2C_Read... [17:34:14]Read from MH i2c: E2 0E 00 DB 1C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B5 [17:34:14]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:34:14]wFMCommunicate OK [17:34:14]SAM_PROTO_GetShiftState done [17:34:14]FM_GetShiftState done [17:34:14]opened in 1727052070 [17:34:14]opened+sec_in_day 1727138470 [17:34:14]quantity*price = 14400 [17:34:14]sum+1 = 14401 [17:34:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 208 23.09.2024 17:34 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115725 ФПД: 243588693572338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173415&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115725&fm=243588693572338&tin=02508201610067®Number=0000000000091831&sum=14400 0 [17:34:15]StoreToDocumentArchive [17:34:15]shift 472 fd 115725 [17:34:15]save to /storage/0472/doc_00115725 [17:34:15]save last doc name /storage/0472/doc_00115725 to /storage/kkm_last_doc_name [17:34:15]save OK [17:34:15]Clear old archive folders... [17:34:15]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:34:15]tlvbuf is B6EEBAF0 [17:34:15]SAM_PROTO_ClearQueue [17:34:15]wFMCommunicate request_size=4 [17:34:15]MH_SAM_APDU [17:34:15]CAPDU: 80 09 00 00 [17:34:15]Write to MH i2c: E2 08 00 E8 1C 80 09 00 00 00 00 00 00 76 [17:34:15]Write i2c OK [17:34:15]MH_I2C_Read... [17:34:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:15]Read from MH i2c: E2 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 03 00 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 03 00 E8 1C 00 90 00 78 [17:34:15]RAPDU: 90 00 [17:34:15]wFMCommunicate OK [17:34:15]SAM_PROTO_ClearQueue done [17:34:15]KKMCreateOFDPacket [17:34:15]OFDProtocolAddRootSTLVToBuf [17:34:15]FM_MakeSignedData [17:34:15]FM_MakeSignedData [17:34:15]SAM_PROTO_SignData [17:34:15]wFMCommunicate request_size=4 [17:34:15]MH_SAM_APDU [17:34:15]CAPDU: 80 0D 01 02 [17:34:15]Write to MH i2c: E2 08 00 E9 1C 80 0D 01 02 00 00 00 00 7E [17:34:15]Write i2c OK [17:34:15]MH_I2C_Read... [17:34:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:15]Read from MH i2c: E2 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 03 00 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 03 00 E9 1C 00 90 00 79 [17:34:15]RAPDU: 90 00 [17:34:15]wFMCommunicate OK [17:34:15]wFMCommunicate request_size=255 [17:34:15]MH_SAM_APDU [17:34:15]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 97 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 [17:34:15]Write to MH i2c: E2 02 01 EA 1C 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 97 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 00 00 BD [17:34:15]Write i2c OK [17:34:15]MH_I2C_Read... [17:34:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:15]Read from MH i2c: E2 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 03 00 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 03 00 EA 1C 00 90 00 7A [17:34:15]RAPDU: 90 00 [17:34:15]wFMCommunicate OK [17:34:15]wFMCommunicate request_size=34 [17:34:15]MH_SAM_APDU [17:34:15]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0D C4 01 00 35 04 06 00 DD 8A E9 8D 3A F2 [17:34:15]Write to MH i2c: E2 25 00 EB 1C 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0D C4 01 00 35 04 06 00 DD 8A E9 8D 3A F2 00 00 18 [17:34:15]Write i2c OK [17:34:15]MH_I2C_Read... [17:34:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:15]Read from MH i2c: E2 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 03 00 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 03 00 EB 1C 00 90 00 7B [17:34:15]RAPDU: 90 00 [17:34:15]wFMCommunicate OK [17:34:15]wFMCommunicate request_size=4 [17:34:15]MH_SAM_APDU [17:34:15]CAPDU: 80 0D 03 02 [17:34:15]Write to MH i2c: E2 08 00 EC 1C 80 0D 03 02 00 00 00 00 83 [17:34:15]Write i2c OK [17:34:15]MH_I2C_Read... [17:34:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:15]Read from MH i2c: E2 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 0B 00 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 0B 00 EC 1C 00 1A 71 DA 99 3C 0B A2 F2 90 00 5D [17:34:15]RAPDU: 1A 71 DA 99 3C 0B A2 F2 90 00 [17:34:15]wFMCommunicate OK [17:34:15]SAM_PROTO_SignData done [17:34:15]FM_MakeSignedData done [17:34:15]CreateOFDProtocolMessage [17:34:15]wFMCommunicate request_size=4 [17:34:15]MH_SAM_APDU [17:34:15]CAPDU: 80 11 00 00 [17:34:15]Write to MH i2c: E2 08 00 ED 1C 80 11 00 00 00 00 00 00 83 [17:34:15]Write i2c OK [17:34:15]MH_I2C_Read... [17:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:16]Read from MH i2c: E2 [17:34:16]MH_I2C_Read... [17:34:16]Read from MH i2c: E2 17 00 [17:34:16]MH_I2C_Read... [17:34:16]Read from MH i2c: E2 17 00 ED 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D1 [17:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:34:16]wFMCommunicate OK [17:34:16]CreateOFDProtocolMessage done [17:34:16]OFDSenderStorePacket 115725 [17:34:16]StoreOFDPacket docnum=115725 [17:34:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 6D 91 1F 01 65 70 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 97 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0D C4 01 00 35 04 06 00 DD 8A E9 8D 3A F2 1A 71 DA 99 3C 0B A2 F2 [17:34:16]CheckFolder [17:34:16]dirname=/storage/ofd_packets [17:34:16]CheckFolder done [17:34:16]ProducePacketName [17:34:16]name=ofd_packets/00115725 [17:34:16]NVStorageSaveData ofd_packets/00115725 [17:34:16]File name is /storage/ofd_packets/00115725 [17:34:16]Write 325 bytes [17:34:16]NVStorageSaveData done [17:34:16]OFDSenderStorePacket done [17:34:16]KKMCreateOFDPacket done [17:34:16]NVStorageSaveData kkm_last_timestamp [17:34:16]File name is /storage/kkm_last_timestamp [17:34:16]Write 4 bytes [17:34:16]NVStorageSaveData done [17:34:16]ExternCall_PrintAddStr [17:34:16]wPrintStart [17:34:16]Write to MH i2c: 01 00 00 EE 1C 0A [17:34:16]Write i2c OK [17:34:16]MH_I2C_Read... [17:34:16]Read from MH i2c: 01 [17:34:16]MH_I2C_Read... [17:34:16]Read from MH i2c: 01 07 00 [17:34:16]MH_I2C_Read... [17:34:16]Read from MH i2c: 01 07 00 EE 1C 00 00 00 00 00 FF 0F 1F [17:34:16]RasterBufferAndPrint [17:34:16]line Счет N : (3)344058 [17:34:16]line ИНН: 02508201610067 [17:34:16]line Контрольно-Кассовый Чек [17:34:16]line ПРОДАЖА [17:34:16]line Товар: 48743587 [17:34:16]line Сигареты Winston XStyle Silver [17:34:16]line 1.000 * 144.00 [17:34:16]line = 144.00 [17:34:16]line НДС 12% НСП 1% [17:34:16]line > о реализуемом товаре [17:34:16]line ИТОГО: 144.00 [17:34:16]line НСП 1% : 1.27 [17:34:16]line НДС 12% : 15.29 [17:34:16]line Наличными: 144.00 [17:34:16]line Безнал.: 0.00 [17:34:16]line Место: АЗС № 90 "Партнер Нефть" [17:34:16]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:34:16]line СНО: Общий режим [17:34:16]line Чек 208 23.09.2024 17:34 [17:34:16]line Смена: 472 ФФД: 1.0 [17:34:16]line ЗНМ: 0300000120 [17:34:16]line РНМ: 0000000000091831 [17:34:16]line Версия ККМ: 001 [17:34:16]line ФМ: 0000000000871830 [17:34:16]line ФД: 115725 [17:34:16]line ФПД: 243588693572338 [17:34:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173415&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115725&fm=243588693572338&tin=02508201610067®Number=0000000000091831&sum=14400 [17:34:16]line 0 [17:34:16]written 0, free lines is 4095 [17:34:16]OFD Sender: Processing packet 115725 [packets to send 482, broken 481] [17:34:16]ProducePacketName [17:34:16]name=ofd_packets/00115725 [17:34:16]OFD Sender: To server: pG, [17:34:16]CommunicateWithHost lk.salyk.kg:30040 [17:34:16]ConnectInit lk.salyk.kg [17:34:16]Write to MH i2c: 01 00 00 16 1D 33 [17:34:16]Write i2c OK [17:34:16]MH_I2C_Read... [17:34:16]Read from MH i2c: 01 [17:34:16]MH_I2C_Read... [17:34:16]Read from MH i2c: 01 07 00 [17:34:16]MH_I2C_Read... [17:34:16]Read from MH i2c: 01 07 00 16 1D 00 00 00 00 00 69 0C AF [17:34:16]RasterBufferAndPrint [17:34:16]line [17:34:16]line [17:34:16]line [17:34:16]line [17:34:16]line [17:34:16]written 0, free lines is 3182 [17:34:16]MH_Cut [17:34:16]Write to MH i2c: D1 01 00 1D 1D 01 0C [17:34:16]Write i2c OK [17:34:16]MH_I2C_Read... [17:34:16]Read from MH i2c: D1 [17:34:16]MH_I2C_Read... [17:34:16]Read from MH i2c: D1 01 00 [17:34:16]MH_I2C_Read... [17:34:16]Read from MH i2c: D1 01 00 1D 1D 00 0B [17:34:16]Write to MH i2c: 01 00 00 1E 1D 3B [17:34:16]Write i2c OK [17:34:16]MH_I2C_Read... [17:34:16]Connected sock=10 [17:34: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 38 33 30 27 01 00 00 6D 91 1F 01 65 70 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 97 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0D C4 01 00 35 04 06 00 DD 8A E9 8D 3A F2 1A 71 DA 99 3C 0B A2 F2 [17:34:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 92 75 47 00 61 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 38 33 30 10 04 04 00 0D C4 01 00 F4 03 04 00 D9 4B F1 66 B6 04 01 00 00 BF BE 01 C8 87 B1 DB 8B [17:34:16]CommunicateWithHost err = 0 [17:34:16]CheckOFDResponse [17:34:16]1017 (14) - 77093643461234 [17:34:16]1041 (16) - 0000000000871830 [17:34:16]1040 (4) - 115725 [17:34:16]1012 (4) - 23.09.2024 11:07 [17:34:16]1206 (1) - 0 [17:34:16]OFD Sender: Remove packet 115725 [17:34:16]ProducePacketName [17:34:16]name=ofd_packets/00115725 [17:34:16]NVStorageDeleteData [17:34:17]OFD Sender: No OFD packet to send [17:34:17]*** Cut start [17:34:17]*** Partial cut [17:34:17]*** CUTSNS_PIN = 1 [17:34:17]*** CUTSNS_PIN = 0 [17:34:17]*** Brake cut motor [17:34:18]Read from MH i2c: 01 [17:34:18]MH_I2C_Read... [17:34:18]*** Stop cut motor [17:34:18]*** Cut end [17:34:18]Read from MH i2c: 01 07 00 [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: 01 07 00 1E 1D 00 00 00 00 00 FF 0F 50 [17:34:18]process_action close_receipt done [17:34:18]requested_data is exist [17:34:18]produce_requested_data [17:34:18]requested_item fm.sn is exist - process it [17:34:18]wFMCommunicate request_size=4 [17:34:18]MH_SAM_APDU [17:34:18]CAPDU: 80 11 00 00 [17:34:18]Write to MH i2c: E2 08 00 1F 1D 80 11 00 00 00 00 00 00 B6 [17:34:18]Write i2c OK [17:34:18]MH_I2C_Read... [17:34:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:18]Read from MH i2c: E2 [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: E2 17 00 [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: E2 17 00 1F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 04 [17:34:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:34:18]wFMCommunicate OK [17:34:18]requested_item fd.num is exist - process it [17:34:18]SAM_PROTO_GetFieldsCounters [17:34:18]wFMCommunicate request_size=4 [17:34:18]MH_SAM_APDU [17:34:18]CAPDU: 80 13 00 00 [17:34:18]Write to MH i2c: E2 08 00 20 1D 80 13 00 00 00 00 00 00 B9 [17:34:18]Write i2c OK [17:34:18]MH_I2C_Read... [17:34:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:18]Read from MH i2c: E2 [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: E2 62 00 [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: E2 62 00 20 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0D C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [17:34: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0D C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:18]wFMCommunicate OK [17:34:18]SAM_PROTO_GetFieldsCounters done [17:34:18]requested_item shift.num is exist - process it [17:34:18]requested_item shift.opened is exist - process it [17:34:18]req_shift_opened [17:34:18]FM_GetShiftState [17:34:18]SAM_PROTO_GetShiftState [17:34:18]wFMCommunicate request_size=4 [17:34:18]MH_SAM_APDU [17:34:18]CAPDU: 80 13 01 00 [17:34:18]Write to MH i2c: E2 08 00 21 1D 80 13 01 00 00 00 00 00 BB [17:34:18]Write i2c OK [17:34:18]MH_I2C_Read... [17:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:18]Read from MH i2c: E2 [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: E2 0E 00 [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: E2 0E 00 21 1D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 FC [17:34:18]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:34:18]wFMCommunicate OK [17:34:18]SAM_PROTO_GetShiftState done [17:34:18]FM_GetShiftState done [17:34:18]req_shift_opened done [17:34:18]requested_item shift.open_date is exist - process it [17:34:18]req_shift_open_date [17:34:18]req_shift_open_date done [17:34:18]produce_requested_data done [17:34:18]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115725,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:34:18]process_action_free close_receipt [17:34:18]json_value_free [17:34:18]json_value_free done [17:34:18]process_json_proto returns [17:34:18]Send response to host [17:34:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115725,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:34:18]free response buf [17:34:18]execute_script done [17:34:18]execute_script returns [17:34:18]free content buf [17:34:18]Sock 9.Close socket [17:34:18]Sock 9.Thread stoped [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]accept exits with 7 [17:35:02]New connection [17:35:02]New thread 3067022692 created [17:35:02]Thread 3066879332 joined [17:35:02]Waiting for new connection... [17:35:02] Sock 7.Parse request [17:35:02]Sock 7.Check first char [17:35:02]Sock 7.First char is OK [17:35:02]request: POST /json_proto HTTP/1.0 [17:35:02]Method: POST [17:35:02]URL: /json_proto [17:35:02]Method is POST - this is cgi request [17:35:02]url: /json_proto [17:35:02]query_string will be loaded in cgi processing [17:35:02]execute_cgi json_proto POST (null) [17:35:02]execute_cgi path=json_proto method=POST [17:35:02]POST find Content-Length [17:35:02]Host: 172.17.41.136:8080 [17:35:02]Content-Length: 664 [17:35:02]Content-Type: application/json [17:35:02] [17:35:02]POST finish read [17:35:02]Found Content-Length = 664 [17:35:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344059", "tax_sys" : 0, "items" : [ { "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:02]execute_script... [17:35:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344059", "tax_sys" : 0, "items" : [ { "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:02]POST & json_proto [17:35:02]process_json_proto [17:35:02]json parsed OK: [17:35:02]protocol is kg_v1.0 [17:35:02]action value=close_receipt [17:35:02]process_action close_receipt [17:35:02]cmd_close_receipt [17:35:02]MH_GetDate [17:35:02]Write to MH i2c: F0 00 00 22 1D 2E [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: F0 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: F0 09 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: F0 09 00 22 1D 00 C7 A6 F1 66 1B D0 5A 64 A4 [17:35:02]GetLastDocTimeStamp 1727112855 [17:35:02]current date 1727112903 [17:35:02]FM_GetShiftState [17:35:02]SAM_PROTO_GetShiftState [17:35:02]wFMCommunicate request_size=4 [17:35:02]MH_SAM_APDU [17:35:02]CAPDU: 80 13 01 00 [17:35:02]Write to MH i2c: E2 08 00 23 1D 80 13 01 00 00 00 00 00 BD [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:02]Read from MH i2c: E2 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 0E 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 0E 00 23 1D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 FE [17:35:02]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:35:02]wFMCommunicate OK [17:35:02]SAM_PROTO_GetShiftState done [17:35:02]FM_GetShiftState done [17:35:02]opened in 1727052070 [17:35:02]opened+sec_in_day 1727138470 [17:35:02]quantity*price = 20500 [17:35:02]sum+1 = 20501 [17:35:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 209 23.09.2024 17:35 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115726 ФПД: 168309214769007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173503&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115726&fm=168309214769007&tin=02508201610067®Number=0000000000091831&sum=20500 0 [17:35:03]StoreToDocumentArchive [17:35:03]shift 472 fd 115726 [17:35:03]save to /storage/0472/doc_00115726 [17:35:03]save last doc name /storage/0472/doc_00115726 to /storage/kkm_last_doc_name [17:35:03]save OK [17:35:03]Clear old archive folders... [17:35:03]ProcessDocumentItem done err = 0, tmpTLVsize=280 [17:35:03]tlvbuf is 017D4510 [17:35:03]SAM_PROTO_ClearQueue [17:35:03]wFMCommunicate request_size=4 [17:35:03]MH_SAM_APDU [17:35:03]CAPDU: 80 09 00 00 [17:35:03]Write to MH i2c: E2 08 00 30 1D 80 09 00 00 00 00 00 00 BF [17:35:03]Write i2c OK [17:35:03]MH_I2C_Read... [17:35:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:03]Read from MH i2c: E2 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: E2 03 00 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: E2 03 00 30 1D 00 90 00 C1 [17:35:03]RAPDU: 90 00 [17:35:03]wFMCommunicate OK [17:35:03]SAM_PROTO_ClearQueue done [17:35:03]KKMCreateOFDPacket [17:35:03]OFDProtocolAddRootSTLVToBuf [17:35:03]FM_MakeSignedData [17:35:03]FM_MakeSignedData [17:35:03]SAM_PROTO_SignData [17:35:03]wFMCommunicate request_size=4 [17:35:03]MH_SAM_APDU [17:35:03]CAPDU: 80 0D 01 02 [17:35:03]Write to MH i2c: E2 08 00 31 1D 80 0D 01 02 00 00 00 00 C7 [17:35:03]Write i2c OK [17:35:03]MH_I2C_Read... [17:35:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:03]Read from MH i2c: E2 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: E2 03 00 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: E2 03 00 31 1D 00 90 00 C2 [17:35:03]RAPDU: 90 00 [17:35:03]wFMCommunicate OK [17:35:03]wFMCommunicate request_size=255 [17:35:03]MH_SAM_APDU [17:35:03]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 C7 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 [17:35:03]Write to MH i2c: E2 02 01 32 1D 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 C7 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 00 00 2F [17:35:03]Write i2c OK [17:35:03]MH_I2C_Read... [17:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:03]Read from MH i2c: E2 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: E2 03 00 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: E2 03 00 32 1D 00 90 00 C3 [17:35:03]RAPDU: 90 00 [17:35:03]wFMCommunicate OK [17:35:03]wFMCommunicate request_size=39 [17:35:03]MH_SAM_APDU [17:35:03]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0E C4 01 00 35 04 06 00 99 13 8A F5 6F 6F [17:35:03]Write to MH i2c: E2 2A 00 33 1D 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0E C4 01 00 35 04 06 00 99 13 8A F5 6F 6F 00 00 5C [17:35:03]Write i2c OK [17:35:03]MH_I2C_Read... [17:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:04]Read from MH i2c: E2 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 03 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 03 00 33 1D 00 90 00 C4 [17:35:04]RAPDU: 90 00 [17:35:04]wFMCommunicate OK [17:35:04]wFMCommunicate request_size=4 [17:35:04]MH_SAM_APDU [17:35:04]CAPDU: 80 0D 03 02 [17:35:04]Write to MH i2c: E2 08 00 34 1D 80 0D 03 02 00 00 00 00 CC [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:04]Read from MH i2c: E2 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 0B 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 0B 00 34 1D 00 8F 60 DF 74 48 7C 22 01 90 00 F6 [17:35:04]RAPDU: 8F 60 DF 74 48 7C 22 01 90 00 [17:35:04]wFMCommunicate OK [17:35:04]SAM_PROTO_SignData done [17:35:04]FM_MakeSignedData done [17:35:04]CreateOFDProtocolMessage [17:35:04]wFMCommunicate request_size=4 [17:35:04]MH_SAM_APDU [17:35:04]CAPDU: 80 11 00 00 [17:35:04]Write to MH i2c: E2 08 00 35 1D 80 11 00 00 00 00 00 00 CC [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:04]Read from MH i2c: E2 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 17 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 17 00 35 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1A [17:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:35:04]wFMCommunicate OK [17:35:04]CreateOFDProtocolMessage done [17:35:04]OFDSenderStorePacket 115726 [17:35:04]StoreOFDPacket docnum=115726 [17:35:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2C 01 00 00 DF A3 24 01 AD DA 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 C7 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0E C4 01 00 35 04 06 00 99 13 8A F5 6F 6F 8F 60 DF 74 48 7C 22 01 [17:35:04]CheckFolder [17:35:04]dirname=/storage/ofd_packets [17:35:04]CheckFolder done [17:35:04]ProducePacketName [17:35:04]name=ofd_packets/00115726 [17:35:04]NVStorageSaveData ofd_packets/00115726 [17:35:04]File name is /storage/ofd_packets/00115726 [17:35:04]Write 330 bytes [17:35:04]NVStorageSaveData done [17:35:04]OFDSenderStorePacket done [17:35:04]KKMCreateOFDPacket done [17:35:04]NVStorageSaveData kkm_last_timestamp [17:35:04]File name is /storage/kkm_last_timestamp [17:35:04]Write 4 bytes [17:35:04]NVStorageSaveData done [17:35:04]ExternCall_PrintAddStr [17:35:04]wPrintStart [17:35:04]Write to MH i2c: 01 00 00 36 1D 53 [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: 01 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: 01 07 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: 01 07 00 36 1D 00 00 00 00 00 FF 0F 68 [17:35:04]RasterBufferAndPrint [17:35:04]line Счет N : (3)344059 [17:35:04]line ИНН: 02508201610067 [17:35:04]line Контрольно-Кассовый Чек [17:35:04]line ПРОДАЖА [17:35:04]line Товар: 4602441000609 [17:35:04]line Напит Дюшес 1л стекло [17:35:04]line 1.000 * 205.00 [17:35:04]line = 205.00 [17:35:04]line НДС 12% НСП 1% [17:35:04]line > о реализуемом товаре [17:35:04]line ИТОГО: 205.00 [17:35:04]line НСП 1% : 1.81 [17:35:04]line НДС 12% : 21.77 [17:35:04]line Наличными: 205.00 [17:35:04]line Безнал.: 0.00 [17:35:04]line Место: АЗС № 90 "Партнер Нефть" [17:35:04]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:35:04]line СНО: Общий режим [17:35:04]line Чек 209 23.09.2024 17:35 [17:35:04]line Смена: 472 ФФД: 1.0 [17:35:04]line ЗНМ: 0300000120 [17:35:04]line РНМ: 0000000000091831 [17:35:04]line Версия ККМ: 001 [17:35:04]line ФМ: 0000000000871830 [17:35:04]line ФД: 115726 [17:35:04]line ФПД: 168309214769007 [17:35:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173503&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115726&fm=168309214769007&tin=02508201610067®Number=0000000000091831&sum=20500 [17:35:04]line 0 [17:35:04]OFD Sender: Processing packet 115726 [packets to send 482, broken 481] [17:35:04]ProducePacketName [17:35:04]name=ofd_packets/00115726 [17:35:04]OFD Sender: To server: pG, [17:35:04]CommunicateWithHost lk.salyk.kg:30040 [17:35:04]ConnectInit lk.salyk.kg [17:35:04]written 0, free lines is 4095 [17:35:04]Connected sock=10 [17:35:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2C 01 00 00 DF A3 24 01 AD DA 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 C7 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0E C4 01 00 35 04 06 00 99 13 8A F5 6F 6F 8F 60 DF 74 48 7C 22 01 [17:35:04]Write to MH i2c: 01 00 00 5D 1D 7A [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: 01 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: 01 07 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: 01 07 00 5D 1D 00 00 00 00 00 80 0C 0D [17:35:04]RasterBufferAndPrint [17:35:04]line [17:35:04]line [17:35:04]line [17:35:04]line [17:35:04]line [17:35:04]written 0, free lines is 3205 [17:35:04]MH_Cut [17:35:04]Write to MH i2c: D1 01 00 64 1D 01 53 [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: D1 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: D1 01 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: D1 01 00 64 1D 00 52 [17:35:04]Write to MH i2c: 01 00 00 65 1D 82 [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E1 FC 47 00 CD 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 38 33 30 10 04 04 00 0E C4 01 00 F4 03 04 00 09 4C F1 66 B6 04 01 00 00 EC BD 81 EB EC 38 D0 2A [17:35:05]CommunicateWithHost err = 0 [17:35:05]CheckOFDResponse [17:35:05]1017 (14) - 77093643461234 [17:35:05]1041 (16) - 0000000000871830 [17:35:05]1040 (4) - 115726 [17:35:05]1012 (4) - 23.09.2024 11:07 [17:35:05]1206 (1) - 0 [17:35:05]OFD Sender: Remove packet 115726 [17:35:05]ProducePacketName [17:35:05]name=ofd_packets/00115726 [17:35:05]NVStorageDeleteData [17:35:05]OFD Sender: No OFD packet to send [17:35:06]*** Cut start [17:35:06]*** Partial cut [17:35:06]*** CUTSNS_PIN = 1 [17:35:06]*** CUTSNS_PIN = 0 [17:35:06]*** Brake cut motor [17:35:06]Read from MH i2c: 01 [17:35:06]MH_I2C_Read... [17:35:06]*** Stop cut motor [17:35:06]*** Cut end [17:35:06]Read from MH i2c: 01 07 00 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: 01 07 00 65 1D 00 00 00 00 00 FF 0F 97 [17:35:06]process_action close_receipt done [17:35:06]requested_data is exist [17:35:06]produce_requested_data [17:35:06]requested_item fm.sn is exist - process it [17:35:06]wFMCommunicate request_size=4 [17:35:06]MH_SAM_APDU [17:35:06]CAPDU: 80 11 00 00 [17:35:06]Write to MH i2c: E2 08 00 66 1D 80 11 00 00 00 00 00 00 FD [17:35:06]Write i2c OK [17:35:06]MH_I2C_Read... [17:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:06]Read from MH i2c: E2 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: E2 17 00 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: E2 17 00 66 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4B [17:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:35:06]wFMCommunicate OK [17:35:06]requested_item fd.num is exist - process it [17:35:06]SAM_PROTO_GetFieldsCounters [17:35:06]wFMCommunicate request_size=4 [17:35:06]MH_SAM_APDU [17:35:06]CAPDU: 80 13 00 00 [17:35:06]Write to MH i2c: E2 08 00 67 1D 80 13 00 00 00 00 00 00 00 [17:35:06]Write i2c OK [17:35:06]MH_I2C_Read... [17:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:06]Read from MH i2c: E2 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: E2 62 00 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: E2 62 00 67 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0E C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [17:35:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0E C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:06]wFMCommunicate OK [17:35:06]SAM_PROTO_GetFieldsCounters done [17:35:06]requested_item shift.num is exist - process it [17:35:06]requested_item shift.opened is exist - process it [17:35:06]req_shift_opened [17:35:06]FM_GetShiftState [17:35:06]SAM_PROTO_GetShiftState [17:35:06]wFMCommunicate request_size=4 [17:35:06]MH_SAM_APDU [17:35:06]CAPDU: 80 13 01 00 [17:35:06]Write to MH i2c: E2 08 00 68 1D 80 13 01 00 00 00 00 00 02 [17:35:06]Write i2c OK [17:35:06]MH_I2C_Read... [17:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:06]Read from MH i2c: E2 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: E2 0E 00 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: E2 0E 00 68 1D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 43 [17:35:06]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:35:06]wFMCommunicate OK [17:35:06]SAM_PROTO_GetShiftState done [17:35:06]FM_GetShiftState done [17:35:06]req_shift_opened done [17:35:06]requested_item shift.open_date is exist - process it [17:35:06]req_shift_open_date [17:35:06]req_shift_open_date done [17:35:06]produce_requested_data done [17:35:06]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115726,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:35:06]process_action_free close_receipt [17:35:06]json_value_free [17:35:06]json_value_free done [17:35:06]process_json_proto returns [17:35:06]Send response to host [17:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115726,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:35:06]free response buf [17:35:06]execute_script done [17:35:06]execute_script returns [17:35:06]free content buf [17:35:06]Sock 7.Close socket [17:35:06]Sock 7.Thread stoped [17:35:10]OFD Sender: No OFD packet to send [17:35:14]accept exits with 9 [17:35:14]New connection [17:35:14]New thread 3066879332 created [17:35:14]Thread 3067022692 joined [17:35:14]Waiting for new connection... [17:35:14] Sock 9.Parse request [17:35:14]Sock 9.Check first char [17:35:14]Sock 9.First char is OK [17:35:14]request: POST /json_proto HTTP/1.0 [17:35:14]Method: POST [17:35:14]URL: /json_proto [17:35:14]Method is POST - this is cgi request [17:35:14]url: /json_proto [17:35:14]query_string will be loaded in cgi processing [17:35:14]execute_cgi json_proto POST (null) [17:35:14]execute_cgi path=json_proto method=POST [17:35:14]POST find Content-Length [17:35:14]Host: 172.17.41.136:8080 [17:35:14]Content-Length: 625 [17:35:14]Content-Type: application/json [17:35:14] [17:35:14]POST finish read [17:35:14]Found Content-Length = 625 [17:35:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 28.860, "sum" : 2000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:14]execute_script... [17:35: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)24617888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 28.860, "sum" : 2000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:14]POST & json_proto [17:35:14]process_json_proto [17:35:14]json parsed OK: [17:35:14]protocol is kg_v1.0 [17:35:14]action value=close_receipt [17:35:14]process_action close_receipt [17:35:14]cmd_close_receipt [17:35:14]MH_GetDate [17:35:14]Write to MH i2c: F0 00 00 69 1D 75 [17:35:14]Write i2c OK [17:35:14]MH_I2C_Read... [17:35:14]Read from MH i2c: F0 [17:35:14]MH_I2C_Read... [17:35:14]Read from MH i2c: F0 09 00 [17:35:14]MH_I2C_Read... [17:35:14]Read from MH i2c: F0 09 00 69 1D 00 D3 A6 F1 66 1B D0 5A 64 F7 [17:35:14]GetLastDocTimeStamp 1727112903 [17:35:14]current date 1727112915 [17:35:14]FM_GetShiftState [17:35:14]SAM_PROTO_GetShiftState [17:35:14]wFMCommunicate request_size=4 [17:35:14]MH_SAM_APDU [17:35:14]CAPDU: 80 13 01 00 [17:35:14]Write to MH i2c: E2 08 00 6A 1D 80 13 01 00 00 00 00 00 04 [17:35:14]Write i2c OK [17:35:14]MH_I2C_Read... [17:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:14]Read from MH i2c: E2 [17:35:14]MH_I2C_Read... [17:35:14]Read from MH i2c: E2 0E 00 [17:35:14]MH_I2C_Read... [17:35:14]Read from MH i2c: E2 0E 00 6A 1D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 45 [17:35:14]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:35:14]wFMCommunicate OK [17:35:14]SAM_PROTO_GetShiftState done [17:35:14]FM_GetShiftState done [17:35:14]opened in 1727052070 [17:35:14]opened+sec_in_day 1727138470 [17:35:14]quantity*price = 199999 [17:35:14]sum+1 = 200001 [17:35:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 210 23.09.2024 17:35 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115727 ФПД: 211681776965539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173515&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115727&fm=211681776965539&tin=02508201610067®Number=0000000000091831&sum=200000 [17:35:15]StoreToDocumentArchive [17:35:15]shift 472 fd 115727 [17:35:15]save to /storage/0472/doc_00115727 [17:35:15]save last doc name /storage/0472/doc_00115727 to /storage/kkm_last_doc_name [17:35:15]save OK [17:35:15]Clear old archive folders... [17:35:15]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:35:15]tlvbuf is 017C5530 [17:35:15]SAM_PROTO_ClearQueue [17:35:15]wFMCommunicate request_size=4 [17:35:15]MH_SAM_APDU [17:35:15]CAPDU: 80 09 00 00 [17:35:15]Write to MH i2c: E2 08 00 77 1D 80 09 00 00 00 00 00 00 06 [17:35:15]Write i2c OK [17:35:15]MH_I2C_Read... [17:35:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:15]Read from MH i2c: E2 [17:35:15]MH_I2C_Read... [17:35:15]Read from MH i2c: E2 03 00 [17:35:15]MH_I2C_Read... [17:35:15]Read from MH i2c: E2 03 00 77 1D 00 90 00 08 [17:35:15]RAPDU: 90 00 [17:35:15]wFMCommunicate OK [17:35:15]SAM_PROTO_ClearQueue done [17:35:15]KKMCreateOFDPacket [17:35:15]OFDProtocolAddRootSTLVToBuf [17:35:15]FM_MakeSignedData [17:35:15]FM_MakeSignedData [17:35:15]SAM_PROTO_SignData [17:35:15]wFMCommunicate request_size=4 [17:35:15]MH_SAM_APDU [17:35:15]CAPDU: 80 0D 01 02 [17:35:15]Write to MH i2c: E2 08 00 78 1D 80 0D 01 02 00 00 00 00 0E [17:35:15]Write i2c OK [17:35:15]MH_I2C_Read... [17:35:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:16]Read from MH i2c: E2 [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: E2 03 00 [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: E2 03 00 78 1D 00 90 00 09 [17:35:16]RAPDU: 90 00 [17:35:16]wFMCommunicate OK [17:35:16]wFMCommunicate request_size=253 [17:35:16]MH_SAM_APDU [17:35:16]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 70 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 40 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 F7 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 D2 00 00 00 F4 03 04 00 D3 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0F C4 01 00 35 04 06 00 C0 86 01 1F 17 A3 [17:35:16]Write to MH i2c: E2 00 01 79 1D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 70 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 40 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 F7 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 D2 00 00 00 F4 03 04 00 D3 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0F C4 01 00 35 04 06 00 C0 86 01 1F 17 A3 00 00 AF [17:35:16]Write i2c OK [17:35:16]MH_I2C_Read... [17:35:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:16]Read from MH i2c: E2 [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: E2 03 00 [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: E2 03 00 79 1D 00 90 00 0A [17:35:16]RAPDU: 90 00 [17:35:16]wFMCommunicate OK [17:35:16]wFMCommunicate request_size=4 [17:35:16]MH_SAM_APDU [17:35:16]CAPDU: 80 0D 03 02 [17:35:16]Write to MH i2c: E2 08 00 7A 1D 80 0D 03 02 00 00 00 00 12 [17:35:16]Write i2c OK [17:35:16]MH_I2C_Read... [17:35:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:16]Read from MH i2c: E2 [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: E2 0B 00 [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: E2 0B 00 7A 1D 00 CA 0C DE 07 35 2F 42 41 90 00 B5 [17:35:16]RAPDU: CA 0C DE 07 35 2F 42 41 90 00 [17:35:16]wFMCommunicate OK [17:35:16]SAM_PROTO_SignData done [17:35:16]FM_MakeSignedData done [17:35:16]CreateOFDProtocolMessage [17:35:16]wFMCommunicate request_size=4 [17:35:16]MH_SAM_APDU [17:35:16]CAPDU: 80 11 00 00 [17:35:16]Write to MH i2c: E2 08 00 7B 1D 80 11 00 00 00 00 00 00 12 [17:35:16]Write i2c OK [17:35:16]MH_I2C_Read... [17:35:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:16]Read from MH i2c: E2 [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: E2 17 00 [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: E2 17 00 7B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 60 [17:35:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:35:16]wFMCommunicate OK [17:35:16]CreateOFDProtocolMessage done [17:35:16]OFDSenderStorePacket 115727 [17:35:16]StoreOFDPacket docnum=115727 [17:35:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 27 79 00 01 8E 62 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 70 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 40 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 F7 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 D2 00 00 00 F4 03 04 00 D3 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0F C4 01 00 35 04 06 00 C0 86 01 1F 17 A3 CA 0C DE 07 35 2F 42 41 [17:35:16]CheckFolder [17:35:16]dirname=/storage/ofd_packets [17:35:16]CheckFolder done [17:35:16]ProducePacketName [17:35:16]name=ofd_packets/00115727 [17:35:16]NVStorageSaveData ofd_packets/00115727 [17:35:16]File name is /storage/ofd_packets/00115727 [17:35:16]Write 294 bytes [17:35:16]NVStorageSaveData done [17:35:16]OFDSenderStorePacket done [17:35:16]KKMCreateOFDPacket done [17:35:16]NVStorageSaveData kkm_last_timestamp [17:35:16]File name is /storage/kkm_last_timestamp [17:35:16]Write 4 bytes [17:35:16]NVStorageSaveData done [17:35:16]ExternCall_PrintAddStr [17:35:16]wPrintStart [17:35:16]Write to MH i2c: 01 00 00 7C 1D 99 [17:35:16]Write i2c OK [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: 01 [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: 01 07 00 [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: 01 07 00 7C 1D 00 00 00 00 00 FF 0F AE [17:35:16]RasterBufferAndPrint [17:35:16]line Счет N : (1)24617888 [17:35:16]line ИНН: 02508201610067 [17:35:16]line Контрольно-Кассовый Чек [17:35:16]line ПРОДАЖА [17:35:16]line ТРК (МРК, ГНК) : 34 [17:35:16]line Товар: 2710124130 [17:35:16]line SU-92 [17:35:16]line 28.860 * 69.30 [17:35:16]line = 2000.00 [17:35:16]line НДС 12% НСП 1% [17:35:16]line > о реализуемом товаре [17:35:16]line ИТОГО: 2000.00 [17:35:16]line НСП 1% : 17.70 [17:35:16]line НДС 12% : 212.39 [17:35:16]line Наличными: 2000.00 [17:35:16]line Безнал.: 0.00 [17:35:16]line Место: АЗС № 90 "Партнер Нефть" [17:35:16]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:35:16]line СНО: Общий режим [17:35:16]line Чек 210 23.09.2024 17:35 [17:35:16]line Смена: 472 ФФД: 1.0 [17:35:16]line ЗНМ: 0300000120 [17:35:16]line РНМ: 0000000000091831 [17:35:16]line Версия ККМ: 001 [17:35:16]line ФМ: 0000000000871830 [17:35:16]line ФД: 115727 [17:35:16]line ФПД: 211681776965539 [17:35:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173515&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115727&fm=211681776965539&tin=02508201610067®Number=0000000000091831&sum=200000 [17:35:16]written 0, free lines is 4095 [17:35:16]OFD Sender: Processing packet 115727 [packets to send 482, broken 481] [17:35:16]ProducePacketName [17:35:16]name=ofd_packets/00115727 [17:35:16]OFD Sender: To server: pG, [17:35:16]CommunicateWithHost lk.salyk.kg:30040 [17:35:16]ConnectInit lk.salyk.kg [17:35:16]Connected sock=7 [17:35: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 38 33 30 08 01 00 00 27 79 00 01 8E 62 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 70 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 40 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 F7 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 D2 00 00 00 F4 03 04 00 D3 A6 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 0F C4 01 00 35 04 06 00 C0 86 01 1F 17 A3 CA 0C DE 07 35 2F 42 41 [17:35:16]Write to MH i2c: 01 00 00 A3 1D C0 [17:35:16]Write i2c OK [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: 01 [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: 01 07 00 [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: 01 07 00 A3 1D 00 00 00 00 00 A4 0C 77 [17:35:16]RasterBufferAndPrint [17:35:16]line [17:35:16]line [17:35:16]line [17:35:16]line [17:35:16]line [17:35:16]written 0, free lines is 3242 [17:35:16]MH_Cut [17:35:16]Write to MH i2c: D1 01 00 AA 1D 01 99 [17:35:16]Write i2c OK [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: D1 [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: D1 01 00 [17:35:16]MH_I2C_Read... [17:35:16]Read from MH i2c: D1 01 00 AA 1D 00 98 [17:35:16]Write to MH i2c: 01 00 00 AB 1D C8 [17:35:16]Write i2c OK [17:35:16]MH_I2C_Read... [17:35:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 FF B2 47 00 25 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 38 33 30 10 04 04 00 0F C4 01 00 F4 03 04 00 15 4C F1 66 B6 04 01 00 00 FC AE 5A BA 21 A5 58 68 [17:35:17]CommunicateWithHost err = 0 [17:35:17]CheckOFDResponse [17:35:17]1017 (14) - 77093643461234 [17:35:17]1041 (16) - 0000000000871830 [17:35:17]1040 (4) - 115727 [17:35:17]1012 (4) - 23.09.2024 11:08 [17:35:17]1206 (1) - 0 [17:35:17]OFD Sender: Remove packet 115727 [17:35:17]ProducePacketName [17:35:17]name=ofd_packets/00115727 [17:35:17]NVStorageDeleteData [17:35:17]OFD Sender: No OFD packet to send [17:35:18]*** Cut start [17:35:18]*** Partial cut [17:35:18]*** CUTSNS_PIN = 1 [17:35:18]*** CUTSNS_PIN = 0 [17:35:18]*** Brake cut motor [17:35:18]Read from MH i2c: 01 [17:35:18]MH_I2C_Read... [17:35:18]*** Stop cut motor [17:35:18]*** Cut end [17:35:18]Read from MH i2c: 01 07 00 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: 01 07 00 AB 1D 00 00 00 00 00 FF 0F DD [17:35:18]process_action close_receipt done [17:35:18]requested_data is exist [17:35:18]produce_requested_data [17:35:18]requested_item fm.sn is exist - process it [17:35:18]wFMCommunicate request_size=4 [17:35:18]MH_SAM_APDU [17:35:18]CAPDU: 80 11 00 00 [17:35:18]Write to MH i2c: E2 08 00 AC 1D 80 11 00 00 00 00 00 00 43 [17:35:18]Write i2c OK [17:35:18]MH_I2C_Read... [17:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:18]Read from MH i2c: E2 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: E2 17 00 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: E2 17 00 AC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 91 [17:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:35:18]wFMCommunicate OK [17:35:18]requested_item fd.num is exist - process it [17:35:18]SAM_PROTO_GetFieldsCounters [17:35:18]wFMCommunicate request_size=4 [17:35:18]MH_SAM_APDU [17:35:18]CAPDU: 80 13 00 00 [17:35:18]Write to MH i2c: E2 08 00 AD 1D 80 13 00 00 00 00 00 00 46 [17:35:18]Write i2c OK [17:35:18]MH_I2C_Read... [17:35:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:18]Read from MH i2c: E2 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: E2 62 00 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: E2 62 00 AD 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0F C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [17:35: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 0F C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:18]wFMCommunicate OK [17:35:18]SAM_PROTO_GetFieldsCounters done [17:35:18]requested_item shift.num is exist - process it [17:35:18]requested_item shift.opened is exist - process it [17:35:18]req_shift_opened [17:35:18]FM_GetShiftState [17:35:18]SAM_PROTO_GetShiftState [17:35:18]wFMCommunicate request_size=4 [17:35:18]MH_SAM_APDU [17:35:18]CAPDU: 80 13 01 00 [17:35:18]Write to MH i2c: E2 08 00 AE 1D 80 13 01 00 00 00 00 00 48 [17:35:18]Write i2c OK [17:35:18]MH_I2C_Read... [17:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:18]Read from MH i2c: E2 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: E2 0E 00 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: E2 0E 00 AE 1D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 89 [17:35:18]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:35:18]wFMCommunicate OK [17:35:18]SAM_PROTO_GetShiftState done [17:35:18]FM_GetShiftState done [17:35:18]req_shift_opened done [17:35:18]requested_item shift.open_date is exist - process it [17:35:18]req_shift_open_date [17:35:18]req_shift_open_date done [17:35:18]produce_requested_data done [17:35:18]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115727,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:35:18]process_action_free close_receipt [17:35:18]json_value_free [17:35:18]json_value_free done [17:35:18]process_json_proto returns [17:35:18]Send response to host [17:35:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115727,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:35:18]free response buf [17:35:18]execute_script done [17:35:18]execute_script returns [17:35:18]free content buf [17:35:18]Sock 9.Close socket [17:35:18]Sock 9.Thread stoped [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:00]accept exits with 10 [17:37:00]New connection [17:37:00]New thread 3067022692 created [17:37:00]Thread 3066879332 joined [17:37:00]Waiting for new connection... [17:37:00] Sock 10.Parse request [17:37:00]Sock 10.Check first char [17:37:00]Sock 10.First char is OK [17:37:00]request: POST /json_proto HTTP/1.0 [17:37:00]Method: POST [17:37:00]URL: /json_proto [17:37:00]Method is POST - this is cgi request [17:37:00]url: /json_proto [17:37:00]query_string will be loaded in cgi processing [17:37:00]execute_cgi json_proto POST (null) [17:37:00]execute_cgi path=json_proto method=POST [17:37:00]POST find Content-Length [17:37:00]Host: 172.17.41.136:8080 [17:37:00]Content-Length: 914 [17:37:00]Content-Type: application/json [17:37:00] [17:37:00]POST finish read [17:37:00]Found Content-Length = 914 [17:37:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344060", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:00]execute_script... [17:37: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 : (3)344060", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:00]POST & json_proto [17:37:00]process_json_proto [17:37:00]json parsed OK: [17:37:00]protocol is kg_v1.0 [17:37:00]action value=close_receipt [17:37:00]process_action close_receipt [17:37:00]cmd_close_receipt [17:37:00]MH_GetDate [17:37:00]Write to MH i2c: F0 00 00 AF 1D BB [17:37:00]Write i2c OK [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: F0 [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: F0 09 00 [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: F0 09 00 AF 1D 00 3D A7 F1 66 1B D0 5A 64 A8 [17:37:00]GetLastDocTimeStamp 1727112915 [17:37:00]current date 1727113021 [17:37:00]FM_GetShiftState [17:37:00]SAM_PROTO_GetShiftState [17:37:00]wFMCommunicate request_size=4 [17:37:00]MH_SAM_APDU [17:37:00]CAPDU: 80 13 01 00 [17:37:00]Write to MH i2c: E2 08 00 B0 1D 80 13 01 00 00 00 00 00 4A [17:37:00]Write i2c OK [17:37:00]MH_I2C_Read... [17:37:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:00]Read from MH i2c: E2 [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: E2 0E 00 [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: E2 0E 00 B0 1D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 8B [17:37:00]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:37:00]wFMCommunicate OK [17:37:00]SAM_PROTO_GetShiftState done [17:37:00]FM_GetShiftState done [17:37:00]opened in 1727052070 [17:37:00]opened+sec_in_day 1727138470 [17:37:00]quantity*price = 12500 [17:37:00]sum+1 = 12501 [17:37:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.07 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 211 23.09.2024 17:37 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115728 ФПД: 123498397074961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173701&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115728&fm=123498397074961&tin=02508201610067®Number=0000000000091831&sum=25500 0 [17:37:01]StoreToDocumentArchive [17:37:01]shift 472 fd 115728 [17:37:01]save to /storage/0472/doc_00115728 [17:37:01]save last doc name /storage/0472/doc_00115728 to /storage/kkm_last_doc_name [17:37:01]save OK [17:37:01]Clear old archive folders... [17:37:01]ProcessDocumentItem done err = 0, tmpTLVsize=396 [17:37:01]tlvbuf is B6DB9010 [17:37:01]SAM_PROTO_ClearQueue [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 09 00 00 [17:37:01]Write to MH i2c: E2 08 00 BD 1D 80 09 00 00 00 00 00 00 4C [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 BD 1D 00 90 00 4E [17:37:01]RAPDU: 90 00 [17:37:01]wFMCommunicate OK [17:37:01]SAM_PROTO_ClearQueue done [17:37:01]KKMCreateOFDPacket [17:37:01]OFDProtocolAddRootSTLVToBuf [17:37:01]FM_MakeSignedData [17:37:01]FM_MakeSignedData [17:37:01]SAM_PROTO_SignData [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 0D 01 02 [17:37:01]Write to MH i2c: E2 08 00 BE 1D 80 0D 01 02 00 00 00 00 54 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 BE 1D 00 90 00 4F [17:37:01]RAPDU: 90 00 [17:37:01]wFMCommunicate OK [17:37:01]wFMCommunicate request_size=255 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF [17:37:01]Write to MH i2c: E2 02 01 BF 1D 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 00 00 67 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:02]Read from MH i2c: E2 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 03 00 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 03 00 BF 1D 00 90 00 50 [17:37:02]RAPDU: 90 00 [17:37:02]wFMCommunicate OK [17:37:02]wFMCommunicate request_size=155 [17:37:02]MH_SAM_APDU [17:37:02]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 3D A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 10 C4 01 00 35 04 06 00 70 52 36 16 86 11 [17:37:02]Write to MH i2c: E2 9E 00 C0 1D 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 3D A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 10 C4 01 00 35 04 06 00 70 52 36 16 86 11 00 00 94 [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:02]Read from MH i2c: E2 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 03 00 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 03 00 C0 1D 00 90 00 51 [17:37:02]RAPDU: 90 00 [17:37:02]wFMCommunicate OK [17:37:02]wFMCommunicate request_size=4 [17:37:02]MH_SAM_APDU [17:37:02]CAPDU: 80 0D 03 02 [17:37:02]Write to MH i2c: E2 08 00 C1 1D 80 0D 03 02 00 00 00 00 59 [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:02]Read from MH i2c: E2 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 0B 00 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 0B 00 C1 1D 00 55 5D D7 18 41 E3 50 DA 90 00 49 [17:37:02]RAPDU: 55 5D D7 18 41 E3 50 DA 90 00 [17:37:02]wFMCommunicate OK [17:37:02]SAM_PROTO_SignData done [17:37:02]FM_MakeSignedData done [17:37:02]CreateOFDProtocolMessage [17:37:02]wFMCommunicate request_size=4 [17:37:02]MH_SAM_APDU [17:37:02]CAPDU: 80 11 00 00 [17:37:02]Write to MH i2c: E2 08 00 C2 1D 80 11 00 00 00 00 00 00 59 [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:02]Read from MH i2c: E2 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 17 00 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 17 00 C2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A7 [17:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:37:02]wFMCommunicate OK [17:37:02]CreateOFDProtocolMessage done [17:37:02]OFDSenderStorePacket 115728 [17:37:02]StoreOFDPacket docnum=115728 [17:37:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A0 01 00 00 E6 EF 98 01 B3 5E 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 3D A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 10 C4 01 00 35 04 06 00 70 52 36 16 86 11 55 5D D7 18 41 E3 50 DA [17:37:02]CheckFolder [17:37:02]dirname=/storage/ofd_packets [17:37:02]CheckFolder done [17:37:02]ProducePacketName [17:37:02]name=ofd_packets/00115728 [17:37:02]NVStorageSaveData ofd_packets/00115728 [17:37:02]File name is /storage/ofd_packets/00115728 [17:37:02]Write 446 bytes [17:37:02]NVStorageSaveData done [17:37:02]OFDSenderStorePacket done [17:37:02]KKMCreateOFDPacket done [17:37:02]NVStorageSaveData kkm_last_timestamp [17:37:02]File name is /storage/kkm_last_timestamp [17:37:02]Write 4 bytes [17:37:02]NVStorageSaveData done [17:37:02]ExternCall_PrintAddStr [17:37:02]wPrintStart [17:37:02]Write to MH i2c: 01 00 00 C3 1D E0 [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: 01 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: 01 07 00 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: 01 07 00 C3 1D 00 00 00 00 00 FF 0F F5 [17:37:02]RasterBufferAndPrint [17:37:02]line Счет N : (3)344060 [17:37:02]line ИНН: 02508201610067 [17:37:02]line Контрольно-Кассовый Чек [17:37:02]line ПРОДАЖА [17:37:02]line Товар: 2000036190018 [17:37:02]line Кофе Американо XL(GABB TRADE) [17:37:02]line 1.000 * 125.00 [17:37:02]line = 125.00 [17:37:02]line НДС 12% НСП 1% [17:37:02]line > о реализуемом товаре [17:37:02]line Товар: 2000036220012 [17:37:02]line Кофе Капучино XL(GABB TRADE) [17:37:02]line 1.000 * 130.00 [17:37:02]line = 130.00 [17:37:02]line НДС 12% НСП 1% [17:37:02]line > о реализуемом товаре [17:37:02]line ИТОГО: 255.00 [17:37:02]line НСП 1% : 2.26 [17:37:02]line НДС 12% : 27.07 [17:37:02]line Наличными: 255.00 [17:37:02]line Безнал.: 0.00 [17:37:02]line Место: АЗС № 90 "Партнер Нефть" [17:37:02]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:37:02]line СНО: Общий режим [17:37:02]line Чек 211 23.09.2024 17:37 [17:37:02]line Смена: 472 ФФД: 1.0 [17:37:02]line ЗНМ: 0300000120 [17:37:02]line РНМ: 0000000000091831 [17:37:02]line Версия ККМ: 001 [17:37:02]line ФМ: 0000000000871830 [17:37:02]line ФД: 115728 [17:37:02]line ФПД: 123498397074961 [17:37:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173701&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115728&fm=123498397074961&tin=02508201610067®Number=0000000000091831&sum=25500 [17:37:02]line 0 [17:37:02]OFD Sender: Processing packet 115728 [packets to send 482, broken 481] [17:37:02]ProducePacketName [17:37:02]name=ofd_packets/00115728 [17:37:02]OFD Sender: To server: pG, [17:37:02]CommunicateWithHost lk.salyk.kg:30040 [17:37:02]ConnectInit lk.salyk.kg [17:37:02]written 0, free lines is 4095 [17:37:03]Connected sock=7 [17:37: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 38 33 30 A0 01 00 00 E6 EF 98 01 B3 5E 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 3D A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 10 C4 01 00 35 04 06 00 70 52 36 16 86 11 55 5D D7 18 41 E3 50 DA [17:37:03]Write to MH i2c: 01 00 00 F2 1D 0F [17:37:03]Write i2c OK [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: 01 [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: 01 07 00 [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: 01 07 00 F2 1D 00 00 00 00 00 F0 0B 11 [17:37:03]RasterBufferAndPrint [17:37:03]line [17:37:03]line [17:37:03]line [17:37:03]line [17:37:03]line [17:37:03]written 0, free lines is 3060 [17:37:03]MH_Cut [17:37:03]Write to MH i2c: D1 01 00 F9 1D 01 E8 [17:37:03]Write i2c OK [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: D1 [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: D1 01 00 [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: D1 01 00 F9 1D 00 E7 [17:37:03]Write to MH i2c: 01 00 00 FA 1D 17 [17:37:03]Write i2c OK [17:37:03]MH_I2C_Read... [17:37:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A5 E1 47 00 3A 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 38 33 30 10 04 04 00 10 C4 01 00 F4 03 04 00 80 4C F1 66 B6 04 01 00 00 20 4C F6 32 72 56 66 8A [17:37:03]CommunicateWithHost err = 0 [17:37:03]CheckOFDResponse [17:37:03]1017 (14) - 77093643461234 [17:37:03]1041 (16) - 0000000000871830 [17:37:03]1040 (4) - 115728 [17:37:03]1012 (4) - 23.09.2024 11:09 [17:37:03]1206 (1) - 0 [17:37:03]OFD Sender: Remove packet 115728 [17:37:03]ProducePacketName [17:37:03]name=ofd_packets/00115728 [17:37:03]NVStorageDeleteData [17:37:03]OFD Sender: No OFD packet to send [17:37:04]*** Cut start [17:37:04]*** Partial cut [17:37:04]*** CUTSNS_PIN = 1 [17:37:04]*** CUTSNS_PIN = 0 [17:37:04]*** Brake cut motor [17:37:05]Read from MH i2c: 01 [17:37:05]MH_I2C_Read... [17:37:05]*** Stop cut motor [17:37:05]*** Cut end [17:37:05]Read from MH i2c: 01 07 00 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: 01 07 00 FA 1D 00 00 00 00 00 FF 0F 2C [17:37:05]process_action close_receipt done [17:37:05]requested_data is exist [17:37:05]produce_requested_data [17:37:05]requested_item fm.sn is exist - process it [17:37:05]wFMCommunicate request_size=4 [17:37:05]MH_SAM_APDU [17:37:05]CAPDU: 80 11 00 00 [17:37:05]Write to MH i2c: E2 08 00 FB 1D 80 11 00 00 00 00 00 00 92 [17:37:05]Write i2c OK [17:37:05]MH_I2C_Read... [17:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:05]Read from MH i2c: E2 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: E2 17 00 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: E2 17 00 FB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E0 [17:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:37:05]wFMCommunicate OK [17:37:05]requested_item fd.num is exist - process it [17:37:05]SAM_PROTO_GetFieldsCounters [17:37:05]wFMCommunicate request_size=4 [17:37:05]MH_SAM_APDU [17:37:05]CAPDU: 80 13 00 00 [17:37:05]Write to MH i2c: E2 08 00 FC 1D 80 13 00 00 00 00 00 00 95 [17:37:05]Write i2c OK [17:37:05]MH_I2C_Read... [17:37:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:05]Read from MH i2c: E2 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: E2 62 00 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: E2 62 00 FC 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 10 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [17:37: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 10 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:05]wFMCommunicate OK [17:37:05]SAM_PROTO_GetFieldsCounters done [17:37:05]requested_item shift.num is exist - process it [17:37:05]requested_item shift.opened is exist - process it [17:37:05]req_shift_opened [17:37:05]FM_GetShiftState [17:37:05]SAM_PROTO_GetShiftState [17:37:05]wFMCommunicate request_size=4 [17:37:05]MH_SAM_APDU [17:37:05]CAPDU: 80 13 01 00 [17:37:05]Write to MH i2c: E2 08 00 FD 1D 80 13 01 00 00 00 00 00 97 [17:37:05]Write i2c OK [17:37:05]MH_I2C_Read... [17:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:05]Read from MH i2c: E2 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: E2 0E 00 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: E2 0E 00 FD 1D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D8 [17:37:05]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:37:05]wFMCommunicate OK [17:37:05]SAM_PROTO_GetShiftState done [17:37:05]FM_GetShiftState done [17:37:05]req_shift_opened done [17:37:05]requested_item shift.open_date is exist - process it [17:37:05]req_shift_open_date [17:37:05]req_shift_open_date done [17:37:05]produce_requested_data done [17:37:05]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115728,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:37:05]process_action_free close_receipt [17:37:05]json_value_free [17:37:05]json_value_free done [17:37:05]process_json_proto returns [17:37:05]Send response to host [17:37:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115728,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:37:05]free response buf [17:37:05]execute_script done [17:37:05]execute_script returns [17:37:05]free content buf [17:37:05]Sock 10.Close socket [17:37:05]Sock 10.Thread stoped [17:37:08]OFD Sender: No OFD packet to send [17:37:12]accept exits with 9 [17:37:12]New connection [17:37:12]New thread 3066879332 created [17:37:12]Thread 3067022692 joined [17:37:12]Waiting for new connection... [17:37:12] Sock 9.Parse request [17:37:12]Sock 9.Check first char [17:37:12]Sock 9.First char is OK [17:37:12]request: POST /json_proto HTTP/1.0 [17:37:12]Method: POST [17:37:12]URL: /json_proto [17:37:12]Method is POST - this is cgi request [17:37:12]url: /json_proto [17:37:12]query_string will be loaded in cgi processing [17:37:12]execute_cgi json_proto POST (null) [17:37:12]execute_cgi path=json_proto method=POST [17:37:12]POST find Content-Length [17:37:12]Host: 172.17.41.136:8080 [17:37:12]Content-Length: 660 [17:37:12]Content-Type: application/json [17:37:12] [17:37:12]POST finish read [17:37:12]Found Content-Length = 660 [17:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:12]execute_script... [17:37:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:12]POST & json_proto [17:37:12]process_json_proto [17:37:12]json parsed OK: [17:37:12]protocol is kg_v1.0 [17:37:12]action value=close_receipt [17:37:12]process_action close_receipt [17:37:12]cmd_close_receipt [17:37:12]MH_GetDate [17:37:12]Write to MH i2c: F0 00 00 FE 1D 0A [17:37:12]Write i2c OK [17:37:12]MH_I2C_Read... [17:37:12]Read from MH i2c: F0 [17:37:12]MH_I2C_Read... [17:37:12]Read from MH i2c: F0 09 00 [17:37:12]MH_I2C_Read... [17:37:12]Read from MH i2c: F0 09 00 FE 1D 00 4A A7 F1 66 1B D0 5A 64 04 [17:37:12]GetLastDocTimeStamp 1727113021 [17:37:12]current date 1727113034 [17:37:12]FM_GetShiftState [17:37:12]SAM_PROTO_GetShiftState [17:37:12]wFMCommunicate request_size=4 [17:37:12]MH_SAM_APDU [17:37:12]CAPDU: 80 13 01 00 [17:37:12]Write to MH i2c: E2 08 00 FF 1D 80 13 01 00 00 00 00 00 99 [17:37:12]Write i2c OK [17:37:12]MH_I2C_Read... [17:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:13]Read from MH i2c: E2 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 0E 00 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 0E 00 FF 1D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 DA [17:37:13]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:37:13]wFMCommunicate OK [17:37:13]SAM_PROTO_GetShiftState done [17:37:13]FM_GetShiftState done [17:37:13]opened in 1727052070 [17:37:13]opened+sec_in_day 1727138470 [17:37:13]quantity*price = 50034 [17:37:13]sum+1 = 50036 [17:37:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 212 23.09.2024 17:37 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115729 ФПД: 37470187423226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173714&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115729&fm=37470187423226&tin=02508201610067®Number=0000000000091831&sum=50000 [17:37:14]StoreToDocumentArchive [17:37:14]shift 472 fd 115729 [17:37:14]save to /storage/0472/doc_00115729 [17:37:14]save last doc name /storage/0472/doc_00115729 to /storage/kkm_last_doc_name [17:37:14]save OK [17:37:14]Clear old archive folders... [17:37:14]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:37:14]tlvbuf is 01835BA0 [17:37:14]SAM_PROTO_ClearQueue [17:37:14]wFMCommunicate request_size=4 [17:37:14]MH_SAM_APDU [17:37:14]CAPDU: 80 09 00 00 [17:37:14]Write to MH i2c: E2 08 00 0C 1E 80 09 00 00 00 00 00 00 9C [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:14]Read from MH i2c: E2 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 03 00 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 03 00 0C 1E 00 90 00 9E [17:37:14]RAPDU: 90 00 [17:37:14]wFMCommunicate OK [17:37:14]SAM_PROTO_ClearQueue done [17:37:14]KKMCreateOFDPacket [17:37:14]OFDProtocolAddRootSTLVToBuf [17:37:14]FM_MakeSignedData [17:37:14]FM_MakeSignedData [17:37:14]SAM_PROTO_SignData [17:37:14]wFMCommunicate request_size=4 [17:37:14]MH_SAM_APDU [17:37:14]CAPDU: 80 0D 01 02 [17:37:14]Write to MH i2c: E2 08 00 0D 1E 80 0D 01 02 00 00 00 00 A4 [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:14]Read from MH i2c: E2 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 03 00 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 03 00 0D 1E 00 90 00 9F [17:37:14]RAPDU: 90 00 [17:37:14]wFMCommunicate OK [17:37:14]wFMCommunicate request_size=253 [17:37:14]MH_SAM_APDU [17:37:14]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 4A A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 11 C4 01 00 35 04 06 00 22 14 35 36 05 FA [17:37:14]Write to MH i2c: E2 00 01 0E 1E 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 4A A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 11 C4 01 00 35 04 06 00 22 14 35 36 05 FA 00 00 29 [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:14]Read from MH i2c: E2 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 03 00 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 03 00 0E 1E 00 90 00 A0 [17:37:14]RAPDU: 90 00 [17:37:14]wFMCommunicate OK [17:37:14]wFMCommunicate request_size=4 [17:37:14]MH_SAM_APDU [17:37:14]CAPDU: 80 0D 03 02 [17:37:14]Write to MH i2c: E2 08 00 0F 1E 80 0D 03 02 00 00 00 00 A8 [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:14]Read from MH i2c: E2 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 0B 00 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 0B 00 0F 1E 00 5A 02 25 CF 44 28 1A 5E 90 00 DD [17:37:14]RAPDU: 5A 02 25 CF 44 28 1A 5E 90 00 [17:37:14]wFMCommunicate OK [17:37:14]SAM_PROTO_SignData done [17:37:14]FM_MakeSignedData done [17:37:14]CreateOFDProtocolMessage [17:37:14]wFMCommunicate request_size=4 [17:37:14]MH_SAM_APDU [17:37:14]CAPDU: 80 11 00 00 [17:37:14]Write to MH i2c: E2 08 00 10 1E 80 11 00 00 00 00 00 00 A8 [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:14]Read from MH i2c: E2 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 17 00 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 17 00 10 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F6 [17:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:37:14]wFMCommunicate OK [17:37:14]CreateOFDProtocolMessage done [17:37:14]OFDSenderStorePacket 115729 [17:37:14]StoreOFDPacket docnum=115729 [17:37:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 E3 A3 00 01 FA 45 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 4A A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 11 C4 01 00 35 04 06 00 22 14 35 36 05 FA 5A 02 25 CF 44 28 1A 5E [17:37:14]CheckFolder [17:37:14]dirname=/storage/ofd_packets [17:37:14]CheckFolder done [17:37:14]ProducePacketName [17:37:14]name=ofd_packets/00115729 [17:37:14]NVStorageSaveData ofd_packets/00115729 [17:37:14]File name is /storage/ofd_packets/00115729 [17:37:14]Write 294 bytes [17:37:14]NVStorageSaveData done [17:37:14]OFDSenderStorePacket done [17:37:14]KKMCreateOFDPacket done [17:37:14]NVStorageSaveData kkm_last_timestamp [17:37:14]File name is /storage/kkm_last_timestamp [17:37:14]Write 4 bytes [17:37:14]NVStorageSaveData done [17:37:14]ExternCall_PrintAddStr [17:37:14]wPrintStart [17:37:14]Write to MH i2c: 01 00 00 11 1E 2F [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: 01 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: 01 07 00 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: 01 07 00 11 1E 00 00 00 00 00 FF 0F 44 [17:37:14]RasterBufferAndPrint [17:37:14]line Счет N : (1)24617890 [17:37:14]line ИНН: 02508201610067 [17:37:14]line Контрольно-Кассовый Чек [17:37:14]line ПРОДАЖА [17:37:14]line ТРК (МРК, ГНК) : 44 [17:37:14]line Товар: 2710124130 [17:37:14]line SU-92 [17:37:14]line 7.220 * 69.30 [17:37:14]line = 500.35 [17:37:14]line НДС 12% НСП 1% [17:37:14]line > о реализуемом товаре [17:37:14]line ОКРУГЛЕНИЕ: -0.35 [17:37:14]line ИТОГО: 500.00 [17:37:14]line Внесено: 500.00 [17:37:14]line СДАЧА: 0.00 [17:37:14]line НСП 1% : 4.43 [17:37:14]line НДС 12% : 53.13 [17:37:14]line Наличными: 500.00 [17:37:14]line Безнал.: 0.00 [17:37:14]line Место: АЗС № 90 "Партнер Нефть" [17:37:14]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:37:14]line СНО: Общий режим [17:37:14]line Чек 212 23.09.2024 17:37 [17:37:14]line Смена: 472 ФФД: 1.0 [17:37:14]line ЗНМ: 0300000120 [17:37:14]line РНМ: 0000000000091831 [17:37:14]line Версия ККМ: 001 [17:37:14]line ФМ: 0000000000871830 [17:37:14]line ФД: 115729 [17:37:14]line ФПД: 37470187423226 [17:37:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173714&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115729&fm=37470187423226&tin=02508201610067®Number=0000000000091831&sum=50000 [17:37:14]OFD Sender: Processing packet 115729 [packets to send 482, broken 481] [17:37:14]ProducePacketName [17:37:14]name=ofd_packets/00115729 [17:37:14]OFD Sender: To server: pG, [17:37:14]CommunicateWithHost lk.salyk.kg:30040 [17:37:14]ConnectInit lk.salyk.kg [17:37:14]written 0, free lines is 4095 [17:37:14]Connected sock=10 [17:37: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 38 33 30 08 01 00 00 E3 A3 00 01 FA 45 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 4A A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 11 C4 01 00 35 04 06 00 22 14 35 36 05 FA 5A 02 25 CF 44 28 1A 5E [17:37:15]Write to MH i2c: 01 00 00 3B 1E 59 [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: 01 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: 01 07 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: 01 07 00 3B 1E 00 00 00 00 00 70 0C DC [17:37:15]RasterBufferAndPrint [17:37:15]line [17:37:15]line [17:37:15]line [17:37:15]line [17:37:15]line [17:37:15]written 0, free lines is 3191 [17:37:15]MH_Cut [17:37:15]Write to MH i2c: D1 01 00 42 1E 01 32 [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: D1 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: D1 01 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: D1 01 00 42 1E 00 31 [17:37:15]Write to MH i2c: 01 00 00 43 1E 61 [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D9 46 47 00 57 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 38 33 30 10 04 04 00 11 C4 01 00 F4 03 04 00 8B 4C F1 66 B6 04 01 00 00 A5 38 65 B9 BE BE EC E5 [17:37:15]CommunicateWithHost err = 0 [17:37:15]CheckOFDResponse [17:37:15]1017 (14) - 77093643461234 [17:37:15]1041 (16) - 0000000000871830 [17:37:15]1040 (4) - 115729 [17:37:15]1012 (4) - 23.09.2024 11:10 [17:37:15]1206 (1) - 0 [17:37:15]OFD Sender: Remove packet 115729 [17:37:15]ProducePacketName [17:37:15]name=ofd_packets/00115729 [17:37:15]NVStorageDeleteData [17:37:15]OFD Sender: No OFD packet to send [17:37:16]*** Cut start [17:37:16]*** Partial cut [17:37:16]*** CUTSNS_PIN = 1 [17:37:16]*** CUTSNS_PIN = 0 [17:37:16]*** Brake cut motor [17:37:17]Read from MH i2c: 01 [17:37:17]MH_I2C_Read... [17:37:17]*** Stop cut motor [17:37:17]*** Cut end [17:37:17]Read from MH i2c: 01 07 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: 01 07 00 43 1E 00 00 00 00 00 FF 0F 76 [17:37:17]process_action close_receipt done [17:37:17]requested_data is exist [17:37:17]produce_requested_data [17:37:17]requested_item fm.sn is exist - process it [17:37:17]wFMCommunicate request_size=4 [17:37:17]MH_SAM_APDU [17:37:17]CAPDU: 80 11 00 00 [17:37:17]Write to MH i2c: E2 08 00 44 1E 80 11 00 00 00 00 00 00 DC [17:37:17]Write i2c OK [17:37:17]MH_I2C_Read... [17:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:17]Read from MH i2c: E2 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 17 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 17 00 44 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2A [17:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:37:17]wFMCommunicate OK [17:37:17]requested_item fd.num is exist - process it [17:37:17]SAM_PROTO_GetFieldsCounters [17:37:17]wFMCommunicate request_size=4 [17:37:17]MH_SAM_APDU [17:37:17]CAPDU: 80 13 00 00 [17:37:17]Write to MH i2c: E2 08 00 45 1E 80 13 00 00 00 00 00 00 DF [17:37:17]Write i2c OK [17:37:17]MH_I2C_Read... [17:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:17]Read from MH i2c: E2 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 62 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 62 00 45 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 11 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [17:37:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 11 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:17]wFMCommunicate OK [17:37:17]SAM_PROTO_GetFieldsCounters done [17:37:17]requested_item shift.num is exist - process it [17:37:17]requested_item shift.opened is exist - process it [17:37:17]req_shift_opened [17:37:17]FM_GetShiftState [17:37:17]SAM_PROTO_GetShiftState [17:37:17]wFMCommunicate request_size=4 [17:37:17]MH_SAM_APDU [17:37:17]CAPDU: 80 13 01 00 [17:37:17]Write to MH i2c: E2 08 00 46 1E 80 13 01 00 00 00 00 00 E1 [17:37:17]Write i2c OK [17:37:17]MH_I2C_Read... [17:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:17]Read from MH i2c: E2 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 0E 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 0E 00 46 1E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 22 [17:37:17]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:37:17]wFMCommunicate OK [17:37:17]SAM_PROTO_GetShiftState done [17:37:17]FM_GetShiftState done [17:37:17]req_shift_opened done [17:37:17]requested_item shift.open_date is exist - process it [17:37:17]req_shift_open_date [17:37:17]req_shift_open_date done [17:37:17]produce_requested_data done [17:37:17]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115729,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:37:17]process_action_free close_receipt [17:37:17]json_value_free [17:37:17]json_value_free done [17:37:17]process_json_proto returns [17:37:17]Send response to host [17:37:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115729,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:37:17]free response buf [17:37:17]execute_script done [17:37:17]execute_script returns [17:37:17]free content buf [17:37:17]Sock 9.Close socket [17:37:17]Sock 9.Thread stoped [17:37:20]OFD Sender: No OFD packet to send [17:37:25]accept exits with 7 [17:37:25]New connection [17:37:25]New thread 3067022692 created [17:37:25]Thread 3066879332 joined [17:37:25]Waiting for new connection... [17:37:25] Sock 7.Parse request [17:37:25]Sock 7.Check first char [17:37:25]Sock 7.First char is OK [17:37:25]request: POST /json_proto HTTP/1.0 [17:37:25]Method: POST [17:37:25]URL: /json_proto [17:37:25]Method is POST - this is cgi request [17:37:25]url: /json_proto [17:37:25]query_string will be loaded in cgi processing [17:37:25]execute_cgi json_proto POST (null) [17:37:25]execute_cgi path=json_proto method=POST [17:37:25]POST find Content-Length [17:37:25]Host: 172.17.41.136:8080 [17:37:25]Content-Length: 661 [17:37:25]Content-Type: application/json [17:37:25] [17:37:25]POST finish read [17:37:25]Found Content-Length = 661 [17:37:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 10.110, "sum" : 700.62, "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:37:25]execute_script... [17:37: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)24617889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 69.30, "quantity" : 10.110, "sum" : 700.62, "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:37:25]POST & json_proto [17:37:25]process_json_proto [17:37:25]json parsed OK: [17:37:25]protocol is kg_v1.0 [17:37:25]action value=close_receipt [17:37:25]process_action close_receipt [17:37:25]cmd_close_receipt [17:37:25]MH_GetDate [17:37:25]Write to MH i2c: F0 00 00 47 1E 54 [17:37:25]Write i2c OK [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: F0 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: F0 09 00 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: F0 09 00 47 1E 00 56 A7 F1 66 1B D0 5A 64 5A [17:37:25]GetLastDocTimeStamp 1727113034 [17:37:25]current date 1727113046 [17:37:25]FM_GetShiftState [17:37:25]SAM_PROTO_GetShiftState [17:37:25]wFMCommunicate request_size=4 [17:37:25]MH_SAM_APDU [17:37:25]CAPDU: 80 13 01 00 [17:37:25]Write to MH i2c: E2 08 00 48 1E 80 13 01 00 00 00 00 00 E3 [17:37:25]Write i2c OK [17:37:25]MH_I2C_Read... [17:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:25]Read from MH i2c: E2 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: E2 0E 00 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: E2 0E 00 48 1E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 24 [17:37:25]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:37:25]wFMCommunicate OK [17:37:25]SAM_PROTO_GetShiftState done [17:37:25]FM_GetShiftState done [17:37:25]opened in 1727052070 [17:37:25]opened+sec_in_day 1727138470 [17:37:25]quantity*price = 70062 [17:37:25]sum+1 = 70063 [17:37:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 213 23.09.2024 17:37 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115730 ФПД: 172570856114283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173726&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115730&fm=172570856114283&tin=02508201610067®Number=0000000000091831&sum=70000 [17:37:26]StoreToDocumentArchive [17:37:26]shift 472 fd 115730 [17:37:26]save to /storage/0472/doc_00115730 [17:37:26]save last doc name /storage/0472/doc_00115730 to /storage/kkm_last_doc_name [17:37:26]save OK [17:37:26]Clear old archive folders... [17:37:26]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:37:26]tlvbuf is 0185D450 [17:37:26]SAM_PROTO_ClearQueue [17:37:26]wFMCommunicate request_size=4 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 09 00 00 [17:37:26]Write to MH i2c: E2 08 00 55 1E 80 09 00 00 00 00 00 00 E5 [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 55 1E 00 90 00 E7 [17:37:26]RAPDU: 90 00 [17:37:26]wFMCommunicate OK [17:37:26]SAM_PROTO_ClearQueue done [17:37:26]KKMCreateOFDPacket [17:37:26]OFDProtocolAddRootSTLVToBuf [17:37:26]FM_MakeSignedData [17:37:26]FM_MakeSignedData [17:37:26]SAM_PROTO_SignData [17:37:26]wFMCommunicate request_size=4 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 0D 01 02 [17:37:26]Write to MH i2c: E2 08 00 56 1E 80 0D 01 02 00 00 00 00 ED [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 56 1E 00 90 00 E8 [17:37:26]RAPDU: 90 00 [17:37:26]wFMCommunicate OK [17:37:26]wFMCommunicate request_size=253 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 AE 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 56 A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 12 C4 01 00 35 04 06 00 9C F3 C8 93 C8 6B [17:37:26]Write to MH i2c: E2 00 01 57 1E 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 AE 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 56 A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 12 C4 01 00 35 04 06 00 9C F3 C8 93 C8 6B 00 00 C4 [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 57 1E 00 90 00 E9 [17:37:26]RAPDU: 90 00 [17:37:26]wFMCommunicate OK [17:37:26]wFMCommunicate request_size=4 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 0D 03 02 [17:37:26]Write to MH i2c: E2 08 00 58 1E 80 0D 03 02 00 00 00 00 F1 [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 0B 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 0B 00 58 1E 00 4E E6 30 8F 83 E6 5D FC 90 00 A7 [17:37:26]RAPDU: 4E E6 30 8F 83 E6 5D FC 90 00 [17:37:26]wFMCommunicate OK [17:37:26]SAM_PROTO_SignData done [17:37:26]FM_MakeSignedData done [17:37:26]CreateOFDProtocolMessage [17:37:26]wFMCommunicate request_size=4 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 11 00 00 [17:37:26]Write to MH i2c: E2 08 00 59 1E 80 11 00 00 00 00 00 00 F1 [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 17 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 17 00 59 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3F [17:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:37:26]wFMCommunicate OK [17:37:26]CreateOFDProtocolMessage done [17:37:26]OFDSenderStorePacket 115730 [17:37:26]StoreOFDPacket docnum=115730 [17:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 08 01 00 00 19 3F 00 01 1D 2B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 AE 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 56 A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 12 C4 01 00 35 04 06 00 9C F3 C8 93 C8 6B 4E E6 30 8F 83 E6 5D FC [17:37:26]CheckFolder [17:37:26]dirname=/storage/ofd_packets [17:37:26]CheckFolder done [17:37:26]ProducePacketName [17:37:26]name=ofd_packets/00115730 [17:37:26]NVStorageSaveData ofd_packets/00115730 [17:37:26]File name is /storage/ofd_packets/00115730 [17:37:26]Write 294 bytes [17:37:26]NVStorageSaveData done [17:37:26]OFDSenderStorePacket done [17:37:26]KKMCreateOFDPacket done [17:37:26]NVStorageSaveData kkm_last_timestamp [17:37:26]File name is /storage/kkm_last_timestamp [17:37:26]Write 4 bytes [17:37:26]NVStorageSaveData done [17:37:26]ExternCall_PrintAddStr [17:37:26]wPrintStart [17:37:26]Write to MH i2c: 01 00 00 5A 1E 78 [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: 01 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: 01 07 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: 01 07 00 5A 1E 00 00 00 00 00 FF 0F 8D [17:37:26]RasterBufferAndPrint [17:37:26]line Счет N : (1)24617889 [17:37:26]line ИНН: 02508201610067 [17:37:26]line Контрольно-Кассовый Чек [17:37:26]line ПРОДАЖА [17:37:26]line ТРК (МРК, ГНК) : 54 [17:37:26]line Товар: 2710124130 [17:37:26]line SU-92 [17:37:26]line 10.110 * 69.30 [17:37:26]line = 700.62 [17:37:26]line НДС 12% НСП 1% [17:37:26]line > о реализуемом товаре [17:37:26]line ОКРУГЛЕНИЕ: -0.62 [17:37:26]line ИТОГО: 700.00 [17:37:26]line Внесено: 700.00 [17:37:26]line СДАЧА: 0.00 [17:37:26]line НСП 1% : 6.20 [17:37:26]line НДС 12% : 74.40 [17:37:26]line Наличными: 700.00 [17:37:26]line Безнал.: 0.00 [17:37:26]line Место: АЗС № 90 "Партнер Нефть" [17:37:26]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:37:26]line СНО: Общий режим [17:37:26]line Чек 213 23.09.2024 17:37 [17:37:26]line Смена: 472 ФФД: 1.0 [17:37:26]line ЗНМ: 0300000120 [17:37:26]line РНМ: 0000000000091831 [17:37:26]line Версия ККМ: 001 [17:37:26]line ФМ: 0000000000871830 [17:37:26]line ФД: 115730 [17:37:26]line ФПД: 172570856114283 [17:37:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173726&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115730&fm=172570856114283&tin=02508201610067®Number=0000000000091831&sum=70000 [17:37:27]written 0, free lines is 4095 [17:37:27]OFD Sender: Processing packet 115730 [packets to send 482, broken 481] [17:37:27]ProducePacketName [17:37:27]name=ofd_packets/00115730 [17:37:27]OFD Sender: To server: pG, [17:37:27]CommunicateWithHost lk.salyk.kg:30040 [17:37:27]ConnectInit lk.salyk.kg [17:37:27]Connected sock=10 [17:37: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 38 33 30 08 01 00 00 19 3F 00 01 1D 2B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 AE 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 56 A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 12 C4 01 00 35 04 06 00 9C F3 C8 93 C8 6B 4E E6 30 8F 83 E6 5D FC [17:37:27]Write to MH i2c: 01 00 00 84 1E A2 [17:37:27]Write i2c OK [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: 01 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: 01 07 00 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: 01 07 00 84 1E 00 00 00 00 00 5F 0C 14 [17:37:27]RasterBufferAndPrint [17:37:27]line [17:37:27]line [17:37:27]line [17:37:27]line [17:37:27]line [17:37:27]written 0, free lines is 3179 [17:37:27]MH_Cut [17:37:27]Write to MH i2c: D1 01 00 8B 1E 01 7B [17:37:27]Write i2c OK [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: D1 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: D1 01 00 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: D1 01 00 8B 1E 00 7A [17:37:27]Write to MH i2c: 01 00 00 8C 1E AA [17:37:27]Write i2c OK [17:37:27]MH_I2C_Read... [17:37:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9B 79 47 00 07 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 38 33 30 10 04 04 00 12 C4 01 00 F4 03 04 00 98 4C F1 66 B6 04 01 00 00 85 7F 5F 8E 28 03 5E FC [17:37:27]CommunicateWithHost err = 0 [17:37:27]CheckOFDResponse [17:37:27]1017 (14) - 77093643461234 [17:37:27]1041 (16) - 0000000000871830 [17:37:27]1040 (4) - 115730 [17:37:27]1012 (4) - 23.09.2024 11:10 [17:37:27]1206 (1) - 0 [17:37:27]OFD Sender: Remove packet 115730 [17:37:27]ProducePacketName [17:37:27]name=ofd_packets/00115730 [17:37:27]NVStorageDeleteData [17:37:28]OFD Sender: No OFD packet to send [17:37:28]*** Cut start [17:37:28]*** Partial cut [17:37:28]*** CUTSNS_PIN = 1 [17:37:28]*** CUTSNS_PIN = 0 [17:37:28]*** Brake cut motor [17:37:29]Read from MH i2c: 01 [17:37:29]MH_I2C_Read... [17:37:29]*** Stop cut motor [17:37:29]*** Cut end [17:37:29]Read from MH i2c: 01 07 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: 01 07 00 8C 1E 00 00 00 00 00 FF 0F BF [17:37:29]process_action close_receipt done [17:37:29]requested_data is exist [17:37:29]produce_requested_data [17:37:29]requested_item fm.sn is exist - process it [17:37:29]wFMCommunicate request_size=4 [17:37:29]MH_SAM_APDU [17:37:29]CAPDU: 80 11 00 00 [17:37:29]Write to MH i2c: E2 08 00 8D 1E 80 11 00 00 00 00 00 00 25 [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:29]Read from MH i2c: E2 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 17 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 17 00 8D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 73 [17:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:37:29]wFMCommunicate OK [17:37:29]requested_item fd.num is exist - process it [17:37:29]SAM_PROTO_GetFieldsCounters [17:37:29]wFMCommunicate request_size=4 [17:37:29]MH_SAM_APDU [17:37:29]CAPDU: 80 13 00 00 [17:37:29]Write to MH i2c: E2 08 00 8E 1E 80 13 00 00 00 00 00 00 28 [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:29]Read from MH i2c: E2 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 62 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 62 00 8E 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 12 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [17:37: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 12 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:29]wFMCommunicate OK [17:37:29]SAM_PROTO_GetFieldsCounters done [17:37:29]requested_item shift.num is exist - process it [17:37:29]requested_item shift.opened is exist - process it [17:37:29]req_shift_opened [17:37:29]FM_GetShiftState [17:37:29]SAM_PROTO_GetShiftState [17:37:29]wFMCommunicate request_size=4 [17:37:29]MH_SAM_APDU [17:37:29]CAPDU: 80 13 01 00 [17:37:29]Write to MH i2c: E2 08 00 8F 1E 80 13 01 00 00 00 00 00 2A [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 [17:37:29]MH_I2C_Read... [17:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:29]Read from MH i2c: E2 0E 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 0E 00 8F 1E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6B [17:37:29]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:37:29]wFMCommunicate OK [17:37:29]SAM_PROTO_GetShiftState done [17:37:29]FM_GetShiftState done [17:37:29]req_shift_opened done [17:37:29]requested_item shift.open_date is exist - process it [17:37:29]req_shift_open_date [17:37:29]req_shift_open_date done [17:37:29]produce_requested_data done [17:37:29]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115730,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:37:29]process_action_free close_receipt [17:37:29]json_value_free [17:37:29]json_value_free done [17:37:29]process_json_proto returns [17:37:29]Send response to host [17:37:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115730,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:37:29]free response buf [17:37:29]execute_script done [17:37:29]execute_script returns [17:37:29]free content buf [17:37:29]Sock 7.Close socket [17:37:29]Sock 7.Thread stoped [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:24]accept exits with 9 [17:39:24]New connection [17:39:24]New thread 3066879332 created [17:39:24]Thread 3067022692 joined [17:39:24]Waiting for new connection... [17:39:24] Sock 9.Parse request [17:39:24]Sock 9.Check first char [17:39:24]Sock 9.First char is OK [17:39:24]request: POST /json_proto HTTP/1.0 [17:39:24]Method: POST [17:39:24]URL: /json_proto [17:39:24]Method is POST - this is cgi request [17:39:24]url: /json_proto [17:39:24]query_string will be loaded in cgi processing [17:39:24]execute_cgi json_proto POST (null) [17:39:24]execute_cgi path=json_proto method=POST [17:39:24]POST find Content-Length [17:39:24]Host: 172.17.41.136:8080 [17:39:24]Content-Length: 677 [17:39:24]Content-Type: application/json [17:39:24] [17:39:24]POST finish read [17:39:24]Found Content-Length = 677 [17:39:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:24]execute_script... [17: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)24617891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:24]POST & json_proto [17:39:24]process_json_proto [17:39:24]json parsed OK: [17:39:24]protocol is kg_v1.0 [17:39:24]action value=close_receipt [17:39:24]process_action close_receipt [17:39:24]cmd_close_receipt [17:39:24]MH_GetDate [17:39:24]Write to MH i2c: F0 00 00 90 1E 9D [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: F0 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: F0 09 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: F0 09 00 90 1E 00 CD A7 F1 66 1B D0 5A 64 1A [17:39:24]GetLastDocTimeStamp 1727113046 [17:39:24]current date 1727113165 [17:39:24]FM_GetShiftState [17:39:24]SAM_PROTO_GetShiftState [17:39:24]wFMCommunicate request_size=4 [17:39:24]MH_SAM_APDU [17:39:24]CAPDU: 80 13 01 00 [17:39:24]Write to MH i2c: E2 08 00 91 1E 80 13 01 00 00 00 00 00 2C [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:24]Read from MH i2c: E2 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 0E 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 0E 00 91 1E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6D [17:39:24]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:39:24]wFMCommunicate OK [17:39:24]SAM_PROTO_GetShiftState done [17:39:24]FM_GetShiftState done [17:39:24]opened in 1727052070 [17:39:24]opened+sec_in_day 1727138470 [17:39:24]quantity*price = 80010 [17:39:24]sum+1 = 80011 [17:39:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 214 23.09.2024 17:39 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115731 ФПД: 115696735459331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173925&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115731&fm=115696735459331&tin=02508201610067®Number=0000000000091831&sum=80000 [17:39:25]StoreToDocumentArchive [17:39:25]shift 472 fd 115731 [17:39:25]save to /storage/0472/doc_00115731 [17:39:25]save last doc name /storage/0472/doc_00115731 to /storage/kkm_last_doc_name [17:39:25]save OK [17:39:25]Clear old archive folders... [17:39:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:39:25]tlvbuf is 0181D7F0 [17:39:25]SAM_PROTO_ClearQueue [17:39:25]wFMCommunicate request_size=4 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 09 00 00 [17:39:25]Write to MH i2c: E2 08 00 9E 1E 80 09 00 00 00 00 00 00 2E [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 9E 1E 00 90 00 30 [17:39:25]RAPDU: 90 00 [17:39:25]wFMCommunicate OK [17:39:25]SAM_PROTO_ClearQueue done [17:39:25]KKMCreateOFDPacket [17:39:25]OFDProtocolAddRootSTLVToBuf [17:39:25]FM_MakeSignedData [17:39:25]FM_MakeSignedData [17:39:25]SAM_PROTO_SignData [17:39:25]wFMCommunicate request_size=4 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 0D 01 02 [17:39:25]Write to MH i2c: E2 08 00 9F 1E 80 0D 01 02 00 00 00 00 36 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 9F 1E 00 90 00 31 [17:39:25]RAPDU: 90 00 [17:39:25]wFMCommunicate OK [17:39:25]wFMCommunicate request_size=255 [17:39:25]MH_SAM_APDU [17: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 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 CD A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 13 C4 01 00 35 04 06 00 69 39 BE D1 [17:39:25]Write to MH i2c: E2 02 01 A0 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 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 CD A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 13 C4 01 00 35 04 06 00 69 39 BE D1 00 00 69 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 A0 1E 00 90 00 32 [17:39:25]RAPDU: 90 00 [17:39:25]wFMCommunicate OK [17:39:25]wFMCommunicate request_size=7 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 0D 02 02 02 98 03 [17:39:25]Write to MH i2c: E2 0A 00 A1 1E 80 0D 02 02 02 00 98 03 00 00 D8 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:26]Read from MH i2c: E2 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 03 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 03 00 A1 1E 00 90 00 33 [17:39:26]RAPDU: 90 00 [17:39:26]wFMCommunicate OK [17:39:26]wFMCommunicate request_size=4 [17:39:26]MH_SAM_APDU [17:39:26]CAPDU: 80 0D 03 02 [17:39:26]Write to MH i2c: E2 08 00 A2 1E 80 0D 03 02 00 00 00 00 3B [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:26]Read from MH i2c: E2 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 0B 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 0B 00 A2 1E 00 3C 7A 69 DA F3 6C 20 02 90 00 B6 [17:39:26]RAPDU: 3C 7A 69 DA F3 6C 20 02 90 00 [17:39:26]wFMCommunicate OK [17:39:26]SAM_PROTO_SignData done [17:39:26]FM_MakeSignedData done [17:39:26]CreateOFDProtocolMessage [17:39:26]wFMCommunicate request_size=4 [17:39:26]MH_SAM_APDU [17:39:26]CAPDU: 80 11 00 00 [17:39:26]Write to MH i2c: E2 08 00 A3 1E 80 11 00 00 00 00 00 00 3B [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:26]Read from MH i2c: E2 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 17 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: E2 17 00 A3 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 89 [17:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:39:26]wFMCommunicate OK [17:39:26]CreateOFDProtocolMessage done [17:39:26]OFDSenderStorePacket 115731 [17:39:26]StoreOFDPacket docnum=115731 [17:39:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 EF DF 04 01 BA 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D6 00 00 00 F4 03 04 00 CD A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 13 C4 01 00 35 04 06 00 69 39 BE D1 98 03 3C 7A 69 DA F3 6C 20 02 [17:39:26]CheckFolder [17:39:26]dirname=/storage/ofd_packets [17:39:26]CheckFolder done [17:39:26]ProducePacketName [17:39:26]name=ofd_packets/00115731 [17:39:26]NVStorageSaveData ofd_packets/00115731 [17:39:26]File name is /storage/ofd_packets/00115731 [17:39:26]Write 298 bytes [17:39:26]NVStorageSaveData done [17:39:26]OFDSenderStorePacket done [17:39:26]KKMCreateOFDPacket done [17:39:26]NVStorageSaveData kkm_last_timestamp [17:39:26]File name is /storage/kkm_last_timestamp [17:39:26]Write 4 bytes [17:39:26]NVStorageSaveData done [17:39:26]ExternCall_PrintAddStr [17:39:26]wPrintStart [17:39:26]Write to MH i2c: 01 00 00 A4 1E C2 [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 07 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 07 00 A4 1E 00 00 00 00 00 FF 0F D7 [17:39:26]RasterBufferAndPrint [17:39:26]line Счет N : (1)24617891 [17:39:26]line ИНН: 02508201610067 [17:39:26]line Контрольно-Кассовый Чек [17:39:26]line ПРОДАЖА [17:39:26]line ТРК (МРК, ГНК) : 65 [17:39:26]line Товар: 2710194210 [17:39:26]line ДТ-К-5 [17:39:26]line 10.500 * 76.20 [17:39:26]line = 800.10 [17:39:26]line НДС 12% НСП 1% [17:39:26]line > о реализуемом товаре [17:39:26]line ОКРУГЛЕНИЕ: -0.10 [17:39:26]line ИТОГО: 800.00 [17:39:26]line Внесено: 800.00 [17:39:26]line СДАЧА: 0.00 [17:39:26]line НСП 1% : 7.08 [17:39:26]line НДС 12% : 84.97 [17:39:26]line Наличными: 800.00 [17:39:26]line Безнал.: 0.00 [17:39:26]line Место: АЗС № 90 "Партнер Нефть" [17:39:26]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:39:26]line СНО: Общий режим [17:39:26]line Чек 214 23.09.2024 17:39 [17:39:26]line Смена: 472 ФФД: 1.0 [17:39:26]line ЗНМ: 0300000120 [17:39:26]line РНМ: 0000000000091831 [17:39:26]line Версия ККМ: 001 [17:39:26]line ФМ: 0000000000871830 [17:39:26]line ФД: 115731 [17:39:26]line ФПД: 115696735459331 [17:39:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173925&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115731&fm=115696735459331&tin=02508201610067®Number=0000000000091831&sum=80000 [17:39:26]OFD Sender: Processing packet 115731 [packets to send 482, broken 481] [17:39:26]ProducePacketName [17:39:26]name=ofd_packets/00115731 [17:39:26]OFD Sender: To server: pG, [17:39:26]CommunicateWithHost lk.salyk.kg:30040 [17:39:26]ConnectInit lk.salyk.kg [17:39:26]written 0, free lines is 4095 [17:39:26]Connected sock=10 [17: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 38 33 30 0C 01 00 00 EF DF 04 01 BA 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D6 00 00 00 F4 03 04 00 CD A7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 13 C4 01 00 35 04 06 00 69 39 BE D1 98 03 3C 7A 69 DA F3 6C 20 02 [17:39:26]Write to MH i2c: 01 00 00 CE 1E EC [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 07 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 07 00 CE 1E 00 00 00 00 00 5C 0C 5B [17:39:26]RasterBufferAndPrint [17:39:26]line [17:39:26]line [17:39:26]line [17:39:26]line [17:39:26]line [17:39:26]written 0, free lines is 3169 [17:39:26]MH_Cut [17:39:26]Write to MH i2c: D1 01 00 D5 1E 01 C5 [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: D1 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: D1 01 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: D1 01 00 D5 1E 00 C4 [17:39:26]Write to MH i2c: 01 00 00 D6 1E F4 [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17: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 38 33 30 4F 00 00 00 04 A2 47 00 BD 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 38 33 30 10 04 04 00 13 C4 01 00 F4 03 04 00 0F 4D F1 66 B6 04 01 00 00 4E BF 8F 67 2C 50 66 20 [17:39:27]CommunicateWithHost err = 0 [17:39:27]CheckOFDResponse [17:39:27]1017 (14) - 77093643461234 [17:39:27]1041 (16) - 0000000000871830 [17:39:27]1040 (4) - 115731 [17:39:27]1012 (4) - 23.09.2024 11:12 [17:39:27]1206 (1) - 0 [17:39:27]OFD Sender: Remove packet 115731 [17:39:27]ProducePacketName [17:39:27]name=ofd_packets/00115731 [17:39:27]NVStorageDeleteData [17:39:27]OFD Sender: No OFD packet to send [17:39:28]*** Cut start [17:39:28]*** Partial cut [17:39:28]*** CUTSNS_PIN = 1 [17:39:28]*** CUTSNS_PIN = 0 [17:39:28]*** Brake cut motor [17:39:28]Read from MH i2c: 01 [17:39:28]MH_I2C_Read... [17:39:28]*** Stop cut motor [17:39:28]*** Cut end [17:39:28]Read from MH i2c: 01 07 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: 01 07 00 D6 1E 00 00 00 00 00 FF 0F 09 [17:39:28]process_action close_receipt done [17:39:28]requested_data is exist [17:39:28]produce_requested_data [17:39:28]requested_item fm.sn is exist - process it [17:39:28]wFMCommunicate request_size=4 [17:39:28]MH_SAM_APDU [17:39:28]CAPDU: 80 11 00 00 [17:39:28]Write to MH i2c: E2 08 00 D7 1E 80 11 00 00 00 00 00 00 6F [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 [17:39:28]MH_I2C_Read... [17:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:28]Read from MH i2c: E2 17 00 [17:39:28]MH_I2C_Read... [17:39:28]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 38 33 30 90 00 BD [17:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:39:28]wFMCommunicate OK [17:39:28]requested_item fd.num is exist - process it [17:39:28]SAM_PROTO_GetFieldsCounters [17:39:28]wFMCommunicate request_size=4 [17:39:28]MH_SAM_APDU [17:39:28]CAPDU: 80 13 00 00 [17:39:28]Write to MH i2c: E2 08 00 D8 1E 80 13 00 00 00 00 00 00 72 [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:28]Read from MH i2c: E2 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 62 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 62 00 D8 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 13 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [17: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 13 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:28]wFMCommunicate OK [17:39:28]SAM_PROTO_GetFieldsCounters done [17:39:28]requested_item shift.num is exist - process it [17:39:28]requested_item shift.opened is exist - process it [17:39:28]req_shift_opened [17:39:28]FM_GetShiftState [17:39:28]SAM_PROTO_GetShiftState [17:39:28]wFMCommunicate request_size=4 [17:39:28]MH_SAM_APDU [17:39:28]CAPDU: 80 13 01 00 [17:39:28]Write to MH i2c: E2 08 00 D9 1E 80 13 01 00 00 00 00 00 74 [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:29]Read from MH i2c: E2 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 0E 00 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 0E 00 D9 1E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B5 [17:39:29]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:39:29]wFMCommunicate OK [17:39:29]SAM_PROTO_GetShiftState done [17:39:29]FM_GetShiftState done [17:39:29]req_shift_opened done [17:39:29]requested_item shift.open_date is exist - process it [17:39:29]req_shift_open_date [17:39:29]req_shift_open_date done [17:39:29]produce_requested_data done [17:39:29]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115731,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:39:29]process_action_free close_receipt [17:39:29]json_value_free [17:39:29]json_value_free done [17:39:29]process_json_proto returns [17:39:29]Send response to host [17:39:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115731,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:39:29]free response buf [17:39:29]execute_script done [17:39:29]execute_script returns [17:39:29]free content buf [17:39:29]Sock 9.Close socket [17:39:29]Sock 9.Thread stoped [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:46]int [17:39:46]Write to MH i2c: 01 00 00 DA 1E F8 [17:39:46]*** FLAG_PRN_PAP1 set [17:39:46]Write i2c OK [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: 01 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: 01 07 00 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: 01 07 00 DA 1E 00 01 00 00 00 FF 0F 0E [17:39:46]state=0 [17:39:46]No paper [17:39:46]int [17:39:46]Write to MH i2c: 01 00 00 DB 1E F9 [17:39:46]*** FLAG_PRN_PAP2 set [17:39:46]Write i2c OK [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: 01 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: 01 07 00 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: 01 07 00 DB 1E 00 03 00 00 00 FF 0F 11 [17:39:46]state=0 [17:39:46]No paper [17:39:46]Cover opened [17:39:47]OFD Sender: No OFD packet to send [17:39:51]Write to MH i2c: 01 00 00 DC 1E FA [17:39:51]Write i2c OK [17:39:51]MH_I2C_Read... [17:39:51]Read from MH i2c: 01 [17:39:51]MH_I2C_Read... [17:39:51]Read from MH i2c: 01 07 00 [17:39:51]MH_I2C_Read... [17:39:51]Read from MH i2c: 01 07 00 DC 1E 00 03 00 00 00 FF 0F 12 [17:39:51]state=3 [17:39:51]No paper [17:39:51]Cover opened [17:39:52]OFD Sender: No OFD packet to send [17:39:56]Write to MH i2c: 01 00 00 DD 1E FB [17:39:56]Write i2c OK [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: 01 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: 01 07 00 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: 01 07 00 DD 1E 00 03 00 00 00 FF 0F 13 [17:39:56]state=3 [17:39:56]No paper [17:39:56]Cover opened [17:39:57]int [17:39:57]Write to MH i2c: 01 00 00 DE 1E FC [17:39:57]*** FLAG_PRN_PAP2 reset [17:39:57]Write i2c OK [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: 01 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: 01 07 00 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: 01 07 00 DE 1E 00 01 00 00 00 FF 0F 12 [17:39:57]state=3 [17:39:57]No paper [17:39:57]Cover closed [17:39:57]int [17:39:57]Write to MH i2c: 01 00 00 DF 1E FD [17:39:57]*** FLAG_PRN_PAP1 reset [17:39:57]Write i2c OK [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: 01 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: 01 07 00 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: 01 07 00 DF 1E 00 00 00 00 00 FF 0F 12 [17:39:57]state=0 [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:41:33]ConnectInit Can't connect to host [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:09]accept exits with 7 [17:42:09]New connection [17:42:09]New thread 3067010404 created [17:42:09]Waiting for new connection... [17:42:09] Sock 7.Parse request [17:42:09]Sock 7.Check first char [17:42:09]Sock 7.First char is OK [17:42:09]request: POST /json_proto HTTP/1.0 [17:42:09]Method: POST [17:42:09]URL: /json_proto [17:42:09]Method is POST - this is cgi request [17:42:09]url: /json_proto [17:42:09]query_string will be loaded in cgi processing [17:42:09]execute_cgi json_proto POST (null) [17:42:09]execute_cgi path=json_proto method=POST [17:42:09]POST find Content-Length [17:42:09]Host: 172.17.41.136:8080 [17:42:09]Content-Length: 215 [17:42:09]Content-Type: application/json [17:42:09] [17:42:09]POST finish read [17:42:09]Found Content-Length = 215 [17:42: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" ] } } [17:42:09]execute_script... [17:42: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" ] } } [17:42:09]POST & json_proto [17:42:09]process_json_proto [17:42:09]json parsed OK: [17:42:09]protocol is kg_v1.0 [17:42:09]action value=get_value [17:42:09]process_action get_value [17:42:09]cmd_get_value [17:42:09]process_action get_value done [17:42:09]requested_data is exist [17:42:09]produce_requested_data [17:42:09]requested_item kkm.sn is exist - process it [17:42:09]requested_item kkm.ver is exist - process it [17:42:09]requested_item fm.sn is exist - process it [17:42:09]wFMCommunicate request_size=4 [17:42:09]MH_SAM_APDU [17:42:09]CAPDU: 80 11 00 00 [17:42:09]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [17:42:09]Write i2c OK [17:42:09]MH_I2C_Read... [17:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:09]Read from MH i2c: E2 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 17 00 [17:42:09]MH_I2C_Read... [17:42:09]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 38 33 30 90 00 D8 [17:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:42:09]wFMCommunicate OK [17:42:09]requested_item fd.num is exist - process it [17:42:09]SAM_PROTO_GetFieldsCounters [17:42:09]wFMCommunicate request_size=4 [17:42:09]MH_SAM_APDU [17:42:09]CAPDU: 80 13 00 00 [17:42:09]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [17:42:09]Write i2c OK [17:42:09]MH_I2C_Read... [17:42:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:09]Read from MH i2c: E2 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 62 00 [17:42:09]MH_I2C_Read... [17:42:09]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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 13 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [17:42:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 13 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:09]wFMCommunicate OK [17:42:09]SAM_PROTO_GetFieldsCounters done [17:42:09]requested_item shift.num is exist - process it [17:42:09]requested_item shift.opened is exist - process it [17:42:09]req_shift_opened [17:42:09]FM_GetShiftState [17:42:09]SAM_PROTO_GetShiftState [17:42:09]wFMCommunicate request_size=4 [17:42:09]MH_SAM_APDU [17:42:09]CAPDU: 80 13 01 00 [17:42:09]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [17:42:09]Write i2c OK [17:42:09]MH_I2C_Read... [17:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:09]Read from MH i2c: E2 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 0E 00 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D0 [17:42:09]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:42:09]wFMCommunicate OK [17:42:09]SAM_PROTO_GetShiftState done [17:42:09]FM_GetShiftState done [17:42:09]req_shift_opened done [17:42:09]requested_item shift.open_date is exist - process it [17:42:09]req_shift_open_date [17:42:09]req_shift_open_date done [17:42:09]produce_requested_data done [17:42:09]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115731,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:42:09]process_action_free get_value [17:42:09]json_value_free [17:42:09]json_value_free done [17:42:09]process_json_proto returns [17:42:09]Send response to host [17:42:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115731,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:42:09]free response buf [17:42:09]execute_script done [17:42:09]execute_script returns [17:42:09]free content buf [17:42:09]Sock 7.Close socket [17:42:09]Sock 7.Thread stoped [17:42:10]OFD Sender: No OFD packet to send [17:42:12]accept exits with 9 [17:42:12]New connection [17:42:12]New thread 3066867044 created [17:42:12]Thread 3067010404 joined [17:42:12]Waiting for new connection... [17:42:12] Sock 9.Parse request [17:42:12]Sock 9.Check first char [17:42:12]Sock 9.First char is OK [17:42:12]request: POST /json_proto HTTP/1.0 [17:42:12]Method: POST [17:42:12]URL: /json_proto [17:42:12]Method is POST - this is cgi request [17:42:12]url: /json_proto [17:42:12]query_string will be loaded in cgi processing [17:42:12]execute_cgi json_proto POST (null) [17:42:12]execute_cgi path=json_proto method=POST [17:42:12]POST find Content-Length [17:42:12]Host: 172.17.41.136:8080 [17:42:12]Content-Length: 331 [17:42:12]Content-Type: application/json [17:42:12] [17:42:12]POST finish read [17:42:12]Found Content-Length = 331 [17:42:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:42:12]execute_script... [17:42:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:42:12]POST & json_proto [17:42:12]process_json_proto [17:42:12]json parsed OK: [17:42:12]protocol is kg_v1.0 [17:42:12]action value=get_value [17:42:12]process_action get_value [17:42:12]cmd_get_value [17:42:12]process_action get_value done [17:42:12]requested_data is exist [17:42:12]produce_requested_data [17:42:12]requested_item fm.sale.total is exist - process it [17:42:12]SAM_PROTO_GetFMData [17:42:12]wFMCommunicate request_size=4 [17:42:12]MH_SAM_APDU [17:42:12]CAPDU: 80 13 03 00 [17:42:12]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [17:42:12]Write i2c OK [17:42:12]MH_I2C_Read... [17:42:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:42:13]Read from MH i2c: E2 [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: E2 FD 00 [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 62 C0 01 00 69 04 A3 00 6F 04 04 00 E4 BE 01 00 B1 04 05 00 FF 47 AE 81 01 70 04 05 00 A5 74 CB 47 01 72 04 04 00 5A D3 E2 39 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 EF F0 F6 28 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 F8 B2 69 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 28 [17:42:13]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 62 C0 01 00 69 04 A3 00 6F 04 04 00 E4 BE 01 00 B1 04 05 00 FF 47 AE 81 01 70 04 05 00 A5 74 CB 47 01 72 04 04 00 5A D3 E2 39 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 EF F0 F6 28 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 F8 B2 69 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 [17:42:13]wFMCommunicate OK [17:42:13]wFMCommunicate request_size=4 [17:42:13]MH_SAM_APDU [17:42:13]CAPDU: 80 17 00 00 [17:42:13]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [17:42:13]Write i2c OK [17:42:13]MH_I2C_Read... [17:42:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:42:13]Read from MH i2c: E2 [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: E2 FD 00 [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EA [17:42:13]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:42:13]wFMCommunicate OK [17:42:13]wFMCommunicate request_size=4 [17:42:13]MH_SAM_APDU [17:42:13]CAPDU: 80 17 00 00 [17:42:13]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [17:42:13]Write i2c OK [17:42:13]MH_I2C_Read... [17:42:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:42:13]Read from MH i2c: E2 [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: E2 FD 00 [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A7 [17:42:13]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:42:13]wFMCommunicate OK [17:42:13]wFMCommunicate request_size=4 [17:42:13]MH_SAM_APDU [17:42:13]CAPDU: 80 17 00 00 [17:42:13]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [17:42:13]Write i2c OK [17:42:13]MH_I2C_Read... [17:42:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:42:14]Read from MH i2c: E2 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 FD 00 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [17:42:14]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:42:14]wFMCommunicate OK [17:42:14]wFMCommunicate request_size=4 [17:42:14]MH_SAM_APDU [17:42:14]CAPDU: 80 17 00 00 [17:42:14]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [17:42:14]Write i2c OK [17:42:14]MH_I2C_Read... [17:42:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:42:14]Read from MH i2c: E2 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 E2 00 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [17:42:14]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:42:14]wFMCommunicate OK [17:42:14]SAM_PROTO_GetFMData done [17:42:14]requested_item fm.sale_refund.total is exist - process it [17:42:14]requested_item fm.buy.total is exist - process it [17:42:14]requested_item shift.sale.total is exist - process it [17:42:14]SAM_PROTO_GetShiftData [17:42:14]wFMCommunicate request_size=4 [17:42:14]MH_SAM_APDU [17:42:14]CAPDU: 80 13 02 00 [17:42:14]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [17:42:14]Write i2c OK [17:42:14]MH_I2C_Read... [17:42:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:42:14]Read from MH i2c: E2 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 FD 00 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D5 00 00 00 B1 04 03 00 EE 78 C3 70 04 03 00 08 54 85 72 04 03 00 E6 24 3E 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 AA C2 14 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 CB BA 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 72 [17:42:14]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D5 00 00 00 B1 04 03 00 EE 78 C3 70 04 03 00 08 54 85 72 04 03 00 E6 24 3E 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 AA C2 14 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 CB BA 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [17:42:14]wFMCommunicate OK [17:42:14]wFMCommunicate request_size=4 [17:42:14]MH_SAM_APDU [17:42:14]CAPDU: 80 17 00 00 [17:42:14]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [17:42:14]Write i2c OK [17:42:14]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 FD 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 C1 [17:42:15]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [17:42:15]wFMCommunicate OK [17:42:15]wFMCommunicate request_size=4 [17:42:15]MH_SAM_APDU [17:42:15]CAPDU: 80 17 00 00 [17:42:15]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:42:15]OFD Sender: No OFD packet to send [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 FD 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [17:42:15]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [17:42:15]wFMCommunicate OK [17:42:15]wFMCommunicate request_size=4 [17:42:15]MH_SAM_APDU [17:42:15]CAPDU: 80 17 00 00 [17:42:15]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 FD 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 13 [17:42:15]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [17:42:15]wFMCommunicate OK [17:42:15]wFMCommunicate request_size=4 [17:42:15]MH_SAM_APDU [17:42:15]CAPDU: 80 17 00 00 [17:42:15]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 D6 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 D6 00 1C 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 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 7E [17:42:15]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:42:15]wFMCommunicate OK [17:42:15]SAM_PROTO_GetShiftData done [17:42:15]requested_item shift.sale.total_cash is exist - process it [17:42:15]requested_item shift.sale_refund.total is exist - process it [17:42:15]requested_item shift.sale_refund.total_cash is exist - process it [17:42:15]requested_item shift.buy.total is exist - process it [17:42:15]requested_item shift.buy.total_cash is exist - process it [17:42:15]produce_requested_data done [17:42:15]produce_requested_data return {"fm.sale.total":64706498.55,"fm.sale_refund.total":2651943.00,"fm.buy.total":0.00,"shift.sale.total":128104.78,"shift.sale.total_cash":87378.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:42:15]process_action_free get_value [17:42:15]json_value_free [17:42:15]json_value_free done [17:42:15]process_json_proto returns [17:42:15]Send response to host [17:42:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64706498.55,"fm.sale_refund.total":2651943.00,"fm.buy.total":0.00,"shift.sale.total":128104.78,"shift.sale.total_cash":87378.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:42:15]free response buf [17:42:15]execute_script done [17:42:15]execute_script returns [17:42:15]free content buf [17:42:15]Sock 9.Close socket [17:42:15]Sock 9.Thread stoped [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:22]accept exits with 7 [17:43:22]New connection [17:43:22]New thread 3067010404 created [17:43:22]Thread 3066867044 joined [17:43:22]Waiting for new connection... [17:43:22] Sock 7.Parse request [17:43:22]Sock 7.Check first char [17:43:22]Sock 7.First char is OK [17:43:22]request: POST /json_proto HTTP/1.0 [17:43:22]Method: POST [17:43:22]URL: /json_proto [17:43:22]Method is POST - this is cgi request [17:43:22]url: /json_proto [17:43:22]query_string will be loaded in cgi processing [17:43:22]execute_cgi json_proto POST (null) [17:43:22]execute_cgi path=json_proto method=POST [17:43:22]POST find Content-Length [17:43:22]Host: 172.17.41.136:8080 [17:43:22]Content-Length: 793 [17:43:22]Content-Type: application/json [17:43:22] [17:43:22]POST finish read [17:43:22]Found Content-Length = 793 [17:43:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 13.130, "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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:22]execute_script... [17:43: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)24617892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 13.130, "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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:22]POST & json_proto [17:43:22]process_json_proto [17:43:22]json parsed OK: [17:43:22]protocol is kg_v1.0 [17:43:22]action value=close_receipt [17:43:22]process_action close_receipt [17:43:22]cmd_close_receipt [17:43:22]MH_GetDate [17:43:22]Write to MH i2c: F0 00 00 1D 00 0C [17:43:22]Write i2c OK [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: F0 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: F0 09 00 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: F0 09 00 1D 00 00 BB A8 F1 66 1B D0 5A 64 78 [17:43:22]GetLastDocTimeStamp 1727113165 [17:43:22]current date 1727113403 [17:43:22]FM_GetShiftState [17:43:22]SAM_PROTO_GetShiftState [17:43:22]wFMCommunicate request_size=4 [17:43:22]MH_SAM_APDU [17:43:22]CAPDU: 80 13 01 00 [17:43:22]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [17:43:22]Write i2c OK [17:43:22]MH_I2C_Read... [17:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:22]Read from MH i2c: E2 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 0E 00 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 DC [17:43:22]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:43:22]wFMCommunicate OK [17:43:22]SAM_PROTO_GetShiftState done [17:43:22]FM_GetShiftState done [17:43:22]opened in 1727052070 [17:43:22]opened+sec_in_day 1727138470 [17:43:22]quantity*price = 0 [17:43:22]sum+1 = 1 [17:43:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 215 23.09.2024 17:43 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливные Талоны 1 ФМ: 0000000000871830 ФД: 115732 ФПД: 263333036525403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T174323&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115732&fm=263333036525403&tin=02508201610067®Number=0000000000091831&sum=0 [17:43:23]StoreToDocumentArchive [17:43:23]shift 472 fd 115732 [17:43:23]save to /storage/0472/doc_00115732 [17:43:23]save last doc name /storage/0472/doc_00115732 to /storage/kkm_last_doc_name [17:43:23]save OK [17:43:23]Clear old archive folders... [17:43:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:43:23]tlvbuf is 0114FA60 [17:43:23]SAM_PROTO_ClearQueue [17:43:23]wFMCommunicate request_size=4 [17:43:23]MH_SAM_APDU [17:43:23]CAPDU: 80 09 00 00 [17:43:23]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:24]Read from MH i2c: E2 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [17:43:24]RAPDU: 90 00 [17:43:24]wFMCommunicate OK [17:43:24]SAM_PROTO_ClearQueue done [17:43:24]KKMCreateOFDPacket [17:43:24]OFDProtocolAddRootSTLVToBuf [17:43:24]FM_MakeSignedData [17:43:24]FM_MakeSignedData [17:43:24]SAM_PROTO_SignData [17:43:24]wFMCommunicate request_size=4 [17:43:24]MH_SAM_APDU [17:43:24]CAPDU: 80 0D 01 02 [17:43:24]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:24]Read from MH i2c: E2 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [17:43:24]RAPDU: 90 00 [17:43:24]wFMCommunicate OK [17:43:24]wFMCommunicate request_size=255 [17:43:24]MH_SAM_APDU [17:43:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 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 D7 00 00 00 F4 03 04 00 BB A8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 14 C4 01 00 35 04 06 00 EF 80 00 19 [17:43:24]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 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 D7 00 00 00 F4 03 04 00 BB A8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 14 C4 01 00 35 04 06 00 EF 80 00 19 00 00 42 [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:24]Read from MH i2c: E2 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [17:43:24]RAPDU: 90 00 [17:43:24]wFMCommunicate OK [17:43:24]wFMCommunicate request_size=7 [17:43:24]MH_SAM_APDU [17:43:24]CAPDU: 80 0D 02 02 02 87 5B [17:43:24]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 87 5B 00 00 8E [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:24]Read from MH i2c: E2 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [17:43:24]RAPDU: 90 00 [17:43:24]wFMCommunicate OK [17:43:24]wFMCommunicate request_size=4 [17:43:24]MH_SAM_APDU [17:43:24]CAPDU: 80 0D 03 02 [17:43:24]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:24]Read from MH i2c: E2 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 0B 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 0B 00 2F 00 00 54 8C DF 93 80 DD 8F A8 90 00 91 [17:43:24]RAPDU: 54 8C DF 93 80 DD 8F A8 90 00 [17:43:24]wFMCommunicate OK [17:43:24]SAM_PROTO_SignData done [17:43:24]FM_MakeSignedData done [17:43:24]CreateOFDProtocolMessage [17:43:24]wFMCommunicate request_size=4 [17:43:24]MH_SAM_APDU [17:43:24]CAPDU: 80 11 00 00 [17:43:24]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:24]Read from MH i2c: E2 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 17 00 [17:43:24]MH_I2C_Read... [17:43:24]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 38 33 30 90 00 F8 [17:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:43:24]wFMCommunicate OK [17:43:24]CreateOFDProtocolMessage done [17:43:24]OFDSenderStorePacket 115732 [17:43:24]StoreOFDPacket docnum=115732 [17:43:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 F5 09 04 01 45 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 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 D7 00 00 00 F4 03 04 00 BB A8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 14 C4 01 00 35 04 06 00 EF 80 00 19 87 5B 54 8C DF 93 80 DD 8F A8 [17:43:24]CheckFolder [17:43:24]dirname=/storage/ofd_packets [17:43:24]CheckFolder done [17:43:24]ProducePacketName [17:43:24]name=ofd_packets/00115732 [17:43:24]NVStorageSaveData ofd_packets/00115732 [17:43:24]File name is /storage/ofd_packets/00115732 [17:43:24]Write 298 bytes [17:43:24]NVStorageSaveData done [17:43:24]OFDSenderStorePacket done [17:43:24]KKMCreateOFDPacket done [17:43:24]NVStorageSaveData kkm_last_timestamp [17:43:24]File name is /storage/kkm_last_timestamp [17:43:24]Write 4 bytes [17:43:24]NVStorageSaveData done [17:43:24]ExternCall_PrintAddStr [17:43:24]wPrintStart [17:43:24]Write to MH i2c: 01 00 00 31 00 31 [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: 01 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: 01 07 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [17:43:24]RasterBufferAndPrint [17:43:24]line Счет N : (1)24617892 [17:43:24]line ИНН: 02508201610067 [17:43:24]line Контрольно-Кассовый Чек [17:43:24]line ПРОДАЖА [17:43:24]line ТРК (МРК, ГНК) : 35 [17:43:24]line Товар: 2710194210 [17:43:24]line ДТ-К-5 [17:43:24]line 13.130 * 0.00 [17:43:24]line = 0.00 [17:43:24]line НДС 12% НСП 1% [17:43:24]line > о реализуемом товаре [17:43:24]line ИТОГО: 0.00 [17:43:24]line НСП 1% : 0.00 [17:43:24]line НДС 12% : 0.00 [17:43:24]line Наличными: 0.00 [17:43:24]line Безнал.: 0.00 [17:43:24]line Место: АЗС № 90 "Партнер Нефть" [17:43:24]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:43:24]line СНО: Общий режим [17:43:24]line Чек 215 23.09.2024 17:43 [17:43:24]line Смена: 472 ФФД: 1.0 [17:43:24]line ЗНМ: 0300000120 [17:43:24]line РНМ: 0000000000091831 [17:43:24]line Версия ККМ: 001 [17:43:24]line Талоны: Топливные Талоны [17:43:24]line 1 [17:43:24]line ФМ: 0000000000871830 [17:43:24]line ФД: 115732 [17:43:24]line ФПД: 263333036525403 [17:43:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T174323&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115732&fm=263333036525403&tin=02508201610067®Number=0000000000091831&sum=0 [17:43:24]written 0, free lines is 4095 [17:43:24]OFD Sender: Processing packet 115732 [packets to send 482, broken 481] [17:43:24]ProducePacketName [17:43:24]name=ofd_packets/00115732 [17:43:24]OFD Sender: To server: pG, [17:43:24]CommunicateWithHost lk.salyk.kg:30040 [17:43:24]ConnectInit lk.salyk.kg [17:43:24]Connected sock=10 [17:43: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 38 33 30 0C 01 00 00 F5 09 04 01 45 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 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 D7 00 00 00 F4 03 04 00 BB A8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 14 C4 01 00 35 04 06 00 EF 80 00 19 87 5B 54 8C DF 93 80 DD 8F A8 [17:43:24]Write to MH i2c: 01 00 00 5A 00 5A [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: 01 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: 01 07 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 76 0C E3 [17:43:24]RasterBufferAndPrint [17:43:24]line [17:43:24]line [17:43:24]line [17:43:24]line [17:43:24]line [17:43:24]written 0, free lines is 3194 [17:43:24]MH_Cut [17:43:24]Write to MH i2c: D1 01 00 61 00 01 33 [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: D1 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: D1 01 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: D1 01 00 61 00 00 32 [17:43:24]Write to MH i2c: 01 00 00 62 00 62 [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D1 0C 47 00 6C 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 14 C4 01 00 F4 03 04 00 FD 4D F1 66 B6 04 01 00 00 A0 C8 8D 59 D7 AA 84 A5 [17:43:25]CommunicateWithHost err = 0 [17:43:25]CheckOFDResponse [17:43:25]1017 (14) - 77093643461234 [17:43:25]1041 (16) - 0000000000871830 [17:43:25]1040 (4) - 115732 [17:43:25]1012 (4) - 23.09.2024 11:16 [17:43:25]1206 (1) - 0 [17:43:25]OFD Sender: Remove packet 115732 [17:43:25]ProducePacketName [17:43:25]name=ofd_packets/00115732 [17:43:25]NVStorageDeleteData [17:43:25]OFD Sender: No OFD packet to send [17:43:26]*** Cut start [17:43:26]*** Partial cut [17:43:26]*** CUTSNS_PIN = 1 [17:43:26]*** CUTSNS_PIN = 0 [17:43:26]*** Brake cut motor [17:43:26]Read from MH i2c: 01 [17:43:26]MH_I2C_Read... [17:43:26]*** Stop cut motor [17:43:26]*** Cut end [17:43:26]Read from MH i2c: 01 07 00 [17:43:26]MH_I2C_Read... [17:43:26]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [17:43:26]process_action close_receipt done [17:43:26]requested_data is exist [17:43:26]produce_requested_data [17:43:26]requested_item fm.sn is exist - process it [17:43:26]wFMCommunicate request_size=4 [17:43:26]MH_SAM_APDU [17:43:26]CAPDU: 80 11 00 00 [17:43:26]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [17:43:26]Write i2c OK [17:43:26]MH_I2C_Read... [17:43:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:26]Read from MH i2c: E2 [17:43:26]MH_I2C_Read... [17:43:26]Read from MH i2c: E2 17 00 [17:43:26]MH_I2C_Read... [17:43:26]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2B [17:43:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:43:26]wFMCommunicate OK [17:43:26]requested_item fd.num is exist - process it [17:43:26]SAM_PROTO_GetFieldsCounters [17:43:26]wFMCommunicate request_size=4 [17:43:26]MH_SAM_APDU [17:43:26]CAPDU: 80 13 00 00 [17:43:26]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [17:43:26]Write i2c OK [17:43:26]MH_I2C_Read... [17:43:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:27]Read from MH i2c: E2 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 62 00 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 14 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [17:43: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 14 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:27]wFMCommunicate OK [17:43:27]SAM_PROTO_GetFieldsCounters done [17:43:27]requested_item shift.num is exist - process it [17:43:27]requested_item shift.opened is exist - process it [17:43:27]req_shift_opened [17:43:27]FM_GetShiftState [17:43:27]SAM_PROTO_GetShiftState [17:43:27]wFMCommunicate request_size=4 [17:43:27]MH_SAM_APDU [17:43:27]CAPDU: 80 13 01 00 [17:43:27]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [17:43:27]Write i2c OK [17:43:27]MH_I2C_Read... [17:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:27]Read from MH i2c: E2 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 0E 00 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 23 [17:43:27]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:43:27]wFMCommunicate OK [17:43:27]SAM_PROTO_GetShiftState done [17:43:27]FM_GetShiftState done [17:43:27]req_shift_opened done [17:43:27]requested_item shift.open_date is exist - process it [17:43:27]req_shift_open_date [17:43:27]req_shift_open_date done [17:43:27]produce_requested_data done [17:43:27]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115732,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:43:27]process_action_free close_receipt [17:43:27]json_value_free [17:43:27]json_value_free done [17:43:27]process_json_proto returns [17:43:27]Send response to host [17:43:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115732,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:43:27]free response buf [17:43:27]execute_script done [17:43:27]execute_script returns [17:43:27]free content buf [17:43:27]Sock 7.Close socket [17:43:27]Sock 7.Thread stoped [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:41]accept exits with 9 [17:46:41]New connection [17:46:41]New thread 3066867044 created [17:46:41]Thread 3067010404 joined [17:46:41]Waiting for new connection... [17:46:41] Sock 9.Parse request [17:46:41]Sock 9.Check first char [17:46:41]Sock 9.First char is OK [17:46:41]request: POST /json_proto HTTP/1.0 [17:46:41]Method: POST [17:46:41]URL: /json_proto [17:46:41]Method is POST - this is cgi request [17:46:41]url: /json_proto [17:46:41]query_string will be loaded in cgi processing [17:46:41]execute_cgi json_proto POST (null) [17:46:41]execute_cgi path=json_proto method=POST [17:46:41]POST find Content-Length [17:46:41]Host: 172.17.41.136:8080 [17:46:41]Content-Length: 829 [17:46:41]Content-Type: application/json [17:46:41] [17:46:41]POST finish read [17:46:41]Found Content-Length = 829 [17:46:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344061", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:41]execute_script... [17:46:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344061", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:41]POST & json_proto [17:46:41]process_json_proto [17:46:41]json parsed OK: [17:46:41]protocol is kg_v1.0 [17:46:41]action value=close_receipt [17:46:41]process_action close_receipt [17:46:41]cmd_close_receipt [17:46:41]MH_GetDate [17:46:41]Write to MH i2c: F0 00 00 66 00 55 [17:46:41]Write i2c OK [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: F0 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: F0 09 00 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: F0 09 00 66 00 00 82 A9 F1 66 1B D0 5A 64 89 [17:46:41]GetLastDocTimeStamp 1727113403 [17:46:41]current date 1727113602 [17:46:41]FM_GetShiftState [17:46:41]SAM_PROTO_GetShiftState [17:46:41]wFMCommunicate request_size=4 [17:46:41]MH_SAM_APDU [17:46:41]CAPDU: 80 13 01 00 [17:46:41]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [17:46:41]Write i2c OK [17:46:41]MH_I2C_Read... [17:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:41]Read from MH i2c: E2 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 0E 00 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 25 [17:46:41]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:46:41]wFMCommunicate OK [17:46:41]SAM_PROTO_GetShiftState done [17:46:41]FM_GetShiftState done [17:46:41]opened in 1727052070 [17:46:41]opened+sec_in_day 1727138470 [17:46:41]quantity*price = 13000 [17:46:41]sum+1 = 13001 [17:46:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 216 23.09.2024 17:46 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115733 ФПД: 112922281416076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T174642&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115733&fm=112922281416076&tin=02508201610067®Number=0000000000091831&sum=13000 0 [17:46:43]StoreToDocumentArchive [17:46:43]shift 472 fd 115733 [17:46:43]save to /storage/0472/doc_00115733 [17:46:43]save last doc name /storage/0472/doc_00115733 to /storage/kkm_last_doc_name [17:46:43]save OK [17:46:43]Clear old archive folders... [17:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=296 [17:46:43]tlvbuf is 0114FBF0 [17:46:43]SAM_PROTO_ClearQueue [17:46:43]wFMCommunicate request_size=4 [17:46:43]MH_SAM_APDU [17:46:43]CAPDU: 80 09 00 00 [17:46:43]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:43]Read from MH i2c: E2 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 03 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [17:46:43]RAPDU: 90 00 [17:46:43]wFMCommunicate OK [17:46:43]SAM_PROTO_ClearQueue done [17:46:43]KKMCreateOFDPacket [17:46:43]OFDProtocolAddRootSTLVToBuf [17:46:43]FM_MakeSignedData [17:46:43]FM_MakeSignedData [17:46:43]SAM_PROTO_SignData [17:46:43]wFMCommunicate request_size=4 [17:46:43]MH_SAM_APDU [17:46:43]CAPDU: 80 0D 01 02 [17:46:43]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:43]Read from MH i2c: E2 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 03 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [17:46:43]RAPDU: 90 00 [17:46:43]wFMCommunicate OK [17:46:43]wFMCommunicate request_size=255 [17:46:43]MH_SAM_APDU [17:46:43]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 82 A9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [17:46:43]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 82 A9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 F7 [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:43]Read from MH i2c: E2 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 03 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [17:46:43]RAPDU: 90 00 [17:46:43]wFMCommunicate OK [17:46:43]wFMCommunicate request_size=55 [17:46:43]MH_SAM_APDU [17:46:43]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 15 C4 01 00 35 04 06 00 66 B3 C4 78 95 8C [17:46:43]Write to MH i2c: E2 3A 00 77 00 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 15 C4 01 00 35 04 06 00 66 B3 C4 78 95 8C 00 00 92 [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:43]Read from MH i2c: E2 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 03 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [17:46:43]RAPDU: 90 00 [17:46:43]wFMCommunicate OK [17:46:43]wFMCommunicate request_size=4 [17:46:43]MH_SAM_APDU [17:46:43]CAPDU: 80 0D 03 02 [17:46:43]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:43]Read from MH i2c: E2 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 0B 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 0B 00 78 00 00 C0 14 D9 25 59 FB 31 62 90 00 AD [17:46:43]RAPDU: C0 14 D9 25 59 FB 31 62 90 00 [17:46:43]wFMCommunicate OK [17:46:43]SAM_PROTO_SignData done [17:46:43]FM_MakeSignedData done [17:46:43]CreateOFDProtocolMessage [17:46:43]wFMCommunicate request_size=4 [17:46:43]MH_SAM_APDU [17:46:43]CAPDU: 80 11 00 00 [17:46:43]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:43]Read from MH i2c: E2 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 17 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 41 [17:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:46:43]wFMCommunicate OK [17:46:43]CreateOFDProtocolMessage done [17:46:43]OFDSenderStorePacket 115733 [17:46:43]StoreOFDPacket docnum=115733 [17:46:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3C 01 00 00 5A C9 34 01 BE 7A 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 82 A9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 15 C4 01 00 35 04 06 00 66 B3 C4 78 95 8C C0 14 D9 25 59 FB 31 62 [17:46:43]CheckFolder [17:46:43]dirname=/storage/ofd_packets [17:46:43]CheckFolder done [17:46:43]ProducePacketName [17:46:43]name=ofd_packets/00115733 [17:46:43]NVStorageSaveData ofd_packets/00115733 [17:46:43]File name is /storage/ofd_packets/00115733 [17:46:43]Write 346 bytes [17:46:43]NVStorageSaveData done [17:46:43]OFDSenderStorePacket done [17:46:43]KKMCreateOFDPacket done [17:46:43]NVStorageSaveData kkm_last_timestamp [17:46:43]File name is /storage/kkm_last_timestamp [17:46:43]Write 4 bytes [17:46:43]NVStorageSaveData done [17:46:43]ExternCall_PrintAddStr [17:46:43]wPrintStart [17:46:43]Write to MH i2c: 01 00 00 7A 00 7A [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: 01 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: 01 07 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [17:46:43]RasterBufferAndPrint [17:46:43]line Счет N : (3)344061 [17:46:43]line ИНН: 02508201610067 [17:46:43]line Контрольно-Кассовый Чек [17:46:43]line ПРОДАЖА [17:46:43]line Товар: 4870002329951 [17:46:43]line Напиток Lipton IceTea 1л зел чай Regular [17:46:43]line 1.000 * 130.00 [17:46:43]line = 130.00 [17:46:43]line НДС 12% НСП 1% [17:46:43]line > о реализуемом товаре [17:46:43]line ИТОГО: 130.00 [17:46:43]line НСП 1% : 1.15 [17:46:43]line НДС 12% : 13.80 [17:46:43]line Наличными: 0.00 [17:46:43]line Безнал.: 130.00 [17:46:43]line Место: АЗС № 90 "Партнер Нефть" [17:46:43]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:46:43]line СНО: Общий режим [17:46:43]line Чек 216 23.09.2024 17:46 [17:46:43]line Смена: 472 ФФД: 1.0 [17:46:43]line ЗНМ: 0300000120 [17:46:43]line РНМ: 0000000000091831 [17:46:43]line Версия ККМ: 001 [17:46:43]line Платежная система: O! деньги [17:46:43]line ФМ: 0000000000871830 [17:46:43]line ФД: 115733 [17:46:43]line ФПД: 112922281416076 [17:46:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T174642&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115733&fm=112922281416076&tin=02508201610067®Number=0000000000091831&sum=13000 [17:46:43]line 0 [17:46:43]written 0, free lines is 4095 [17:46:43]OFD Sender: Processing packet 115733 [packets to send 482, broken 481] [17:46:43]ProducePacketName [17:46:43]name=ofd_packets/00115733 [17:46:43]OFD Sender: To server: pG, [17:46:43]CommunicateWithHost lk.salyk.kg:30040 [17:46:43]ConnectInit lk.salyk.kg [17:46:44]Connected sock=10 [17:46: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 38 33 30 3C 01 00 00 5A C9 34 01 BE 7A 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 82 A9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 15 C4 01 00 35 04 06 00 66 B3 C4 78 95 8C C0 14 D9 25 59 FB 31 62 [17:46:44]Write to MH i2c: 01 00 00 A4 00 A4 [17:46:44]Write i2c OK [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: 01 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: 01 07 00 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 39 0C F0 [17:46:44]RasterBufferAndPrint [17:46:44]line [17:46:44]line [17:46:44]line [17:46:44]line [17:46:44]line [17:46:44]written 0, free lines is 3132 [17:46:44]MH_Cut [17:46:44]Write to MH i2c: D1 01 00 AB 00 01 7D [17:46:44]Write i2c OK [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: D1 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: D1 01 00 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: D1 01 00 AB 00 00 7C [17:46:44]Write to MH i2c: 01 00 00 AC 00 AC [17:46:44]Write i2c OK [17:46:44]MH_I2C_Read... [17:46:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 50 3F 47 00 DB 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 38 33 30 10 04 04 00 15 C4 01 00 F4 03 04 00 C4 4E F1 66 B6 04 01 00 00 7D 5A E6 20 DA 10 07 47 [17:46:44]CommunicateWithHost err = 0 [17:46:44]CheckOFDResponse [17:46:44]1017 (14) - 77093643461234 [17:46:44]1041 (16) - 0000000000871830 [17:46:44]1040 (4) - 115733 [17:46:44]1012 (4) - 23.09.2024 11:19 [17:46:44]1206 (1) - 0 [17:46:44]OFD Sender: Remove packet 115733 [17:46:44]ProducePacketName [17:46:44]name=ofd_packets/00115733 [17:46:44]NVStorageDeleteData [17:46:44]OFD Sender: No OFD packet to send [17:46:45]*** Cut start [17:46:45]*** Partial cut [17:46:45]*** CUTSNS_PIN = 1 [17:46:45]*** CUTSNS_PIN = 0 [17:46:46]*** Brake cut motor [17:46:46]Read from MH i2c: 01 [17:46:46]MH_I2C_Read... [17:46:46]*** Stop cut motor [17:46:46]*** Cut end [17:46:46]Read from MH i2c: 01 07 00 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [17:46:46]process_action close_receipt done [17:46:46]requested_data is exist [17:46:46]produce_requested_data [17:46:46]requested_item fm.sn is exist - process it [17:46:46]wFMCommunicate request_size=4 [17:46:46]MH_SAM_APDU [17:46:46]CAPDU: 80 11 00 00 [17:46:46]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [17:46:46]Write i2c OK [17:46:46]MH_I2C_Read... [17:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:46]Read from MH i2c: E2 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 17 00 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 75 [17:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:46:46]wFMCommunicate OK [17:46:46]requested_item fd.num is exist - process it [17:46:46]SAM_PROTO_GetFieldsCounters [17:46:46]wFMCommunicate request_size=4 [17:46:46]MH_SAM_APDU [17:46:46]CAPDU: 80 13 00 00 [17:46:46]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [17:46:46]Write i2c OK [17:46:46]MH_I2C_Read... [17:46:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:46]Read from MH i2c: E2 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 62 00 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 62 00 AE 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 15 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [17:46: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 15 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:46]wFMCommunicate OK [17:46:46]SAM_PROTO_GetFieldsCounters done [17:46:46]requested_item shift.num is exist - process it [17:46:46]requested_item shift.opened is exist - process it [17:46:46]req_shift_opened [17:46:46]FM_GetShiftState [17:46:46]SAM_PROTO_GetShiftState [17:46:46]wFMCommunicate request_size=4 [17:46:46]MH_SAM_APDU [17:46:46]CAPDU: 80 13 01 00 [17:46:46]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [17:46:46]Write i2c OK [17:46:46]MH_I2C_Read... [17:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:46]Read from MH i2c: E2 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 0E 00 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6D [17:46:46]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:46:46]wFMCommunicate OK [17:46:46]SAM_PROTO_GetShiftState done [17:46:46]FM_GetShiftState done [17:46:46]req_shift_opened done [17:46:46]requested_item shift.open_date is exist - process it [17:46:46]req_shift_open_date [17:46:46]req_shift_open_date done [17:46:46]produce_requested_data done [17:46:46]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115733,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:46:46]process_action_free close_receipt [17:46:46]json_value_free [17:46:46]json_value_free done [17:46:46]process_json_proto returns [17:46:46]Send response to host [17:46:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115733,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:46:46]free response buf [17:46:46]execute_script done [17:46:46]execute_script returns [17:46:46]free content buf [17:46:46]Sock 9.Close socket [17:46:46]Sock 9.Thread stoped [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:21]accept exits with 8 [17:47:21]New connection [17:47:21]New thread 3067010404 created [17:47:21]Thread 3066867044 joined [17:47:21]Waiting for new connection... [17:47:21] Sock 8.Parse request [17:47:21]Sock 8.Check first char [17:47:21]Sock 8.First char is OK [17:47:21]request: POST /json_proto HTTP/1.0 [17:47:21]Method: POST [17:47:21]URL: /json_proto [17:47:21]Method is POST - this is cgi request [17:47:21]url: /json_proto [17:47:21]query_string will be loaded in cgi processing [17:47:21]execute_cgi json_proto POST (null) [17:47:21]execute_cgi path=json_proto method=POST [17:47:21]POST find Content-Length [17:47:21]Host: 172.17.41.136:8080 [17:47:21]Content-Length: 805 [17:47:21]Content-Type: application/json [17:47:21] [17:47:21]POST finish read [17:47:21]Found Content-Length = 805 [17:47:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:21]execute_script... [17:47: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)24617893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:21]POST & json_proto [17:47:21]process_json_proto [17:47:21]json parsed OK: [17:47:21]protocol is kg_v1.0 [17:47:21]action value=close_receipt [17:47:21]process_action close_receipt [17:47:21]cmd_close_receipt [17:47:21]MH_GetDate [17:47:21]Write to MH i2c: F0 00 00 B0 00 9F [17:47:21]Write i2c OK [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: F0 [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: F0 09 00 [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: F0 09 00 B0 00 00 AA A9 F1 66 1B D0 5A 64 FB [17:47:21]GetLastDocTimeStamp 1727113602 [17:47:21]current date 1727113642 [17:47:21]FM_GetShiftState [17:47:21]SAM_PROTO_GetShiftState [17:47:21]wFMCommunicate request_size=4 [17:47:21]MH_SAM_APDU [17:47:21]CAPDU: 80 13 01 00 [17:47:21]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [17:47:21]Write i2c OK [17:47:21]MH_I2C_Read... [17:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:21]Read from MH i2c: E2 [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: E2 0E 00 [17:47:21]MH_I2C_Read... [17:47:21]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6F [17:47:21]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:47:21]wFMCommunicate OK [17:47:21]SAM_PROTO_GetShiftState done [17:47:21]FM_GetShiftState done [17:47:21]opened in 1727052070 [17:47:21]opened+sec_in_day 1727138470 [17:47:21]quantity*price = 100021 [17:47:21]sum+1 = 100023 [17:47:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 217 23.09.2024 17:47 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115734 ФПД: 272247299643959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T174722&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115734&fm=272247299643959&tin=02508201610067®Number=0000000000091831&sum=100022 [17:47:22]StoreToDocumentArchive [17:47:22]shift 472 fd 115734 [17:47:22]save to /storage/0472/doc_00115734 [17:47:22]save last doc name /storage/0472/doc_00115734 to /storage/kkm_last_doc_name [17:47:22]save OK [17:47:22]Clear old archive folders... [17:47:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:22]tlvbuf is 0116FD10 [17:47:22]SAM_PROTO_ClearQueue [17:47:22]wFMCommunicate request_size=4 [17:47:22]MH_SAM_APDU [17:47:22]CAPDU: 80 09 00 00 [17:47:22]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [17:47:22]RAPDU: 90 00 [17:47:22]wFMCommunicate OK [17:47:22]SAM_PROTO_ClearQueue done [17:47:22]KKMCreateOFDPacket [17:47:22]OFDProtocolAddRootSTLVToBuf [17:47:22]FM_MakeSignedData [17:47:22]FM_MakeSignedData [17:47:22]SAM_PROTO_SignData [17:47:22]wFMCommunicate request_size=4 [17:47:22]MH_SAM_APDU [17:47:22]CAPDU: 80 0D 01 02 [17:47:22]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [17:47:22]RAPDU: 90 00 [17:47:22]wFMCommunicate OK [17:47:22]wFMCommunicate request_size=255 [17:47:22]MH_SAM_APDU [17:47: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 D9 00 00 00 F4 03 04 00 AA A9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 16 C4 01 00 35 04 06 00 F7 [17:47:22]Write to MH i2c: E2 02 01 C0 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 D9 00 00 00 F4 03 04 00 AA A9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 16 C4 01 00 35 04 06 00 F7 00 00 36 [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [17:47:22]RAPDU: 90 00 [17:47:22]wFMCommunicate OK [17:47:22]wFMCommunicate request_size=10 [17:47:22]MH_SAM_APDU [17:47:22]CAPDU: 80 0D 02 02 05 9B 83 96 1A 37 [17:47:22]Write to MH i2c: E2 0D 00 C1 00 80 0D 02 02 05 00 9B 83 96 1A 37 00 00 4A [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [17:47:22]RAPDU: 90 00 [17:47:22]wFMCommunicate OK [17:47:22]wFMCommunicate request_size=4 [17:47:22]MH_SAM_APDU [17:47:22]CAPDU: 80 0D 03 02 [17:47:22]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 0B 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 0B 00 C2 00 00 89 73 30 AB E0 F8 93 C0 90 00 40 [17:47:22]RAPDU: 89 73 30 AB E0 F8 93 C0 90 00 [17:47:22]wFMCommunicate OK [17:47:22]SAM_PROTO_SignData done [17:47:22]FM_MakeSignedData done [17:47:22]CreateOFDProtocolMessage [17:47:22]wFMCommunicate request_size=4 [17:47:22]MH_SAM_APDU [17:47:22]CAPDU: 80 11 00 00 [17:47:22]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 17 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8B [17:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:47:22]wFMCommunicate OK [17:47:22]CreateOFDProtocolMessage done [17:47:22]OFDSenderStorePacket 115734 [17:47:22]StoreOFDPacket docnum=115734 [17:47:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 AD 40 07 01 E9 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 D9 00 00 00 F4 03 04 00 AA A9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 16 C4 01 00 35 04 06 00 F7 9B 83 96 1A 37 89 73 30 AB E0 F8 93 C0 [17:47:22]CheckFolder [17:47:22]dirname=/storage/ofd_packets [17:47:22]CheckFolder done [17:47:22]ProducePacketName [17:47:22]name=ofd_packets/00115734 [17:47:22]NVStorageSaveData ofd_packets/00115734 [17:47:22]File name is /storage/ofd_packets/00115734 [17:47:22]Write 301 bytes [17:47:22]NVStorageSaveData done [17:47:22]OFDSenderStorePacket done [17:47:22]KKMCreateOFDPacket done [17:47:22]NVStorageSaveData kkm_last_timestamp [17:47:22]File name is /storage/kkm_last_timestamp [17:47:22]Write 4 bytes [17:47:22]NVStorageSaveData done [17:47:22]ExternCall_PrintAddStr [17:47:22]wPrintStart [17:47:22]Write to MH i2c: 01 00 00 C4 00 C4 [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: 01 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: 01 07 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [17:47:22]RasterBufferAndPrint [17:47:22]line Счет N : (1)24617893 [17:47:22]line ИНН: 02508201610067 [17:47:22]line Контрольно-Кассовый Чек [17:47:22]line ПРОДАЖА [17:47:22]line ТРК (МРК, ГНК) : 42 [17:47:22]line Товар: 2710124500 [17:47:22]line Аи-95-К-5 [17:47:22]line 13.480 * 74.20 [17:47:22]line = 1000.22 [17:47:22]line НДС 12% НСП 1% [17:47:22]line > о реализуемом товаре [17:47:22]line ИТОГО: 1000.22 [17:47:22]line НСП 1% : 8.85 [17:47:22]line НДС 12% : 106.22 [17:47:22]line Наличными: 0.00 [17:47:22]line Безнал.: 1000.22 [17:47:22]line Место: АЗС № 90 "Партнер Нефть" [17:47:22]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:47:22]line СНО: Общий режим [17:47:22]line Чек 217 23.09.2024 17:47 [17:47:22]line Смена: 472 ФФД: 1.0 [17:47:22]line ЗНМ: 0300000120 [17:47:22]line РНМ: 0000000000091831 [17:47:22]line Версия ККМ: 001 [17:47:22]line Платежная система: O! деньги [17:47:22]line ФМ: 0000000000871830 [17:47:22]line ФД: 115734 [17:47:22]line ФПД: 272247299643959 [17:47:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T174722&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115734&fm=272247299643959&tin=02508201610067®Number=0000000000091831&sum=100022 [17:47:22]written 0, free lines is 4095 [17:47:22]OFD Sender: Processing packet 115734 [packets to send 482, broken 481] [17:47:22]ProducePacketName [17:47:22]name=ofd_packets/00115734 [17:47:22]OFD Sender: To server: pG, [17:47:22]CommunicateWithHost lk.salyk.kg:30040 [17:47:22]ConnectInit lk.salyk.kg [17:47:23]Connected sock=11 [17:47: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 38 33 30 0F 01 00 00 AD 40 07 01 E9 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 D9 00 00 00 F4 03 04 00 AA A9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 16 C4 01 00 35 04 06 00 F7 9B 83 96 1A 37 89 73 30 AB E0 F8 93 C0 [17:47:23]Write to MH i2c: 01 00 00 ED 00 ED [17:47:23]Write i2c OK [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: 01 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: 01 07 00 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 73 0C 73 [17:47:23]RasterBufferAndPrint [17:47:23]line [17:47:23]line [17:47:23]line [17:47:23]line [17:47:23]line [17:47:23]written 0, free lines is 3191 [17:47:23]MH_Cut [17:47:23]Write to MH i2c: D1 01 00 F4 00 01 C6 [17:47:23]Write i2c OK [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: D1 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: D1 01 00 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: D1 01 00 F4 00 00 C5 [17:47:23]Write to MH i2c: 01 00 00 F5 00 F5 [17:47:23]Write i2c OK [17:47:23]MH_I2C_Read... [17:47:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 3D 5D 47 00 8E 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 16 C4 01 00 F4 03 04 00 EB 4E F1 66 B6 04 01 00 00 2C 4E 17 D2 9E BC BC FD [17:47:23]CommunicateWithHost err = 0 [17:47:23]CheckOFDResponse [17:47:23]1017 (14) - 77093643461234 [17:47:23]1041 (16) - 0000000000871830 [17:47:23]1040 (4) - 115734 [17:47:23]1012 (4) - 23.09.2024 11:20 [17:47:23]1206 (1) - 0 [17:47:23]OFD Sender: Remove packet 115734 [17:47:23]ProducePacketName [17:47:23]name=ofd_packets/00115734 [17:47:23]NVStorageDeleteData [17:47:23]OFD Sender: No OFD packet to send [17:47:24]*** Cut start [17:47:24]*** Partial cut [17:47:24]*** CUTSNS_PIN = 1 [17:47:24]*** CUTSNS_PIN = 0 [17:47:24]*** Brake cut motor [17:47:25]Read from MH i2c: 01 [17:47:25]MH_I2C_Read... [17:47:25]*** Stop cut motor [17:47:25]*** Cut end [17:47:25]Read from MH i2c: 01 07 00 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 FF 0F 0A [17:47:25]process_action close_receipt done [17:47:25]requested_data is exist [17:47:25]produce_requested_data [17:47:25]requested_item fm.sn is exist - process it [17:47:25]wFMCommunicate request_size=4 [17:47:25]MH_SAM_APDU [17:47:25]CAPDU: 80 11 00 00 [17:47:25]Write to MH i2c: E2 08 00 F6 00 80 11 00 00 00 00 00 00 70 [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:25]Read from MH i2c: E2 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: E2 17 00 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: E2 17 00 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BE [17:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:47:25]wFMCommunicate OK [17:47:25]requested_item fd.num is exist - process it [17:47:25]SAM_PROTO_GetFieldsCounters [17:47:25]wFMCommunicate request_size=4 [17:47:25]MH_SAM_APDU [17:47:25]CAPDU: 80 13 00 00 [17:47:25]Write to MH i2c: E2 08 00 F7 00 80 13 00 00 00 00 00 00 73 [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:25]Read from MH i2c: E2 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: E2 62 00 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: E2 62 00 F7 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 16 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [17:47: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 16 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:25]wFMCommunicate OK [17:47:25]SAM_PROTO_GetFieldsCounters done [17:47:25]requested_item shift.num is exist - process it [17:47:25]requested_item shift.opened is exist - process it [17:47:25]req_shift_opened [17:47:25]FM_GetShiftState [17:47:25]SAM_PROTO_GetShiftState [17:47:25]wFMCommunicate request_size=4 [17:47:25]MH_SAM_APDU [17:47:25]CAPDU: 80 13 01 00 [17:47:25]Write to MH i2c: E2 08 00 F8 00 80 13 01 00 00 00 00 00 75 [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:25]Read from MH i2c: E2 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: E2 0E 00 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: E2 0E 00 F8 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B6 [17:47:25]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:47:25]wFMCommunicate OK [17:47:25]SAM_PROTO_GetShiftState done [17:47:25]FM_GetShiftState done [17:47:25]req_shift_opened done [17:47:25]requested_item shift.open_date is exist - process it [17:47:25]req_shift_open_date [17:47:25]req_shift_open_date done [17:47:25]produce_requested_data done [17:47:25]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115734,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:47:25]process_action_free close_receipt [17:47:25]json_value_free [17:47:25]json_value_free done [17:47:25]process_json_proto returns [17:47:25]Send response to host [17:47:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115734,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:47:25]free response buf [17:47:25]execute_script done [17:47:25]execute_script returns [17:47:25]free content buf [17:47:25]Sock 8.Close socket [17:47:25]Sock 8.Thread stoped [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:49:59]accept exits with 9 [17:49:59]New connection [17:49:59]New thread 3066867044 created [17:49:59]Thread 3067010404 joined [17:49:59]Waiting for new connection... [17:49:59] Sock 9.Parse request [17:49:59]Sock 9.Check first char [17:49:59]Sock 9.First char is OK [17:49:59]request: POST /json_proto HTTP/1.0 [17:49:59]Method: POST [17:49:59]URL: /json_proto [17:49:59]Method is POST - this is cgi request [17:49:59]url: /json_proto [17:49:59]query_string will be loaded in cgi processing [17:49:59]execute_cgi json_proto POST (null) [17:49:59]execute_cgi path=json_proto method=POST [17:49:59]POST find Content-Length [17:49:59]Host: 172.17.41.136:8080 [17:49:59]Content-Length: 644 [17:49:59]Content-Type: application/json [17:49:59] [17:49:59]POST finish read [17:49:59]Found Content-Length = 644 [17:49:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344062", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:59]execute_script... [17:49:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344062", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:59]POST & json_proto [17:49:59]process_json_proto [17:49:59]json parsed OK: [17:49:59]protocol is kg_v1.0 [17:49:59]action value=close_receipt [17:49:59]process_action close_receipt [17:49:59]cmd_close_receipt [17:49:59]MH_GetDate [17:49:59]Write to MH i2c: F0 00 00 F9 00 E8 [17:49:59]Write i2c OK [17:49:59]MH_I2C_Read... [17:49:59]Read from MH i2c: F0 [17:49:59]MH_I2C_Read... [17:49:59]Read from MH i2c: F0 09 00 [17:49:59]MH_I2C_Read... [17:49:59]Read from MH i2c: F0 09 00 F9 00 00 48 AA F1 66 1B D0 5A 64 E3 [17:49:59]GetLastDocTimeStamp 1727113642 [17:49:59]current date 1727113800 [17:49:59]FM_GetShiftState [17:49:59]SAM_PROTO_GetShiftState [17:49:59]wFMCommunicate request_size=4 [17:49:59]MH_SAM_APDU [17:49:59]CAPDU: 80 13 01 00 [17:49:59]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [17:49:59]Write i2c OK [17:49:59]MH_I2C_Read... [17:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:59]Read from MH i2c: E2 [17:49:59]MH_I2C_Read... [17:49:59]Read from MH i2c: E2 0E 00 [17:49:59]MH_I2C_Read... [17:49:59]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B8 [17:49:59]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:49:59]wFMCommunicate OK [17:49:59]SAM_PROTO_GetShiftState done [17:49:59]FM_GetShiftState done [17:49:59]opened in 1727052070 [17:49:59]opened+sec_in_day 1727138470 [17:49:59]quantity*price = 3500 [17:49:59]sum+1 = 3501 [17:49:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 218 23.09.2024 17:50 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115735 ФПД: 258173786422872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T175000&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115735&fm=258173786422872&tin=02508201610067®Number=0000000000091831&sum=3500 0 [17:50:00]StoreToDocumentArchive [17:50:00]shift 472 fd 115735 [17:50:00]save to /storage/0472/doc_00115735 [17:50:00]save last doc name /storage/0472/doc_00115735 to /storage/kkm_last_doc_name [17:50:00]save OK [17:50:00]Clear old archive folders... [17:50:00]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:50:00]tlvbuf is 0116D340 [17:50:00]SAM_PROTO_ClearQueue [17:50:00]wFMCommunicate request_size=4 [17:50:00]MH_SAM_APDU [17:50:00]CAPDU: 80 09 00 00 [17:50:00]Write to MH i2c: E2 08 00 07 01 80 09 00 00 00 00 00 00 7A [17:50:00]Write i2c OK [17:50:00]MH_I2C_Read... [17:50:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:00]Read from MH i2c: E2 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 03 00 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [17:50:00]RAPDU: 90 00 [17:50:00]wFMCommunicate OK [17:50:00]SAM_PROTO_ClearQueue done [17:50:00]KKMCreateOFDPacket [17:50:00]OFDProtocolAddRootSTLVToBuf [17:50:00]FM_MakeSignedData [17:50:00]FM_MakeSignedData [17:50:00]SAM_PROTO_SignData [17:50:00]wFMCommunicate request_size=4 [17:50:00]MH_SAM_APDU [17:50:00]CAPDU: 80 0D 01 02 [17:50:00]Write to MH i2c: E2 08 00 08 01 80 0D 01 02 00 00 00 00 82 [17:50:00]Write i2c OK [17:50:00]MH_I2C_Read... [17:50:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:00]Read from MH i2c: E2 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 03 00 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [17:50:00]RAPDU: 90 00 [17:50:00]wFMCommunicate OK [17:50:00]wFMCommunicate request_size=255 [17:50:00]MH_SAM_APDU [17:50:00]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 48 AA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 [17:50:00]Write to MH i2c: E2 02 01 09 01 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 48 AA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 00 00 63 [17:50:00]Write i2c OK [17:50:00]MH_I2C_Read... [17:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:01]Read from MH i2c: E2 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 03 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [17:50:01]RAPDU: 90 00 [17:50:01]wFMCommunicate OK [17:50:01]wFMCommunicate request_size=34 [17:50:01]MH_SAM_APDU [17:50:01]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 17 C4 01 00 35 04 06 00 EA CE C4 D4 7E 58 [17:50:01]Write to MH i2c: E2 25 00 0A 01 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 17 C4 01 00 35 04 06 00 EA CE C4 D4 7E 58 00 00 43 [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:01]Read from MH i2c: E2 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 03 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [17:50:01]RAPDU: 90 00 [17:50:01]wFMCommunicate OK [17:50:01]wFMCommunicate request_size=4 [17:50:01]MH_SAM_APDU [17:50:01]CAPDU: 80 0D 03 02 [17:50:01]Write to MH i2c: E2 08 00 0B 01 80 0D 03 02 00 00 00 00 87 [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:01]Read from MH i2c: E2 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 0B 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 0B 00 0B 01 00 19 A3 D9 F8 99 84 3B 2A 90 00 97 [17:50:01]RAPDU: 19 A3 D9 F8 99 84 3B 2A 90 00 [17:50:01]wFMCommunicate OK [17:50:01]SAM_PROTO_SignData done [17:50:01]FM_MakeSignedData done [17:50:01]CreateOFDProtocolMessage [17:50:01]wFMCommunicate request_size=4 [17:50:01]MH_SAM_APDU [17:50:01]CAPDU: 80 11 00 00 [17:50:01]Write to MH i2c: E2 08 00 0C 01 80 11 00 00 00 00 00 00 87 [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:01]Read from MH i2c: E2 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 17 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 17 00 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D5 [17:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:50:01]wFMCommunicate OK [17:50:01]CreateOFDProtocolMessage done [17:50:01]OFDSenderStorePacket 115735 [17:50:01]StoreOFDPacket docnum=115735 [17:50:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 27 01 00 00 17 0A 1F 01 F6 A9 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 48 AA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 17 C4 01 00 35 04 06 00 EA CE C4 D4 7E 58 19 A3 D9 F8 99 84 3B 2A [17:50:01]CheckFolder [17:50:01]dirname=/storage/ofd_packets [17:50:01]CheckFolder done [17:50:01]ProducePacketName [17:50:01]name=ofd_packets/00115735 [17:50:01]NVStorageSaveData ofd_packets/00115735 [17:50:01]File name is /storage/ofd_packets/00115735 [17:50:01]Write 325 bytes [17:50:01]NVStorageSaveData done [17:50:01]OFDSenderStorePacket done [17:50:01]KKMCreateOFDPacket done [17:50:01]NVStorageSaveData kkm_last_timestamp [17:50:01]File name is /storage/kkm_last_timestamp [17:50:01]Write 4 bytes [17:50:01]NVStorageSaveData done [17:50:01]ExternCall_PrintAddStr [17:50:01]wPrintStart [17:50:01]Write to MH i2c: 01 00 00 0D 01 0E [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: 01 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: 01 07 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: 01 07 00 0D 01 00 00 00 00 00 FF 0F 23 [17:50:01]RasterBufferAndPrint [17:50:01]line Счет N : (3)344062 [17:50:01]line ИНН: 02508201610067 [17:50:01]line Контрольно-Кассовый Чек [17:50:01]line ПРОДАЖА [17:50:01]line Товар: 4700000310326 [17:50:01]line Вода Адыгене 1л б/г [17:50:01]line 1.000 * 35.00 [17:50:01]line = 35.00 [17:50:01]line НДС 12% НСП 1% [17:50:01]line > о реализуемом товаре [17:50:01]line ИТОГО: 35.00 [17:50:01]line НСП 1% : 0.31 [17:50:01]line НДС 12% : 3.72 [17:50:01]line Наличными: 35.00 [17:50:01]line Безнал.: 0.00 [17:50:01]line Место: АЗС № 90 "Партнер Нефть" [17:50:01]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:50:01]line СНО: Общий режим [17:50:01]line Чек 218 23.09.2024 17:50 [17:50:01]line Смена: 472 ФФД: 1.0 [17:50:01]line ЗНМ: 0300000120 [17:50:01]line РНМ: 0000000000091831 [17:50:01]line Версия ККМ: 001 [17:50:01]line ФМ: 0000000000871830 [17:50:01]line ФД: 115735 [17:50:01]line ФПД: 258173786422872 [17:50:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T175000&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115735&fm=258173786422872&tin=02508201610067®Number=0000000000091831&sum=3500 [17:50:01]line 0 [17:50:01]written 0, free lines is 4095 [17:50:01]OFD Sender: Processing packet 115735 [packets to send 482, broken 481] [17:50:01]ProducePacketName [17:50:01]name=ofd_packets/00115735 [17:50:01]OFD Sender: To server: pG, [17:50:01]CommunicateWithHost lk.salyk.kg:30040 [17:50:01]ConnectInit lk.salyk.kg [17:50:01]Connected sock=11 [17:50: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 38 33 30 27 01 00 00 17 0A 1F 01 F6 A9 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 48 AA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 17 C4 01 00 35 04 06 00 EA CE C4 D4 7E 58 19 A3 D9 F8 99 84 3B 2A [17:50:01]Write to MH i2c: 01 00 00 34 01 35 [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: 01 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: 01 07 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: 01 07 00 34 01 00 00 00 00 00 81 0C C9 [17:50:01]RasterBufferAndPrint [17:50:01]line [17:50:01]line [17:50:01]line [17:50:01]line [17:50:01]line [17:50:01]written 0, free lines is 3205 [17:50:01]MH_Cut [17:50:01]Write to MH i2c: D1 01 00 3B 01 01 0E [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: D1 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: D1 01 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: D1 01 00 3B 01 00 0D [17:50:01]Write to MH i2c: 01 00 00 3C 01 3D [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 CD 1C 47 00 2E 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 38 33 30 10 04 04 00 17 C4 01 00 F4 03 04 00 8A 4F F1 66 B6 04 01 00 00 FB 7B FD 68 69 AB 47 DE [17:50:01]CommunicateWithHost err = 0 [17:50:01]CheckOFDResponse [17:50:01]1017 (14) - 77093643461234 [17:50:01]1041 (16) - 0000000000871830 [17:50:01]1040 (4) - 115735 [17:50:01]1012 (4) - 23.09.2024 11:22 [17:50:01]1206 (1) - 0 [17:50:01]OFD Sender: Remove packet 115735 [17:50:01]ProducePacketName [17:50:01]name=ofd_packets/00115735 [17:50:01]NVStorageDeleteData [17:50:02]OFD Sender: No OFD packet to send [17:50:03]*** Cut start [17:50:03]*** Partial cut [17:50:03]*** CUTSNS_PIN = 1 [17:50:03]*** CUTSNS_PIN = 0 [17:50:03]*** Brake cut motor [17:50:03]Read from MH i2c: 01 [17:50:03]MH_I2C_Read... [17:50:03]*** Stop cut motor [17:50:03]*** Cut end [17:50:03]Read from MH i2c: 01 07 00 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 FF 0F 52 [17:50:03]process_action close_receipt done [17:50:03]requested_data is exist [17:50:03]produce_requested_data [17:50:03]requested_item fm.sn is exist - process it [17:50:03]wFMCommunicate request_size=4 [17:50:03]MH_SAM_APDU [17:50:03]CAPDU: 80 11 00 00 [17:50:03]Write to MH i2c: E2 08 00 3D 01 80 11 00 00 00 00 00 00 B8 [17:50:03]Write i2c OK [17:50:03]MH_I2C_Read... [17:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:03]Read from MH i2c: E2 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: E2 17 00 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: E2 17 00 3D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 06 [17:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:50:03]wFMCommunicate OK [17:50:03]requested_item fd.num is exist - process it [17:50:03]SAM_PROTO_GetFieldsCounters [17:50:03]wFMCommunicate request_size=4 [17:50:03]MH_SAM_APDU [17:50:03]CAPDU: 80 13 00 00 [17:50:03]Write to MH i2c: E2 08 00 3E 01 80 13 00 00 00 00 00 00 BB [17:50:03]Write i2c OK [17:50:03]MH_I2C_Read... [17:50:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:03]Read from MH i2c: E2 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: E2 62 00 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: E2 62 00 3E 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 17 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [17:50: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 17 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:03]wFMCommunicate OK [17:50:03]SAM_PROTO_GetFieldsCounters done [17:50:03]requested_item shift.num is exist - process it [17:50:03]requested_item shift.opened is exist - process it [17:50:03]req_shift_opened [17:50:03]FM_GetShiftState [17:50:03]SAM_PROTO_GetShiftState [17:50:03]wFMCommunicate request_size=4 [17:50:03]MH_SAM_APDU [17:50:03]CAPDU: 80 13 01 00 [17:50:03]Write to MH i2c: E2 08 00 3F 01 80 13 01 00 00 00 00 00 BD [17:50:03]Write i2c OK [17:50:03]MH_I2C_Read... [17:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:03]Read from MH i2c: E2 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: E2 0E 00 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: E2 0E 00 3F 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 FE [17:50:03]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:50:03]wFMCommunicate OK [17:50:03]SAM_PROTO_GetShiftState done [17:50:03]FM_GetShiftState done [17:50:03]req_shift_opened done [17:50:03]requested_item shift.open_date is exist - process it [17:50:03]req_shift_open_date [17:50:03]req_shift_open_date done [17:50:03]produce_requested_data done [17:50:03]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115735,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:50:03]process_action_free close_receipt [17:50:03]json_value_free [17:50:03]json_value_free done [17:50:03]process_json_proto returns [17:50:03]Send response to host [17:50:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115735,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:50:03]free response buf [17:50:03]execute_script done [17:50:03]execute_script returns [17:50:03]free content buf [17:50:03]Sock 9.Close socket [17:50:03]Sock 9.Thread stoped [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:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]accept exits with 8 [17:51:42]New connection [17:51:42]New thread 3067010404 created [17:51:42]Thread 3066867044 joined [17:51:42]Waiting for new connection... [17:51:42] Sock 8.Parse request [17:51:42]Sock 8.Check first char [17:51:42]Sock 8.First char is OK [17:51:42]request: POST /json_proto HTTP/1.0 [17:51:42]Method: POST [17:51:42]URL: /json_proto [17:51:42]Method is POST - this is cgi request [17:51:42]url: /json_proto [17:51:42]query_string will be loaded in cgi processing [17:51:42]execute_cgi json_proto POST (null) [17:51:42]execute_cgi path=json_proto method=POST [17:51:42]POST find Content-Length [17:51:42]Host: 172.17.41.136:8080 [17:51:42]Content-Length: 802 [17:51:42]Content-Type: application/json [17:51:42] [17:51:42]POST finish read [17:51:42]Found Content-Length = 802 [17:51:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:42]execute_script... [17:51: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)24617898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:42]POST & json_proto [17:51:42]process_json_proto [17:51:42]json parsed OK: [17:51:42]protocol is kg_v1.0 [17:51:42]action value=close_receipt [17:51:42]process_action close_receipt [17:51:42]cmd_close_receipt [17:51:42]MH_GetDate [17:51:42]Write to MH i2c: F0 00 00 40 01 30 [17:51:42]Write i2c OK [17:51:42]MH_I2C_Read... [17:51:42]Read from MH i2c: F0 [17:51:42]MH_I2C_Read... [17:51:42]Read from MH i2c: F0 09 00 [17:51:42]MH_I2C_Read... [17:51:42]Read from MH i2c: F0 09 00 40 01 00 AF AA F1 66 1B D0 5A 64 92 [17:51:42]GetLastDocTimeStamp 1727113800 [17:51:42]current date 1727113903 [17:51:42]FM_GetShiftState [17:51:42]SAM_PROTO_GetShiftState [17:51:42]wFMCommunicate request_size=4 [17:51:42]MH_SAM_APDU [17:51:42]CAPDU: 80 13 01 00 [17:51:42]Write to MH i2c: E2 08 00 41 01 80 13 01 00 00 00 00 00 BF [17:51:42]Write i2c OK [17:51:42]MH_I2C_Read... [17:51:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:42]Read from MH i2c: E2 [17:51:42]MH_I2C_Read... [17:51:42]Read from MH i2c: E2 0E 00 [17:51:42]MH_I2C_Read... [17:51:42]Read from MH i2c: E2 0E 00 41 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 00 [17:51:42]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:51:42]wFMCommunicate OK [17:51:42]SAM_PROTO_GetShiftState done [17:51:42]FM_GetShiftState done [17:51:42]opened in 1727052070 [17:51:42]opened+sec_in_day 1727138470 [17:51:42]quantity*price = 20034 [17:51:42]sum+1 = 20035 [17:51:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.34 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 0.00 Безнал.: 200.34 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 219 23.09.2024 17:51 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115736 ФПД: 246531533449262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T175143&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115736&fm=246531533449262&tin=02508201610067®Number=0000000000091831&sum=20034 [17:51:43]StoreToDocumentArchive [17:51:43]shift 472 fd 115736 [17:51:43]save to /storage/0472/doc_00115736 [17:51:43]save last doc name /storage/0472/doc_00115736 to /storage/kkm_last_doc_name [17:51:43]save OK [17:51:43]Clear old archive folders... [17:51:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:43]tlvbuf is 0113C580 [17:51:43]SAM_PROTO_ClearQueue [17:51:43]wFMCommunicate request_size=4 [17:51:43]MH_SAM_APDU [17:51:43]CAPDU: 80 09 00 00 [17:51:43]Write to MH i2c: E2 08 00 4E 01 80 09 00 00 00 00 00 00 C1 [17:51:43]Write i2c OK [17:51:43]MH_I2C_Read... [17:51:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:43]Read from MH i2c: E2 [17:51:43]MH_I2C_Read... [17:51:43]Read from MH i2c: E2 03 00 [17:51:43]MH_I2C_Read... [17:51:43]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [17:51:43]RAPDU: 90 00 [17:51:43]wFMCommunicate OK [17:51:43]SAM_PROTO_ClearQueue done [17:51:43]KKMCreateOFDPacket [17:51:43]OFDProtocolAddRootSTLVToBuf [17:51:43]FM_MakeSignedData [17:51:43]FM_MakeSignedData [17:51:43]SAM_PROTO_SignData [17:51:43]wFMCommunicate request_size=4 [17:51:43]MH_SAM_APDU [17:51:43]CAPDU: 80 0D 01 02 [17:51:43]Write to MH i2c: E2 08 00 4F 01 80 0D 01 02 00 00 00 00 C9 [17:51:43]Write i2c OK [17:51:43]MH_I2C_Read... [17:51:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:43]Read from MH i2c: E2 [17:51:43]MH_I2C_Read... [17:51:43]Read from MH i2c: E2 03 00 [17:51:43]MH_I2C_Read... [17:51:43]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [17:51:43]RAPDU: 90 00 [17:51:43]wFMCommunicate OK [17:51:43]wFMCommunicate request_size=255 [17:51:43]MH_SAM_APDU [17:51: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 AF AA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 18 C4 01 00 35 04 06 00 E0 [17:51:43]Write to MH i2c: E2 02 01 50 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 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 AF AA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 18 C4 01 00 35 04 06 00 E0 00 00 56 [17:51:43]Write i2c OK [17:51:43]MH_I2C_Read... [17:51:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:44]Read from MH i2c: E2 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: E2 03 00 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [17:51:44]RAPDU: 90 00 [17:51:44]wFMCommunicate OK [17:51:44]wFMCommunicate request_size=10 [17:51:44]MH_SAM_APDU [17:51:44]CAPDU: 80 0D 02 02 05 38 18 7A 28 2E [17:51:44]Write to MH i2c: E2 0D 00 51 01 80 0D 02 02 05 00 38 18 7A 28 2E 00 00 F6 [17:51:44]Write i2c OK [17:51:44]MH_I2C_Read... [17:51:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:44]Read from MH i2c: E2 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: E2 03 00 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [17:51:44]RAPDU: 90 00 [17:51:44]wFMCommunicate OK [17:51:44]wFMCommunicate request_size=4 [17:51:44]MH_SAM_APDU [17:51:44]CAPDU: 80 0D 03 02 [17:51:44]Write to MH i2c: E2 08 00 52 01 80 0D 03 02 00 00 00 00 CE [17:51:44]Write i2c OK [17:51:44]MH_I2C_Read... [17:51:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:44]Read from MH i2c: E2 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: E2 0B 00 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: E2 0B 00 52 01 00 A1 91 6D 6B DE 2B 43 A3 90 00 C8 [17:51:44]RAPDU: A1 91 6D 6B DE 2B 43 A3 90 00 [17:51:44]wFMCommunicate OK [17:51:44]SAM_PROTO_SignData done [17:51:44]FM_MakeSignedData done [17:51:44]CreateOFDProtocolMessage [17:51:44]wFMCommunicate request_size=4 [17:51:44]MH_SAM_APDU [17:51:44]CAPDU: 80 11 00 00 [17:51:44]Write to MH i2c: E2 08 00 53 01 80 11 00 00 00 00 00 00 CE [17:51:44]Write i2c OK [17:51:44]MH_I2C_Read... [17:51:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:44]Read from MH i2c: E2 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: E2 17 00 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: E2 17 00 53 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1C [17:51:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:51:44]wFMCommunicate OK [17:51:44]CreateOFDProtocolMessage done [17:51:44]OFDSenderStorePacket 115736 [17:51:44]StoreOFDPacket docnum=115736 [17:51:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 A8 57 07 01 08 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 AF AA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 18 C4 01 00 35 04 06 00 E0 38 18 7A 28 2E A1 91 6D 6B DE 2B 43 A3 [17:51:44]CheckFolder [17:51:44]dirname=/storage/ofd_packets [17:51:44]CheckFolder done [17:51:44]ProducePacketName [17:51:44]name=ofd_packets/00115736 [17:51:44]NVStorageSaveData ofd_packets/00115736 [17:51:44]File name is /storage/ofd_packets/00115736 [17:51:44]Write 301 bytes [17:51:44]NVStorageSaveData done [17:51:44]OFDSenderStorePacket done [17:51:44]KKMCreateOFDPacket done [17:51:44]NVStorageSaveData kkm_last_timestamp [17:51:44]File name is /storage/kkm_last_timestamp [17:51:44]Write 4 bytes [17:51:44]NVStorageSaveData done [17:51:44]ExternCall_PrintAddStr [17:51:44]wPrintStart [17:51:44]Write to MH i2c: 01 00 00 54 01 55 [17:51:44]Write i2c OK [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: 01 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: 01 07 00 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: 01 07 00 54 01 00 00 00 00 00 FF 0F 6A [17:51:44]RasterBufferAndPrint [17:51:44]line Счет N : (1)24617898 [17:51:44]line ИНН: 02508201610067 [17:51:44]line Контрольно-Кассовый Чек [17:51:44]line ПРОДАЖА [17:51:44]line ТРК (МРК, ГНК) : 62 [17:51:44]line Товар: 2710124500 [17:51:44]line Аи-95-К-5 [17:51:44]line 2.700 * 74.20 [17:51:44]line = 200.34 [17:51:44]line НДС 12% НСП 1% [17:51:44]line > о реализуемом товаре [17:51:44]line ИТОГО: 200.34 [17:51:44]line НСП 1% : 1.77 [17:51:44]line НДС 12% : 21.27 [17:51:44]line Наличными: 0.00 [17:51:44]line Безнал.: 200.34 [17:51:44]line Место: АЗС № 90 "Партнер Нефть" [17:51:44]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:51:44]line СНО: Общий режим [17:51:44]line Чек 219 23.09.2024 17:51 [17:51:44]line Смена: 472 ФФД: 1.0 [17:51:44]line ЗНМ: 0300000120 [17:51:44]line РНМ: 0000000000091831 [17:51:44]line Версия ККМ: 001 [17:51:44]line Платежная система: O! деньги [17:51:44]line ФМ: 0000000000871830 [17:51:44]line ФД: 115736 [17:51:44]line ФПД: 246531533449262 [17:51:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T175143&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115736&fm=246531533449262&tin=02508201610067®Number=0000000000091831&sum=20034 [17:51:44]written 0, free lines is 4095 [17:51:44]OFD Sender: Processing packet 115736 [packets to send 482, broken 481] [17:51:44]ProducePacketName [17:51:44]name=ofd_packets/00115736 [17:51:44]OFD Sender: To server: pG, [17:51:44]CommunicateWithHost lk.salyk.kg:30040 [17:51:44]ConnectInit lk.salyk.kg [17:51:44]Connected sock=10 [17:51: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 38 33 30 0F 01 00 00 A8 57 07 01 08 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 AF AA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 18 C4 01 00 35 04 06 00 E0 38 18 7A 28 2E A1 91 6D 6B DE 2B 43 A3 [17:51:44]Write to MH i2c: 01 00 00 7D 01 7E [17:51:44]Write i2c OK [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: 01 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: 01 07 00 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: 01 07 00 7D 01 00 00 00 00 00 6B 0C FC [17:51:44]RasterBufferAndPrint [17:51:44]line [17:51:44]line [17:51:44]line [17:51:44]line [17:51:44]line [17:51:44]written 0, free lines is 3184 [17:51:44]MH_Cut [17:51:44]Write to MH i2c: D1 01 00 84 01 01 57 [17:51:44]Write i2c OK [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: D1 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: D1 01 00 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: D1 01 00 84 01 00 56 [17:51:44]Write to MH i2c: 01 00 00 85 01 86 [17:51:44]Write i2c OK [17:51:44]MH_I2C_Read... [17:51:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E8 66 47 00 22 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 38 33 30 10 04 04 00 18 C4 01 00 F4 03 04 00 F1 4F F1 66 B6 04 01 00 00 EB 2E F5 91 EE 83 30 32 [17:51:44]CommunicateWithHost err = 0 [17:51:44]CheckOFDResponse [17:51:44]1017 (14) - 77093643461234 [17:51:44]1041 (16) - 0000000000871830 [17:51:44]1040 (4) - 115736 [17:51:44]1012 (4) - 23.09.2024 11:24 [17:51:44]1206 (1) - 0 [17:51:44]OFD Sender: Remove packet 115736 [17:51:44]ProducePacketName [17:51:44]name=ofd_packets/00115736 [17:51:44]NVStorageDeleteData [17:51:45]OFD Sender: No OFD packet to send [17:51:46]*** Cut start [17:51:46]*** Partial cut [17:51:46]*** CUTSNS_PIN = 1 [17:51:46]*** CUTSNS_PIN = 0 [17:51:46]*** Brake cut motor [17:51:46]Read from MH i2c: 01 [17:51:46]MH_I2C_Read... [17:51:46]*** Stop cut motor [17:51:46]*** Cut end [17:51:46]Read from MH i2c: 01 07 00 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 FF 0F 9B [17:51:46]process_action close_receipt done [17:51:46]requested_data is exist [17:51:46]produce_requested_data [17:51:46]requested_item fm.sn is exist - process it [17:51:46]wFMCommunicate request_size=4 [17:51:46]MH_SAM_APDU [17:51:46]CAPDU: 80 11 00 00 [17:51:46]Write to MH i2c: E2 08 00 86 01 80 11 00 00 00 00 00 00 01 [17:51:46]Write i2c OK [17:51:46]MH_I2C_Read... [17:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:46]Read from MH i2c: E2 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 17 00 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 17 00 86 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4F [17:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:51:46]wFMCommunicate OK [17:51:46]requested_item fd.num is exist - process it [17:51:46]SAM_PROTO_GetFieldsCounters [17:51:46]wFMCommunicate request_size=4 [17:51:46]MH_SAM_APDU [17:51:46]CAPDU: 80 13 00 00 [17:51:46]Write to MH i2c: E2 08 00 87 01 80 13 00 00 00 00 00 00 04 [17:51:46]Write i2c OK [17:51:46]MH_I2C_Read... [17:51:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:46]Read from MH i2c: E2 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 62 00 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 62 00 87 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 18 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [17:51: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 18 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:46]wFMCommunicate OK [17:51:46]SAM_PROTO_GetFieldsCounters done [17:51:46]requested_item shift.num is exist - process it [17:51:46]requested_item shift.opened is exist - process it [17:51:46]req_shift_opened [17:51:46]FM_GetShiftState [17:51:46]SAM_PROTO_GetShiftState [17:51:46]wFMCommunicate request_size=4 [17:51:46]MH_SAM_APDU [17:51:46]CAPDU: 80 13 01 00 [17:51:46]Write to MH i2c: E2 08 00 88 01 80 13 01 00 00 00 00 00 06 [17:51:46]Write i2c OK [17:51:46]MH_I2C_Read... [17:51:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:46]Read from MH i2c: E2 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 0E 00 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 0E 00 88 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 47 [17:51:46]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:51:46]wFMCommunicate OK [17:51:46]SAM_PROTO_GetShiftState done [17:51:46]FM_GetShiftState done [17:51:46]req_shift_opened done [17:51:46]requested_item shift.open_date is exist - process it [17:51:46]req_shift_open_date [17:51:46]req_shift_open_date done [17:51:46]produce_requested_data done [17:51:46]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115736,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:51:46]process_action_free close_receipt [17:51:46]json_value_free [17:51:46]json_value_free done [17:51:46]process_json_proto returns [17:51:46]Send response to host [17:51:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115736,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:51:46]free response buf [17:51:46]execute_script done [17:51:46]execute_script returns [17:51:46]free content buf [17:51:46]Sock 8.Close socket [17:51:46]Sock 8.Thread stoped [17:51:50]OFD Sender: No OFD packet to send [17:51:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:46]accept exits with 9 [17:52:46]New connection [17:52:46]New thread 3066867044 created [17:52:46]Thread 3067010404 joined [17:52:46]Waiting for new connection... [17:52:46] Sock 9.Parse request [17:52:46]Sock 9.Check first char [17:52:46]Sock 9.First char is OK [17:52:46]request: POST /json_proto HTTP/1.0 [17:52:46]Method: POST [17:52:46]URL: /json_proto [17:52:46]Method is POST - this is cgi request [17:52:46]url: /json_proto [17:52:46]query_string will be loaded in cgi processing [17:52:46]execute_cgi json_proto POST (null) [17:52:46]execute_cgi path=json_proto method=POST [17:52:46]POST find Content-Length [17:52:46]Host: 172.17.41.136:8080 [17:52:46]Content-Length: 1413 [17:52:46]Content-Type: application/json [17:52:46] [17:52:46]POST finish read [17:52:46]Found Content-Length = 1413 [17:52:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344063", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 3.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 3.000, "sum" : 261.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 620.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:46]execute_script... [17:52:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344063", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 3.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 87.00, "quantity" : 3.000, "sum" : 261.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 620.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:46]POST & json_proto [17:52:46]process_json_proto [17:52:46]json parsed OK: [17:52:46]protocol is kg_v1.0 [17:52:46]action value=close_receipt [17:52:46]process_action close_receipt [17:52:46]cmd_close_receipt [17:52:46]MH_GetDate [17:52:46]Write to MH i2c: F0 00 00 89 01 79 [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: F0 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: F0 09 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: F0 09 00 89 01 00 EF AA F1 66 1B D0 5A 64 1B [17:52:46]GetLastDocTimeStamp 1727113903 [17:52:46]current date 1727113967 [17:52:46]FM_GetShiftState [17:52:46]SAM_PROTO_GetShiftState [17:52:46]wFMCommunicate request_size=4 [17:52:46]MH_SAM_APDU [17:52:46]CAPDU: 80 13 01 00 [17:52:46]Write to MH i2c: E2 08 00 8A 01 80 13 01 00 00 00 00 00 08 [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:46]Read from MH i2c: E2 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 0E 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 0E 00 8A 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 49 [17:52:46]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:52:46]wFMCommunicate OK [17:52:46]SAM_PROTO_GetShiftState done [17:52:46]FM_GetShiftState done [17:52:46]opened in 1727052070 [17:52:46]opened+sec_in_day 1727138470 [17:52:46]quantity*price = 24000 [17:52:46]sum+1 = 24001 [17:52:46]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001339 Вода Боржоми 0,33л ст 3.000 * 87.00 = 261.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 620.00 НСП 1% : 5.48 НДС 12% : 65.84 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 220 23.09.2024 17:52 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115737 ФПД: 249189532867737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T175247&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115737&fm=249189532867737&tin=02508201610067®Number=0000000000091831&sum=62000 0 [17:52:47]StoreToDocumentArchive [17:52:47]shift 472 fd 115737 [17:52:47]save to /storage/0472/doc_00115737 [17:52:47]save last doc name /storage/0472/doc_00115737 to /storage/kkm_last_doc_name [17:52:47]save OK [17:52:47]Clear old archive folders... [17:52:47]ProcessDocumentItem done err = 0, tmpTLVsize=593 [17:52:47]tlvbuf is 01180A70 [17:52:47]SAM_PROTO_ClearQueue [17:52:47]wFMCommunicate request_size=4 [17:52:47]MH_SAM_APDU [17:52:47]CAPDU: 80 09 00 00 [17:52:47]Write to MH i2c: E2 08 00 97 01 80 09 00 00 00 00 00 00 0A [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:47]Read from MH i2c: E2 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 03 00 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [17:52:47]RAPDU: 90 00 [17:52:47]wFMCommunicate OK [17:52:47]SAM_PROTO_ClearQueue done [17:52:47]KKMCreateOFDPacket [17:52:47]OFDProtocolAddRootSTLVToBuf [17:52:47]FM_MakeSignedData [17:52:47]FM_MakeSignedData [17:52:47]SAM_PROTO_SignData [17:52:47]wFMCommunicate request_size=4 [17:52:47]MH_SAM_APDU [17:52:47]CAPDU: 80 0D 01 02 [17:52:47]Write to MH i2c: E2 08 00 98 01 80 0D 01 02 00 00 00 00 12 [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:47]Read from MH i2c: E2 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 03 00 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [17:52:47]RAPDU: 90 00 [17:52:47]wFMCommunicate OK [17:52:47]wFMCommunicate request_size=255 [17:52:47]MH_SAM_APDU [17:52:47]CAPDU: 80 0D 02 02 FA 03 00 51 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 F4 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A [17:52:47]Write to MH i2c: E2 02 01 99 01 80 0D 02 02 FA 00 03 00 51 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 F4 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A 00 00 BF [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:48]Read from MH i2c: E2 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 03 00 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 03 00 99 01 00 90 00 0E [17:52:48]RAPDU: 90 00 [17:52:48]wFMCommunicate OK [17:52:48]wFMCommunicate request_size=255 [17:52:48]MH_SAM_APDU [17:52:48]CAPDU: 80 0D 02 02 FA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 [17:52:48]Write to MH i2c: E2 02 01 9A 01 80 0D 02 02 FA 00 D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 D4 [17:52:48]Write i2c OK [17:52:48]MH_I2C_Read... [17:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:48]Read from MH i2c: E2 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 03 00 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [17:52:48]RAPDU: 90 00 [17:52:48]wFMCommunicate OK [17:52:48]wFMCommunicate request_size=102 [17:52:48]MH_SAM_APDU [17:52:48]CAPDU: 80 0D 02 02 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 EF AA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 19 C4 01 00 35 04 06 00 E2 A2 F5 96 9C 99 [17:52:48]Write to MH i2c: E2 69 00 9B 01 80 0D 02 02 61 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 EF AA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 19 C4 01 00 35 04 06 00 E2 A2 F5 96 9C 99 00 00 7D [17:52:48]Write i2c OK [17:52:48]MH_I2C_Read... [17:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:48]Read from MH i2c: E2 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 03 00 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [17:52:48]RAPDU: 90 00 [17:52:48]wFMCommunicate OK [17:52:48]wFMCommunicate request_size=4 [17:52:48]MH_SAM_APDU [17:52:48]CAPDU: 80 0D 03 02 [17:52:48]Write to MH i2c: E2 08 00 9C 01 80 0D 03 02 00 00 00 00 18 [17:52:48]Write i2c OK [17:52:48]MH_I2C_Read... [17:52:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:48]Read from MH i2c: E2 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 0B 00 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 0B 00 9C 01 00 D5 5D C4 74 34 5F F8 76 90 00 84 [17:52:48]RAPDU: D5 5D C4 74 34 5F F8 76 90 00 [17:52:48]wFMCommunicate OK [17:52:48]SAM_PROTO_SignData done [17:52:48]FM_MakeSignedData done [17:52:48]CreateOFDProtocolMessage [17:52:48]wFMCommunicate request_size=4 [17:52:48]MH_SAM_APDU [17:52:48]CAPDU: 80 11 00 00 [17:52:48]Write to MH i2c: E2 08 00 9D 01 80 11 00 00 00 00 00 00 18 [17:52:48]Write i2c OK [17:52:48]MH_I2C_Read... [17:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:48]Read from MH i2c: E2 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 17 00 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 17 00 9D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 66 [17:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:52:48]wFMCommunicate OK [17:52:48]CreateOFDProtocolMessage done [17:52:48]OFDSenderStorePacket 115737 [17:52:48]StoreOFDPacket docnum=115737 [17:52:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 65 02 00 00 E5 8F 5D 02 A7 EB 5A 03 01 00 03 00 51 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 F4 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 EF AA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 19 C4 01 00 35 04 06 00 E2 A2 F5 96 9C 99 D5 5D C4 74 34 5F F8 76 [17:52:48]CheckFolder [17:52:48]dirname=/storage/ofd_packets [17:52:48]CheckFolder done [17:52:48]ProducePacketName [17:52:48]name=ofd_packets/00115737 [17:52:48]NVStorageSaveData ofd_packets/00115737 [17:52:48]File name is /storage/ofd_packets/00115737 [17:52:48]Write 643 bytes [17:52:48]NVStorageSaveData done [17:52:48]OFDSenderStorePacket done [17:52:48]KKMCreateOFDPacket done [17:52:48]NVStorageSaveData kkm_last_timestamp [17:52:48]File name is /storage/kkm_last_timestamp [17:52:48]Write 4 bytes [17:52:48]NVStorageSaveData done [17:52:48]ExternCall_PrintAddStr [17:52:48]wPrintStart [17:52:48]Write to MH i2c: 01 00 00 9E 01 9F [17:52:48]Write i2c OK [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: 01 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: 01 07 00 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: 01 07 00 9E 01 00 00 00 00 00 FF 0F B4 [17:52:48]RasterBufferAndPrint [17:52:48]line Счет N : (3)344063 [17:52:48]line ИНН: 02508201610067 [17:52:48]line Контрольно-Кассовый Чек [17:52:48]line ПРОДАЖА [17:52:48]line Товар: 4870001570057 [17:52:48]line Напиток Pepsi 0,5л [17:52:48]line 3.000 * 80.00 [17:52:48]line = 240.00 [17:52:48]line НДС 12% НСП 1% [17:52:48]line > о реализуемом товаре [17:52:48]line Товар: 4860019001339 [17:52:48]line Вода Боржоми 0,33л ст [17:52:48]line 3.000 * 87.00 [17:52:48]line = 261.00 [17:52:48]line НДС 12% НСП 1% [17:52:48]line > о реализуемом товаре [17:52:48]line Товар: 2000036210013 [17:52:48]line Кофе Капучино (GABB TRADE) [17:52:48]line 1.000 * 115.00 [17:52:48]line = 115.00 [17:52:48]line НДС 12% НСП 1% [17:52:49]line > о реализуемом товаре [17:52:49]line Товар: 2000031750019 [17:52:49]line Пакет Партнер Нефть [17:52:49]line 1.000 * 4.00 [17:52:49]line = 4.00 [17:52:49]line НДС 12% НСП 1% [17:52:49]line > о реализуемом товаре [17:52:49]line ИТОГО: 620.00 [17:52:49]line НСП 1% : 5.48 [17:52:49]line НДС 12% : 65.84 [17:52:49]line Наличными: 620.00 [17:52:49]line Безнал.: 0.00 [17:52:49]line Место: АЗС № 90 "Партнер Нефть" [17:52:49]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:52:49]line СНО: Общий режим [17:52:49]line Чек 220 23.09.2024 17:52 [17:52:49]line Смена: 472 ФФД: 1.0 [17:52:49]line ЗНМ: 0300000120 [17:52:49]line РНМ: 0000000000091831 [17:52:49]line Версия ККМ: 001 [17:52:49]line ФМ: 0000000000871830 [17:52:49]line ФД: 115737 [17:52:49]line ФПД: 249189532867737 [17:52:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T175247&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115737&fm=249189532867737&tin=02508201610067®Number=0000000000091831&sum=62000 [17:52:49]line 0 [17:52:49]OFD Sender: Processing packet 115737 [packets to send 482, broken 481] [17:52:49]ProducePacketName [17:52:49]name=ofd_packets/00115737 [17:52:49]OFD Sender: To server: pG, [17:52:49]CommunicateWithHost lk.salyk.kg:30040 [17:52:49]ConnectInit lk.salyk.kg [17:52:49]written 0, free lines is 4095 [17:52:49]Connected sock=10 [17:52: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 38 33 30 65 02 00 00 E5 8F 5D 02 A7 EB 5A 03 01 00 03 00 51 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 F4 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 EF AA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 19 C4 01 00 35 04 06 00 E2 A2 F5 96 9C 99 D5 5D C4 74 34 5F F8 76 [17:52:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 04 86 47 00 99 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 38 33 30 10 04 04 00 19 C4 01 00 F4 03 04 00 32 50 F1 66 B6 04 01 00 00 B0 14 AB D3 F7 21 BE 29 [17:52:49]CommunicateWithHost err = 0 [17:52:49]CheckOFDResponse [17:52:49]1017 (14) - 77093643461234 [17:52:49]1041 (16) - 0000000000871830 [17:52:49]1040 (4) - 115737 [17:52:49]1012 (4) - 23.09.2024 11:25 [17:52:49]1206 (1) - 0 [17:52:49]OFD Sender: Remove packet 115737 [17:52:49]ProducePacketName [17:52:49]name=ofd_packets/00115737 [17:52:49]NVStorageDeleteData [17:52:49]Write to MH i2c: 01 00 00 D7 01 D8 [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: 01 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: 01 07 00 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 21 0B 0B [17:52:49]RasterBufferAndPrint [17:52:49]line [17:52:49]line [17:52:49]line [17:52:49]line [17:52:49]line [17:52:49]written 0, free lines is 2857 [17:52:49]MH_Cut [17:52:49]Write to MH i2c: D1 01 00 DE 01 01 B1 [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: D1 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: D1 01 00 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: D1 01 00 DE 01 00 B0 [17:52:49]Write to MH i2c: 01 00 00 DF 01 E0 [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:50]OFD Sender: No OFD packet to send [17:52:51]*** Cut start [17:52:51]*** Partial cut [17:52:51]*** CUTSNS_PIN = 1 [17:52:51]*** CUTSNS_PIN = 0 [17:52:51]*** Brake cut motor [17:52:52]Read from MH i2c: 01 [17:52:52]MH_I2C_Read... [17:52:52]*** Stop cut motor [17:52:52]*** Cut end [17:52:52]Read from MH i2c: 01 07 00 [17:52:52]MH_I2C_Read... [17:52:52]Read from MH i2c: 01 07 00 DF 01 00 00 00 00 00 FF 0F F5 [17:52:52]process_action close_receipt done [17:52:52]requested_data is exist [17:52:52]produce_requested_data [17:52:52]requested_item fm.sn is exist - process it [17:52:52]wFMCommunicate request_size=4 [17:52:52]MH_SAM_APDU [17:52:52]CAPDU: 80 11 00 00 [17:52:52]Write to MH i2c: E2 08 00 E0 01 80 11 00 00 00 00 00 00 5B [17:52:52]Write i2c OK [17:52:52]MH_I2C_Read... [17:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:52]Read from MH i2c: E2 [17:52:52]MH_I2C_Read... [17:52:52]Read from MH i2c: E2 17 00 [17:52:52]MH_I2C_Read... [17:52:52]Read from MH i2c: E2 17 00 E0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A9 [17:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:52:52]wFMCommunicate OK [17:52:52]requested_item fd.num is exist - process it [17:52:52]SAM_PROTO_GetFieldsCounters [17:52:52]wFMCommunicate request_size=4 [17:52:52]MH_SAM_APDU [17:52:52]CAPDU: 80 13 00 00 [17:52:52]Write to MH i2c: E2 08 00 E1 01 80 13 00 00 00 00 00 00 5E [17:52:52]Write i2c OK [17:52:52]MH_I2C_Read... [17:52:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:52]Read from MH i2c: E2 [17:52:52]MH_I2C_Read... [17:52:52]Read from MH i2c: E2 62 00 [17:52:52]MH_I2C_Read... [17:52:52]Read from MH i2c: E2 62 00 E1 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 19 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [17:52: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 19 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:52]wFMCommunicate OK [17:52:52]SAM_PROTO_GetFieldsCounters done [17:52:52]requested_item shift.num is exist - process it [17:52:52]requested_item shift.opened is exist - process it [17:52:52]req_shift_opened [17:52:52]FM_GetShiftState [17:52:52]SAM_PROTO_GetShiftState [17:52:52]wFMCommunicate request_size=4 [17:52:52]MH_SAM_APDU [17:52:52]CAPDU: 80 13 01 00 [17:52:52]Write to MH i2c: E2 08 00 E2 01 80 13 01 00 00 00 00 00 60 [17:52:52]Write i2c OK [17:52:52]MH_I2C_Read... [17:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:52]Read from MH i2c: E2 [17:52:52]MH_I2C_Read... [17:52:52]Read from MH i2c: E2 0E 00 [17:52:52]MH_I2C_Read... [17:52:52]Read from MH i2c: E2 0E 00 E2 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A1 [17:52:52]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:52:52]wFMCommunicate OK [17:52:52]SAM_PROTO_GetShiftState done [17:52:52]FM_GetShiftState done [17:52:52]req_shift_opened done [17:52:52]requested_item shift.open_date is exist - process it [17:52:52]req_shift_open_date [17:52:52]req_shift_open_date done [17:52:52]produce_requested_data done [17:52:52]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115737,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:52:52]process_action_free close_receipt [17:52:52]json_value_free [17:52:52]json_value_free done [17:52:52]process_json_proto returns [17:52:52]Send response to host [17:52:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115737,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:52:52]free response buf [17:52:52]execute_script done [17:52:52]execute_script returns [17:52:52]free content buf [17:52:52]Sock 9.Close socket [17:52:52]Sock 9.Thread stoped [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:04]accept exits with 8 [17:53:04]New connection [17:53:04]New thread 3067010404 created [17:53:04]Thread 3066867044 joined [17:53:04]Waiting for new connection... [17:53:04] Sock 8.Parse request [17:53:04]Sock 8.Check first char [17:53:04]Sock 8.First char is OK [17:53:04]request: POST /json_proto HTTP/1.0 [17:53:04]Method: POST [17:53:04]URL: /json_proto [17:53:04]Method is POST - this is cgi request [17:53:04]url: /json_proto [17:53:04]query_string will be loaded in cgi processing [17:53:04]execute_cgi json_proto POST (null) [17:53:04]execute_cgi path=json_proto method=POST [17:53:04]POST find Content-Length [17:53:04]Host: 172.17.41.136:8080 [17:53:04]Content-Length: 680 [17:53:04]Content-Type: application/json [17:53:04] [17:53:04]POST finish read [17:53:04]Found Content-Length = 680 [17:53:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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:53:04]execute_script... [17:53: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)24617900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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:53:04]POST & json_proto [17:53:04]process_json_proto [17:53:04]json parsed OK: [17:53:04]protocol is kg_v1.0 [17:53:04]action value=close_receipt [17:53:04]process_action close_receipt [17:53:04]cmd_close_receipt [17:53:04]MH_GetDate [17:53:04]Write to MH i2c: F0 00 00 E3 01 D3 [17:53:04]Write i2c OK [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: F0 [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: F0 09 00 [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: F0 09 00 E3 01 00 01 AB F1 66 1B D0 5A 64 88 [17:53:04]GetLastDocTimeStamp 1727113967 [17:53:04]current date 1727113985 [17:53:04]FM_GetShiftState [17:53:04]SAM_PROTO_GetShiftState [17:53:04]wFMCommunicate request_size=4 [17:53:04]MH_SAM_APDU [17:53:04]CAPDU: 80 13 01 00 [17:53:04]Write to MH i2c: E2 08 00 E4 01 80 13 01 00 00 00 00 00 62 [17:53:04]Write i2c OK [17:53:04]MH_I2C_Read... [17:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:04]Read from MH i2c: E2 [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: E2 0E 00 [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: E2 0E 00 E4 01 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A3 [17:53:04]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:53:04]wFMCommunicate OK [17:53:04]SAM_PROTO_GetShiftState done [17:53:04]FM_GetShiftState done [17:53:04]opened in 1727052070 [17:53:04]opened+sec_in_day 1727138470 [17:53:04]quantity*price = 80004 [17:53:04]sum+1 = 80005 [17:53:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 221 23.09.2024 17:53 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115738 ФПД: 46427512897177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T175305&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115738&fm=46427512897177&tin=02508201610067®Number=0000000000091831&sum=80000 [17:53:06]StoreToDocumentArchive [17:53:06]shift 472 fd 115738 [17:53:06]save to /storage/0472/doc_00115738 [17:53:06]save last doc name /storage/0472/doc_00115738 to /storage/kkm_last_doc_name [17:53:06]save OK [17:53:06]Clear old archive folders... [17:53:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:06]tlvbuf is 0116B170 [17:53:06]SAM_PROTO_ClearQueue [17:53:06]wFMCommunicate request_size=4 [17:53:06]MH_SAM_APDU [17:53:06]CAPDU: 80 09 00 00 [17:53:06]Write to MH i2c: E2 08 00 F1 01 80 09 00 00 00 00 00 00 64 [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:06]Read from MH i2c: E2 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [17:53:06]RAPDU: 90 00 [17:53:06]wFMCommunicate OK [17:53:06]SAM_PROTO_ClearQueue done [17:53:06]KKMCreateOFDPacket [17:53:06]OFDProtocolAddRootSTLVToBuf [17:53:06]FM_MakeSignedData [17:53:06]FM_MakeSignedData [17:53:06]SAM_PROTO_SignData [17:53:06]wFMCommunicate request_size=4 [17:53:06]MH_SAM_APDU [17:53:06]CAPDU: 80 0D 01 02 [17:53:06]Write to MH i2c: E2 08 00 F2 01 80 0D 01 02 00 00 00 00 6C [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:06]Read from MH i2c: E2 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [17:53:06]RAPDU: 90 00 [17:53:06]wFMCommunicate OK [17:53:06]wFMCommunicate request_size=255 [17:53:06]MH_SAM_APDU [17:53:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 DD 00 00 00 F4 03 04 00 01 AB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1A C4 01 00 35 04 06 00 2A [17:53:06]Write to MH i2c: E2 02 01 F3 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 DD 00 00 00 F4 03 04 00 01 AB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1A C4 01 00 35 04 06 00 2A 00 00 52 [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:06]Read from MH i2c: E2 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [17:53:06]RAPDU: 90 00 [17:53:06]wFMCommunicate OK [17:53:06]wFMCommunicate request_size=10 [17:53:06]MH_SAM_APDU [17:53:06]CAPDU: 80 0D 02 02 05 39 BF 69 FE 99 [17:53:06]Write to MH i2c: E2 0D 00 F4 01 80 0D 02 02 05 00 39 BF 69 FE 99 00 00 71 [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:06]Read from MH i2c: E2 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [17:53:06]RAPDU: 90 00 [17:53:06]wFMCommunicate OK [17:53:06]wFMCommunicate request_size=4 [17:53:06]MH_SAM_APDU [17:53:06]CAPDU: 80 0D 03 02 [17:53:06]Write to MH i2c: E2 08 00 F5 01 80 0D 03 02 00 00 00 00 71 [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:06]Read from MH i2c: E2 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 0B 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 0B 00 F5 01 00 1A 48 FA 0B DC F3 29 20 90 00 F1 [17:53:06]RAPDU: 1A 48 FA 0B DC F3 29 20 90 00 [17:53:06]wFMCommunicate OK [17:53:06]SAM_PROTO_SignData done [17:53:06]FM_MakeSignedData done [17:53:06]CreateOFDProtocolMessage [17:53:06]wFMCommunicate request_size=4 [17:53:06]MH_SAM_APDU [17:53:06]CAPDU: 80 11 00 00 [17:53:06]Write to MH i2c: E2 08 00 F6 01 80 11 00 00 00 00 00 00 71 [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:06]Read from MH i2c: E2 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 17 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 17 00 F6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BF [17:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:53:06]wFMCommunicate OK [17:53:06]CreateOFDProtocolMessage done [17:53:06]OFDSenderStorePacket 115738 [17:53:06]StoreOFDPacket docnum=115738 [17:53:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 29 EA 07 01 CD EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 DD 00 00 00 F4 03 04 00 01 AB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1A C4 01 00 35 04 06 00 2A 39 BF 69 FE 99 1A 48 FA 0B DC F3 29 20 [17:53:06]CheckFolder [17:53:06]dirname=/storage/ofd_packets [17:53:06]CheckFolder done [17:53:06]ProducePacketName [17:53:06]name=ofd_packets/00115738 [17:53:06]NVStorageSaveData ofd_packets/00115738 [17:53:06]File name is /storage/ofd_packets/00115738 [17:53:06]Write 301 bytes [17:53:06]NVStorageSaveData done [17:53:06]OFDSenderStorePacket done [17:53:06]KKMCreateOFDPacket done [17:53:06]NVStorageSaveData kkm_last_timestamp [17:53:06]File name is /storage/kkm_last_timestamp [17:53:06]Write 4 bytes [17:53:06]NVStorageSaveData done [17:53:06]ExternCall_PrintAddStr [17:53:06]wPrintStart [17:53:06]Write to MH i2c: 01 00 00 F7 01 F8 [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: 01 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: 01 07 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: 01 07 00 F7 01 00 00 00 00 00 FF 0F 0D [17:53:06]RasterBufferAndPrint [17:53:06]line Счет N : (1)24617900 [17:53:06]line ИНН: 02508201610067 [17:53:06]line Контрольно-Кассовый Чек [17:53:06]line ПРОДАЖА [17:53:06]line ТРК (МРК, ГНК) : 53 [17:53:06]line Товар: 2710124130 [17:53:06]line Аи-92-К-5 [17:53:06]line 11.800 * 67.80 [17:53:06]line = 800.04 [17:53:06]line НДС 12% НСП 1% [17:53:06]line > о реализуемом товаре [17:53:06]line ОКРУГЛЕНИЕ: -0.04 [17:53:06]line ИТОГО: 800.00 [17:53:06]line Внесено: 800.00 [17:53:06]line СДАЧА: 0.00 [17:53:06]line НСП 1% : 7.08 [17:53:06]line НДС 12% : 84.96 [17:53:06]line Наличными: 800.00 [17:53:06]line Безнал.: 0.00 [17:53:06]line Место: АЗС № 90 "Партнер Нефть" [17:53:06]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:53:06]line СНО: Общий режим [17:53:06]line Чек 221 23.09.2024 17:53 [17:53:06]line Смена: 472 ФФД: 1.0 [17:53:06]line ЗНМ: 0300000120 [17:53:06]line РНМ: 0000000000091831 [17:53:06]line Версия ККМ: 001 [17:53:06]line ФМ: 0000000000871830 [17:53:06]line ФД: 115738 [17:53:06]line ФПД: 46427512897177 [17:53:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T175305&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115738&fm=46427512897177&tin=02508201610067®Number=0000000000091831&sum=80000 [17:53:06]OFD Sender: Processing packet 115738 [packets to send 482, broken 481] [17:53:06]ProducePacketName [17:53:06]name=ofd_packets/00115738 [17:53:06]OFD Sender: To server: pG, [17:53:06]CommunicateWithHost lk.salyk.kg:30040 [17:53:06]ConnectInit lk.salyk.kg [17:53:06]written 0, free lines is 4095 [17:53:06]Connected sock=10 [17:53: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 38 33 30 0F 01 00 00 29 EA 07 01 CD EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 DD 00 00 00 F4 03 04 00 01 AB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1A C4 01 00 35 04 06 00 2A 39 BF 69 FE 99 1A 48 FA 0B DC F3 29 20 [17:53:07]Write to MH i2c: 01 00 00 21 02 23 [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: 01 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: 01 07 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: 01 07 00 21 02 00 00 00 00 00 6B 0C A1 [17:53:07]RasterBufferAndPrint [17:53:07]line [17:53:07]line [17:53:07]line [17:53:07]line [17:53:07]line [17:53:07]written 0, free lines is 3183 [17:53:07]MH_Cut [17:53:07]Write to MH i2c: D1 01 00 28 02 01 FC [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: D1 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: D1 01 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: D1 01 00 28 02 00 FB [17:53:07]Write to MH i2c: 01 00 00 29 02 2B [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 EF 32 47 00 F2 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 38 33 30 10 04 04 00 1A C4 01 00 F4 03 04 00 43 50 F1 66 B6 04 01 00 00 21 6B 0B B3 C4 7C AE 1B [17:53:07]CommunicateWithHost err = 0 [17:53:07]CheckOFDResponse [17:53:07]1017 (14) - 77093643461234 [17:53:07]1041 (16) - 0000000000871830 [17:53:07]1040 (4) - 115738 [17:53:07]1012 (4) - 23.09.2024 11:25 [17:53:07]1206 (1) - 0 [17:53:07]OFD Sender: Remove packet 115738 [17:53:07]ProducePacketName [17:53:07]name=ofd_packets/00115738 [17:53:07]NVStorageDeleteData [17:53:07]OFD Sender: No OFD packet to send [17:53:08]*** Cut start [17:53:08]*** Partial cut [17:53:08]*** CUTSNS_PIN = 1 [17:53:08]*** CUTSNS_PIN = 0 [17:53:08]*** Brake cut motor [17:53:08]Read from MH i2c: 01 [17:53:09]MH_I2C_Read... [17:53:09]*** Stop cut motor [17:53:09]*** Cut end [17:53:09]Read from MH i2c: 01 07 00 [17:53:09]MH_I2C_Read... [17:53:09]Read from MH i2c: 01 07 00 29 02 00 00 00 00 00 FF 0F 40 [17:53:09]process_action close_receipt done [17:53:09]requested_data is exist [17:53:09]produce_requested_data [17:53:09]requested_item fm.sn is exist - process it [17:53:09]wFMCommunicate request_size=4 [17:53:09]MH_SAM_APDU [17:53:09]CAPDU: 80 11 00 00 [17:53:09]Write to MH i2c: E2 08 00 2A 02 80 11 00 00 00 00 00 00 A6 [17:53:09]Write i2c OK [17:53:09]MH_I2C_Read... [17:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:09]Read from MH i2c: E2 [17:53:09]MH_I2C_Read... [17:53:09]Read from MH i2c: E2 17 00 [17:53:09]MH_I2C_Read... [17:53:09]Read from MH i2c: E2 17 00 2A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F4 [17:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:53:09]wFMCommunicate OK [17:53:09]requested_item fd.num is exist - process it [17:53:09]SAM_PROTO_GetFieldsCounters [17:53:09]wFMCommunicate request_size=4 [17:53:09]MH_SAM_APDU [17:53:09]CAPDU: 80 13 00 00 [17:53:09]Write to MH i2c: E2 08 00 2B 02 80 13 00 00 00 00 00 00 A9 [17:53:09]Write i2c OK [17:53:09]MH_I2C_Read... [17:53:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:09]Read from MH i2c: E2 [17:53:09]MH_I2C_Read... [17:53:09]Read from MH i2c: E2 62 00 [17:53:09]MH_I2C_Read... [17:53:09]Read from MH i2c: E2 62 00 2B 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1A C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [17: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1A C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:09]wFMCommunicate OK [17:53:09]SAM_PROTO_GetFieldsCounters done [17:53:09]requested_item shift.num is exist - process it [17:53:09]requested_item shift.opened is exist - process it [17:53:09]req_shift_opened [17:53:09]FM_GetShiftState [17:53:09]SAM_PROTO_GetShiftState [17:53:09]wFMCommunicate request_size=4 [17:53:09]MH_SAM_APDU [17:53:09]CAPDU: 80 13 01 00 [17:53:09]Write to MH i2c: E2 08 00 2C 02 80 13 01 00 00 00 00 00 AB [17:53:09]Write i2c OK [17:53:09]MH_I2C_Read... [17:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:09]Read from MH i2c: E2 [17:53:09]MH_I2C_Read... [17:53:09]Read from MH i2c: E2 0E 00 [17:53:09]MH_I2C_Read... [17:53:09]Read from MH i2c: E2 0E 00 2C 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 EC [17:53:09]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:53:09]wFMCommunicate OK [17:53:09]SAM_PROTO_GetShiftState done [17:53:09]FM_GetShiftState done [17:53:09]req_shift_opened done [17:53:09]requested_item shift.open_date is exist - process it [17:53:09]req_shift_open_date [17:53:09]req_shift_open_date done [17:53:09]produce_requested_data done [17:53:09]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115738,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:53:09]process_action_free close_receipt [17:53:09]json_value_free [17:53:09]json_value_free done [17:53:09]process_json_proto returns [17:53:09]Send response to host [17:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115738,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:53:09]free response buf [17:53:09]execute_script done [17:53:09]execute_script returns [17:53:09]free content buf [17:53:09]Sock 8.Close socket [17:53:09]Sock 8.Thread stoped [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:53]OFD Sender: No OFD packet to send [17:54:58]OFD Sender: No OFD packet to send [17:55:03]OFD Sender: No OFD packet to send [17:55:08]OFD Sender: No OFD packet to send [17:55:13]OFD Sender: No OFD packet to send [17:55:18]OFD Sender: No OFD packet to send [17:55:21]accept exits with 9 [17:55:21]New connection [17:55:21]New thread 3066867044 created [17:55:21]Thread 3067010404 joined [17:55:21]Waiting for new connection... [17:55:21] Sock 9.Parse request [17:55:21]Sock 9.Check first char [17:55:21]Sock 9.First char is OK [17:55:21]request: POST /json_proto HTTP/1.0 [17:55:21]Method: POST [17:55:21]URL: /json_proto [17:55:21]Method is POST - this is cgi request [17:55:21]url: /json_proto [17:55:21]query_string will be loaded in cgi processing [17:55:21]execute_cgi json_proto POST (null) [17:55:21]execute_cgi path=json_proto method=POST [17:55:21]POST find Content-Length [17:55:21]Host: 172.17.41.136:8080 [17:55:21]Content-Length: 964 [17:55:21]Content-Type: application/json [17:55:21] [17:55:21]POST finish read [17:55:21]Found Content-Length = 964 [17:55:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344064", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 244.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:21]execute_script... [17:55:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344064", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 244.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:21]POST & json_proto [17:55:21]process_json_proto [17:55:21]json parsed OK: [17:55:21]protocol is kg_v1.0 [17:55:21]action value=close_receipt [17:55:21]process_action close_receipt [17:55:21]cmd_close_receipt [17:55:21]MH_GetDate [17:55:21]Write to MH i2c: F0 00 00 2D 02 1E [17:55:21]Write i2c OK [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: F0 [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: F0 09 00 [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: F0 09 00 2D 02 00 8A AB F1 66 1B D0 5A 64 5C [17:55:21]GetLastDocTimeStamp 1727113985 [17:55:21]current date 1727114122 [17:55:21]FM_GetShiftState [17:55:21]SAM_PROTO_GetShiftState [17:55:21]wFMCommunicate request_size=4 [17:55:21]MH_SAM_APDU [17:55:21]CAPDU: 80 13 01 00 [17:55:21]Write to MH i2c: E2 08 00 2E 02 80 13 01 00 00 00 00 00 AD [17:55:21]Write i2c OK [17:55:21]MH_I2C_Read... [17:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:22]Read from MH i2c: E2 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: E2 0E 00 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: E2 0E 00 2E 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 EE [17:55:22]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:55:22]wFMCommunicate OK [17:55:22]SAM_PROTO_GetShiftState done [17:55:22]FM_GetShiftState done [17:55:22]opened in 1727052070 [17:55:22]opened+sec_in_day 1727138470 [17:55:22]quantity*price = 13900 [17:55:22]sum+1 = 13901 [17:55:22]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 244.00 НСП 1% : 2.16 НДС 12% : 25.91 Наличными: 244.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 222 23.09.2024 17:55 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115739 ФПД: 82081455468420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T175522&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115739&fm=82081455468420&tin=02508201610067®Number=0000000000091831&sum=24400 0 [17:55:23]StoreToDocumentArchive [17:55:23]shift 472 fd 115739 [17:55:23]save to /storage/0472/doc_00115739 [17:55:23]save last doc name /storage/0472/doc_00115739 to /storage/kkm_last_doc_name [17:55:23]save OK [17:55:23]Clear old archive folders... [17:55:23]ProcessDocumentItem done err = 0, tmpTLVsize=410 [17:55:23]tlvbuf is 0116C7D0 [17:55:23]SAM_PROTO_ClearQueue [17:55:23]wFMCommunicate request_size=4 [17:55:23]MH_SAM_APDU [17:55:23]CAPDU: 80 09 00 00 [17:55:23]Write to MH i2c: E2 08 00 3B 02 80 09 00 00 00 00 00 00 AF [17:55:23]Write i2c OK [17:55:23]MH_I2C_Read... [17:55:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:23]Read from MH i2c: E2 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: E2 03 00 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [17:55:23]RAPDU: 90 00 [17:55:23]wFMCommunicate OK [17:55:23]SAM_PROTO_ClearQueue done [17:55:23]KKMCreateOFDPacket [17:55:23]OFDProtocolAddRootSTLVToBuf [17:55:23]FM_MakeSignedData [17:55:23]FM_MakeSignedData [17:55:23]SAM_PROTO_SignData [17:55:23]wFMCommunicate request_size=4 [17:55:23]MH_SAM_APDU [17:55:23]CAPDU: 80 0D 01 02 [17:55:23]Write to MH i2c: E2 08 00 3C 02 80 0D 01 02 00 00 00 00 B7 [17:55:23]Write i2c OK [17:55:23]MH_I2C_Read... [17:55:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:23]Read from MH i2c: E2 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: E2 03 00 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [17:55:23]RAPDU: 90 00 [17:55:23]wFMCommunicate OK [17:55:23]wFMCommunicate request_size=255 [17:55:23]MH_SAM_APDU [17:55:23]CAPDU: 80 0D 02 02 FA 03 00 9A 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [17:55:23]Write to MH i2c: E2 02 01 3D 02 80 0D 02 02 FA 00 03 00 9A 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 0C [17:55:23]Write i2c OK [17:55:23]MH_I2C_Read... [17:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:23]Read from MH i2c: E2 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: E2 03 00 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [17:55:23]RAPDU: 90 00 [17:55:23]wFMCommunicate OK [17:55:23]wFMCommunicate request_size=169 [17:55:23]MH_SAM_APDU [17:55:23]CAPDU: 80 0D 02 02 A4 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0A 00 00 00 00 07 04 06 00 50 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 8A AB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1B C4 01 00 35 04 06 00 4A A7 13 FE EF 84 [17:55:23]Write to MH i2c: E2 AC 00 3E 02 80 0D 02 02 A4 00 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0A 00 00 00 00 07 04 06 00 50 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 8A AB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1B C4 01 00 35 04 06 00 4A A7 13 FE EF 84 00 00 37 [17:55:23]Write i2c OK [17:55:23]MH_I2C_Read... [17:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:23]Read from MH i2c: E2 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: E2 03 00 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [17:55:23]RAPDU: 90 00 [17:55:23]wFMCommunicate OK [17:55:23]wFMCommunicate request_size=4 [17:55:23]MH_SAM_APDU [17:55:23]CAPDU: 80 0D 03 02 [17:55:23]Write to MH i2c: E2 08 00 3F 02 80 0D 03 02 00 00 00 00 BC [17:55:23]Write i2c OK [17:55:23]MH_I2C_Read... [17:55:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:23]Read from MH i2c: E2 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: E2 0B 00 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: E2 0B 00 3F 02 00 2A 09 48 E9 BF 95 25 D6 90 00 70 [17:55:23]RAPDU: 2A 09 48 E9 BF 95 25 D6 90 00 [17:55:23]wFMCommunicate OK [17:55:23]SAM_PROTO_SignData done [17:55:23]FM_MakeSignedData done [17:55:23]CreateOFDProtocolMessage [17:55:23]wFMCommunicate request_size=4 [17:55:23]MH_SAM_APDU [17:55:23]CAPDU: 80 11 00 00 [17:55:23]Write to MH i2c: E2 08 00 40 02 80 11 00 00 00 00 00 00 BC [17:55:23]Write i2c OK [17:55:23]MH_I2C_Read... [17:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:23]Read from MH i2c: E2 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: E2 17 00 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: E2 17 00 40 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0A [17:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:55:23]wFMCommunicate OK [17:55:23]CreateOFDProtocolMessage done [17:55:23]OFDSenderStorePacket 115739 [17:55:23]StoreOFDPacket docnum=115739 [17:55:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 AE 01 00 00 D1 AE A6 01 F6 31 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0A 00 00 00 00 07 04 06 00 50 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 8A AB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1B C4 01 00 35 04 06 00 4A A7 13 FE EF 84 2A 09 48 E9 BF 95 25 D6 [17:55:23]CheckFolder [17:55:23]dirname=/storage/ofd_packets [17:55:23]CheckFolder done [17:55:23]ProducePacketName [17:55:23]name=ofd_packets/00115739 [17:55:23]NVStorageSaveData ofd_packets/00115739 [17:55:23]File name is /storage/ofd_packets/00115739 [17:55:23]Write 460 bytes [17:55:23]NVStorageSaveData done [17:55:23]OFDSenderStorePacket done [17:55:23]KKMCreateOFDPacket done [17:55:23]NVStorageSaveData kkm_last_timestamp [17:55:23]File name is /storage/kkm_last_timestamp [17:55:23]Write 4 bytes [17:55:23]NVStorageSaveData done [17:55:23]ExternCall_PrintAddStr [17:55:23]wPrintStart [17:55:23]Write to MH i2c: 01 00 00 41 02 43 [17:55:23]Write i2c OK [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: 01 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: 01 07 00 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: 01 07 00 41 02 00 00 00 00 00 FF 0F 58 [17:55:23]RasterBufferAndPrint [17:55:23]line Счет N : (3)344064 [17:55:23]line ИНН: 02508201610067 [17:55:23]line Контрольно-Кассовый Чек [17:55:23]line ПРОДАЖА [17:55:24]line Товар: 48745000 [17:55:24]line Сигареты Winston Purple Mix [17:55:24]line 1.000 * 139.00 [17:55:24]line = 139.00 [17:55:24]line НДС 12% НСП 1% [17:55:24]line > о реализуемом товаре [17:55:24]line Товар: 5449000027474 [17:55:24]line Напиток FuzeTea зел чай манго,ромашка 1л [17:55:24]line 1.000 * 105.00 [17:55:24]line = 105.00 [17:55:24]line НДС 12% НСП 1% [17:55:24]line > о реализуемом товаре [17:55:24]line ИТОГО: 244.00 [17:55:24]line НСП 1% : 2.16 [17:55:24]line НДС 12% : 25.91 [17:55:24]line Наличными: 244.00 [17:55:24]line Безнал.: 0.00 [17:55:24]line Место: АЗС № 90 "Партнер Нефть" [17:55:24]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:55:24]line СНО: Общий режим [17:55:24]line Чек 222 23.09.2024 17:55 [17:55:24]line Смена: 472 ФФД: 1.0 [17:55:24]line ЗНМ: 0300000120 [17:55:24]line РНМ: 0000000000091831 [17:55:24]line Версия ККМ: 001 [17:55:24]line ФМ: 0000000000871830 [17:55:24]line ФД: 115739 [17:55:24]line ФПД: 82081455468420 [17:55:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T175522&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115739&fm=82081455468420&tin=02508201610067®Number=0000000000091831&sum=24400 [17:55:24]OFD Sender: Processing packet 115739 [packets to send 482, broken 481] [17:55:24]line 0 [17:55:24]ProducePacketName [17:55:24]name=ofd_packets/00115739 [17:55:24]OFD Sender: To server: pG, [17:55:24]CommunicateWithHost lk.salyk.kg:30040 [17:55:24]ConnectInit lk.salyk.kg [17:55:24]written 0, free lines is 4095 [17:55:24]Connected sock=10 [17:55: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 38 33 30 AE 01 00 00 D1 AE A6 01 F6 31 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0A 00 00 00 00 07 04 06 00 50 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 8A AB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1B C4 01 00 35 04 06 00 4A A7 13 FE EF 84 2A 09 48 E9 BF 95 25 D6 [17:55:24]Write to MH i2c: 01 00 00 6F 02 71 [17:55:24]Write i2c OK [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: 01 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: 01 07 00 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FE 0B 81 [17:55:24]RasterBufferAndPrint [17:55:24]line [17:55:24]line [17:55:24]line [17:55:24]line [17:55:24]line [17:55:24]written 0, free lines is 3073 [17:55:24]MH_Cut [17:55:24]Write to MH i2c: D1 01 00 76 02 01 4A [17:55:24]Write i2c OK [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: D1 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: D1 01 00 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: D1 01 00 76 02 00 49 [17:55:24]Write to MH i2c: 01 00 00 77 02 79 [17:55:24]Write i2c OK [17:55:24]MH_I2C_Read... [17:55:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 41 18 47 00 9F D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1B C4 01 00 F4 03 04 00 CD 50 F1 66 B6 04 01 00 00 56 44 06 B8 69 50 D5 15 [17:55:24]CommunicateWithHost err = 0 [17:55:24]CheckOFDResponse [17:55:24]1017 (14) - 77093643461234 [17:55:24]1041 (16) - 0000000000871830 [17:55:24]1040 (4) - 115739 [17:55:24]1012 (4) - 23.09.2024 11:28 [17:55:24]1206 (1) - 0 [17:55:24]OFD Sender: Remove packet 115739 [17:55:24]ProducePacketName [17:55:24]name=ofd_packets/00115739 [17:55:24]NVStorageDeleteData [17:55:25]OFD Sender: No OFD packet to send [17:55:26]*** Cut start [17:55:26]*** Partial cut [17:55:26]*** CUTSNS_PIN = 1 [17:55:26]*** CUTSNS_PIN = 0 [17:55:26]*** Brake cut motor [17:55:26]Read from MH i2c: 01 [17:55:26]MH_I2C_Read... [17:55:26]*** Stop cut motor [17:55:26]*** Cut end [17:55:26]Read from MH i2c: 01 07 00 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: 01 07 00 77 02 00 00 00 00 00 FF 0F 8E [17:55:26]process_action close_receipt done [17:55:26]requested_data is exist [17:55:26]produce_requested_data [17:55:26]requested_item fm.sn is exist - process it [17:55:26]wFMCommunicate request_size=4 [17:55:26]MH_SAM_APDU [17:55:26]CAPDU: 80 11 00 00 [17:55:26]Write to MH i2c: E2 08 00 78 02 80 11 00 00 00 00 00 00 F4 [17:55:26]Write i2c OK [17:55:26]MH_I2C_Read... [17:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:26]Read from MH i2c: E2 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: E2 17 00 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: E2 17 00 78 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 42 [17:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:55:26]wFMCommunicate OK [17:55:26]requested_item fd.num is exist - process it [17:55:26]SAM_PROTO_GetFieldsCounters [17:55:26]wFMCommunicate request_size=4 [17:55:26]MH_SAM_APDU [17:55:26]CAPDU: 80 13 00 00 [17:55:26]Write to MH i2c: E2 08 00 79 02 80 13 00 00 00 00 00 00 F7 [17:55:26]Write i2c OK [17:55:26]MH_I2C_Read... [17:55:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:26]Read from MH i2c: E2 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: E2 62 00 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: E2 62 00 79 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1B C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [17:55: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1B C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:55:26]wFMCommunicate OK [17:55:26]SAM_PROTO_GetFieldsCounters done [17:55:26]requested_item shift.num is exist - process it [17:55:26]requested_item shift.opened is exist - process it [17:55:26]req_shift_opened [17:55:26]FM_GetShiftState [17:55:26]SAM_PROTO_GetShiftState [17:55:26]wFMCommunicate request_size=4 [17:55:26]MH_SAM_APDU [17:55:26]CAPDU: 80 13 01 00 [17:55:26]Write to MH i2c: E2 08 00 7A 02 80 13 01 00 00 00 00 00 F9 [17:55:26]Write i2c OK [17:55:26]MH_I2C_Read... [17:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:26]Read from MH i2c: E2 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: E2 0E 00 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: E2 0E 00 7A 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 3A [17:55:26]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:55:26]wFMCommunicate OK [17:55:26]SAM_PROTO_GetShiftState done [17:55:26]FM_GetShiftState done [17:55:26]req_shift_opened done [17:55:26]requested_item shift.open_date is exist - process it [17:55:26]req_shift_open_date [17:55:26]req_shift_open_date done [17:55:26]produce_requested_data done [17:55:26]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115739,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:55:26]process_action_free close_receipt [17:55:26]json_value_free [17:55:26]json_value_free done [17:55:26]process_json_proto returns [17:55:26]Send response to host [17:55:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115739,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:55:26]free response buf [17:55:26]execute_script done [17:55:26]execute_script returns [17:55:26]free content buf [17:55:26]Sock 9.Close socket [17:55:26]Sock 9.Thread stoped [17:55:30]OFD Sender: No OFD packet to send [17:55:35]OFD Sender: No OFD packet to send [17:55:40]OFD Sender: No OFD packet to send [17:55:45]OFD Sender: No OFD packet to send [17:55:50]OFD Sender: No OFD packet to send [17:55:55]OFD Sender: No OFD packet to send [17:56:00]OFD Sender: No OFD packet to send [17:56:05]OFD Sender: No OFD packet to send [17:56:10]OFD Sender: No OFD packet to send [17:56:15]OFD Sender: No OFD packet to send [17:56:20]OFD Sender: No OFD packet to send [17:56:22]accept exits with 8 [17:56:22]New connection [17:56:22]New thread 3067010404 created [17:56:22]Thread 3066867044 joined [17:56:22]Waiting for new connection... [17:56:22] Sock 8.Parse request [17:56:22]Sock 8.Check first char [17:56:22]Sock 8.First char is OK [17:56:22]request: POST /json_proto HTTP/1.0 [17:56:22]Method: POST [17:56:22]URL: /json_proto [17:56:22]Method is POST - this is cgi request [17:56:22]url: /json_proto [17:56:22]query_string will be loaded in cgi processing [17:56:22]execute_cgi json_proto POST (null) [17:56:22]execute_cgi path=json_proto method=POST [17:56:22]POST find Content-Length [17:56:22]Host: 172.17.41.136:8080 [17:56:22]Content-Length: 1460 [17:56:22]Content-Type: application/json [17:56:22] [17:56:22]POST finish read [17:56:22]Found Content-Length = 1460 [17:56:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344065", "tax_sys" : 0, "items" : [ { "code": "4870215620852", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u041E\u0420\u0422\u0418\u0426\u042F ICE 0,50L", "price" : 600.00, "quantity" : 1.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 895.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:22]execute_script... [17:56:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344065", "tax_sys" : 0, "items" : [ { "code": "4870215620852", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u041E\u0420\u0422\u0418\u0426\u042F ICE 0,50L", "price" : 600.00, "quantity" : 1.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 895.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:22]POST & json_proto [17:56:22]process_json_proto [17:56:22]json parsed OK: [17:56:22]protocol is kg_v1.0 [17:56:22]action value=close_receipt [17:56:22]process_action close_receipt [17:56:22]cmd_close_receipt [17:56:22]MH_GetDate [17:56:22]Write to MH i2c: F0 00 00 7B 02 6C [17:56:22]Write i2c OK [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: F0 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: F0 09 00 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: F0 09 00 7B 02 00 C7 AB F1 66 1B D0 5A 64 E7 [17:56:22]GetLastDocTimeStamp 1727114122 [17:56:22]current date 1727114183 [17:56:22]FM_GetShiftState [17:56:22]SAM_PROTO_GetShiftState [17:56:22]wFMCommunicate request_size=4 [17:56:23]MH_SAM_APDU [17:56:23]CAPDU: 80 13 01 00 [17:56:23]Write to MH i2c: E2 08 00 7C 02 80 13 01 00 00 00 00 00 FB [17:56:23]Write i2c OK [17:56:23]MH_I2C_Read... [17:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:23]Read from MH i2c: E2 [17:56:23]MH_I2C_Read... [17:56:23]Read from MH i2c: E2 0E 00 [17:56:23]MH_I2C_Read... [17:56:23]Read from MH i2c: E2 0E 00 7C 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 3C [17:56:23]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:56:23]wFMCommunicate OK [17:56:23]SAM_PROTO_GetShiftState done [17:56:23]FM_GetShiftState done [17:56:23]opened in 1727052070 [17:56:23]opened+sec_in_day 1727138470 [17:56:23]quantity*price = 60000 [17:56:23]sum+1 = 60001 [17:56:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480364 Напиток энерг Nitro экзотик 0.45 ж/б 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 895.00 НСП 1% : 7.92 НДС 12% : 95.05 Наличными: 0.00 Безнал.: 895.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 223 23.09.2024 17:56 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115740 ФПД: 228477214278552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T175624&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115740&fm=228477214278552&tin=02508201610067®Number=0000000000091831&sum=89500 0 [17:56:24]StoreToDocumentArchive [17:56:24]shift 472 fd 115740 [17:56:24]save to /storage/0472/doc_00115740 [17:56:24]save last doc name /storage/0472/doc_00115740 to /storage/kkm_last_doc_name [17:56:24]save OK [17:56:24]Clear old archive folders... [17:56:24]ProcessDocumentItem done err = 0, tmpTLVsize=544 [17:56:24]tlvbuf is 011806B0 [17:56:24]SAM_PROTO_ClearQueue [17:56:24]wFMCommunicate request_size=4 [17:56:24]MH_SAM_APDU [17:56:24]CAPDU: 80 09 00 00 [17:56:24]Write to MH i2c: E2 08 00 89 02 80 09 00 00 00 00 00 00 FD [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:24]Read from MH i2c: E2 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 03 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [17:56:24]RAPDU: 90 00 [17:56:24]wFMCommunicate OK [17:56:24]SAM_PROTO_ClearQueue done [17:56:24]KKMCreateOFDPacket [17:56:24]OFDProtocolAddRootSTLVToBuf [17:56:24]FM_MakeSignedData [17:56:24]FM_MakeSignedData [17:56:24]SAM_PROTO_SignData [17:56:24]wFMCommunicate request_size=4 [17:56:24]MH_SAM_APDU [17:56:24]CAPDU: 80 0D 01 02 [17:56:24]Write to MH i2c: E2 08 00 8A 02 80 0D 01 02 00 00 00 00 05 [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:24]Read from MH i2c: E2 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 03 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [17:56:24]RAPDU: 90 00 [17:56:24]wFMCommunicate OK [17:56:24]wFMCommunicate request_size=255 [17:56:24]MH_SAM_APDU [17:56:24]CAPDU: 80 0D 02 02 FA 03 00 20 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 30 38 35 32 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 9E D0 A0 D0 A2 D0 98 D0 A6 D0 AF 20 49 43 45 20 30 2C 35 30 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 EA 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A [17:56:24]Write to MH i2c: E2 02 01 8B 02 80 0D 02 02 FA 00 03 00 20 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 30 38 35 32 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 9E D0 A0 D0 A2 D0 98 D0 A6 D0 AF 20 49 43 45 20 30 2C 35 30 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 EA 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 00 00 7D [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:24]Read from MH i2c: E2 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 03 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 03 00 8B 02 00 90 00 01 [17:56:24]RAPDU: 90 00 [17:56:24]wFMCommunicate OK [17:56:24]wFMCommunicate request_size=255 [17:56:24]MH_SAM_APDU [17:56:24]CAPDU: 80 0D 02 02 FA 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 5D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 5D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 C8 AB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [17:56:24]Write to MH i2c: E2 02 01 8C 02 80 0D 02 02 FA 00 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 5D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 5D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 C8 AB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 7B [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:24]Read from MH i2c: E2 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 03 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 03 00 8C 02 00 90 00 02 [17:56:24]RAPDU: 90 00 [17:56:24]wFMCommunicate OK [17:56:24]wFMCommunicate request_size=53 [17:56:24]MH_SAM_APDU [17:56:24]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1C C4 01 00 35 04 06 00 CF CC 7F 32 43 98 [17:56:24]Write to MH i2c: E2 38 00 8D 02 80 0D 02 02 30 00 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1C C4 01 00 35 04 06 00 CF CC 7F 32 43 98 00 00 FE [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:24]Read from MH i2c: E2 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 03 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [17:56:24]RAPDU: 90 00 [17:56:24]wFMCommunicate OK [17:56:24]wFMCommunicate request_size=4 [17:56:24]MH_SAM_APDU [17:56:24]CAPDU: 80 0D 03 02 [17:56:24]Write to MH i2c: E2 08 00 8E 02 80 0D 03 02 00 00 00 00 0B [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:24]Read from MH i2c: E2 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 0B 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 0B 00 8E 02 00 46 ED 46 CE A0 44 B0 A8 90 00 8F [17:56:24]RAPDU: 46 ED 46 CE A0 44 B0 A8 90 00 [17:56:24]wFMCommunicate OK [17:56:24]SAM_PROTO_SignData done [17:56:24]FM_MakeSignedData done [17:56:24]CreateOFDProtocolMessage [17:56:24]wFMCommunicate request_size=4 [17:56:24]MH_SAM_APDU [17:56:24]CAPDU: 80 11 00 00 [17:56:24]Write to MH i2c: E2 08 00 8F 02 80 11 00 00 00 00 00 00 0B [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:25]Read from MH i2c: E2 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: E2 17 00 [17:56:25]MH_I2C_Read... [17:56:25]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 38 33 30 90 00 59 [17:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:56:25]wFMCommunicate OK [17:56:25]CreateOFDProtocolMessage done [17:56:25]OFDSenderStorePacket 115740 [17:56:25]StoreOFDPacket docnum=115740 [17:56:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 34 02 00 00 03 A8 2C 02 B6 3A 5A 03 01 00 03 00 20 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 30 38 35 32 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 9E D0 A0 D0 A2 D0 98 D0 A6 D0 AF 20 49 43 45 20 30 2C 35 30 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 EA 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 5D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 5D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 C8 AB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1C C4 01 00 35 04 06 00 CF CC 7F 32 43 98 46 ED 46 CE A0 44 B0 A8 [17:56:25]CheckFolder [17:56:25]dirname=/storage/ofd_packets [17:56:25]CheckFolder done [17:56:25]ProducePacketName [17:56:25]name=ofd_packets/00115740 [17:56:25]NVStorageSaveData ofd_packets/00115740 [17:56:25]File name is /storage/ofd_packets/00115740 [17:56:25]Write 594 bytes [17:56:25]NVStorageSaveData done [17:56:25]OFDSenderStorePacket done [17:56:25]KKMCreateOFDPacket done [17:56:25]NVStorageSaveData kkm_last_timestamp [17:56:25]File name is /storage/kkm_last_timestamp [17:56:25]Write 4 bytes [17:56:25]NVStorageSaveData done [17:56:25]ExternCall_PrintAddStr [17:56:25]wPrintStart [17:56:25]Write to MH i2c: 01 00 00 90 02 92 [17:56:25]OFD Sender: Processing packet 115740 [packets to send 482, broken 481] [17:56:25]ProducePacketName [17:56:25]name=ofd_packets/00115740 [17:56:25]OFD Sender: To server: pG, [17:56:25]CommunicateWithHost lk.salyk.kg:30040 [17:56:25]ConnectInit lk.salyk.kg [17:56:25]Write i2c OK [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: 01 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: 01 07 00 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: 01 07 00 90 02 00 00 00 00 00 FF 0F A7 [17:56:25]RasterBufferAndPrint [17:56:25]line Счет N : (3)344065 [17:56:25]line ИНН: 02508201610067 [17:56:25]line Контрольно-Кассовый Чек [17:56:25]line ПРОДАЖА [17:56:25]line Товар: 4870215620852 [17:56:25]line Водка ХОРТИЦЯ ICE 0,50L [17:56:25]line 1.000 * 600.00 [17:56:25]line = 600.00 [17:56:25]line НДС 12% НСП 1% [17:56:25]line > о реализуемом товаре [17:56:25]line Товар: 4700000480364 [17:56:25]line Напиток энерг Nitro экзотик 0.45 ж/б [17:56:25]line 2.000 * 95.00 [17:56:25]line = 190.00 [17:56:25]line НДС 12% НСП 1% [17:56:25]line > о реализуемом товаре [17:56:25]line Товар: 5449000027474 [17:56:25]line Напиток FuzeTea зел чай манго,ромашка 1л [17:56:25]line 1.000 * 105.00 [17:56:25]line = 105.00 [17:56:25]line НДС 12% НСП 1% [17:56:25]line > о реализуемом товаре [17:56:25]line ИТОГО: 895.00 [17:56:25]line НСП 1% : 7.92 [17:56:25]line НДС 12% : 95.05 [17:56:25]line Наличными: 0.00 [17:56:25]line Безнал.: 895.00 [17:56:25]line Место: АЗС № 90 "Партнер Нефть" [17:56:25]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [17:56:25]line СНО: Общий режим [17:56:25]line Чек 223 23.09.2024 17:56 [17:56:25]line Смена: 472 ФФД: 1.0 [17:56:25]line ЗНМ: 0300000120 [17:56:25]line РНМ: 0000000000091831 [17:56:25]line Версия ККМ: 001 [17:56:25]line Платежная система: O! деньги [17:56:25]line ФМ: 0000000000871830 [17:56:25]line ФД: 115740 [17:56:25]line ФПД: 228477214278552 [17:56:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T175624&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115740&fm=228477214278552&tin=02508201610067®Number=0000000000091831&sum=89500 [17:56:25]line 0 [17:56:25]Connected sock=10 [17:56: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 38 33 30 34 02 00 00 03 A8 2C 02 B6 3A 5A 03 01 00 03 00 20 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 30 38 35 32 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 9E D0 A0 D0 A2 D0 98 D0 A6 D0 AF 20 49 43 45 20 30 2C 35 30 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 EA 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 5D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 5D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 C8 AB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1C C4 01 00 35 04 06 00 CF CC 7F 32 43 98 46 ED 46 CE A0 44 B0 A8 [17:56:25]written 0, free lines is 4095 [17:56:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 3F DE 47 00 DB 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1C C4 01 00 F4 03 04 00 0A 51 F1 66 B6 04 01 00 00 4A 01 E9 DA 58 E9 3A E6 [17:56:25]CommunicateWithHost err = 0 [17:56:25]CheckOFDResponse [17:56:25]1017 (14) - 77093643461234 [17:56:25]1041 (16) - 0000000000871830 [17:56:25]1040 (4) - 115740 [17:56:25]1012 (4) - 23.09.2024 11:29 [17:56:25]1206 (1) - 0 [17:56:25]OFD Sender: Remove packet 115740 [17:56:25]ProducePacketName [17:56:25]name=ofd_packets/00115740 [17:56:25]NVStorageDeleteData [17:56:26]Write to MH i2c: 01 00 00 C7 02 C9 [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: 01 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: 01 07 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: 01 07 00 C7 02 00 00 00 00 00 2C 0B 07 [17:56:26]RasterBufferAndPrint [17:56:26]line [17:56:26]line [17:56:26]line [17:56:26]line [17:56:26]line [17:56:26]written 0, free lines is 2863 [17:56:26]MH_Cut [17:56:26]Write to MH i2c: D1 01 00 CE 02 01 A2 [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: D1 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: D1 01 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: D1 01 00 CE 02 00 A1 [17:56:26]Write to MH i2c: 01 00 00 CF 02 D1 [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]OFD Sender: No OFD packet to send [17:56:27]*** Cut start [17:56:27]*** Partial cut [17:56:27]*** CUTSNS_PIN = 1 [17:56:27]*** CUTSNS_PIN = 0 [17:56:27]*** Brake cut motor [17:56:28]Read from MH i2c: 01 [17:56:28]MH_I2C_Read... [17:56:28]*** Stop cut motor [17:56:28]*** Cut end [17:56:28]Read from MH i2c: 01 07 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: 01 07 00 CF 02 00 00 00 00 00 FF 0F E6 [17:56:28]process_action close_receipt done [17:56:28]requested_data is exist [17:56:28]produce_requested_data [17:56:28]requested_item fm.sn is exist - process it [17:56:28]wFMCommunicate request_size=4 [17:56:28]MH_SAM_APDU [17:56:28]CAPDU: 80 11 00 00 [17:56:28]Write to MH i2c: E2 08 00 D0 02 80 11 00 00 00 00 00 00 4C [17:56:28]Write i2c OK [17:56:28]MH_I2C_Read... [17:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:28]Read from MH i2c: E2 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 17 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 17 00 D0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9A [17:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [17:56:28]wFMCommunicate OK [17:56:28]requested_item fd.num is exist - process it [17:56:28]SAM_PROTO_GetFieldsCounters [17:56:28]wFMCommunicate request_size=4 [17:56:28]MH_SAM_APDU [17:56:28]CAPDU: 80 13 00 00 [17:56:28]Write to MH i2c: E2 08 00 D1 02 80 13 00 00 00 00 00 00 4F [17:56:28]Write i2c OK [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 [17:56:28]MH_I2C_Read... [17:56:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:28]Read from MH i2c: E2 62 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 62 00 D1 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1C C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [17:56:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1C C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:28]wFMCommunicate OK [17:56:28]SAM_PROTO_GetFieldsCounters done [17:56:28]requested_item shift.num is exist - process it [17:56:28]requested_item shift.opened is exist - process it [17:56:28]req_shift_opened [17:56:28]FM_GetShiftState [17:56:28]SAM_PROTO_GetShiftState [17:56:28]wFMCommunicate request_size=4 [17:56:28]MH_SAM_APDU [17:56:28]CAPDU: 80 13 01 00 [17:56:28]Write to MH i2c: E2 08 00 D2 02 80 13 01 00 00 00 00 00 51 [17:56:28]Write i2c OK [17:56:28]MH_I2C_Read... [17:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:28]Read from MH i2c: E2 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 0E 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 0E 00 D2 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 92 [17:56:28]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [17:56:28]wFMCommunicate OK [17:56:28]SAM_PROTO_GetShiftState done [17:56:28]FM_GetShiftState done [17:56:28]req_shift_opened done [17:56:28]requested_item shift.open_date is exist - process it [17:56:28]req_shift_open_date [17:56:28]req_shift_open_date done [17:56:28]produce_requested_data done [17:56:28]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115740,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [17:56:28]process_action_free close_receipt [17:56:28]json_value_free [17:56:28]json_value_free done [17:56:28]process_json_proto returns [17:56:28]Send response to host [17:56:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115740,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [17:56:28]free response buf [17:56:28]execute_script done [17:56:28]execute_script returns [17:56:28]free content buf [17:56:28]Sock 8.Close socket [17:56:28]Sock 8.Thread stoped [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59: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:55]accept exits with 9 [18:00:55]New connection [18:00:55]New thread 3066867044 created [18:00:55]Thread 3067010404 joined [18:00:55]Waiting for new connection... [18:00:55] Sock 9.Parse request [18:00:55]Sock 9.Check first char [18:00:55]Sock 9.First char is OK [18:00:55]request: POST /json_proto HTTP/1.0 [18:00:55]Method: POST [18:00:55]URL: /json_proto [18:00:55]Method is POST - this is cgi request [18:00:55]url: /json_proto [18:00:55]query_string will be loaded in cgi processing [18:00:55]execute_cgi json_proto POST (null) [18:00:55]execute_cgi path=json_proto method=POST [18:00:55]POST find Content-Length [18:00:55]Host: 172.17.41.136:8080 [18:00:55]Content-Length: 614 [18:00:55]Content-Type: application/json [18:00:55] [18:00:55]POST finish read [18:00:55]Found Content-Length = 614 [18:00:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344066", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:55]execute_script... [18:00:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344066", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:55]POST & json_proto [18:00:55]process_json_proto [18:00:55]json parsed OK: [18:00:55]protocol is kg_v1.0 [18:00:55]action value=close_receipt [18:00:55]process_action close_receipt [18:00:55]cmd_close_receipt [18:00:55]MH_GetDate [18:00:55]Write to MH i2c: F0 00 00 D3 02 C4 [18:00:55]Write i2c OK [18:00:55]MH_I2C_Read... [18:00:55]Read from MH i2c: F0 [18:00:55]MH_I2C_Read... [18:00:55]Read from MH i2c: F0 09 00 [18:00:55]MH_I2C_Read... [18:00:55]Read from MH i2c: F0 09 00 D3 02 00 D8 AC F1 66 1B D0 5A 64 51 [18:00:55]GetLastDocTimeStamp 1727114184 [18:00:55]current date 1727114456 [18:00:55]FM_GetShiftState [18:00:55]SAM_PROTO_GetShiftState [18:00:55]wFMCommunicate request_size=4 [18:00:55]MH_SAM_APDU [18:00:55]CAPDU: 80 13 01 00 [18:00:55]Write to MH i2c: E2 08 00 D4 02 80 13 01 00 00 00 00 00 53 [18:00:55]Write i2c OK [18:00:55]MH_I2C_Read... [18:00:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:55]Read from MH i2c: E2 [18:00:55]MH_I2C_Read... [18:00:55]Read from MH i2c: E2 0E 00 [18:00:55]MH_I2C_Read... [18:00:55]Read from MH i2c: E2 0E 00 D4 02 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 94 [18:00:55]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:00:55]wFMCommunicate OK [18:00:55]SAM_PROTO_GetShiftState done [18:00:55]FM_GetShiftState done [18:00:55]opened in 1727052070 [18:00:55]opened+sec_in_day 1727138470 [18:00:55]quantity*price = 11000 [18:00:55]sum+1 = 11001 [18:00:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 224 23.09.2024 18:00 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115741 ФПД: 66911536427980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T180056&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115741&fm=66911536427980&tin=02508201610067®Number=0000000000091831&sum=11000 0 [18:00:56]StoreToDocumentArchive [18:00:56]shift 472 fd 115741 [18:00:56]save to /storage/0472/doc_00115741 [18:00:56]save last doc name /storage/0472/doc_00115741 to /storage/kkm_last_doc_name [18:00:56]save OK [18:00:56]Clear old archive folders... [18:00:56]ProcessDocumentItem done err = 0, tmpTLVsize=266 [18:00:56]tlvbuf is 01148DD0 [18:00:56]SAM_PROTO_ClearQueue [18:00:56]wFMCommunicate request_size=4 [18:00:56]MH_SAM_APDU [18:00:56]CAPDU: 80 09 00 00 [18:00:56]Write to MH i2c: E2 08 00 E1 02 80 09 00 00 00 00 00 00 55 [18:00:56]Write i2c OK [18:00:56]MH_I2C_Read... [18:00:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:56]Read from MH i2c: E2 [18:00:56]MH_I2C_Read... [18:00:56]Read from MH i2c: E2 03 00 [18:00:56]MH_I2C_Read... [18:00:56]Read from MH i2c: E2 03 00 E1 02 00 90 00 57 [18:00:56]RAPDU: 90 00 [18:00:56]wFMCommunicate OK [18:00:56]SAM_PROTO_ClearQueue done [18:00:56]KKMCreateOFDPacket [18:00:56]OFDProtocolAddRootSTLVToBuf [18:00:56]FM_MakeSignedData [18:00:56]FM_MakeSignedData [18:00:56]SAM_PROTO_SignData [18:00:56]wFMCommunicate request_size=4 [18:00:56]MH_SAM_APDU [18:00:56]CAPDU: 80 0D 01 02 [18:00:56]Write to MH i2c: E2 08 00 E2 02 80 0D 01 02 00 00 00 00 5D [18:00:56]Write i2c OK [18:00:56]MH_I2C_Read... [18:00:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:56]Read from MH i2c: E2 [18:00:56]MH_I2C_Read... [18:00:56]Read from MH i2c: E2 03 00 [18:00:56]MH_I2C_Read... [18:00:56]Read from MH i2c: E2 03 00 E2 02 00 90 00 58 [18:00:56]RAPDU: 90 00 [18:00:56]wFMCommunicate OK [18:00:56]wFMCommunicate request_size=255 [18:00:56]MH_SAM_APDU [18:00:56]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 D8 AC F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [18:00:56]Write to MH i2c: E2 02 01 E3 02 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 D8 AC F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 65 [18:00:56]Write i2c OK [18:00:56]MH_I2C_Read... [18:00:56]OFD Sender: No OFD packet to send [18:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:57]Read from MH i2c: E2 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: E2 03 00 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: E2 03 00 E3 02 00 90 00 59 [18:00:57]RAPDU: 90 00 [18:00:57]wFMCommunicate OK [18:00:57]wFMCommunicate request_size=25 [18:00:57]MH_SAM_APDU [18:00:57]CAPDU: 80 0D 02 02 14 33 30 10 04 04 00 1D C4 01 00 35 04 06 00 3C DB 0E 5C 33 CC [18:00:57]Write to MH i2c: E2 1C 00 E4 02 80 0D 02 02 14 00 33 30 10 04 04 00 1D C4 01 00 35 04 06 00 3C DB 0E 5C 33 CC 00 00 A4 [18:00:57]Write i2c OK [18:00:57]MH_I2C_Read... [18:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:57]Read from MH i2c: E2 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: E2 03 00 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: E2 03 00 E4 02 00 90 00 5A [18:00:57]RAPDU: 90 00 [18:00:57]wFMCommunicate OK [18:00:57]wFMCommunicate request_size=4 [18:00:57]MH_SAM_APDU [18:00:57]CAPDU: 80 0D 03 02 [18:00:57]Write to MH i2c: E2 08 00 E5 02 80 0D 03 02 00 00 00 00 62 [18:00:57]Write i2c OK [18:00:57]MH_I2C_Read... [18:00:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:57]Read from MH i2c: E2 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: E2 0B 00 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: E2 0B 00 E5 02 00 83 EA 09 1D 8A F1 48 F2 90 00 AB [18:00:57]RAPDU: 83 EA 09 1D 8A F1 48 F2 90 00 [18:00:57]wFMCommunicate OK [18:00:57]SAM_PROTO_SignData done [18:00:57]FM_MakeSignedData done [18:00:57]CreateOFDProtocolMessage [18:00:57]wFMCommunicate request_size=4 [18:00:57]MH_SAM_APDU [18:00:57]CAPDU: 80 11 00 00 [18:00:57]Write to MH i2c: E2 08 00 E6 02 80 11 00 00 00 00 00 00 62 [18:00:57]Write i2c OK [18:00:57]MH_I2C_Read... [18:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:57]Read from MH i2c: E2 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: E2 17 00 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: E2 17 00 E6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B0 [18:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:00:57]wFMCommunicate OK [18:00:57]CreateOFDProtocolMessage done [18:00:57]OFDSenderStorePacket 115741 [18:00:57]StoreOFDPacket docnum=115741 [18:00:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 11 42 16 01 18 3E 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 D8 AC F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1D C4 01 00 35 04 06 00 3C DB 0E 5C 33 CC 83 EA 09 1D 8A F1 48 F2 [18:00:57]CheckFolder [18:00:57]dirname=/storage/ofd_packets [18:00:57]CheckFolder done [18:00:57]ProducePacketName [18:00:57]name=ofd_packets/00115741 [18:00:57]NVStorageSaveData ofd_packets/00115741 [18:00:57]File name is /storage/ofd_packets/00115741 [18:00:57]Write 316 bytes [18:00:57]NVStorageSaveData done [18:00:57]OFDSenderStorePacket done [18:00:57]KKMCreateOFDPacket done [18:00:57]NVStorageSaveData kkm_last_timestamp [18:00:57]File name is /storage/kkm_last_timestamp [18:00:57]Write 4 bytes [18:00:57]NVStorageSaveData done [18:00:57]ExternCall_PrintAddStr [18:00:57]wPrintStart [18:00:57]Write to MH i2c: 01 00 00 E7 02 E9 [18:00:57]Write i2c OK [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: 01 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: 01 07 00 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: 01 07 00 E7 02 00 00 00 00 00 FF 0F FE [18:00:57]RasterBufferAndPrint [18:00:57]line Счет N : (3)344066 [18:00:57]line ИНН: 02508201610067 [18:00:57]line Контрольно-Кассовый Чек [18:00:57]line ПРОДАЖА [18:00:57]line Товар: 4870001570071 [18:00:57]line Напиток Pepsi 1л [18:00:57]line 1.000 * 110.00 [18:00:57]line = 110.00 [18:00:57]line НДС 12% НСП 1% [18:00:57]line > о реализуемом товаре [18:00:57]line ИТОГО: 110.00 [18:00:57]line НСП 1% : 0.97 [18:00:57]line НДС 12% : 11.68 [18:00:57]line Наличными: 110.00 [18:00:57]line Безнал.: 0.00 [18:00:57]line Место: АЗС № 90 "Партнер Нефть" [18:00:57]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:00:57]line СНО: Общий режим [18:00:57]line Чек 224 23.09.2024 18:00 [18:00:57]line Смена: 472 ФФД: 1.0 [18:00:57]line ЗНМ: 0300000120 [18:00:57]line РНМ: 0000000000091831 [18:00:57]line Версия ККМ: 001 [18:00:57]line ФМ: 0000000000871830 [18:00:57]line ФД: 115741 [18:00:57]line ФПД: 66911536427980 [18:00:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T180056&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115741&fm=66911536427980&tin=02508201610067®Number=0000000000091831&sum=11000 [18:00:57]line 0 [18:00:57]written 0, free lines is 4095 [18:00:57]OFD Sender: Processing packet 115741 [packets to send 482, broken 481] [18:00:57]ProducePacketName [18:00:57]name=ofd_packets/00115741 [18:00:57]OFD Sender: To server: pG, [18:00:57]CommunicateWithHost lk.salyk.kg:30040 [18:00:57]ConnectInit lk.salyk.kg [18:00:57]Connected sock=10 [18:00: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 38 33 30 1E 01 00 00 11 42 16 01 18 3E 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 D8 AC F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1D C4 01 00 35 04 06 00 3C DB 0E 5C 33 CC 83 EA 09 1D 8A F1 48 F2 [18:00:57]Write to MH i2c: 01 00 00 0E 03 11 [18:00:57]Write i2c OK [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: 01 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: 01 07 00 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: 01 07 00 0E 03 00 00 00 00 00 87 0C AB [18:00:57]RasterBufferAndPrint [18:00:57]line [18:00:57]line [18:00:57]line [18:00:57]line [18:00:57]line [18:00:57]written 0, free lines is 3211 [18:00:57]MH_Cut [18:00:57]Write to MH i2c: D1 01 00 15 03 01 EA [18:00:57]Write i2c OK [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: D1 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: D1 01 00 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: D1 01 00 15 03 00 E9 [18:00:57]Write to MH i2c: 01 00 00 16 03 19 [18:00:57]Write i2c OK [18:00:57]MH_I2C_Read... [18:00:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B8 9F 47 00 5C 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 38 33 30 10 04 04 00 1D C4 01 00 F4 03 04 00 1A 52 F1 66 B6 04 01 00 00 F5 7B 18 CC 0E FE 06 E3 [18:00:57]CommunicateWithHost err = 0 [18:00:57]CheckOFDResponse [18:00:57]1017 (14) - 77093643461234 [18:00:57]1041 (16) - 0000000000871830 [18:00:57]1040 (4) - 115741 [18:00:57]1012 (4) - 23.09.2024 11:33 [18:00:57]1206 (1) - 0 [18:00:57]OFD Sender: Remove packet 115741 [18:00:57]ProducePacketName [18:00:57]name=ofd_packets/00115741 [18:00:57]NVStorageDeleteData [18:00:58]OFD Sender: No OFD packet to send [18:00:58]*** Cut start [18:00:58]*** Partial cut [18:00:58]*** CUTSNS_PIN = 1 [18:00:59]*** CUTSNS_PIN = 0 [18:00:59]*** Brake cut motor [18:00:59]Read from MH i2c: 01 [18:00:59]MH_I2C_Read... [18:00:59]*** Stop cut motor [18:00:59]*** Cut end [18:00:59]Read from MH i2c: 01 07 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: 01 07 00 16 03 00 00 00 00 00 FF 0F 2E [18:00:59]process_action close_receipt done [18:00:59]requested_data is exist [18:00:59]produce_requested_data [18:00:59]requested_item fm.sn is exist - process it [18:00:59]wFMCommunicate request_size=4 [18:00:59]MH_SAM_APDU [18:00:59]CAPDU: 80 11 00 00 [18:00:59]Write to MH i2c: E2 08 00 17 03 80 11 00 00 00 00 00 00 94 [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:59]Read from MH i2c: E2 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 17 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 17 00 17 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E2 [18:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:00:59]wFMCommunicate OK [18:00:59]requested_item fd.num is exist - process it [18:00:59]SAM_PROTO_GetFieldsCounters [18:00:59]wFMCommunicate request_size=4 [18:00:59]MH_SAM_APDU [18:00:59]CAPDU: 80 13 00 00 [18:00:59]Write to MH i2c: E2 08 00 18 03 80 13 00 00 00 00 00 00 97 [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:59]Read from MH i2c: E2 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 62 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 62 00 18 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1D C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [18:00: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1D C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:59]wFMCommunicate OK [18:00:59]SAM_PROTO_GetFieldsCounters done [18:00:59]requested_item shift.num is exist - process it [18:00:59]requested_item shift.opened is exist - process it [18:00:59]req_shift_opened [18:00:59]FM_GetShiftState [18:00:59]SAM_PROTO_GetShiftState [18:00:59]wFMCommunicate request_size=4 [18:00:59]MH_SAM_APDU [18:00:59]CAPDU: 80 13 01 00 [18:00:59]Write to MH i2c: E2 08 00 19 03 80 13 01 00 00 00 00 00 99 [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:59]Read from MH i2c: E2 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 0E 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 0E 00 19 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 DA [18:00:59]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:00:59]wFMCommunicate OK [18:00:59]SAM_PROTO_GetShiftState done [18:00:59]FM_GetShiftState done [18:00:59]req_shift_opened done [18:00:59]requested_item shift.open_date is exist - process it [18:00:59]req_shift_open_date [18:00:59]req_shift_open_date done [18:00:59]produce_requested_data done [18:00:59]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115741,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:00:59]process_action_free close_receipt [18:00:59]json_value_free [18:00:59]json_value_free done [18:00:59]process_json_proto returns [18:00:59]Send response to host [18:00:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115741,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:00:59]free response buf [18:00:59]execute_script done [18:00:59]execute_script returns [18:00:59]free content buf [18:00:59]Sock 9.Close socket [18:00:59]Sock 9.Thread stoped [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:02:59]accept exits with 8 [18:02:59]New connection [18:02:59]New thread 3067010404 created [18:02:59]Thread 3066867044 joined [18:02:59]Waiting for new connection... [18:02:59] Sock 8.Parse request [18:02:59]Sock 8.Check first char [18:02:59]Sock 8.First char is OK [18:02:59]request: POST /json_proto HTTP/1.0 [18:02:59]Method: POST [18:02:59]URL: /json_proto [18:02:59]Method is POST - this is cgi request [18:02:59]url: /json_proto [18:02:59]query_string will be loaded in cgi processing [18:02:59]execute_cgi json_proto POST (null) [18:02:59]execute_cgi path=json_proto method=POST [18:02:59]POST find Content-Length [18:02:59]Host: 172.17.41.136:8080 [18:02:59]Content-Length: 684 [18:02:59]Content-Type: application/json [18:02:59] [18:02:59]POST finish read [18:02:59]Found Content-Length = 684 [18:02:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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" ] } } [18:02:59]execute_script... [18:02: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)24617908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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" ] } } [18:02:59]POST & json_proto [18:02:59]process_json_proto [18:02:59]json parsed OK: [18:02:59]protocol is kg_v1.0 [18:02:59]action value=close_receipt [18:02:59]process_action close_receipt [18:02:59]cmd_close_receipt [18:02:59]MH_GetDate [18:02:59]Write to MH i2c: F0 00 00 1A 03 0C [18:02:59]Write i2c OK [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: F0 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: F0 09 00 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: F0 09 00 1A 03 00 54 AD F1 66 1B D0 5A 64 16 [18:02:59]GetLastDocTimeStamp 1727114456 [18:02:59]current date 1727114580 [18:02:59]FM_GetShiftState [18:02:59]SAM_PROTO_GetShiftState [18:02:59]wFMCommunicate request_size=4 [18:02:59]MH_SAM_APDU [18:02:59]CAPDU: 80 13 01 00 [18:02:59]Write to MH i2c: E2 08 00 1B 03 80 13 01 00 00 00 00 00 9B [18:02:59]Write i2c OK [18:02:59]MH_I2C_Read... [18:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:59]Read from MH i2c: E2 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 0E 00 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 0E 00 1B 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 DC [18:02:59]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:02:59]wFMCommunicate OK [18:02:59]SAM_PROTO_GetShiftState done [18:02:59]FM_GetShiftState done [18:02:59]opened in 1727052070 [18:02:59]opened+sec_in_day 1727138470 [18:02:59]quantity*price = 200043 [18:02:59]sum+1 = 200044 [18:02:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 225 23.09.2024 18:03 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115742 ФПД: 96069587266744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T180300&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115742&fm=96069587266744&tin=02508201610067®Number=0000000000091831&sum=200000 [18:03:00]StoreToDocumentArchive [18:03:00]shift 472 fd 115742 [18:03:00]save to /storage/0472/doc_00115742 [18:03:00]save last doc name /storage/0472/doc_00115742 to /storage/kkm_last_doc_name [18:03:00]save OK [18:03:00]Clear old archive folders... [18:03:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:00]tlvbuf is 01148C10 [18:03:00]SAM_PROTO_ClearQueue [18:03:00]wFMCommunicate request_size=4 [18:03:00]MH_SAM_APDU [18:03:00]CAPDU: 80 09 00 00 [18:03:00]Write to MH i2c: E2 08 00 28 03 80 09 00 00 00 00 00 00 9D [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:00]Read from MH i2c: E2 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 03 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 03 00 28 03 00 90 00 9F [18:03:00]RAPDU: 90 00 [18:03:00]wFMCommunicate OK [18:03:00]SAM_PROTO_ClearQueue done [18:03:00]KKMCreateOFDPacket [18:03:00]OFDProtocolAddRootSTLVToBuf [18:03:00]FM_MakeSignedData [18:03:00]FM_MakeSignedData [18:03:00]SAM_PROTO_SignData [18:03:00]wFMCommunicate request_size=4 [18:03:00]MH_SAM_APDU [18:03:00]CAPDU: 80 0D 01 02 [18:03:00]Write to MH i2c: E2 08 00 29 03 80 0D 01 02 00 00 00 00 A5 [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:00]Read from MH i2c: E2 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 03 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 03 00 29 03 00 90 00 A0 [18:03:00]RAPDU: 90 00 [18:03:00]wFMCommunicate OK [18:03:00]wFMCommunicate request_size=255 [18:03:00]MH_SAM_APDU [18:03: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 35 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 E1 00 00 00 F4 03 04 00 54 AD F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1E C4 01 00 35 04 06 00 57 [18:03:00]Write to MH i2c: E2 02 01 2A 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 35 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 E1 00 00 00 F4 03 04 00 54 AD F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1E C4 01 00 35 04 06 00 57 00 00 20 [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:00]Read from MH i2c: E2 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 03 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 03 00 2A 03 00 90 00 A1 [18:03:00]RAPDU: 90 00 [18:03:00]wFMCommunicate OK [18:03:00]wFMCommunicate request_size=10 [18:03:00]MH_SAM_APDU [18:03:00]CAPDU: 80 0D 02 02 05 5F F1 9F 6C B8 [18:03:00]Write to MH i2c: E2 0D 00 2B 03 80 0D 02 02 05 00 5F F1 9F 6C B8 00 00 C5 [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:00]Read from MH i2c: E2 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 03 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 03 00 2B 03 00 90 00 A2 [18:03:00]RAPDU: 90 00 [18:03:00]wFMCommunicate OK [18:03:00]wFMCommunicate request_size=4 [18:03:00]MH_SAM_APDU [18:03:00]CAPDU: 80 0D 03 02 [18:03:00]Write to MH i2c: E2 08 00 2C 03 80 0D 03 02 00 00 00 00 AA [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:00]Read from MH i2c: E2 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 0B 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 0B 00 2C 03 00 C7 3E 37 3F 35 3A 16 BA 90 00 65 [18:03:00]RAPDU: C7 3E 37 3F 35 3A 16 BA 90 00 [18:03:00]wFMCommunicate OK [18:03:00]SAM_PROTO_SignData done [18:03:00]FM_MakeSignedData done [18:03:00]CreateOFDProtocolMessage [18:03:00]wFMCommunicate request_size=4 [18:03:00]MH_SAM_APDU [18:03:00]CAPDU: 80 11 00 00 [18:03:00]Write to MH i2c: E2 08 00 2D 03 80 11 00 00 00 00 00 00 AA [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:01]Read from MH i2c: E2 [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: E2 17 00 [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: E2 17 00 2D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F8 [18:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:03:01]wFMCommunicate OK [18:03:01]CreateOFDProtocolMessage done [18:03:01]OFDSenderStorePacket 115742 [18:03:01]StoreOFDPacket docnum=115742 [18:03:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 A1 75 07 01 C0 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 E1 00 00 00 F4 03 04 00 54 AD F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1E C4 01 00 35 04 06 00 57 5F F1 9F 6C B8 C7 3E 37 3F 35 3A 16 BA [18:03:01]CheckFolder [18:03:01]dirname=/storage/ofd_packets [18:03:01]CheckFolder done [18:03:01]ProducePacketName [18:03:01]name=ofd_packets/00115742 [18:03:01]NVStorageSaveData ofd_packets/00115742 [18:03:01]File name is /storage/ofd_packets/00115742 [18:03:01]Write 301 bytes [18:03:01]NVStorageSaveData done [18:03:01]OFDSenderStorePacket done [18:03:01]KKMCreateOFDPacket done [18:03:01]NVStorageSaveData kkm_last_timestamp [18:03:01]File name is /storage/kkm_last_timestamp [18:03:01]Write 4 bytes [18:03:01]NVStorageSaveData done [18:03:01]ExternCall_PrintAddStr [18:03:01]wPrintStart [18:03:01]Write to MH i2c: 01 00 00 2E 03 31 [18:03:01]Write i2c OK [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: 01 [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: 01 07 00 [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: 01 07 00 2E 03 00 00 00 00 00 FF 0F 46 [18:03:01]RasterBufferAndPrint [18:03:01]line Счет N : (1)24617908 [18:03:01]line ИНН: 02508201610067 [18:03:01]line Контрольно-Кассовый Чек [18:03:01]line ПРОДАЖА [18:03:01]line ТРК (МРК, ГНК) : 32 [18:03:01]line Товар: 2710124500 [18:03:01]line Аи-95-К-5 [18:03:01]line 26.960 * 74.20 [18:03:01]line = 2000.43 [18:03:01]line НДС 12% НСП 1% [18:03:01]line > о реализуемом товаре [18:03:01]line ОКРУГЛЕНИЕ: -0.43 [18:03:01]line ИТОГО: 2000.00 [18:03:01]line Внесено: 2000.00 [18:03:01]line СДАЧА: 0.00 [18:03:01]line НСП 1% : 17.70 [18:03:01]line НДС 12% : 212.43 [18:03:01]line Наличными: 2000.00 [18:03:01]line Безнал.: 0.00 [18:03:01]line Место: АЗС № 90 "Партнер Нефть" [18:03:01]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:03:01]line СНО: Общий режим [18:03:01]line Чек 225 23.09.2024 18:03 [18:03:01]line Смена: 472 ФФД: 1.0 [18:03:01]line ЗНМ: 0300000120 [18:03:01]line РНМ: 0000000000091831 [18:03:01]line Версия ККМ: 001 [18:03:01]line ФМ: 0000000000871830 [18:03:01]line ФД: 115742 [18:03:01]line ФПД: 96069587266744 [18:03:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T180300&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115742&fm=96069587266744&tin=02508201610067®Number=0000000000091831&sum=200000 [18:03:01]written 0, free lines is 4095 [18:03:01]OFD Sender: Processing packet 115742 [packets to send 482, broken 481] [18:03:01]ProducePacketName [18:03:01]name=ofd_packets/00115742 [18:03:01]OFD Sender: To server: pG, [18:03:01]CommunicateWithHost lk.salyk.kg:30040 [18:03:01]ConnectInit lk.salyk.kg [18:03:01]Connected sock=10 [18:03: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 38 33 30 0F 01 00 00 A1 75 07 01 C0 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 E1 00 00 00 F4 03 04 00 54 AD F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1E C4 01 00 35 04 06 00 57 5F F1 9F 6C B8 C7 3E 37 3F 35 3A 16 BA [18:03:01]Write to MH i2c: 01 00 00 58 03 5B [18:03:01]Write i2c OK [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: 01 [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: 01 07 00 [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: 01 07 00 58 03 00 00 00 00 00 68 0C D6 [18:03:01]RasterBufferAndPrint [18:03:01]line [18:03:01]line [18:03:01]line [18:03:01]line [18:03:01]line [18:03:01]written 0, free lines is 3181 [18:03:01]MH_Cut [18:03:01]Write to MH i2c: D1 01 00 5F 03 01 34 [18:03:01]Write i2c OK [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: D1 [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: D1 01 00 [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: D1 01 00 5F 03 00 33 [18:03:01]Write to MH i2c: 01 00 00 60 03 63 [18:03:01]Write i2c OK [18:03:01]MH_I2C_Read... [18:03:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1B BD 47 00 F2 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 38 33 30 10 04 04 00 1E C4 01 00 F4 03 04 00 96 52 F1 66 B6 04 01 00 00 83 10 EC 76 7C 5A BD AC [18:03:01]CommunicateWithHost err = 0 [18:03:01]CheckOFDResponse [18:03:01]1017 (14) - 77093643461234 [18:03:01]1041 (16) - 0000000000871830 [18:03:01]1040 (4) - 115742 [18:03:01]1012 (4) - 23.09.2024 11:35 [18:03:01]1206 (1) - 0 [18:03:01]OFD Sender: Remove packet 115742 [18:03:01]ProducePacketName [18:03:01]name=ofd_packets/00115742 [18:03:01]NVStorageDeleteData [18:03:02]OFD Sender: No OFD packet to send [18:03:02]*** Cut start [18:03:02]*** Partial cut [18:03:02]*** CUTSNS_PIN = 1 [18:03:02]*** CUTSNS_PIN = 0 [18:03:03]*** Brake cut motor [18:03:03]Read from MH i2c: 01 [18:03:03]MH_I2C_Read... [18:03:03]*** Stop cut motor [18:03:03]*** Cut end [18:03:03]Read from MH i2c: 01 07 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: 01 07 00 60 03 00 00 00 00 00 FF 0F 78 [18:03:03]process_action close_receipt done [18:03:03]requested_data is exist [18:03:03]produce_requested_data [18:03:03]requested_item fm.sn is exist - process it [18:03:03]wFMCommunicate request_size=4 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 11 00 00 [18:03:03]Write to MH i2c: E2 08 00 61 03 80 11 00 00 00 00 00 00 DE [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:03]Read from MH i2c: E2 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 17 00 [18:03:03]MH_I2C_Read... [18:03:03]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 38 33 30 90 00 2C [18:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:03:03]wFMCommunicate OK [18:03:03]requested_item fd.num is exist - process it [18:03:03]SAM_PROTO_GetFieldsCounters [18:03:03]wFMCommunicate request_size=4 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 13 00 00 [18:03:03]Write to MH i2c: E2 08 00 62 03 80 13 00 00 00 00 00 00 E1 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:03]Read from MH i2c: E2 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 62 00 [18:03:03]MH_I2C_Read... [18:03:03]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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1E C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [18:03: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1E C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:03]wFMCommunicate OK [18:03:03]SAM_PROTO_GetFieldsCounters done [18:03:03]requested_item shift.num is exist - process it [18:03:03]requested_item shift.opened is exist - process it [18:03:03]req_shift_opened [18:03:03]FM_GetShiftState [18:03:03]SAM_PROTO_GetShiftState [18:03:03]wFMCommunicate request_size=4 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 13 01 00 [18:03:03]Write to MH i2c: E2 08 00 63 03 80 13 01 00 00 00 00 00 E3 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:03]Read from MH i2c: E2 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 0E 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 0E 00 63 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 24 [18:03:03]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:03:03]wFMCommunicate OK [18:03:03]SAM_PROTO_GetShiftState done [18:03:03]FM_GetShiftState done [18:03:03]req_shift_opened done [18:03:03]requested_item shift.open_date is exist - process it [18:03:03]req_shift_open_date [18:03:03]req_shift_open_date done [18:03:03]produce_requested_data done [18:03:03]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115742,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:03:03]process_action_free close_receipt [18:03:03]json_value_free [18:03:03]json_value_free done [18:03:03]process_json_proto returns [18:03:03]Send response to host [18:03:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115742,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:03:03]free response buf [18:03:03]execute_script done [18:03:03]execute_script returns [18:03:03]free content buf [18:03:03]Sock 8.Close socket [18:03:03]Sock 8.Thread stoped [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:53]accept exits with 9 [18:03:53]New connection [18:03:53]New thread 3066867044 created [18:03:53]Thread 3067010404 joined [18:03:53]Waiting for new connection... [18:03:53] Sock 9.Parse request [18:03:53]Sock 9.Check first char [18:03:53]Sock 9.First char is OK [18:03:53]request: POST /json_proto HTTP/1.0 [18:03:53]Method: POST [18:03:53]URL: /json_proto [18:03:53]Method is POST - this is cgi request [18:03:53]url: /json_proto [18:03:53]query_string will be loaded in cgi processing [18:03:53]execute_cgi json_proto POST (null) [18:03:53]execute_cgi path=json_proto method=POST [18:03:53]POST find Content-Length [18:03:53]Host: 172.17.41.136:8080 [18:03:53]Content-Length: 792 [18:03:53]Content-Type: application/json [18:03:53] [18:03:53]POST finish read [18:03:53]Found Content-Length = 792 [18:03:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 6.870, "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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:53]execute_script... [18:03: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)24617909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 6.870, "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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:53]POST & json_proto [18:03:53]process_json_proto [18:03:53]json parsed OK: [18:03:53]protocol is kg_v1.0 [18:03:53]action value=close_receipt [18:03:53]process_action close_receipt [18:03:53]cmd_close_receipt [18:03:53]MH_GetDate [18:03:53]Write to MH i2c: F0 00 00 64 03 56 [18:03:53]Write i2c OK [18:03:53]MH_I2C_Read... [18:03:53]Read from MH i2c: F0 [18:03:53]MH_I2C_Read... [18:03:53]Read from MH i2c: F0 09 00 [18:03:53]MH_I2C_Read... [18:03:53]Read from MH i2c: F0 09 00 64 03 00 8A AD F1 66 1B D0 5A 64 96 [18:03:53]GetLastDocTimeStamp 1727114580 [18:03:53]current date 1727114634 [18:03:53]FM_GetShiftState [18:03:53]SAM_PROTO_GetShiftState [18:03:53]wFMCommunicate request_size=4 [18:03:53]MH_SAM_APDU [18:03:53]CAPDU: 80 13 01 00 [18:03:53]Write to MH i2c: E2 08 00 65 03 80 13 01 00 00 00 00 00 E5 [18:03:53]Write i2c OK [18:03:53]MH_I2C_Read... [18:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:53]Read from MH i2c: E2 [18:03:53]MH_I2C_Read... [18:03:53]Read from MH i2c: E2 0E 00 [18:03:53]MH_I2C_Read... [18:03:53]Read from MH i2c: E2 0E 00 65 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 26 [18:03:53]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:03:53]wFMCommunicate OK [18:03:53]SAM_PROTO_GetShiftState done [18:03:53]FM_GetShiftState done [18:03:53]opened in 1727052070 [18:03:53]opened+sec_in_day 1727138470 [18:03:53]quantity*price = 0 [18:03:53]sum+1 = 1 [18:03:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 226 23.09.2024 18:03 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливные Талоны 1 ФМ: 0000000000871830 ФД: 115743 ФПД: 107780473606623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T180354&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115743&fm=107780473606623&tin=02508201610067®Number=0000000000091831&sum=0 [18:03:54]StoreToDocumentArchive [18:03:54]shift 472 fd 115743 [18:03:54]save to /storage/0472/doc_00115743 [18:03:54]save last doc name /storage/0472/doc_00115743 to /storage/kkm_last_doc_name [18:03:54]save OK [18:03:54]Clear old archive folders... [18:03:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:03:54]tlvbuf is 0113EF30 [18:03:54]SAM_PROTO_ClearQueue [18:03:54]wFMCommunicate request_size=4 [18:03:54]MH_SAM_APDU [18:03:54]CAPDU: 80 09 00 00 [18:03:54]Write to MH i2c: E2 08 00 72 03 80 09 00 00 00 00 00 00 E7 [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:54]Read from MH i2c: E2 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 03 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 03 00 72 03 00 90 00 E9 [18:03:54]RAPDU: 90 00 [18:03:54]wFMCommunicate OK [18:03:54]SAM_PROTO_ClearQueue done [18:03:54]KKMCreateOFDPacket [18:03:54]OFDProtocolAddRootSTLVToBuf [18:03:54]FM_MakeSignedData [18:03:54]FM_MakeSignedData [18:03:54]SAM_PROTO_SignData [18:03:54]wFMCommunicate request_size=4 [18:03:54]MH_SAM_APDU [18:03:54]CAPDU: 80 0D 01 02 [18:03:54]Write to MH i2c: E2 08 00 73 03 80 0D 01 02 00 00 00 00 EF [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:54]Read from MH i2c: E2 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 03 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 03 00 73 03 00 90 00 EA [18:03:54]RAPDU: 90 00 [18:03:54]wFMCommunicate OK [18:03:54]wFMCommunicate request_size=255 [18:03:54]MH_SAM_APDU [18:03:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 1A 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 8A AD F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1F C4 01 00 35 04 06 00 62 06 98 D7 [18:03:54]Write to MH i2c: E2 02 01 74 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 1A 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 8A AD F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1F C4 01 00 35 04 06 00 62 06 98 D7 00 00 38 [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:54]Read from MH i2c: E2 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 03 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 03 00 74 03 00 90 00 EB [18:03:54]RAPDU: 90 00 [18:03:54]wFMCommunicate OK [18:03:54]wFMCommunicate request_size=7 [18:03:54]MH_SAM_APDU [18:03:54]CAPDU: 80 0D 02 02 02 D1 DF [18:03:54]Write to MH i2c: E2 0A 00 75 03 80 0D 02 02 02 00 D1 DF 00 00 A6 [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:54]Read from MH i2c: E2 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 03 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 03 00 75 03 00 90 00 EC [18:03:54]RAPDU: 90 00 [18:03:54]wFMCommunicate OK [18:03:54]wFMCommunicate request_size=4 [18:03:54]MH_SAM_APDU [18:03:54]CAPDU: 80 0D 03 02 [18:03:54]Write to MH i2c: E2 08 00 76 03 80 0D 03 02 00 00 00 00 F4 [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:54]Read from MH i2c: E2 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 0B 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 0B 00 76 03 00 BD 30 08 E0 E0 2B 70 CC 90 00 11 [18:03:54]RAPDU: BD 30 08 E0 E0 2B 70 CC 90 00 [18:03:54]wFMCommunicate OK [18:03:54]SAM_PROTO_SignData done [18:03:54]FM_MakeSignedData done [18:03:54]CreateOFDProtocolMessage [18:03:54]wFMCommunicate request_size=4 [18:03:54]MH_SAM_APDU [18:03:54]CAPDU: 80 11 00 00 [18:03:54]Write to MH i2c: E2 08 00 77 03 80 11 00 00 00 00 00 00 F4 [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:54]Read from MH i2c: E2 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 17 00 [18:03:54]MH_I2C_Read... [18:03:54]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 38 33 30 90 00 42 [18:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:03:54]wFMCommunicate OK [18:03:54]CreateOFDProtocolMessage done [18:03:54]OFDSenderStorePacket 115743 [18:03:54]StoreOFDPacket docnum=115743 [18:03:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 69 0A 04 01 17 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 1A 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 8A AD F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1F C4 01 00 35 04 06 00 62 06 98 D7 D1 DF BD 30 08 E0 E0 2B 70 CC [18:03:54]CheckFolder [18:03:54]dirname=/storage/ofd_packets [18:03:54]CheckFolder done [18:03:54]ProducePacketName [18:03:54]name=ofd_packets/00115743 [18:03:54]NVStorageSaveData ofd_packets/00115743 [18:03:54]File name is /storage/ofd_packets/00115743 [18:03:54]Write 298 bytes [18:03:54]NVStorageSaveData done [18:03:54]OFDSenderStorePacket done [18:03:54]KKMCreateOFDPacket done [18:03:54]NVStorageSaveData kkm_last_timestamp [18:03:54]File name is /storage/kkm_last_timestamp [18:03:54]Write 4 bytes [18:03:54]NVStorageSaveData done [18:03:54]ExternCall_PrintAddStr [18:03:54]wPrintStart [18:03:54]Write to MH i2c: 01 00 00 78 03 7B [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: 01 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: 01 07 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: 01 07 00 78 03 00 00 00 00 00 FF 0F 90 [18:03:54]RasterBufferAndPrint [18:03:54]line Счет N : (1)24617909 [18:03:54]line ИНН: 02508201610067 [18:03:54]line Контрольно-Кассовый Чек [18:03:54]line ПРОДАЖА [18:03:54]line ТРК (МРК, ГНК) : 22 [18:03:54]line Товар: 2710194210 [18:03:54]line ДТ-К-5 [18:03:54]line 6.870 * 0.00 [18:03:54]line = 0.00 [18:03:54]line НДС 12% НСП 1% [18:03:54]line > о реализуемом товаре [18:03:54]line ИТОГО: 0.00 [18:03:54]line НСП 1% : 0.00 [18:03:54]line НДС 12% : 0.00 [18:03:54]line Наличными: 0.00 [18:03:54]line Безнал.: 0.00 [18:03:54]line Место: АЗС № 90 "Партнер Нефть" [18:03:54]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:03:54]line СНО: Общий режим [18:03:54]line Чек 226 23.09.2024 18:03 [18:03:54]line Смена: 472 ФФД: 1.0 [18:03:54]line ЗНМ: 0300000120 [18:03:54]line РНМ: 0000000000091831 [18:03:54]line Версия ККМ: 001 [18:03:54]line Талоны: Топливные Талоны [18:03:54]line 1 [18:03:54]line ФМ: 0000000000871830 [18:03:54]line ФД: 115743 [18:03:54]line ФПД: 107780473606623 [18:03:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T180354&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115743&fm=107780473606623&tin=02508201610067®Number=0000000000091831&sum=0 [18:03:55]written 0, free lines is 4095 [18:03:55]OFD Sender: Processing packet 115743 [packets to send 482, broken 481] [18:03:55]ProducePacketName [18:03:55]name=ofd_packets/00115743 [18:03:55]OFD Sender: To server: pG, [18:03:55]CommunicateWithHost lk.salyk.kg:30040 [18:03:55]ConnectInit lk.salyk.kg [18:03:55]Connected sock=10 [18:03: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 38 33 30 0C 01 00 00 69 0A 04 01 17 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 1A 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 8A AD F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 1F C4 01 00 35 04 06 00 62 06 98 D7 D1 DF BD 30 08 E0 E0 2B 70 CC [18:03:55]Write to MH i2c: 01 00 00 A1 03 A4 [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: 01 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: 01 07 00 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: 01 07 00 A1 03 00 00 00 00 00 6B 0C 22 [18:03:55]RasterBufferAndPrint [18:03:55]line [18:03:55]line [18:03:55]line [18:03:55]line [18:03:55]line [18:03:55]written 0, free lines is 3185 [18:03:55]MH_Cut [18:03:55]Write to MH i2c: D1 01 00 A8 03 01 7D [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: D1 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: D1 01 00 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: D1 01 00 A8 03 00 7C [18:03:55]Write to MH i2c: 01 00 00 A9 03 AC [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0F E8 47 00 01 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 38 33 30 10 04 04 00 1F C4 01 00 F4 03 04 00 CC 52 F1 66 B6 04 01 00 00 AB D5 8C 78 04 00 9A 80 [18:03:55]CommunicateWithHost err = 0 [18:03:55]CheckOFDResponse [18:03:55]1017 (14) - 77093643461234 [18:03:55]1041 (16) - 0000000000871830 [18:03:55]1040 (4) - 115743 [18:03:55]1012 (4) - 23.09.2024 11:36 [18:03:55]1206 (1) - 0 [18:03:55]OFD Sender: Remove packet 115743 [18:03:55]ProducePacketName [18:03:55]name=ofd_packets/00115743 [18:03:55]NVStorageDeleteData [18:03:56]OFD Sender: No OFD packet to send [18:03:56]*** Cut start [18:03:56]*** Partial cut [18:03:56]*** CUTSNS_PIN = 1 [18:03:56]*** CUTSNS_PIN = 0 [18:03:56]*** Brake cut motor [18:03:57]Read from MH i2c: 01 [18:03:57]MH_I2C_Read... [18:03:57]*** Stop cut motor [18:03:57]*** Cut end [18:03:57]Read from MH i2c: 01 07 00 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 FF 0F C1 [18:03:57]process_action close_receipt done [18:03:57]requested_data is exist [18:03:57]produce_requested_data [18:03:57]requested_item fm.sn is exist - process it [18:03:57]wFMCommunicate request_size=4 [18:03:57]MH_SAM_APDU [18:03:57]CAPDU: 80 11 00 00 [18:03:57]Write to MH i2c: E2 08 00 AA 03 80 11 00 00 00 00 00 00 27 [18:03:57]Write i2c OK [18:03:57]MH_I2C_Read... [18:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:57]Read from MH i2c: E2 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: E2 17 00 [18:03:57]MH_I2C_Read... [18:03:57]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 38 33 30 90 00 75 [18:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:03:57]wFMCommunicate OK [18:03:57]requested_item fd.num is exist - process it [18:03:57]SAM_PROTO_GetFieldsCounters [18:03:57]wFMCommunicate request_size=4 [18:03:57]MH_SAM_APDU [18:03:57]CAPDU: 80 13 00 00 [18:03:57]Write to MH i2c: E2 08 00 AB 03 80 13 00 00 00 00 00 00 2A [18:03:57]Write i2c OK [18:03:57]MH_I2C_Read... [18:03:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:57]Read from MH i2c: E2 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: E2 62 00 [18:03:57]MH_I2C_Read... [18:03:57]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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1F C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [18:03: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 1F C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:57]wFMCommunicate OK [18:03:57]SAM_PROTO_GetFieldsCounters done [18:03:57]requested_item shift.num is exist - process it [18:03:57]requested_item shift.opened is exist - process it [18:03:57]req_shift_opened [18:03:57]FM_GetShiftState [18:03:57]SAM_PROTO_GetShiftState [18:03:57]wFMCommunicate request_size=4 [18:03:57]MH_SAM_APDU [18:03:57]CAPDU: 80 13 01 00 [18:03:57]Write to MH i2c: E2 08 00 AC 03 80 13 01 00 00 00 00 00 2C [18:03:57]Write i2c OK [18:03:57]MH_I2C_Read... [18:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:57]Read from MH i2c: E2 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: E2 0E 00 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: E2 0E 00 AC 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6D [18:03:57]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:03:57]wFMCommunicate OK [18:03:57]SAM_PROTO_GetShiftState done [18:03:57]FM_GetShiftState done [18:03:57]req_shift_opened done [18:03:57]requested_item shift.open_date is exist - process it [18:03:57]req_shift_open_date [18:03:57]req_shift_open_date done [18:03:57]produce_requested_data done [18:03:57]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115743,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:03:57]process_action_free close_receipt [18:03:57]json_value_free [18:03:57]json_value_free done [18:03:57]process_json_proto returns [18:03:57]Send response to host [18:03:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115743,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:03:57]free response buf [18:03:57]execute_script done [18:03:57]execute_script returns [18:03:57]free content buf [18:03:57]Sock 9.Close socket [18:03:57]Sock 9.Thread stoped [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:34]accept exits with 8 [18:04:34]New connection [18:04:34]New thread 3067010404 created [18:04:34]Thread 3066867044 joined [18:04:34]Waiting for new connection... [18:04:34] Sock 8.Parse request [18:04:34]Sock 8.Check first char [18:04:34]Sock 8.First char is OK [18:04:34]request: POST /json_proto HTTP/1.0 [18:04:34]Method: POST [18:04:34]URL: /json_proto [18:04:34]Method is POST - this is cgi request [18:04:34]url: /json_proto [18:04:34]query_string will be loaded in cgi processing [18:04:34]execute_cgi json_proto POST (null) [18:04:34]execute_cgi path=json_proto method=POST [18:04:34]POST find Content-Length [18:04:34]Host: 172.17.41.136:8080 [18:04:34]Content-Length: 676 [18:04:34]Content-Type: application/json [18:04:34] [18:04:34]POST finish read [18:04:34]Found Content-Length = 676 [18:04:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.330, "sum" : 177.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 177.00, "total" : 177.00, "payments": [ { "type": 0, "sum" : 177.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:34]execute_script... [18:04: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)24617910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.330, "sum" : 177.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 177.00, "total" : 177.00, "payments": [ { "type": 0, "sum" : 177.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:34]POST & json_proto [18:04:34]process_json_proto [18:04:34]json parsed OK: [18:04:34]protocol is kg_v1.0 [18:04:34]action value=close_receipt [18:04:34]process_action close_receipt [18:04:34]cmd_close_receipt [18:04:34]MH_GetDate [18:04:34]Write to MH i2c: F0 00 00 AD 03 9F [18:04:34]Write i2c OK [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: F0 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: F0 09 00 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: F0 09 00 AD 03 00 B3 AD F1 66 1B D0 5A 64 08 [18:04:34]GetLastDocTimeStamp 1727114634 [18:04:34]current date 1727114675 [18:04:34]FM_GetShiftState [18:04:34]SAM_PROTO_GetShiftState [18:04:34]wFMCommunicate request_size=4 [18:04:34]MH_SAM_APDU [18:04:34]CAPDU: 80 13 01 00 [18:04:34]Write to MH i2c: E2 08 00 AE 03 80 13 01 00 00 00 00 00 2E [18:04:34]Write i2c OK [18:04:34]MH_I2C_Read... [18:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:34]Read from MH i2c: E2 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: E2 0E 00 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: E2 0E 00 AE 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6F [18:04:34]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:04:34]wFMCommunicate OK [18:04:34]SAM_PROTO_GetShiftState done [18:04:34]FM_GetShiftState done [18:04:34]opened in 1727052070 [18:04:34]opened+sec_in_day 1727138470 [18:04:34]quantity*price = 17754 [18:04:34]sum+1 = 17756 [18:04:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 177.00 Внесено: 177.00 СДАЧА: 0.00 НСП 1% : 1.57 НДС 12% : 18.85 Наличными: 177.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 227 23.09.2024 18:04 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115744 ФПД: 29223024271764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T180435&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115744&fm=29223024271764&tin=02508201610067®Number=0000000000091831&sum=17700 [18:04:35]StoreToDocumentArchive [18:04:35]shift 472 fd 115744 [18:04:35]save to /storage/0472/doc_00115744 [18:04:35]save last doc name /storage/0472/doc_00115744 to /storage/kkm_last_doc_name [18:04:35]save OK [18:04:35]Clear old archive folders... [18:04:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:04:35]tlvbuf is 01160820 [18:04:35]SAM_PROTO_ClearQueue [18:04:35]wFMCommunicate request_size=4 [18:04:35]MH_SAM_APDU [18:04:35]CAPDU: 80 09 00 00 [18:04:35]Write to MH i2c: E2 08 00 BB 03 80 09 00 00 00 00 00 00 30 [18:04:35]Write i2c OK [18:04:35]MH_I2C_Read... [18:04:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:35]Read from MH i2c: E2 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 03 00 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 03 00 BB 03 00 90 00 32 [18:04:35]RAPDU: 90 00 [18:04:35]wFMCommunicate OK [18:04:35]SAM_PROTO_ClearQueue done [18:04:35]KKMCreateOFDPacket [18:04:35]OFDProtocolAddRootSTLVToBuf [18:04:35]FM_MakeSignedData [18:04:35]FM_MakeSignedData [18:04:35]SAM_PROTO_SignData [18:04:35]wFMCommunicate request_size=4 [18:04:35]MH_SAM_APDU [18:04:35]CAPDU: 80 0D 01 02 [18:04:35]Write to MH i2c: E2 08 00 BC 03 80 0D 01 02 00 00 00 00 38 [18:04:35]Write i2c OK [18:04:35]MH_I2C_Read... [18:04:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:35]Read from MH i2c: E2 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 03 00 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 03 00 BC 03 00 90 00 33 [18:04:35]RAPDU: 90 00 [18:04:35]wFMCommunicate OK [18:04:35]wFMCommunicate request_size=255 [18:04:35]MH_SAM_APDU [18:04:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 09 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 07 00 00 00 00 07 04 06 00 24 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 B3 AD F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 20 C4 01 00 35 04 06 00 1A 94 03 FB [18:04:35]Write to MH i2c: E2 02 01 BD 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 09 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 07 00 00 00 00 07 04 06 00 24 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 B3 AD F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 20 C4 01 00 35 04 06 00 1A 94 03 FB 00 00 08 [18:04:35]Write i2c OK [18:04:35]MH_I2C_Read... [18:04:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:35]Read from MH i2c: E2 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 03 00 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 03 00 BD 03 00 90 00 34 [18:04:35]RAPDU: 90 00 [18:04:35]wFMCommunicate OK [18:04:35]wFMCommunicate request_size=7 [18:04:35]MH_SAM_APDU [18:04:35]CAPDU: 80 0D 02 02 02 21 94 [18:04:35]Write to MH i2c: E2 0A 00 BE 03 80 0D 02 02 02 00 21 94 00 00 F4 [18:04:35]Write i2c OK [18:04:35]MH_I2C_Read... [18:04:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:35]Read from MH i2c: E2 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 03 00 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [18:04:35]RAPDU: 90 00 [18:04:35]wFMCommunicate OK [18:04:35]wFMCommunicate request_size=4 [18:04:35]MH_SAM_APDU [18:04:35]CAPDU: 80 0D 03 02 [18:04:35]Write to MH i2c: E2 08 00 BF 03 80 0D 03 02 00 00 00 00 3D [18:04:35]Write i2c OK [18:04:35]MH_I2C_Read... [18:04:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:35]Read from MH i2c: E2 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 0B 00 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 0B 00 BF 03 00 99 21 F9 B1 97 97 8B 3B 90 00 96 [18:04:35]RAPDU: 99 21 F9 B1 97 97 8B 3B 90 00 [18:04:35]wFMCommunicate OK [18:04:35]SAM_PROTO_SignData done [18:04:35]FM_MakeSignedData done [18:04:35]CreateOFDProtocolMessage [18:04:35]wFMCommunicate request_size=4 [18:04:35]MH_SAM_APDU [18:04:35]CAPDU: 80 11 00 00 [18:04:35]Write to MH i2c: E2 08 00 C0 03 80 11 00 00 00 00 00 00 3D [18:04:35]Write i2c OK [18:04:35]MH_I2C_Read... [18:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:35]Read from MH i2c: E2 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 17 00 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 17 00 C0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8B [18:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:04:35]wFMCommunicate OK [18:04:35]CreateOFDProtocolMessage done [18:04:35]OFDSenderStorePacket 115744 [18:04:35]StoreOFDPacket docnum=115744 [18:04:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 C0 D8 04 01 BD 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 09 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 07 00 00 00 00 07 04 06 00 24 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 B3 AD F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 20 C4 01 00 35 04 06 00 1A 94 03 FB 21 94 99 21 F9 B1 97 97 8B 3B [18:04:35]CheckFolder [18:04:35]dirname=/storage/ofd_packets [18:04:35]CheckFolder done [18:04:35]ProducePacketName [18:04:35]name=ofd_packets/00115744 [18:04:35]NVStorageSaveData ofd_packets/00115744 [18:04:35]File name is /storage/ofd_packets/00115744 [18:04:35]Write 298 bytes [18:04:35]NVStorageSaveData done [18:04:35]OFDSenderStorePacket done [18:04:35]KKMCreateOFDPacket done [18:04:35]NVStorageSaveData kkm_last_timestamp [18:04:35]File name is /storage/kkm_last_timestamp [18:04:35]Write 4 bytes [18:04:35]NVStorageSaveData done [18:04:35]ExternCall_PrintAddStr [18:04:35]wPrintStart [18:04:35]Write to MH i2c: 01 00 00 C1 03 C4 [18:04:35]Write i2c OK [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: 01 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: 01 07 00 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: 01 07 00 C1 03 00 00 00 00 00 FF 0F D9 [18:04:35]RasterBufferAndPrint [18:04:35]line Счет N : (1)24617910 [18:04:35]line ИНН: 02508201610067 [18:04:35]line Контрольно-Кассовый Чек [18:04:35]line ПРОДАЖА [18:04:35]line ТРК (МРК, ГНК) : 22 [18:04:35]line Товар: 2710194210 [18:04:35]line ДТ-К-5 [18:04:35]line 2.330 * 76.20 [18:04:35]line = 177.55 [18:04:35]line НДС 12% НСП 1% [18:04:35]line > о реализуемом товаре [18:04:35]line ОКРУГЛЕНИЕ: -0.55 [18:04:35]line ИТОГО: 177.00 [18:04:35]line Внесено: 177.00 [18:04:35]line СДАЧА: 0.00 [18:04:35]line НСП 1% : 1.57 [18:04:35]line НДС 12% : 18.85 [18:04:35]line Наличными: 177.00 [18:04:35]line Безнал.: 0.00 [18:04:35]line Место: АЗС № 90 "Партнер Нефть" [18:04:35]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:04:35]line СНО: Общий режим [18:04:35]line Чек 227 23.09.2024 18:04 [18:04:35]line Смена: 472 ФФД: 1.0 [18:04:35]line ЗНМ: 0300000120 [18:04:35]line РНМ: 0000000000091831 [18:04:35]line Версия ККМ: 001 [18:04:35]line ФМ: 0000000000871830 [18:04:35]line ФД: 115744 [18:04:35]line ФПД: 29223024271764 [18:04:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T180435&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115744&fm=29223024271764&tin=02508201610067®Number=0000000000091831&sum=17700 [18:04:35]written 0, free lines is 4095 [18:04:35]OFD Sender: Processing packet 115744 [packets to send 482, broken 481] [18:04:35]ProducePacketName [18:04:35]name=ofd_packets/00115744 [18:04:35]OFD Sender: To server: pG, [18:04:35]CommunicateWithHost lk.salyk.kg:30040 [18:04:35]ConnectInit lk.salyk.kg [18:04:36]Connected sock=10 [18:04: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 38 33 30 0C 01 00 00 C0 D8 04 01 BD 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 09 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 07 00 00 00 00 07 04 06 00 24 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 B3 AD F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 20 C4 01 00 35 04 06 00 1A 94 03 FB 21 94 99 21 F9 B1 97 97 8B 3B [18:04:36]Write to MH i2c: 01 00 00 EB 03 EE [18:04:36]Write i2c OK [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: 01 [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: 01 07 00 [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: 01 07 00 EB 03 00 00 00 00 00 60 0C 61 [18:04:36]RasterBufferAndPrint [18:04:36]line [18:04:36]line [18:04:36]line [18:04:36]line [18:04:36]line [18:04:36]written 0, free lines is 3173 [18:04:36]MH_Cut [18:04:36]Write to MH i2c: D1 01 00 F2 03 01 C7 [18:04:36]Write i2c OK [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: D1 [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: D1 01 00 [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: D1 01 00 F2 03 00 C6 [18:04:36]Write to MH i2c: 01 00 00 F3 03 F6 [18:04:36]Write i2c OK [18:04:36]MH_I2C_Read... [18:04:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 48 ED 47 00 22 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 38 33 30 10 04 04 00 20 C4 01 00 F4 03 04 00 F4 52 F1 66 B6 04 01 00 00 69 1F FD 4C 75 A7 A2 FD [18:04:36]CommunicateWithHost err = 0 [18:04:36]CheckOFDResponse [18:04:36]1017 (14) - 77093643461234 [18:04:36]1041 (16) - 0000000000871830 [18:04:36]1040 (4) - 115744 [18:04:36]1012 (4) - 23.09.2024 11:37 [18:04:36]1206 (1) - 0 [18:04:36]OFD Sender: Remove packet 115744 [18:04:36]ProducePacketName [18:04:36]name=ofd_packets/00115744 [18:04:36]NVStorageDeleteData [18:04:36]OFD Sender: No OFD packet to send [18:04:37]*** Cut start [18:04:37]*** Partial cut [18:04:37]*** CUTSNS_PIN = 1 [18:04:37]*** CUTSNS_PIN = 0 [18:04:37]*** Brake cut motor [18:04:38]Read from MH i2c: 01 [18:04:38]MH_I2C_Read... [18:04:38]*** Stop cut motor [18:04:38]*** Cut end [18:04:38]Read from MH i2c: 01 07 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: 01 07 00 F3 03 00 00 00 00 00 FF 0F 0B [18:04:38]process_action close_receipt done [18:04:38]requested_data is exist [18:04:38]produce_requested_data [18:04:38]requested_item fm.sn is exist - process it [18:04:38]wFMCommunicate request_size=4 [18:04:38]MH_SAM_APDU [18:04:38]CAPDU: 80 11 00 00 [18:04:38]Write to MH i2c: E2 08 00 F4 03 80 11 00 00 00 00 00 00 71 [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:38]Read from MH i2c: E2 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 17 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 17 00 F4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BF [18:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:04:38]wFMCommunicate OK [18:04:38]requested_item fd.num is exist - process it [18:04:38]SAM_PROTO_GetFieldsCounters [18:04:38]wFMCommunicate request_size=4 [18:04:38]MH_SAM_APDU [18:04:38]CAPDU: 80 13 00 00 [18:04:38]Write to MH i2c: E2 08 00 F5 03 80 13 00 00 00 00 00 00 74 [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:38]Read from MH i2c: E2 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 62 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 62 00 F5 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 20 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [18:04: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 20 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:38]wFMCommunicate OK [18:04:38]SAM_PROTO_GetFieldsCounters done [18:04:38]requested_item shift.num is exist - process it [18:04:38]requested_item shift.opened is exist - process it [18:04:38]req_shift_opened [18:04:38]FM_GetShiftState [18:04:38]SAM_PROTO_GetShiftState [18:04:38]wFMCommunicate request_size=4 [18:04:38]MH_SAM_APDU [18:04:38]CAPDU: 80 13 01 00 [18:04:38]Write to MH i2c: E2 08 00 F6 03 80 13 01 00 00 00 00 00 76 [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:38]Read from MH i2c: E2 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 0E 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 0E 00 F6 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B7 [18:04:38]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:04:38]wFMCommunicate OK [18:04:38]SAM_PROTO_GetShiftState done [18:04:38]FM_GetShiftState done [18:04:38]req_shift_opened done [18:04:38]requested_item shift.open_date is exist - process it [18:04:38]req_shift_open_date [18:04:38]req_shift_open_date done [18:04:38]produce_requested_data done [18:04:38]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115744,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:04:38]process_action_free close_receipt [18:04:38]json_value_free [18:04:38]json_value_free done [18:04:38]process_json_proto returns [18:04:38]Send response to host [18:04:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115744,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:04:38]free response buf [18:04:38]execute_script done [18:04:38]execute_script returns [18:04:38]free content buf [18:04:38]Sock 8.Close socket [18:04:38]Sock 8.Thread stoped [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:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:28]accept exits with 9 [18:12:28]New connection [18:12:28]New thread 3066867044 created [18:12:28]Thread 3067010404 joined [18:12:28]Waiting for new connection... [18:12:28] Sock 9.Parse request [18:12:28]Sock 9.Check first char [18:12:28]Sock 9.First char is OK [18:12:28]request: POST /json_proto HTTP/1.0 [18:12:28]Method: POST [18:12:28]URL: /json_proto [18:12:28]Method is POST - this is cgi request [18:12:28]url: /json_proto [18:12:28]query_string will be loaded in cgi processing [18:12:28]execute_cgi json_proto POST (null) [18:12:28]execute_cgi path=json_proto method=POST [18:12:28]POST find Content-Length [18:12:28]Host: 172.17.41.136:8080 [18:12:28]Content-Length: 931 [18:12:28]Content-Type: application/json [18:12:28] [18:12:28]POST finish read [18:12:28]Found Content-Length = 931 [18:12:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344067", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:28]execute_script... [18:12:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344067", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:28]POST & json_proto [18:12:28]process_json_proto [18:12:28]json parsed OK: [18:12:28]protocol is kg_v1.0 [18:12:28]action value=close_receipt [18:12:28]process_action close_receipt [18:12:28]cmd_close_receipt [18:12:28]MH_GetDate [18:12:28]Write to MH i2c: F0 00 00 F7 03 E9 [18:12:28]Write i2c OK [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: F0 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: F0 09 00 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: F0 09 00 F7 03 00 8D AF F1 66 1B D0 5A 64 2E [18:12:28]GetLastDocTimeStamp 1727114675 [18:12:28]current date 1727115149 [18:12:28]FM_GetShiftState [18:12:28]SAM_PROTO_GetShiftState [18:12:28]wFMCommunicate request_size=4 [18:12:28]MH_SAM_APDU [18:12:28]CAPDU: 80 13 01 00 [18:12:28]Write to MH i2c: E2 08 00 F8 03 80 13 01 00 00 00 00 00 78 [18:12:28]Write i2c OK [18:12:28]MH_I2C_Read... [18:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:28]Read from MH i2c: E2 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: E2 0E 00 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: E2 0E 00 F8 03 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B9 [18:12:28]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:12:28]wFMCommunicate OK [18:12:28]SAM_PROTO_GetShiftState done [18:12:28]FM_GetShiftState done [18:12:28]opened in 1727052070 [18:12:28]opened+sec_in_day 1727138470 [18:12:28]quantity*price = 3500 [18:12:28]sum+1 = 3501 [18:12:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 228 23.09.2024 18:12 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115745 ФПД: 136179155504971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T181229&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115745&fm=136179155504971&tin=02508201610067®Number=0000000000091831&sum=10000 0 [18:12:29]StoreToDocumentArchive [18:12:29]shift 472 fd 115745 [18:12:29]save to /storage/0472/doc_00115745 [18:12:29]save last doc name /storage/0472/doc_00115745 to /storage/kkm_last_doc_name [18:12:29]save OK [18:12:29]Clear old archive folders... [18:12:29]ProcessDocumentItem done err = 0, tmpTLVsize=389 [18:12:29]tlvbuf is 01162130 [18:12:29]SAM_PROTO_ClearQueue [18:12:29]wFMCommunicate request_size=4 [18:12:29]MH_SAM_APDU [18:12:29]CAPDU: 80 09 00 00 [18:12:29]Write to MH i2c: E2 08 00 05 04 80 09 00 00 00 00 00 00 7B [18:12:29]Write i2c OK [18:12:29]MH_I2C_Read... [18:12:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:30]Read from MH i2c: E2 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 03 00 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 03 00 05 04 00 90 00 7D [18:12:30]RAPDU: 90 00 [18:12:30]wFMCommunicate OK [18:12:30]SAM_PROTO_ClearQueue done [18:12:30]KKMCreateOFDPacket [18:12:30]OFDProtocolAddRootSTLVToBuf [18:12:30]FM_MakeSignedData [18:12:30]FM_MakeSignedData [18:12:30]SAM_PROTO_SignData [18:12:30]wFMCommunicate request_size=4 [18:12:30]MH_SAM_APDU [18:12:30]CAPDU: 80 0D 01 02 [18:12:30]Write to MH i2c: E2 08 00 06 04 80 0D 01 02 00 00 00 00 83 [18:12:30]Write i2c OK [18:12:30]MH_I2C_Read... [18:12:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:30]Read from MH i2c: E2 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 03 00 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 03 00 06 04 00 90 00 7E [18:12:30]RAPDU: 90 00 [18:12:30]wFMCommunicate OK [18:12:30]wFMCommunicate request_size=255 [18:12:30]MH_SAM_APDU [18:12:30]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [18:12:30]Write to MH i2c: E2 02 01 07 04 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 2B [18:12:30]Write i2c OK [18:12:30]MH_I2C_Read... [18:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:30]Read from MH i2c: E2 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 03 00 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 03 00 07 04 00 90 00 7F [18:12:30]RAPDU: 90 00 [18:12:30]wFMCommunicate OK [18:12:30]wFMCommunicate request_size=148 [18:12:30]MH_SAM_APDU [18:12:30]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 8D AF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 21 C4 01 00 35 04 06 00 7B DA AE 30 8F 4B [18:12:30]Write to MH i2c: E2 97 00 08 04 80 0D 02 02 8F 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 8D AF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 21 C4 01 00 35 04 06 00 7B DA AE 30 8F 4B 00 00 C6 [18:12:30]Write i2c OK [18:12:30]MH_I2C_Read... [18:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:30]Read from MH i2c: E2 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 03 00 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 03 00 08 04 00 90 00 80 [18:12:30]RAPDU: 90 00 [18:12:30]wFMCommunicate OK [18:12:30]wFMCommunicate request_size=4 [18:12:30]MH_SAM_APDU [18:12:30]CAPDU: 80 0D 03 02 [18:12:30]Write to MH i2c: E2 08 00 09 04 80 0D 03 02 00 00 00 00 88 [18:12:30]Write i2c OK [18:12:30]MH_I2C_Read... [18:12:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:30]Read from MH i2c: E2 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 0B 00 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 0B 00 09 04 00 A6 5E D6 4B 01 EC 87 C3 90 00 E5 [18:12:30]RAPDU: A6 5E D6 4B 01 EC 87 C3 90 00 [18:12:30]wFMCommunicate OK [18:12:30]SAM_PROTO_SignData done [18:12:30]FM_MakeSignedData done [18:12:30]CreateOFDProtocolMessage [18:12:30]wFMCommunicate request_size=4 [18:12:30]MH_SAM_APDU [18:12:30]CAPDU: 80 11 00 00 [18:12:30]Write to MH i2c: E2 08 00 0A 04 80 11 00 00 00 00 00 00 88 [18:12:30]Write i2c OK [18:12:30]MH_I2C_Read... [18:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:30]Read from MH i2c: E2 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 17 00 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 17 00 0A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D6 [18:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:12:30]wFMCommunicate OK [18:12:30]CreateOFDProtocolMessage done [18:12:30]OFDSenderStorePacket 115745 [18:12:30]StoreOFDPacket docnum=115745 [18:12:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 99 01 00 00 F1 F4 91 01 6D D7 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 8D AF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 21 C4 01 00 35 04 06 00 7B DA AE 30 8F 4B A6 5E D6 4B 01 EC 87 C3 [18:12:30]CheckFolder [18:12:30]dirname=/storage/ofd_packets [18:12:30]CheckFolder done [18:12:30]ProducePacketName [18:12:30]name=ofd_packets/00115745 [18:12:30]NVStorageSaveData ofd_packets/00115745 [18:12:30]File name is /storage/ofd_packets/00115745 [18:12:30]Write 439 bytes [18:12:30]NVStorageSaveData done [18:12:30]OFDSenderStorePacket done [18:12:30]KKMCreateOFDPacket done [18:12:30]NVStorageSaveData kkm_last_timestamp [18:12:30]File name is /storage/kkm_last_timestamp [18:12:30]Write 4 bytes [18:12:30]NVStorageSaveData done [18:12:30]ExternCall_PrintAddStr [18:12:30]wPrintStart [18:12:30]Write to MH i2c: 01 00 00 0B 04 0F [18:12:30]Write i2c OK [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: 01 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: 01 07 00 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: 01 07 00 0B 04 00 00 00 00 00 FF 0F 24 [18:12:30]RasterBufferAndPrint [18:12:30]line Счет N : (3)344067 [18:12:30]line ИНН: 02508201610067 [18:12:30]line Контрольно-Кассовый Чек [18:12:30]line ПРОДАЖА [18:12:30]line Товар: 4700000310326 [18:12:30]line Вода Адыгене 1л б/г [18:12:30]line 1.000 * 35.00 [18:12:30]line = 35.00 [18:12:30]line НДС 12% НСП 1% [18:12:30]line > о реализуемом товаре [18:12:30]line Товар: 4700040114137 [18:12:30]line Султан чай 1л. зел лимон [18:12:30]line 1.000 * 65.00 [18:12:30]line = 65.00 [18:12:30]line НДС 12% НСП 1% [18:12:30]line > о реализуемом товаре [18:12:30]line ИТОГО: 100.00 [18:12:30]line НСП 1% : 0.88 [18:12:30]line НДС 12% : 10.62 [18:12:30]line Наличными: 100.00 [18:12:30]line Безнал.: 0.00 [18:12:30]line Место: АЗС № 90 "Партнер Нефть" [18:12:30]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:12:30]line СНО: Общий режим [18:12:30]line Чек 228 23.09.2024 18:12 [18:12:30]line Смена: 472 ФФД: 1.0 [18:12:30]line ЗНМ: 0300000120 [18:12:30]line РНМ: 0000000000091831 [18:12:30]line Версия ККМ: 001 [18:12:30]line ФМ: 0000000000871830 [18:12:30]line ФД: 115745 [18:12:30]line ФПД: 136179155504971 [18:12:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T181229&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115745&fm=136179155504971&tin=02508201610067®Number=0000000000091831&sum=10000 [18:12:30]line 0 [18:12:30]OFD Sender: Processing packet 115745 [packets to send 482, broken 481] [18:12:30]ProducePacketName [18:12:30]name=ofd_packets/00115745 [18:12:30]OFD Sender: To server: pG, [18:12:30]CommunicateWithHost lk.salyk.kg:30040 [18:12:30]ConnectInit lk.salyk.kg [18:12:30]written 0, free lines is 4095 [18:12:31]Connected sock=10 [18:12: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 38 33 30 99 01 00 00 F1 F4 91 01 6D D7 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 8D AF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 21 C4 01 00 35 04 06 00 7B DA AE 30 8F 4B A6 5E D6 4B 01 EC 87 C3 [18:12:31]Write to MH i2c: 01 00 00 38 04 3C [18:12:31]Write i2c OK [18:12:31]MH_I2C_Read... [18:12:31]Read from MH i2c: 01 [18:12:31]MH_I2C_Read... [18:12:31]Read from MH i2c: 01 07 00 [18:12:31]MH_I2C_Read... [18:12:31]Read from MH i2c: 01 07 00 38 04 00 00 00 00 00 14 0C 63 [18:12:31]RasterBufferAndPrint [18:12:31]line [18:12:31]line [18:12:31]line [18:12:31]line [18:12:31]line [18:12:31]written 0, free lines is 3095 [18:12:31]MH_Cut [18:12:31]Write to MH i2c: D1 01 00 3F 04 01 15 [18:12:31]Write i2c OK [18:12:31]MH_I2C_Read... [18:12:31]Read from MH i2c: D1 [18:12:31]MH_I2C_Read... [18:12:31]Read from MH i2c: D1 01 00 [18:12:31]MH_I2C_Read... [18:12:31]Read from MH i2c: D1 01 00 3F 04 00 14 [18:12:31]Write to MH i2c: 01 00 00 40 04 44 [18:12:31]Write i2c OK [18:12:31]MH_I2C_Read... [18:12:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6B EA 47 00 B7 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 38 33 30 10 04 04 00 21 C4 01 00 F4 03 04 00 D0 54 F1 66 B6 04 01 00 00 13 60 F2 06 48 AB 0F DE [18:12:31]CommunicateWithHost err = 0 [18:12:31]CheckOFDResponse [18:12:31]1017 (14) - 77093643461234 [18:12:31]1041 (16) - 0000000000871830 [18:12:31]1040 (4) - 115745 [18:12:31]1012 (4) - 23.09.2024 11:45 [18:12:31]1206 (1) - 0 [18:12:31]OFD Sender: Remove packet 115745 [18:12:31]ProducePacketName [18:12:31]name=ofd_packets/00115745 [18:12:31]NVStorageDeleteData [18:12:32]OFD Sender: No OFD packet to send [18:12:32]*** Cut start [18:12:32]*** Partial cut [18:12:32]*** CUTSNS_PIN = 1 [18:12:32]*** CUTSNS_PIN = 0 [18:12:33]*** Brake cut motor [18:12:33]Read from MH i2c: 01 [18:12:33]MH_I2C_Read... [18:12:33]*** Stop cut motor [18:12:33]*** Cut end [18:12:33]Read from MH i2c: 01 07 00 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: 01 07 00 40 04 00 00 00 00 00 FF 0F 59 [18:12:33]process_action close_receipt done [18:12:33]requested_data is exist [18:12:33]produce_requested_data [18:12:33]requested_item fm.sn is exist - process it [18:12:33]wFMCommunicate request_size=4 [18:12:33]MH_SAM_APDU [18:12:33]CAPDU: 80 11 00 00 [18:12:33]Write to MH i2c: E2 08 00 41 04 80 11 00 00 00 00 00 00 BF [18:12:33]Write i2c OK [18:12:33]MH_I2C_Read... [18:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:33]Read from MH i2c: E2 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 17 00 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 17 00 41 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0D [18:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:12:33]wFMCommunicate OK [18:12:33]requested_item fd.num is exist - process it [18:12:33]SAM_PROTO_GetFieldsCounters [18:12:33]wFMCommunicate request_size=4 [18:12:33]MH_SAM_APDU [18:12:33]CAPDU: 80 13 00 00 [18:12:33]Write to MH i2c: E2 08 00 42 04 80 13 00 00 00 00 00 00 C2 [18:12:33]Write i2c OK [18:12:33]MH_I2C_Read... [18:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:33]Read from MH i2c: E2 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 62 00 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 62 00 42 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 21 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [18:12: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 21 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:33]wFMCommunicate OK [18:12:33]SAM_PROTO_GetFieldsCounters done [18:12:33]requested_item shift.num is exist - process it [18:12:33]requested_item shift.opened is exist - process it [18:12:33]req_shift_opened [18:12:33]FM_GetShiftState [18:12:33]SAM_PROTO_GetShiftState [18:12:33]wFMCommunicate request_size=4 [18:12:33]MH_SAM_APDU [18:12:33]CAPDU: 80 13 01 00 [18:12:33]Write to MH i2c: E2 08 00 43 04 80 13 01 00 00 00 00 00 C4 [18:12:33]Write i2c OK [18:12:33]MH_I2C_Read... [18:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:33]Read from MH i2c: E2 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 0E 00 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 0E 00 43 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 05 [18:12:33]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:12:33]wFMCommunicate OK [18:12:33]SAM_PROTO_GetShiftState done [18:12:33]FM_GetShiftState done [18:12:33]req_shift_opened done [18:12:33]requested_item shift.open_date is exist - process it [18:12:33]req_shift_open_date [18:12:33]req_shift_open_date done [18:12:33]produce_requested_data done [18:12:33]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115745,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:12:33]process_action_free close_receipt [18:12:33]json_value_free [18:12:33]json_value_free done [18:12:33]process_json_proto returns [18:12:33]Send response to host [18:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115745,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:12:33]free response buf [18:12:33]execute_script done [18:12:33]execute_script returns [18:12:33]free content buf [18:12:33]Sock 9.Close socket [18:12:33]Sock 9.Thread stoped [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:12:59]accept exits with 8 [18:12:59]New connection [18:12:59]New thread 3067010404 created [18:12:59]Thread 3066867044 joined [18:12:59]Waiting for new connection... [18:12:59] Sock 8.Parse request [18:12:59]Sock 8.Check first char [18:12:59]Sock 8.First char is OK [18:12:59]request: POST /json_proto HTTP/1.0 [18:12:59]Method: POST [18:12:59]URL: /json_proto [18:12:59]Method is POST - this is cgi request [18:12:59]url: /json_proto [18:12:59]query_string will be loaded in cgi processing [18:12:59]execute_cgi json_proto POST (null) [18:12:59]execute_cgi path=json_proto method=POST [18:12:59]POST find Content-Length [18:12:59]Host: 172.17.41.136:8080 [18:12:59]Content-Length: 986 [18:12:59]Content-Type: application/json [18:12:59] [18:12:59]POST finish read [18:12:59]Found Content-Length = 986 [18:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344068", "tax_sys" : 0, "items" : [ { "code": "5000159343961", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A", "price" : 113.00, "quantity" : 3.000, "sum" : 339.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159484657", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Twix", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 452.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:59]execute_script... [18:12:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344068", "tax_sys" : 0, "items" : [ { "code": "5000159343961", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A", "price" : 113.00, "quantity" : 3.000, "sum" : 339.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159484657", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Twix", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 452.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:59]POST & json_proto [18:12:59]process_json_proto [18:12:59]json parsed OK: [18:12:59]protocol is kg_v1.0 [18:12:59]action value=close_receipt [18:12:59]process_action close_receipt [18:12:59]cmd_close_receipt [18:12:59]MH_GetDate [18:12:59]Write to MH i2c: F0 00 00 44 04 37 [18:12:59]Write i2c OK [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: F0 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: F0 09 00 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: F0 09 00 44 04 00 AC AF F1 66 1B D0 5A 64 9B [18:12:59]GetLastDocTimeStamp 1727115149 [18:12:59]current date 1727115180 [18:12:59]FM_GetShiftState [18:12:59]SAM_PROTO_GetShiftState [18:12:59]wFMCommunicate request_size=4 [18:12:59]MH_SAM_APDU [18:12:59]CAPDU: 80 13 01 00 [18:12:59]Write to MH i2c: E2 08 00 45 04 80 13 01 00 00 00 00 00 C6 [18:12:59]Write i2c OK [18:12:59]MH_I2C_Read... [18:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:59]Read from MH i2c: E2 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: E2 0E 00 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: E2 0E 00 45 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 07 [18:12:59]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:12:59]wFMCommunicate OK [18:12:59]SAM_PROTO_GetShiftState done [18:12:59]FM_GetShiftState done [18:12:59]opened in 1727052070 [18:12:59]opened+sec_in_day 1727138470 [18:12:59]quantity*price = 33900 [18:12:59]sum+1 = 33901 [18:12:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5000159484657 Мороженое батончик Twix 1.000 * 113.00 = 113.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 452.00 НСП 1% : 4.00 НДС 12% : 48.00 Наличными: 452.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 229 23.09.2024 18:13 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115746 ФПД: 180454299850734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T181300&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115746&fm=180454299850734&tin=02508201610067®Number=0000000000091831&sum=45200 0 [18:13:01]StoreToDocumentArchive [18:13:01]shift 472 fd 115746 [18:13:01]save to /storage/0472/doc_00115746 [18:13:01]save last doc name /storage/0472/doc_00115746 to /storage/kkm_last_doc_name [18:13:01]save OK [18:13:01]Clear old archive folders... [18:13:01]ProcessDocumentItem done err = 0, tmpTLVsize=404 [18:13:01]tlvbuf is 0117D800 [18:13:01]SAM_PROTO_ClearQueue [18:13:01]wFMCommunicate request_size=4 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 09 00 00 [18:13:01]Write to MH i2c: E2 08 00 52 04 80 09 00 00 00 00 00 00 C8 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 52 04 00 90 00 CA [18:13:01]RAPDU: 90 00 [18:13:01]wFMCommunicate OK [18:13:01]SAM_PROTO_ClearQueue done [18:13:01]KKMCreateOFDPacket [18:13:01]OFDProtocolAddRootSTLVToBuf [18:13:01]FM_MakeSignedData [18:13:01]FM_MakeSignedData [18:13:01]SAM_PROTO_SignData [18:13:01]wFMCommunicate request_size=4 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 0D 01 02 [18:13:01]Write to MH i2c: E2 08 00 53 04 80 0D 01 02 00 00 00 00 D0 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 53 04 00 90 00 CB [18:13:01]RAPDU: 90 00 [18:13:01]wFMCommunicate OK [18:13:01]wFMCommunicate request_size=255 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 30 30 30 31 35 39 33 34 33 39 36 31 06 04 32 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 30 30 30 31 35 39 34 38 34 36 35 37 06 04 28 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 54 77 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 B0 00 [18:13:01]Write to MH i2c: E2 02 01 54 04 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 30 30 30 31 35 39 33 34 33 39 36 31 06 04 32 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 30 30 30 31 35 39 34 38 34 36 35 37 06 04 28 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 54 77 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 B0 00 00 00 CA [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 54 04 00 90 00 CC [18:13:01]RAPDU: 90 00 [18:13:01]wFMCommunicate OK [18:13:01]wFMCommunicate request_size=163 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 12 00 00 00 00 07 04 06 00 90 B0 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 AC AF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 22 C4 01 00 35 04 06 00 A4 1F 4A 70 D7 EE [18:13:01]Write to MH i2c: E2 A6 00 55 04 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 12 00 00 00 00 07 04 06 00 90 B0 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 AC AF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 22 C4 01 00 35 04 06 00 A4 1F 4A 70 D7 EE 00 00 80 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 55 04 00 90 00 CD [18:13:01]RAPDU: 90 00 [18:13:01]wFMCommunicate OK [18:13:01]wFMCommunicate request_size=4 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 0D 03 02 [18:13:01]Write to MH i2c: E2 08 00 56 04 80 0D 03 02 00 00 00 00 D5 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 0B 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 0B 00 56 04 00 8C 5A AE 87 36 95 4F 03 90 00 0E [18:13:01]RAPDU: 8C 5A AE 87 36 95 4F 03 90 00 [18:13:01]wFMCommunicate OK [18:13:01]SAM_PROTO_SignData done [18:13:01]FM_MakeSignedData done [18:13:01]CreateOFDProtocolMessage [18:13:01]wFMCommunicate request_size=4 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 11 00 00 [18:13:01]Write to MH i2c: E2 08 00 57 04 80 11 00 00 00 00 00 00 D5 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 17 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 17 00 57 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 23 [18:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:13:01]wFMCommunicate OK [18:13:01]CreateOFDProtocolMessage done [18:13:01]OFDSenderStorePacket 115746 [18:13:01]StoreOFDPacket docnum=115746 [18:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A8 01 00 00 E5 95 A0 01 E7 05 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 30 30 30 31 35 39 33 34 33 39 36 31 06 04 32 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 30 30 30 31 35 39 34 38 34 36 35 37 06 04 28 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 54 77 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 B0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 12 00 00 00 00 07 04 06 00 90 B0 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 AC AF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 22 C4 01 00 35 04 06 00 A4 1F 4A 70 D7 EE 8C 5A AE 87 36 95 4F 03 [18:13:01]CheckFolder [18:13:01]dirname=/storage/ofd_packets [18:13:01]CheckFolder done [18:13:01]ProducePacketName [18:13:01]name=ofd_packets/00115746 [18:13:01]NVStorageSaveData ofd_packets/00115746 [18:13:01]File name is /storage/ofd_packets/00115746 [18:13:01]Write 454 bytes [18:13:01]NVStorageSaveData done [18:13:01]OFDSenderStorePacket done [18:13:01]KKMCreateOFDPacket done [18:13:01]NVStorageSaveData kkm_last_timestamp [18:13:01]File name is /storage/kkm_last_timestamp [18:13:01]Write 4 bytes [18:13:01]NVStorageSaveData done [18:13:01]ExternCall_PrintAddStr [18:13:01]wPrintStart [18:13:01]Write to MH i2c: 01 00 00 58 04 5C [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: 01 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: 01 07 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: 01 07 00 58 04 00 00 00 00 00 FF 0F 71 [18:13:01]RasterBufferAndPrint [18:13:01]line Счет N : (3)344068 [18:13:01]line ИНН: 02508201610067 [18:13:01]line Контрольно-Кассовый Чек [18:13:01]line ПРОДАЖА [18:13:01]line Товар: 5000159343961 [18:13:01]line Мороженое Сникерс батончик [18:13:01]line 3.000 * 113.00 [18:13:01]line = 339.00 [18:13:01]line НДС 12% НСП 1% [18:13:01]line > о реализуемом товаре [18:13:01]line Товар: 5000159484657 [18:13:01]line Мороженое батончик Twix [18:13:01]line 1.000 * 113.00 [18:13:01]line = 113.00 [18:13:01]line НДС 12% НСП 1% [18:13:02]line > о реализуемом товаре [18:13:02]line ИТОГО: 452.00 [18:13:02]line НСП 1% : 4.00 [18:13:02]line НДС 12% : 48.00 [18:13:02]line Наличными: 452.00 [18:13:02]line Безнал.: 0.00 [18:13:02]line Место: АЗС № 90 "Партнер Нефть" [18:13:02]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:13:02]line СНО: Общий режим [18:13:02]line Чек 229 23.09.2024 18:13 [18:13:02]line Смена: 472 ФФД: 1.0 [18:13:02]line ЗНМ: 0300000120 [18:13:02]line РНМ: 0000000000091831 [18:13:02]line Версия ККМ: 001 [18:13:02]line ФМ: 0000000000871830 [18:13:02]line ФД: 115746 [18:13:02]line ФПД: 180454299850734 [18:13:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T181300&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115746&fm=180454299850734&tin=02508201610067®Number=0000000000091831&sum=45200 [18:13:02]line 0 [18:13:02]OFD Sender: Processing packet 115746 [packets to send 482, broken 481] [18:13:02]ProducePacketName [18:13:02]name=ofd_packets/00115746 [18:13:02]OFD Sender: To server: pG, [18:13:02]CommunicateWithHost lk.salyk.kg:30040 [18:13:02]ConnectInit lk.salyk.kg [18:13:02]written 0, free lines is 4095 [18:13:02]Connected sock=10 [18:13: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 38 33 30 A8 01 00 00 E5 95 A0 01 E7 05 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 30 30 30 31 35 39 33 34 33 39 36 31 06 04 32 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 30 30 30 31 35 39 34 38 34 36 35 37 06 04 28 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 54 77 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 B0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 12 00 00 00 00 07 04 06 00 90 B0 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 AC AF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 22 C4 01 00 35 04 06 00 A4 1F 4A 70 D7 EE 8C 5A AE 87 36 95 4F 03 [18:13:02]Write to MH i2c: 01 00 00 85 04 89 [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: 01 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: 01 07 00 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: 01 07 00 85 04 00 00 00 00 00 10 0C AC [18:13:02]RasterBufferAndPrint [18:13:02]line [18:13:02]line [18:13:02]line [18:13:02]line [18:13:02]line [18:13:02]written 0, free lines is 3091 [18:13:02]MH_Cut [18:13:02]Write to MH i2c: D1 01 00 8C 04 01 62 [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: D1 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: D1 01 00 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: D1 01 00 8C 04 00 61 [18:13:02]Write to MH i2c: 01 00 00 8D 04 91 [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 CD A2 47 00 98 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 38 33 30 10 04 04 00 22 C4 01 00 F4 03 04 00 EF 54 F1 66 B6 04 01 00 00 35 3E 07 3E 7A 72 85 E6 [18:13:02]CommunicateWithHost err = 0 [18:13:02]CheckOFDResponse [18:13:02]1017 (14) - 77093643461234 [18:13:02]1041 (16) - 0000000000871830 [18:13:02]1040 (4) - 115746 [18:13:02]1012 (4) - 23.09.2024 11:45 [18:13:02]1206 (1) - 0 [18:13:02]OFD Sender: Remove packet 115746 [18:13:02]ProducePacketName [18:13:02]name=ofd_packets/00115746 [18:13:02]NVStorageDeleteData [18:13:03]OFD Sender: No OFD packet to send [18:13:04]*** Cut start [18:13:04]*** Partial cut [18:13:04]*** CUTSNS_PIN = 1 [18:13:04]*** CUTSNS_PIN = 0 [18:13:04]*** Brake cut motor [18:13:04]Read from MH i2c: 01 [18:13:04]MH_I2C_Read... [18:13:04]*** Stop cut motor [18:13:04]*** Cut end [18:13:04]Read from MH i2c: 01 07 00 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: 01 07 00 8D 04 00 00 00 00 00 FF 0F A6 [18:13:04]process_action close_receipt done [18:13:04]requested_data is exist [18:13:04]produce_requested_data [18:13:04]requested_item fm.sn is exist - process it [18:13:04]wFMCommunicate request_size=4 [18:13:04]MH_SAM_APDU [18:13:04]CAPDU: 80 11 00 00 [18:13:04]Write to MH i2c: E2 08 00 8E 04 80 11 00 00 00 00 00 00 0C [18:13:04]Write i2c OK [18:13:04]MH_I2C_Read... [18:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:04]Read from MH i2c: E2 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: E2 17 00 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: E2 17 00 8E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5A [18:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:13:04]wFMCommunicate OK [18:13:04]requested_item fd.num is exist - process it [18:13:04]SAM_PROTO_GetFieldsCounters [18:13:04]wFMCommunicate request_size=4 [18:13:04]MH_SAM_APDU [18:13:04]CAPDU: 80 13 00 00 [18:13:04]Write to MH i2c: E2 08 00 8F 04 80 13 00 00 00 00 00 00 0F [18:13:04]Write i2c OK [18:13:04]MH_I2C_Read... [18:13:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:04]Read from MH i2c: E2 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: E2 62 00 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: E2 62 00 8F 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 22 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [18:13: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 22 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:04]wFMCommunicate OK [18:13:04]SAM_PROTO_GetFieldsCounters done [18:13:04]requested_item shift.num is exist - process it [18:13:04]requested_item shift.opened is exist - process it [18:13:04]req_shift_opened [18:13:04]FM_GetShiftState [18:13:04]SAM_PROTO_GetShiftState [18:13:04]wFMCommunicate request_size=4 [18:13:04]MH_SAM_APDU [18:13:04]CAPDU: 80 13 01 00 [18:13:04]Write to MH i2c: E2 08 00 90 04 80 13 01 00 00 00 00 00 11 [18:13:04]Write i2c OK [18:13:04]MH_I2C_Read... [18:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:04]Read from MH i2c: E2 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: E2 0E 00 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: E2 0E 00 90 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 52 [18:13:04]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:13:04]wFMCommunicate OK [18:13:04]SAM_PROTO_GetShiftState done [18:13:04]FM_GetShiftState done [18:13:04]req_shift_opened done [18:13:04]requested_item shift.open_date is exist - process it [18:13:04]req_shift_open_date [18:13:04]req_shift_open_date done [18:13:04]produce_requested_data done [18:13:04]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115746,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:13:04]process_action_free close_receipt [18:13:04]json_value_free [18:13:04]json_value_free done [18:13:04]process_json_proto returns [18:13:04]Send response to host [18:13:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115746,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:13:04]free response buf [18:13:04]execute_script done [18:13:04]execute_script returns [18:13:04]free content buf [18:13:04]Sock 8.Close socket [18:13:04]Sock 8.Thread stoped [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:55]accept exits with 9 [18:14:55]New connection [18:14:55]New thread 3066867044 created [18:14:55]Thread 3067010404 joined [18:14:55]Waiting for new connection... [18:14:55] Sock 9.Parse request [18:14:55]Sock 9.Check first char [18:14:55]Sock 9.First char is OK [18:14:55]request: POST /json_proto HTTP/1.0 [18:14:55]Method: POST [18:14:55]URL: /json_proto [18:14:55]Method is POST - this is cgi request [18:14:55]url: /json_proto [18:14:55]query_string will be loaded in cgi processing [18:14:55]execute_cgi json_proto POST (null) [18:14:55]execute_cgi path=json_proto method=POST [18:14:55]POST find Content-Length [18:14:55]Host: 172.17.41.136:8080 [18:14:55]Content-Length: 621 [18:14:55]Content-Type: application/json [18:14:55] [18:14:55]POST finish read [18:14:55]Found Content-Length = 621 [18:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344069", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:55]execute_script... [18:14:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344069", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:55]POST & json_proto [18:14:55]process_json_proto [18:14:55]json parsed OK: [18:14:55]protocol is kg_v1.0 [18:14:55]action value=close_receipt [18:14:55]process_action close_receipt [18:14:55]cmd_close_receipt [18:14:55]MH_GetDate [18:14:55]Write to MH i2c: F0 00 00 91 04 84 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: F0 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: F0 09 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: F0 09 00 91 04 00 20 B0 F1 66 1B D0 5A 64 5D [18:14:55]GetLastDocTimeStamp 1727115180 [18:14:55]current date 1727115296 [18:14:55]FM_GetShiftState [18:14:55]SAM_PROTO_GetShiftState [18:14:55]wFMCommunicate request_size=4 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 13 01 00 [18:14:55]Write to MH i2c: E2 08 00 92 04 80 13 01 00 00 00 00 00 13 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 0E 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 0E 00 92 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 54 [18:14:55]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:14:55]wFMCommunicate OK [18:14:55]SAM_PROTO_GetShiftState done [18:14:55]FM_GetShiftState done [18:14:55]opened in 1727052070 [18:14:55]opened+sec_in_day 1727138470 [18:14:55]quantity*price = 14400 [18:14:55]sum+1 = 14401 [18:14:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 230 23.09.2024 18:14 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115747 ФПД: 131632760673269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T181456&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115747&fm=131632760673269&tin=02508201610067®Number=0000000000091831&sum=14400 0 [18:14:56]StoreToDocumentArchive [18:14:56]shift 472 fd 115747 [18:14:56]save to /storage/0472/doc_00115747 [18:14:56]save last doc name /storage/0472/doc_00115747 to /storage/kkm_last_doc_name [18:14:56]save OK [18:14:56]Clear old archive folders... [18:14:56]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:14:56]tlvbuf is 0117A020 [18:14:56]SAM_PROTO_ClearQueue [18:14:56]wFMCommunicate request_size=4 [18:14:56]MH_SAM_APDU [18:14:56]CAPDU: 80 09 00 00 [18:14:56]Write to MH i2c: E2 08 00 9F 04 80 09 00 00 00 00 00 00 15 [18:14:56]Write i2c OK [18:14:56]MH_I2C_Read... [18:14:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:56]Read from MH i2c: E2 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: E2 03 00 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: E2 03 00 9F 04 00 90 00 17 [18:14:56]RAPDU: 90 00 [18:14:56]wFMCommunicate OK [18:14:56]SAM_PROTO_ClearQueue done [18:14:56]KKMCreateOFDPacket [18:14:56]OFDProtocolAddRootSTLVToBuf [18:14:56]FM_MakeSignedData [18:14:56]FM_MakeSignedData [18:14:56]SAM_PROTO_SignData [18:14:56]wFMCommunicate request_size=4 [18:14:56]MH_SAM_APDU [18:14:56]CAPDU: 80 0D 01 02 [18:14:56]Write to MH i2c: E2 08 00 A0 04 80 0D 01 02 00 00 00 00 1D [18:14:56]Write i2c OK [18:14:56]MH_I2C_Read... [18:14:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:56]Read from MH i2c: E2 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: E2 03 00 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: E2 03 00 A0 04 00 90 00 18 [18:14:56]RAPDU: 90 00 [18:14:56]wFMCommunicate OK [18:14:56]wFMCommunicate request_size=255 [18:14:56]MH_SAM_APDU [18:14:56]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 20 B0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 [18:14:56]Write to MH i2c: E2 02 01 A1 04 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 20 B0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 6A [18:14:56]Write i2c OK [18:14:56]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 A1 04 00 90 00 19 [18:14:57]RAPDU: 90 00 [18:14:57]wFMCommunicate OK [18:14:57]wFMCommunicate request_size=32 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 33 30 10 04 04 00 23 C4 01 00 35 04 06 00 77 B8 23 F0 D3 F5 [18:14:57]Write to MH i2c: E2 23 00 A2 04 80 0D 02 02 1B 00 30 30 30 38 37 31 38 33 30 10 04 04 00 23 C4 01 00 35 04 06 00 77 B8 23 F0 D3 F5 00 00 6A [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 A2 04 00 90 00 1A [18:14:57]RAPDU: 90 00 [18:14:57]wFMCommunicate OK [18:14:57]wFMCommunicate request_size=4 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 0D 03 02 [18:14:57]Write to MH i2c: E2 08 00 A3 04 80 0D 03 02 00 00 00 00 22 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 0B 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 0B 00 A3 04 00 01 F8 B8 EA 7F 01 95 72 90 00 45 [18:14:57]RAPDU: 01 F8 B8 EA 7F 01 95 72 90 00 [18:14:57]wFMCommunicate OK [18:14:57]SAM_PROTO_SignData done [18:14:57]FM_MakeSignedData done [18:14:57]CreateOFDProtocolMessage [18:14:57]wFMCommunicate request_size=4 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 11 00 00 [18:14:57]Write to MH i2c: E2 08 00 A4 04 80 11 00 00 00 00 00 00 22 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 17 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 17 00 A4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 70 [18:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:14:57]wFMCommunicate OK [18:14:57]CreateOFDProtocolMessage done [18:14:57]OFDSenderStorePacket 115747 [18:14:57]StoreOFDPacket docnum=115747 [18:14:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 FA 43 1D 01 B1 D0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 20 B0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 23 C4 01 00 35 04 06 00 77 B8 23 F0 D3 F5 01 F8 B8 EA 7F 01 95 72 [18:14:57]CheckFolder [18:14:57]dirname=/storage/ofd_packets [18:14:57]CheckFolder done [18:14:57]ProducePacketName [18:14:57]name=ofd_packets/00115747 [18:14:57]NVStorageSaveData ofd_packets/00115747 [18:14:57]File name is /storage/ofd_packets/00115747 [18:14:57]Write 323 bytes [18:14:57]NVStorageSaveData done [18:14:57]OFDSenderStorePacket done [18:14:57]KKMCreateOFDPacket done [18:14:57]NVStorageSaveData kkm_last_timestamp [18:14:57]File name is /storage/kkm_last_timestamp [18:14:57]Write 4 bytes [18:14:57]NVStorageSaveData done [18:14:57]ExternCall_PrintAddStr [18:14:57]wPrintStart [18:14:57]Write to MH i2c: 01 00 00 A5 04 A9 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 07 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 07 00 A5 04 00 00 00 00 00 FF 0F BE [18:14:57]RasterBufferAndPrint [18:14:57]line Счет N : (3)344069 [18:14:57]line ИНН: 02508201610067 [18:14:57]line Контрольно-Кассовый Чек [18:14:57]line ПРОДАЖА [18:14:57]line Товар: 48743570 [18:14:57]line Сигареты Winston XStyle Blue [18:14:57]line 1.000 * 144.00 [18:14:57]line = 144.00 [18:14:57]line НДС 12% НСП 1% [18:14:57]line > о реализуемом товаре [18:14:57]line ИТОГО: 144.00 [18:14:57]line НСП 1% : 1.27 [18:14:57]line НДС 12% : 15.29 [18:14:57]line Наличными: 144.00 [18:14:57]line Безнал.: 0.00 [18:14:57]line Место: АЗС № 90 "Партнер Нефть" [18:14:57]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:14:57]line СНО: Общий режим [18:14:57]line Чек 230 23.09.2024 18:14 [18:14:57]line Смена: 472 ФФД: 1.0 [18:14:57]line ЗНМ: 0300000120 [18:14:57]line РНМ: 0000000000091831 [18:14:57]line Версия ККМ: 001 [18:14:57]line ФМ: 0000000000871830 [18:14:57]line ФД: 115747 [18:14:57]line ФПД: 131632760673269 [18:14:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T181456&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115747&fm=131632760673269&tin=02508201610067®Number=0000000000091831&sum=14400 [18:14:57]line 0 [18:14:57]written 0, free lines is 4095 [18:14:57]OFD Sender: Processing packet 115747 [packets to send 482, broken 481] [18:14:57]ProducePacketName [18:14:57]name=ofd_packets/00115747 [18:14:57]OFD Sender: To server: pG, [18:14:57]CommunicateWithHost lk.salyk.kg:30040 [18:14:57]ConnectInit lk.salyk.kg [18:14:57]Connected sock=10 [18:14: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 38 33 30 25 01 00 00 FA 43 1D 01 B1 D0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 20 B0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 23 C4 01 00 35 04 06 00 77 B8 23 F0 D3 F5 01 F8 B8 EA 7F 01 95 72 [18:14:57]Write to MH i2c: 01 00 00 CC 04 D0 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 07 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 83 0C 66 [18:14:57]RasterBufferAndPrint [18:14:57]line [18:14:57]line [18:14:57]line [18:14:57]line [18:14:57]line [18:14:57]written 0, free lines is 3207 [18:14:57]MH_Cut [18:14:57]Write to MH i2c: D1 01 00 D3 04 01 A9 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: D1 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: D1 01 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: D1 01 00 D3 04 00 A8 [18:14:57]Write to MH i2c: 01 00 00 D4 04 D8 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0A 9A 47 00 95 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 38 33 30 10 04 04 00 23 C4 01 00 F4 03 04 00 62 55 F1 66 B6 04 01 00 00 11 84 09 1B 38 72 96 2E [18:14:57]CommunicateWithHost err = 0 [18:14:57]CheckOFDResponse [18:14:57]1017 (14) - 77093643461234 [18:14:57]1041 (16) - 0000000000871830 [18:14:57]1040 (4) - 115747 [18:14:57]1012 (4) - 23.09.2024 11:47 [18:14:57]1206 (1) - 0 [18:14:57]OFD Sender: Remove packet 115747 [18:14:57]ProducePacketName [18:14:57]name=ofd_packets/00115747 [18:14:57]NVStorageDeleteData [18:14:58]OFD Sender: No OFD packet to send [18:14:59]*** Cut start [18:14:59]*** Partial cut [18:14:59]*** CUTSNS_PIN = 1 [18:14:59]*** CUTSNS_PIN = 0 [18:14:59]*** Brake cut motor [18:14:59]Read from MH i2c: 01 [18:14:59]MH_I2C_Read... [18:14:59]*** Stop cut motor [18:14:59]*** Cut end [18:14:59]Read from MH i2c: 01 07 00 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: 01 07 00 D4 04 00 00 00 00 00 FF 0F ED [18:14:59]process_action close_receipt done [18:14:59]requested_data is exist [18:14:59]produce_requested_data [18:14:59]requested_item fm.sn is exist - process it [18:14:59]wFMCommunicate request_size=4 [18:14:59]MH_SAM_APDU [18:14:59]CAPDU: 80 11 00 00 [18:14:59]Write to MH i2c: E2 08 00 D5 04 80 11 00 00 00 00 00 00 53 [18:14:59]Write i2c OK [18:14:59]MH_I2C_Read... [18:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:59]Read from MH i2c: E2 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 17 00 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 17 00 D5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A1 [18:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:14:59]wFMCommunicate OK [18:14:59]requested_item fd.num is exist - process it [18:14:59]SAM_PROTO_GetFieldsCounters [18:14:59]wFMCommunicate request_size=4 [18:14:59]MH_SAM_APDU [18:14:59]CAPDU: 80 13 00 00 [18:14:59]Write to MH i2c: E2 08 00 D6 04 80 13 00 00 00 00 00 00 56 [18:14:59]Write i2c OK [18:14:59]MH_I2C_Read... [18:14:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:59]Read from MH i2c: E2 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 62 00 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 62 00 D6 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 23 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [18:14: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 23 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:59]wFMCommunicate OK [18:14:59]SAM_PROTO_GetFieldsCounters done [18:14:59]requested_item shift.num is exist - process it [18:14:59]requested_item shift.opened is exist - process it [18:14:59]req_shift_opened [18:14:59]FM_GetShiftState [18:14:59]SAM_PROTO_GetShiftState [18:14:59]wFMCommunicate request_size=4 [18:14:59]MH_SAM_APDU [18:14:59]CAPDU: 80 13 01 00 [18:14:59]Write to MH i2c: E2 08 00 D7 04 80 13 01 00 00 00 00 00 58 [18:14:59]Write i2c OK [18:14:59]MH_I2C_Read... [18:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:59]Read from MH i2c: E2 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 0E 00 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 0E 00 D7 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 99 [18:14:59]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:14:59]wFMCommunicate OK [18:14:59]SAM_PROTO_GetShiftState done [18:14:59]FM_GetShiftState done [18:14:59]req_shift_opened done [18:14:59]requested_item shift.open_date is exist - process it [18:14:59]req_shift_open_date [18:14:59]req_shift_open_date done [18:14:59]produce_requested_data done [18:14:59]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115747,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:14:59]process_action_free close_receipt [18:14:59]json_value_free [18:14:59]json_value_free done [18:14:59]process_json_proto returns [18:14:59]Send response to host [18:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115747,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:14:59]free response buf [18:14:59]execute_script done [18:14:59]execute_script returns [18:14:59]free content buf [18:14:59]Sock 9.Close socket [18:14:59]Sock 9.Thread stoped [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:33]accept exits with 8 [18:17:33]New connection [18:17:33]New thread 3067010404 created [18:17:33]Thread 3066867044 joined [18:17:33]Waiting for new connection... [18:17:33] Sock 8.Parse request [18:17:33]Sock 8.Check first char [18:17:33]Sock 8.First char is OK [18:17:33]request: POST /json_proto HTTP/1.0 [18:17:33]Method: POST [18:17:33]URL: /json_proto [18:17:33]Method is POST - this is cgi request [18:17:33]url: /json_proto [18:17:33]query_string will be loaded in cgi processing [18:17:33]execute_cgi json_proto POST (null) [18:17:33]execute_cgi path=json_proto method=POST [18:17:33]POST find Content-Length [18:17:33]Host: 172.17.41.136:8080 [18:17:33]Content-Length: 887 [18:17:33]Content-Type: application/json [18:17:33] [18:17:33]POST finish read [18:17:33]Found Content-Length = 887 [18:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344070", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 102.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:33]execute_script... [18:17:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344070", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 102.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:33]POST & json_proto [18:17:33]process_json_proto [18:17:33]json parsed OK: [18:17:33]protocol is kg_v1.0 [18:17:33]action value=close_receipt [18:17:33]process_action close_receipt [18:17:33]cmd_close_receipt [18:17:33]MH_GetDate [18:17:33]Write to MH i2c: F0 00 00 D8 04 CB [18:17:33]Write i2c OK [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: F0 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: F0 09 00 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: F0 09 00 D8 04 00 BE B0 F1 66 1B D0 5A 64 42 [18:17:33]GetLastDocTimeStamp 1727115296 [18:17:33]current date 1727115454 [18:17:33]FM_GetShiftState [18:17:33]SAM_PROTO_GetShiftState [18:17:33]wFMCommunicate request_size=4 [18:17:33]MH_SAM_APDU [18:17:33]CAPDU: 80 13 01 00 [18:17:33]Write to MH i2c: E2 08 00 D9 04 80 13 01 00 00 00 00 00 5A [18:17:33]Write i2c OK [18:17:33]MH_I2C_Read... [18:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:33]Read from MH i2c: E2 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: E2 0E 00 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: E2 0E 00 D9 04 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 9B [18:17:33]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:17:33]wFMCommunicate OK [18:17:33]SAM_PROTO_GetShiftState done [18:17:33]FM_GetShiftState done [18:17:33]opened in 1727052070 [18:17:33]opened+sec_in_day 1727138470 [18:17:33]quantity*price = 4200 [18:17:33]sum+1 = 4201 [18:17:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003610560 Вода Энесай 5л. 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 102.00 НСП 1% : 0.90 НДС 12% : 10.83 Наличными: 102.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 231 23.09.2024 18:17 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115748 ФПД: 169342435739337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T181735&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115748&fm=169342435739337&tin=02508201610067®Number=0000000000091831&sum=10200 0 [18:17:35]StoreToDocumentArchive [18:17:35]shift 472 fd 115748 [18:17:35]save to /storage/0472/doc_00115748 [18:17:35]save last doc name /storage/0472/doc_00115748 to /storage/kkm_last_doc_name [18:17:35]save OK [18:17:35]Clear old archive folders... [18:17:35]ProcessDocumentItem done err = 0, tmpTLVsize=373 [18:17:35]tlvbuf is 0114B980 [18:17:35]SAM_PROTO_ClearQueue [18:17:35]wFMCommunicate request_size=4 [18:17:35]MH_SAM_APDU [18:17:35]CAPDU: 80 09 00 00 [18:17:35]Write to MH i2c: E2 08 00 E6 04 80 09 00 00 00 00 00 00 5C [18:17:35]Write i2c OK [18:17:35]MH_I2C_Read... [18:17:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:35]Read from MH i2c: E2 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 03 00 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 03 00 E6 04 00 90 00 5E [18:17:35]RAPDU: 90 00 [18:17:35]wFMCommunicate OK [18:17:35]SAM_PROTO_ClearQueue done [18:17:35]KKMCreateOFDPacket [18:17:35]OFDProtocolAddRootSTLVToBuf [18:17:35]FM_MakeSignedData [18:17:35]FM_MakeSignedData [18:17:35]SAM_PROTO_SignData [18:17:35]wFMCommunicate request_size=4 [18:17:35]MH_SAM_APDU [18:17:35]CAPDU: 80 0D 01 02 [18:17:35]Write to MH i2c: E2 08 00 E7 04 80 0D 01 02 00 00 00 00 64 [18:17:35]Write i2c OK [18:17:35]MH_I2C_Read... [18:17:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:35]Read from MH i2c: E2 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 03 00 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 03 00 E7 04 00 90 00 5F [18:17:35]RAPDU: 90 00 [18:17:35]wFMCommunicate OK [18:17:35]wFMCommunicate request_size=255 [18:17:35]MH_SAM_APDU [18:17:35]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 00 00 00 00 00 EE 03 0F 00 F2 [18:17:35]Write to MH i2c: E2 02 01 E8 04 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 00 00 00 00 00 EE 03 0F 00 F2 00 00 07 [18:17:35]Write i2c OK [18:17:35]MH_I2C_Read... [18:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:35]Read from MH i2c: E2 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 03 00 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 03 00 E8 04 00 90 00 60 [18:17:35]RAPDU: 90 00 [18:17:35]wFMCommunicate OK [18:17:35]wFMCommunicate request_size=132 [18:17:35]MH_SAM_APDU [18:17:35]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 3B 04 00 00 00 00 07 04 06 00 D8 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 E7 00 00 00 F4 03 04 00 BF B0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 24 C4 01 00 35 04 06 00 9A 04 1B BA 46 C9 [18:17:35]Write to MH i2c: E2 87 00 E9 04 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 3B 04 00 00 00 00 07 04 06 00 D8 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 E7 00 00 00 F4 03 04 00 BF B0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 24 C4 01 00 35 04 06 00 9A 04 1B BA 46 C9 00 00 C7 [18:17:35]Write i2c OK [18:17:35]MH_I2C_Read... [18:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:35]Read from MH i2c: E2 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 03 00 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 03 00 E9 04 00 90 00 61 [18:17:35]RAPDU: 90 00 [18:17:35]wFMCommunicate OK [18:17:35]wFMCommunicate request_size=4 [18:17:35]MH_SAM_APDU [18:17:35]CAPDU: 80 0D 03 02 [18:17:35]Write to MH i2c: E2 08 00 EA 04 80 0D 03 02 00 00 00 00 69 [18:17:35]Write i2c OK [18:17:35]MH_I2C_Read... [18:17:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:35]Read from MH i2c: E2 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 0B 00 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 0B 00 EA 04 00 EB 7C B4 2E 43 10 D7 B9 90 00 96 [18:17:35]RAPDU: EB 7C B4 2E 43 10 D7 B9 90 00 [18:17:35]wFMCommunicate OK [18:17:35]SAM_PROTO_SignData done [18:17:35]FM_MakeSignedData done [18:17:35]CreateOFDProtocolMessage [18:17:35]wFMCommunicate request_size=4 [18:17:35]MH_SAM_APDU [18:17:35]CAPDU: 80 11 00 00 [18:17:35]Write to MH i2c: E2 08 00 EB 04 80 11 00 00 00 00 00 00 69 [18:17:35]Write i2c OK [18:17:35]MH_I2C_Read... [18:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:35]Read from MH i2c: E2 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 17 00 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 17 00 EB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B7 [18:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:17:35]wFMCommunicate OK [18:17:35]CreateOFDProtocolMessage done [18:17:35]OFDSenderStorePacket 115748 [18:17:35]StoreOFDPacket docnum=115748 [18:17:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 89 01 00 00 1B EC 81 01 1B 3E 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 04 00 00 00 00 07 04 06 00 D8 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 E7 00 00 00 F4 03 04 00 BF B0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 24 C4 01 00 35 04 06 00 9A 04 1B BA 46 C9 EB 7C B4 2E 43 10 D7 B9 [18:17:35]CheckFolder [18:17:35]dirname=/storage/ofd_packets [18:17:35]CheckFolder done [18:17:35]ProducePacketName [18:17:35]name=ofd_packets/00115748 [18:17:35]NVStorageSaveData ofd_packets/00115748 [18:17:35]File name is /storage/ofd_packets/00115748 [18:17:35]Write 423 bytes [18:17:35]NVStorageSaveData done [18:17:35]OFDSenderStorePacket done [18:17:35]KKMCreateOFDPacket done [18:17:35]NVStorageSaveData kkm_last_timestamp [18:17:35]File name is /storage/kkm_last_timestamp [18:17:35]Write 4 bytes [18:17:35]NVStorageSaveData done [18:17:35]ExternCall_PrintAddStr [18:17:35]wPrintStart [18:17:35]Write to MH i2c: 01 00 00 EC 04 F0 [18:17:35]Write i2c OK [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: 01 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: 01 07 00 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: 01 07 00 EC 04 00 00 00 00 00 FF 0F 05 [18:17:35]RasterBufferAndPrint [18:17:35]line Счет N : (3)344070 [18:17:35]line ИНН: 02508201610067 [18:17:35]line Контрольно-Кассовый Чек [18:17:35]line ПРОДАЖА [18:17:35]line Товар: 5449000005489 [18:17:35]line Вода Бонаква 1л б/г [18:17:35]line 1.000 * 42.00 [18:17:35]line = 42.00 [18:17:35]line НДС 12% НСП 1% [18:17:35]line > о реализуемом товаре [18:17:36]line Товар: 4700003610560 [18:17:36]line Вода Энесай 5л. [18:17:36]line 1.000 * 60.00 [18:17:36]line = 60.00 [18:17:36]line НДС 12% НСП 1% [18:17:36]line > о реализуемом товаре [18:17:36]line ИТОГО: 102.00 [18:17:36]line НСП 1% : 0.90 [18:17:36]line НДС 12% : 10.83 [18:17:36]line Наличными: 102.00 [18:17:36]line Безнал.: 0.00 [18:17:36]line Место: АЗС № 90 "Партнер Нефть" [18:17:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:17:36]line СНО: Общий режим [18:17:36]line Чек 231 23.09.2024 18:17 [18:17:36]line Смена: 472 ФФД: 1.0 [18:17:36]line ЗНМ: 0300000120 [18:17:36]line РНМ: 0000000000091831 [18:17:36]line Версия ККМ: 001 [18:17:36]line ФМ: 0000000000871830 [18:17:36]line ФД: 115748 [18:17:36]line ФПД: 169342435739337 [18:17:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T181735&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115748&fm=169342435739337&tin=02508201610067®Number=0000000000091831&sum=10200 [18:17:36]line 0 [18:17:36]OFD Sender: Processing packet 115748 [packets to send 482, broken 481] [18:17:36]ProducePacketName [18:17:36]name=ofd_packets/00115748 [18:17:36]OFD Sender: To server: pG, [18:17:36]CommunicateWithHost lk.salyk.kg:30040 [18:17:36]ConnectInit lk.salyk.kg [18:17:36]written 0, free lines is 4095 [18:17:36]Connected sock=10 [18:17: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 38 33 30 89 01 00 00 1B EC 81 01 1B 3E 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 04 00 00 00 00 07 04 06 00 D8 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 E7 00 00 00 F4 03 04 00 BF B0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 24 C4 01 00 35 04 06 00 9A 04 1B BA 46 C9 EB 7C B4 2E 43 10 D7 B9 [18:17:36]Write to MH i2c: 01 00 00 19 05 1E [18:17:36]Write i2c OK [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: 01 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: 01 07 00 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 13 0C 44 [18:17:36]RasterBufferAndPrint [18:17:36]line [18:17:36]line [18:17:36]line [18:17:36]line [18:17:36]line [18:17:36]written 0, free lines is 3093 [18:17:36]MH_Cut [18:17:36]Write to MH i2c: D1 01 00 20 05 01 F7 [18:17:36]Write i2c OK [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: D1 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: D1 01 00 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: D1 01 00 20 05 00 F6 [18:17:36]Write to MH i2c: 01 00 00 21 05 26 [18:17:36]Write i2c OK [18:17:36]MH_I2C_Read... [18:17:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 37 DF 47 00 B5 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 38 33 30 10 04 04 00 24 C4 01 00 F4 03 04 00 01 56 F1 66 B6 04 01 00 00 CF 3D C1 CB 33 42 32 11 [18:17:36]CommunicateWithHost err = 0 [18:17:36]CheckOFDResponse [18:17:36]1017 (14) - 77093643461234 [18:17:36]1041 (16) - 0000000000871830 [18:17:36]1040 (4) - 115748 [18:17:36]1012 (4) - 23.09.2024 11:50 [18:17:36]1206 (1) - 0 [18:17:36]OFD Sender: Remove packet 115748 [18:17:36]ProducePacketName [18:17:36]name=ofd_packets/00115748 [18:17:36]NVStorageDeleteData [18:17:37]OFD Sender: No OFD packet to send [18:17:37]*** Cut start [18:17:37]*** Partial cut [18:17:37]*** CUTSNS_PIN = 1 [18:17:38]*** CUTSNS_PIN = 0 [18:17:38]*** Brake cut motor [18:17:38]Read from MH i2c: 01 [18:17:38]MH_I2C_Read... [18:17:38]*** Stop cut motor [18:17:38]*** Cut end [18:17:38]Read from MH i2c: 01 07 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: 01 07 00 21 05 00 00 00 00 00 FF 0F 3B [18:17:38]process_action close_receipt done [18:17:38]requested_data is exist [18:17:38]produce_requested_data [18:17:38]requested_item fm.sn is exist - process it [18:17:38]wFMCommunicate request_size=4 [18:17:38]MH_SAM_APDU [18:17:38]CAPDU: 80 11 00 00 [18:17:38]Write to MH i2c: E2 08 00 22 05 80 11 00 00 00 00 00 00 A1 [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:38]Read from MH i2c: E2 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 17 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 17 00 22 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EF [18:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:17:38]wFMCommunicate OK [18:17:38]requested_item fd.num is exist - process it [18:17:38]SAM_PROTO_GetFieldsCounters [18:17:38]wFMCommunicate request_size=4 [18:17:38]MH_SAM_APDU [18:17:38]CAPDU: 80 13 00 00 [18:17:38]Write to MH i2c: E2 08 00 23 05 80 13 00 00 00 00 00 00 A4 [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:38]Read from MH i2c: E2 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 62 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 62 00 23 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 24 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [18:17: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 24 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:38]wFMCommunicate OK [18:17:38]SAM_PROTO_GetFieldsCounters done [18:17:38]requested_item shift.num is exist - process it [18:17:38]requested_item shift.opened is exist - process it [18:17:38]req_shift_opened [18:17:38]FM_GetShiftState [18:17:38]SAM_PROTO_GetShiftState [18:17:38]wFMCommunicate request_size=4 [18:17:38]MH_SAM_APDU [18:17:38]CAPDU: 80 13 01 00 [18:17:38]Write to MH i2c: E2 08 00 24 05 80 13 01 00 00 00 00 00 A6 [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 [18:17:38]MH_I2C_Read... [18:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:38]Read from MH i2c: E2 0E 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 0E 00 24 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E7 [18:17:38]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:17:38]wFMCommunicate OK [18:17:38]SAM_PROTO_GetShiftState done [18:17:38]FM_GetShiftState done [18:17:38]req_shift_opened done [18:17:38]requested_item shift.open_date is exist - process it [18:17:38]req_shift_open_date [18:17:38]req_shift_open_date done [18:17:38]produce_requested_data done [18:17:38]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115748,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:17:38]process_action_free close_receipt [18:17:38]json_value_free [18:17:38]json_value_free done [18:17:38]process_json_proto returns [18:17:38]Send response to host [18:17:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115748,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:17:38]free response buf [18:17:38]execute_script done [18:17:38]execute_script returns [18:17:38]free content buf [18:17:38]Sock 8.Close socket [18:17:38]Sock 8.Thread stoped [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]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:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30: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: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:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:40]accept exits with 9 [18:34:40]New connection [18:34:40]New thread 3066867044 created [18:34:40]Thread 3067010404 joined [18:34:40]Waiting for new connection... [18:34:40] Sock 9.Parse request [18:34:40]Sock 9.Check first char [18:34:40]Sock 9.First char is OK [18:34:40]request: POST /json_proto HTTP/1.0 [18:34:40]Method: POST [18:34:40]URL: /json_proto [18:34:40]Method is POST - this is cgi request [18:34:40]url: /json_proto [18:34:40]query_string will be loaded in cgi processing [18:34:40]execute_cgi json_proto POST (null) [18:34:40]execute_cgi path=json_proto method=POST [18:34:40]POST find Content-Length [18:34:40]Host: 172.17.41.136:8080 [18:34:40]Content-Length: 867 [18:34:40]Content-Type: application/json [18:34:40] [18:34:40]POST finish read [18:34:40]Found Content-Length = 867 [18:34:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344071", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 174.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:40]execute_script... [18:34:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344071", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 174.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:40]POST & json_proto [18:34:40]process_json_proto [18:34:40]json parsed OK: [18:34:40]protocol is kg_v1.0 [18:34:40]action value=close_receipt [18:34:40]process_action close_receipt [18:34:40]cmd_close_receipt [18:34:40]MH_GetDate [18:34:40]Write to MH i2c: F0 00 00 25 05 19 [18:34:40]Write i2c OK [18:34:40]MH_I2C_Read... [18:34:40]Read from MH i2c: F0 [18:34:40]MH_I2C_Read... [18:34:40]Read from MH i2c: F0 09 00 [18:34:40]MH_I2C_Read... [18:34:40]Read from MH i2c: F0 09 00 25 05 00 C1 B4 F1 66 1B D0 5A 64 97 [18:34:40]GetLastDocTimeStamp 1727115455 [18:34:40]current date 1727116481 [18:34:40]FM_GetShiftState [18:34:40]SAM_PROTO_GetShiftState [18:34:40]wFMCommunicate request_size=4 [18:34:40]MH_SAM_APDU [18:34:40]CAPDU: 80 13 01 00 [18:34:40]Write to MH i2c: E2 08 00 26 05 80 13 01 00 00 00 00 00 A8 [18:34:40]Write i2c OK [18:34:40]MH_I2C_Read... [18:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:40]Read from MH i2c: E2 [18:34:40]MH_I2C_Read... [18:34:40]Read from MH i2c: E2 0E 00 [18:34:40]MH_I2C_Read... [18:34:40]Read from MH i2c: E2 0E 00 26 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E9 [18:34:40]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:34:40]wFMCommunicate OK [18:34:40]SAM_PROTO_GetShiftState done [18:34:40]FM_GetShiftState done [18:34:40]opened in 1727052070 [18:34:40]opened+sec_in_day 1727138470 [18:34:40]quantity*price = 14400 [18:34:40]sum+1 = 14401 [18:34:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700007690018 Негаз вода Pamir 0,5 л 1.000 * 30.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 174.00 НСП 1% : 1.53 НДС 12% : 18.48 Наличными: 174.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 232 23.09.2024 18:34 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115749 ФПД: 280201533156303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T183441&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115749&fm=280201533156303&tin=02508201610067®Number=0000000000091831&sum=17400 0 [18:34:41]StoreToDocumentArchive [18:34:41]shift 472 fd 115749 [18:34:41]save to /storage/0472/doc_00115749 [18:34:41]save last doc name /storage/0472/doc_00115749 to /storage/kkm_last_doc_name [18:34:41]save OK [18:34:41]Clear old archive folders... [18:34:41]ProcessDocumentItem done err = 0, tmpTLVsize=379 [18:34:41]tlvbuf is 01164D30 [18:34:41]SAM_PROTO_ClearQueue [18:34:41]wFMCommunicate request_size=4 [18:34:41]MH_SAM_APDU [18:34:41]CAPDU: 80 09 00 00 [18:34:41]Write to MH i2c: E2 08 00 33 05 80 09 00 00 00 00 00 00 AA [18:34:41]Write i2c OK [18:34:41]MH_I2C_Read... [18:34:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:41]Read from MH i2c: E2 [18:34:41]MH_I2C_Read... [18:34:41]Read from MH i2c: E2 03 00 [18:34:41]MH_I2C_Read... [18:34:41]Read from MH i2c: E2 03 00 33 05 00 90 00 AC [18:34:41]RAPDU: 90 00 [18:34:41]wFMCommunicate OK [18:34:41]SAM_PROTO_ClearQueue done [18:34:41]KKMCreateOFDPacket [18:34:41]OFDProtocolAddRootSTLVToBuf [18:34:41]FM_MakeSignedData [18:34:41]FM_MakeSignedData [18:34:41]SAM_PROTO_SignData [18:34:41]wFMCommunicate request_size=4 [18:34:41]MH_SAM_APDU [18:34:41]CAPDU: 80 0D 01 02 [18:34:41]Write to MH i2c: E2 08 00 34 05 80 0D 01 02 00 00 00 00 B2 [18:34:41]Write i2c OK [18:34:41]MH_I2C_Read... [18:34:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:42]Read from MH i2c: E2 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: E2 03 00 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: E2 03 00 34 05 00 90 00 AD [18:34:42]RAPDU: 90 00 [18:34:42]wFMCommunicate OK [18:34:42]wFMCommunicate request_size=255 [18:34:42]MH_SAM_APDU [18:34:42]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 00 00 00 00 [18:34:42]Write to MH i2c: E2 02 01 35 05 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 00 00 00 00 00 00 7F [18:34:42]Write i2c OK [18:34:42]MH_I2C_Read... [18:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:42]Read from MH i2c: E2 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: E2 03 00 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: E2 03 00 35 05 00 90 00 AE [18:34:42]RAPDU: 90 00 [18:34:42]wFMCommunicate OK [18:34:42]wFMCommunicate request_size=138 [18:34:42]MH_SAM_APDU [18:34:42]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 07 00 00 00 00 07 04 06 00 F8 43 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 C1 B4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 25 C4 01 00 35 04 06 00 FE D7 80 D9 6B CF [18:34:42]Write to MH i2c: E2 8D 00 36 05 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 07 00 00 00 00 07 04 06 00 F8 43 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 C1 B4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 25 C4 01 00 35 04 06 00 FE D7 80 D9 6B CF 00 00 3D [18:34:42]Write i2c OK [18:34:42]MH_I2C_Read... [18:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:42]Read from MH i2c: E2 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: E2 03 00 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: E2 03 00 36 05 00 90 00 AF [18:34:42]RAPDU: 90 00 [18:34:42]wFMCommunicate OK [18:34:42]wFMCommunicate request_size=4 [18:34:42]MH_SAM_APDU [18:34:42]CAPDU: 80 0D 03 02 [18:34:42]Write to MH i2c: E2 08 00 37 05 80 0D 03 02 00 00 00 00 B7 [18:34:42]Write i2c OK [18:34:42]MH_I2C_Read... [18:34:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:42]Read from MH i2c: E2 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: E2 0B 00 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: E2 0B 00 37 05 00 E4 01 CE 5D E3 64 07 D1 90 00 E7 [18:34:42]RAPDU: E4 01 CE 5D E3 64 07 D1 90 00 [18:34:42]wFMCommunicate OK [18:34:42]SAM_PROTO_SignData done [18:34:42]FM_MakeSignedData done [18:34:42]CreateOFDProtocolMessage [18:34:42]wFMCommunicate request_size=4 [18:34:42]MH_SAM_APDU [18:34:42]CAPDU: 80 11 00 00 [18:34:42]Write to MH i2c: E2 08 00 38 05 80 11 00 00 00 00 00 00 B7 [18:34:42]Write i2c OK [18:34:42]MH_I2C_Read... [18:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:42]Read from MH i2c: E2 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: E2 17 00 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: E2 17 00 38 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 05 [18:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:34:42]wFMCommunicate OK [18:34:42]CreateOFDProtocolMessage done [18:34:42]OFDSenderStorePacket 115749 [18:34:42]StoreOFDPacket docnum=115749 [18:34:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 8F 01 00 00 B8 85 87 01 50 6A 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 07 00 00 00 00 07 04 06 00 F8 43 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 C1 B4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 25 C4 01 00 35 04 06 00 FE D7 80 D9 6B CF E4 01 CE 5D E3 64 07 D1 [18:34:42]CheckFolder [18:34:42]dirname=/storage/ofd_packets [18:34:42]CheckFolder done [18:34:42]ProducePacketName [18:34:42]name=ofd_packets/00115749 [18:34:42]NVStorageSaveData ofd_packets/00115749 [18:34:42]File name is /storage/ofd_packets/00115749 [18:34:42]Write 429 bytes [18:34:42]NVStorageSaveData done [18:34:42]OFDSenderStorePacket done [18:34:42]KKMCreateOFDPacket done [18:34:42]NVStorageSaveData kkm_last_timestamp [18:34:42]File name is /storage/kkm_last_timestamp [18:34:42]Write 4 bytes [18:34:42]NVStorageSaveData done [18:34:42]ExternCall_PrintAddStr [18:34:42]wPrintStart [18:34:42]Write to MH i2c: 01 00 00 39 05 3E [18:34:42]Write i2c OK [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: 01 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: 01 07 00 [18:34:42]MH_I2C_Read... [18:34:42]Read from MH i2c: 01 07 00 39 05 00 00 00 00 00 FF 0F 53 [18:34:42]RasterBufferAndPrint [18:34:42]line Счет N : (3)344071 [18:34:42]line ИНН: 02508201610067 [18:34:42]line Контрольно-Кассовый Чек [18:34:42]line ПРОДАЖА [18:34:42]line Товар: 48743587 [18:34:42]line Сигареты Winston XStyle Silver [18:34:42]line 1.000 * 144.00 [18:34:42]line = 144.00 [18:34:42]line НДС 12% НСП 1% [18:34:42]line > о реализуемом товаре [18:34:42]line Товар: 4700007690018 [18:34:42]line Негаз вода Pamir 0,5 л [18:34:42]line 1.000 * 30.00 [18:34:42]line = 30.00 [18:34:42]line НДС 12% НСП 1% [18:34:42]line > о реализуемом товаре [18:34:42]line ИТОГО: 174.00 [18:34:42]line НСП 1% : 1.53 [18:34:42]line НДС 12% : 18.48 [18:34:42]line Наличными: 174.00 [18:34:42]line Безнал.: 0.00 [18:34:42]line Место: АЗС № 90 "Партнер Нефть" [18:34:42]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:34:42]line СНО: Общий режим [18:34:42]line Чек 232 23.09.2024 18:34 [18:34:42]line Смена: 472 ФФД: 1.0 [18:34:42]line ЗНМ: 0300000120 [18:34:42]line РНМ: 0000000000091831 [18:34:42]line Версия ККМ: 001 [18:34:42]line ФМ: 0000000000871830 [18:34:42]line ФД: 115749 [18:34:42]line ФПД: 280201533156303 [18:34:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T183441&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115749&fm=280201533156303&tin=02508201610067®Number=0000000000091831&sum=17400 [18:34:42]line 0 [18:34:42]OFD Sender: Processing packet 115749 [packets to send 482, broken 481] [18:34:42]ProducePacketName [18:34:42]name=ofd_packets/00115749 [18:34:42]OFD Sender: To server: pG, [18:34:42]CommunicateWithHost lk.salyk.kg:30040 [18:34:42]ConnectInit lk.salyk.kg [18:34:42]written 0, free lines is 4095 [18:34:43]Connected sock=10 [18:34: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 38 33 30 8F 01 00 00 B8 85 87 01 50 6A 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 07 00 00 00 00 07 04 06 00 F8 43 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 C1 B4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 25 C4 01 00 35 04 06 00 FE D7 80 D9 6B CF E4 01 CE 5D E3 64 07 D1 [18:34:43]Write to MH i2c: 01 00 00 67 05 6C [18:34:43]Write i2c OK [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: 01 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: 01 07 00 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: 01 07 00 67 05 00 00 00 00 00 FD 0B 7B [18:34:43]RasterBufferAndPrint [18:34:43]line [18:34:43]line [18:34:43]line [18:34:43]line [18:34:43]line [18:34:43]written 0, free lines is 3072 [18:34:43]MH_Cut [18:34:43]Write to MH i2c: D1 01 00 6E 05 01 45 [18:34:43]Write i2c OK [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: D1 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: D1 01 00 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: D1 01 00 6E 05 00 44 [18:34:43]Write to MH i2c: 01 00 00 6F 05 74 [18:34:43]Write i2c OK [18:34:43]MH_I2C_Read... [18:34:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B6 62 47 00 BD 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 38 33 30 10 04 04 00 25 C4 01 00 F4 03 04 00 04 5A F1 66 B6 04 01 00 00 7B D8 A8 49 AC A7 5A 96 [18:34:43]CommunicateWithHost err = 0 [18:34:43]CheckOFDResponse [18:34:43]1017 (14) - 77093643461234 [18:34:43]1041 (16) - 0000000000871830 [18:34:43]1040 (4) - 115749 [18:34:43]1012 (4) - 23.09.2024 12:07 [18:34:43]1206 (1) - 0 [18:34:43]OFD Sender: Remove packet 115749 [18:34:43]ProducePacketName [18:34:43]name=ofd_packets/00115749 [18:34:43]NVStorageDeleteData [18:34:44]OFD Sender: No OFD packet to send [18:34:44]*** Cut start [18:34:44]*** Partial cut [18:34:44]*** CUTSNS_PIN = 1 [18:34:44]*** CUTSNS_PIN = 0 [18:34:45]*** Brake cut motor [18:34:45]Read from MH i2c: 01 [18:34:45]MH_I2C_Read... [18:34:45]*** Stop cut motor [18:34:45]*** Cut end [18:34:45]Read from MH i2c: 01 07 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 07 00 6F 05 00 00 00 00 00 FF 0F 89 [18:34:45]process_action close_receipt done [18:34:45]requested_data is exist [18:34:45]produce_requested_data [18:34:45]requested_item fm.sn is exist - process it [18:34:45]wFMCommunicate request_size=4 [18:34:45]MH_SAM_APDU [18:34:45]CAPDU: 80 11 00 00 [18:34:45]Write to MH i2c: E2 08 00 70 05 80 11 00 00 00 00 00 00 EF [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:45]Read from MH i2c: E2 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 17 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 17 00 70 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3D [18:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:34:45]wFMCommunicate OK [18:34:45]requested_item fd.num is exist - process it [18:34:45]SAM_PROTO_GetFieldsCounters [18:34:45]wFMCommunicate request_size=4 [18:34:45]MH_SAM_APDU [18:34:45]CAPDU: 80 13 00 00 [18:34:45]Write to MH i2c: E2 08 00 71 05 80 13 00 00 00 00 00 00 F2 [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:45]Read from MH i2c: E2 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 62 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 62 00 71 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 25 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [18:34: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 25 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:45]wFMCommunicate OK [18:34:45]SAM_PROTO_GetFieldsCounters done [18:34:45]requested_item shift.num is exist - process it [18:34:45]requested_item shift.opened is exist - process it [18:34:45]req_shift_opened [18:34:45]FM_GetShiftState [18:34:45]SAM_PROTO_GetShiftState [18:34:45]wFMCommunicate request_size=4 [18:34:45]MH_SAM_APDU [18:34:45]CAPDU: 80 13 01 00 [18:34:45]Write to MH i2c: E2 08 00 72 05 80 13 01 00 00 00 00 00 F4 [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 [18:34:45]MH_I2C_Read... [18:34:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:45]Read from MH i2c: E2 0E 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 0E 00 72 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 35 [18:34:45]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:34:45]wFMCommunicate OK [18:34:45]SAM_PROTO_GetShiftState done [18:34:45]FM_GetShiftState done [18:34:45]req_shift_opened done [18:34:45]requested_item shift.open_date is exist - process it [18:34:45]req_shift_open_date [18:34:45]req_shift_open_date done [18:34:45]produce_requested_data done [18:34:45]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115749,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:34:45]process_action_free close_receipt [18:34:45]json_value_free [18:34:45]json_value_free done [18:34:45]process_json_proto returns [18:34:45]Send response to host [18:34:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115749,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:34:45]free response buf [18:34:45]execute_script done [18:34:45]execute_script returns [18:34:45]free content buf [18:34:45]Sock 9.Close socket [18:34:45]Sock 9.Thread stoped [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]accept exits with 8 [18:35:49]New connection [18:35:49]New thread 3067010404 created [18:35:49]Thread 3066867044 joined [18:35:49]Waiting for new connection... [18:35:49] Sock 8.Parse request [18:35:49]Sock 8.Check first char [18:35:49]Sock 8.First char is OK [18:35:49]request: POST /json_proto HTTP/1.0 [18:35:49]Method: POST [18:35:49]URL: /json_proto [18:35:49]Method is POST - this is cgi request [18:35:49]url: /json_proto [18:35:49]query_string will be loaded in cgi processing [18:35:49]execute_cgi json_proto POST (null) [18:35:49]execute_cgi path=json_proto method=POST [18:35:49]POST find Content-Length [18:35:49]Host: 172.17.41.136:8080 [18:35:49]Content-Length: 1233 [18:35:49]Content-Type: application/json [18:35:49] [18:35:49]POST finish read [18:35:49]Found Content-Length = 1233 [18:35:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344072", "tax_sys" : 0, "items" : [ { "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 335.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:49]execute_script... [18:35:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344072", "tax_sys" : 0, "items" : [ { "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 335.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:49]POST & json_proto [18:35:49]process_json_proto [18:35:49]json parsed OK: [18:35:49]protocol is kg_v1.0 [18:35:49]action value=close_receipt [18:35:49]process_action close_receipt [18:35:49]cmd_close_receipt [18:35:49]MH_GetDate [18:35:49]Write to MH i2c: F0 00 00 73 05 67 [18:35:49]Write i2c OK [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: F0 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: F0 09 00 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: F0 09 00 73 05 00 06 B5 F1 66 1B D0 5A 64 2B [18:35:49]GetLastDocTimeStamp 1727116481 [18:35:49]current date 1727116550 [18:35:49]FM_GetShiftState [18:35:49]SAM_PROTO_GetShiftState [18:35:49]wFMCommunicate request_size=4 [18:35:49]MH_SAM_APDU [18:35:49]CAPDU: 80 13 01 00 [18:35:49]Write to MH i2c: E2 08 00 74 05 80 13 01 00 00 00 00 00 F6 [18:35:49]Write i2c OK [18:35:49]MH_I2C_Read... [18:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:49]Read from MH i2c: E2 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: E2 0E 00 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: E2 0E 00 74 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 37 [18:35:49]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:35:49]wFMCommunicate OK [18:35:49]SAM_PROTO_GetShiftState done [18:35:49]FM_GetShiftState done [18:35:49]opened in 1727052070 [18:35:49]opened+sec_in_day 1727138470 [18:35:49]quantity*price = 9000 [18:35:49]sum+1 = 9001 [18:35:49]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 335.00 НСП 1% : 2.97 НДС 12% : 35.57 Наличными: 335.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 233 23.09.2024 18:35 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115750 ФПД: 257624757102484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T183550&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115750&fm=257624757102484&tin=02508201610067®Number=0000000000091831&sum=33500 0 [18:35:50]StoreToDocumentArchive [18:35:50]shift 472 fd 115750 [18:35:50]save to /storage/0472/doc_00115750 [18:35:50]save last doc name /storage/0472/doc_00115750 to /storage/kkm_last_doc_name [18:35:50]save OK [18:35:50]Clear old archive folders... [18:35:50]ProcessDocumentItem done err = 0, tmpTLVsize=527 [18:35:50]tlvbuf is 0113C200 [18:35:50]SAM_PROTO_ClearQueue [18:35:50]wFMCommunicate request_size=4 [18:35:50]MH_SAM_APDU [18:35:50]CAPDU: 80 09 00 00 [18:35:50]Write to MH i2c: E2 08 00 81 05 80 09 00 00 00 00 00 00 F8 [18:35:50]Write i2c OK [18:35:50]MH_I2C_Read... [18:35:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:50]Read from MH i2c: E2 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: E2 03 00 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: E2 03 00 81 05 00 90 00 FA [18:35:50]RAPDU: 90 00 [18:35:50]wFMCommunicate OK [18:35:50]SAM_PROTO_ClearQueue done [18:35:50]KKMCreateOFDPacket [18:35:50]OFDProtocolAddRootSTLVToBuf [18:35:50]FM_MakeSignedData [18:35:50]FM_MakeSignedData [18:35:50]SAM_PROTO_SignData [18:35:50]wFMCommunicate request_size=4 [18:35:50]MH_SAM_APDU [18:35:50]CAPDU: 80 0D 01 02 [18:35:50]Write to MH i2c: E2 08 00 82 05 80 0D 01 02 00 00 00 00 00 [18:35:50]Write i2c OK [18:35:50]MH_I2C_Read... [18:35:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:50]Read from MH i2c: E2 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: E2 03 00 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: E2 03 00 82 05 00 90 00 FB [18:35:50]RAPDU: 90 00 [18:35:50]wFMCommunicate OK [18:35:50]wFMCommunicate request_size=255 [18:35:50]MH_SAM_APDU [18:35:50]CAPDU: 80 0D 02 02 FA 03 00 0F 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [18:35:50]Write to MH i2c: E2 02 01 83 05 80 0D 02 02 FA 00 03 00 0F 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 BF [18:35:50]Write i2c OK [18:35:50]MH_I2C_Read... [18:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:50]Read from MH i2c: E2 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: E2 03 00 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: E2 03 00 83 05 00 90 00 FC [18:35:50]RAPDU: 90 00 [18:35:50]wFMCommunicate OK [18:35:50]wFMCommunicate request_size=255 [18:35:50]MH_SAM_APDU [18:35:50]CAPDU: 80 0D 02 02 FA 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 06 B5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 [18:35:50]Write to MH i2c: E2 02 01 84 05 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 06 B5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 00 00 9E [18:35:50]Write i2c OK [18:35:50]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 84 05 00 90 00 FD [18:35:51]RAPDU: 90 00 [18:35:51]wFMCommunicate OK [18:35:51]wFMCommunicate request_size=36 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 26 C4 01 00 35 04 06 00 EA 4E F0 21 E7 94 [18:35:51]Write to MH i2c: E2 27 00 85 05 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 26 C4 01 00 35 04 06 00 EA 4E F0 21 E7 94 00 00 D3 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 85 05 00 90 00 FE [18:35:51]RAPDU: 90 00 [18:35:51]wFMCommunicate OK [18:35:51]wFMCommunicate request_size=4 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 0D 03 02 [18:35:51]Write to MH i2c: E2 08 00 86 05 80 0D 03 02 00 00 00 00 06 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 0B 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 0B 00 86 05 00 DE 70 40 89 F6 0D D5 79 90 00 6F [18:35:51]RAPDU: DE 70 40 89 F6 0D D5 79 90 00 [18:35:51]wFMCommunicate OK [18:35:51]SAM_PROTO_SignData done [18:35:51]FM_MakeSignedData done [18:35:51]CreateOFDProtocolMessage [18:35:51]wFMCommunicate request_size=4 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 11 00 00 [18:35:51]Write to MH i2c: E2 08 00 87 05 80 11 00 00 00 00 00 00 06 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 17 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 17 00 87 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 54 [18:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:35:51]wFMCommunicate OK [18:35:51]CreateOFDProtocolMessage done [18:35:51]OFDSenderStorePacket 115750 [18:35:51]StoreOFDPacket docnum=115750 [18:35:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 23 02 00 00 69 DA 1B 02 03 8A 5A 03 01 00 03 00 0F 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 06 B5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 26 C4 01 00 35 04 06 00 EA 4E F0 21 E7 94 DE 70 40 89 F6 0D D5 79 [18:35:51]CheckFolder [18:35:51]dirname=/storage/ofd_packets [18:35:51]CheckFolder done [18:35:51]ProducePacketName [18:35:51]name=ofd_packets/00115750 [18:35:51]NVStorageSaveData ofd_packets/00115750 [18:35:51]File name is /storage/ofd_packets/00115750 [18:35:51]Write 577 bytes [18:35:51]NVStorageSaveData done [18:35:51]OFDSenderStorePacket done [18:35:51]KKMCreateOFDPacket done [18:35:51]NVStorageSaveData kkm_last_timestamp [18:35:51]File name is /storage/kkm_last_timestamp [18:35:51]Write 4 bytes [18:35:51]NVStorageSaveData done [18:35:51]ExternCall_PrintAddStr [18:35:51]wPrintStart [18:35:51]Write to MH i2c: 01 00 00 88 05 8D [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: 01 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: 01 07 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: 01 07 00 88 05 00 00 00 00 00 FF 0F A2 [18:35:51]RasterBufferAndPrint [18:35:51]line Счет N : (3)344072 [18:35:51]line ИНН: 02508201610067 [18:35:51]line Контрольно-Кассовый Чек [18:35:51]line ПРОДАЖА [18:35:51]line Товар: 4650243870968 [18:35:51]line Напиток Gorilla ж/б 0,45л Персик Абрикос [18:35:51]line 1.000 * 90.00 [18:35:51]line = 90.00 [18:35:51]line НДС 12% НСП 1% [18:35:51]line > о реализуемом товаре [18:35:51]line Товар: 2000036220012 [18:35:51]line Кофе Капучино XL(GABB TRADE) [18:35:51]line 1.000 * 130.00 [18:35:51]line = 130.00 [18:35:51]line НДС 12% НСП 1% [18:35:51]line > о реализуемом товаре [18:35:51]line Товар: 2000036210013 [18:35:51]line Кофе Капучино (GABB TRADE) [18:35:51]line 1.000 * 115.00 [18:35:51]line = 115.00 [18:35:51]line НДС 12% НСП 1% [18:35:51]line > о реализуемом товаре [18:35:51]line ИТОГО: 335.00 [18:35:51]line НСП 1% : 2.97 [18:35:51]line НДС 12% : 35.57 [18:35:51]line Наличными: 335.00 [18:35:51]line Безнал.: 0.00 [18:35:51]line Место: АЗС № 90 "Партнер Нефть" [18:35:51]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:35:51]line СНО: Общий режим [18:35:51]line Чек 233 23.09.2024 18:35 [18:35:51]line Смена: 472 ФФД: 1.0 [18:35:51]line ЗНМ: 0300000120 [18:35:51]line РНМ: 0000000000091831 [18:35:51]line Версия ККМ: 001 [18:35:51]line ФМ: 0000000000871830 [18:35:51]line ФД: 115750 [18:35:51]line ФПД: 257624757102484 [18:35:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T183550&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115750&fm=257624757102484&tin=02508201610067®Number=0000000000091831&sum=33500 [18:35:51]line 0 [18:35:51]written 0, free lines is 4095 [18:35:51]OFD Sender: Processing packet 115750 [packets to send 482, broken 481] [18:35:51]ProducePacketName [18:35:51]name=ofd_packets/00115750 [18:35:51]OFD Sender: To server: pG, [18:35:51]CommunicateWithHost lk.salyk.kg:30040 [18:35:51]ConnectInit lk.salyk.kg [18:35:51]Connected sock=10 [18:35: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 38 33 30 23 02 00 00 69 DA 1B 02 03 8A 5A 03 01 00 03 00 0F 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 06 B5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 26 C4 01 00 35 04 06 00 EA 4E F0 21 E7 94 DE 70 40 89 F6 0D D5 79 [18:35:51]Write to MH i2c: 01 00 00 BD 05 C2 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: 01 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: 01 07 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: 01 07 00 BD 05 00 00 00 00 00 62 0B 36 [18:35:51]RasterBufferAndPrint [18:35:51]line [18:35:51]line [18:35:51]line [18:35:51]line [18:35:51]line [18:35:51]written 0, free lines is 2917 [18:35:51]MH_Cut [18:35:51]Write to MH i2c: D1 01 00 C4 05 01 9B [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: D1 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: D1 01 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: D1 01 00 C4 05 00 9A [18:35:51]Write to MH i2c: 01 00 00 C5 05 CA [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 EA 38 47 00 88 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 38 33 30 10 04 04 00 26 C4 01 00 F4 03 04 00 48 5A F1 66 B6 04 01 00 00 DA E6 D3 A0 27 11 39 39 [18:35:52]CommunicateWithHost err = 0 [18:35:52]CheckOFDResponse [18:35:52]1017 (14) - 77093643461234 [18:35:52]1041 (16) - 0000000000871830 [18:35:52]1040 (4) - 115750 [18:35:52]1012 (4) - 23.09.2024 12:08 [18:35:52]1206 (1) - 0 [18:35:52]OFD Sender: Remove packet 115750 [18:35:52]ProducePacketName [18:35:52]name=ofd_packets/00115750 [18:35:52]NVStorageDeleteData [18:35:52]OFD Sender: No OFD packet to send [18:35:53]*** Cut start [18:35:53]*** Partial cut [18:35:53]*** CUTSNS_PIN = 1 [18:35:53]*** CUTSNS_PIN = 0 [18:35:53]*** Brake cut motor [18:35:54]Read from MH i2c: 01 [18:35:54]MH_I2C_Read... [18:35:54]*** Stop cut motor [18:35:54]*** Cut end [18:35:54]Read from MH i2c: 01 07 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: 01 07 00 C5 05 00 00 00 00 00 FF 0F DF [18:35:54]process_action close_receipt done [18:35:54]requested_data is exist [18:35:54]produce_requested_data [18:35:54]requested_item fm.sn is exist - process it [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 11 00 00 [18:35:54]Write to MH i2c: E2 08 00 C6 05 80 11 00 00 00 00 00 00 45 [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 17 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 17 00 C6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 93 [18:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:35:54]wFMCommunicate OK [18:35:54]requested_item fd.num is exist - process it [18:35:54]SAM_PROTO_GetFieldsCounters [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 13 00 00 [18:35:54]Write to MH i2c: E2 08 00 C7 05 80 13 00 00 00 00 00 00 48 [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 62 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 62 00 C7 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 26 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [18:35: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 26 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:54]wFMCommunicate OK [18:35:54]SAM_PROTO_GetFieldsCounters done [18:35:54]requested_item shift.num is exist - process it [18:35:54]requested_item shift.opened is exist - process it [18:35:54]req_shift_opened [18:35:54]FM_GetShiftState [18:35:54]SAM_PROTO_GetShiftState [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 13 01 00 [18:35:54]Write to MH i2c: E2 08 00 C8 05 80 13 01 00 00 00 00 00 4A [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 0E 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 0E 00 C8 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 8B [18:35:54]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:35:54]wFMCommunicate OK [18:35:54]SAM_PROTO_GetShiftState done [18:35:54]FM_GetShiftState done [18:35:54]req_shift_opened done [18:35:54]requested_item shift.open_date is exist - process it [18:35:54]req_shift_open_date [18:35:54]req_shift_open_date done [18:35:54]produce_requested_data done [18:35:54]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115750,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:35:54]process_action_free close_receipt [18:35:54]json_value_free [18:35:54]json_value_free done [18:35:54]process_json_proto returns [18:35:54]Send response to host [18:35:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115750,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:35:54]free response buf [18:35:54]execute_script done [18:35:54]execute_script returns [18:35:54]free content buf [18:35:54]Sock 8.Close socket [18:35:54]Sock 8.Thread stoped [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:13]OFD Sender: No OFD packet to send [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:53]OFD Sender: No OFD packet to send [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:11]accept exits with 9 [18:48:11]New connection [18:48:11]New thread 3066867044 created [18:48:11]Thread 3067010404 joined [18:48:11]Waiting for new connection... [18:48:11] Sock 9.Parse request [18:48:11]Sock 9.Check first char [18:48:11]Sock 9.First char is OK [18:48:11]request: POST /json_proto HTTP/1.0 [18:48:11]Method: POST [18:48:11]URL: /json_proto [18:48:11]Method is POST - this is cgi request [18:48:11]url: /json_proto [18:48:11]query_string will be loaded in cgi processing [18:48:11]execute_cgi json_proto POST (null) [18:48:11]execute_cgi path=json_proto method=POST [18:48:11]POST find Content-Length [18:48:11]Host: 172.17.41.136:8080 [18:48:11]Content-Length: 1190 [18:48:11]Content-Type: application/json [18:48:11] [18:48:11]POST finish read [18:48:11]Found Content-Length = 1190 [18:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344073", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:11]execute_script... [18:48:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344073", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:11]POST & json_proto [18:48:11]process_json_proto [18:48:11]json parsed OK: [18:48:11]protocol is kg_v1.0 [18:48:11]action value=close_receipt [18:48:11]process_action close_receipt [18:48:11]cmd_close_receipt [18:48:11]MH_GetDate [18:48:11]Write to MH i2c: F0 00 00 C9 05 BD [18:48:11]Write i2c OK [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: F0 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: F0 09 00 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: F0 09 00 C9 05 00 ED B7 F1 66 1B D0 5A 64 6A [18:48:11]GetLastDocTimeStamp 1727116550 [18:48:11]current date 1727117293 [18:48:11]FM_GetShiftState [18:48:11]SAM_PROTO_GetShiftState [18:48:11]wFMCommunicate request_size=4 [18:48:11]MH_SAM_APDU [18:48:11]CAPDU: 80 13 01 00 [18:48:11]Write to MH i2c: E2 08 00 CA 05 80 13 01 00 00 00 00 00 4C [18:48:11]Write i2c OK [18:48:11]MH_I2C_Read... [18:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:12]Read from MH i2c: E2 [18:48:12]MH_I2C_Read... [18:48:12]Read from MH i2c: E2 0E 00 [18:48:12]MH_I2C_Read... [18:48:12]Read from MH i2c: E2 0E 00 CA 05 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 8D [18:48:12]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:48:12]wFMCommunicate OK [18:48:12]SAM_PROTO_GetShiftState done [18:48:12]FM_GetShiftState done [18:48:12]opened in 1727052070 [18:48:12]opened+sec_in_day 1727138470 [18:48:12]quantity*price = 13000 [18:48:12]sum+1 = 13001 [18:48:12]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 209.00 НСП 1% : 1.84 НДС 12% : 22.18 Наличными: 209.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 234 23.09.2024 18:48 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115751 ФПД: 49425130802941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T184813&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115751&fm=49425130802941&tin=02508201610067®Number=0000000000091831&sum=20900 0 [18:48:13]StoreToDocumentArchive [18:48:13]shift 472 fd 115751 [18:48:13]save to /storage/0472/doc_00115751 [18:48:13]save last doc name /storage/0472/doc_00115751 to /storage/kkm_last_doc_name [18:48:13]save OK [18:48:13]Clear old archive folders... [18:48:13]ProcessDocumentItem done err = 0, tmpTLVsize=485 [18:48:13]tlvbuf is 011561B0 [18:48:13]SAM_PROTO_ClearQueue [18:48:13]wFMCommunicate request_size=4 [18:48:13]MH_SAM_APDU [18:48:13]CAPDU: 80 09 00 00 [18:48:13]Write to MH i2c: E2 08 00 D7 05 80 09 00 00 00 00 00 00 4E [18:48:13]Write i2c OK [18:48:13]MH_I2C_Read... [18:48:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:13]Read from MH i2c: E2 [18:48:13]MH_I2C_Read... [18:48:13]Read from MH i2c: E2 03 00 [18:48:13]MH_I2C_Read... [18:48:13]Read from MH i2c: E2 03 00 D7 05 00 90 00 50 [18:48:13]RAPDU: 90 00 [18:48:13]wFMCommunicate OK [18:48:13]SAM_PROTO_ClearQueue done [18:48:13]KKMCreateOFDPacket [18:48:13]OFDProtocolAddRootSTLVToBuf [18:48:13]FM_MakeSignedData [18:48:13]FM_MakeSignedData [18:48:13]SAM_PROTO_SignData [18:48:13]wFMCommunicate request_size=4 [18:48:13]MH_SAM_APDU [18:48:13]CAPDU: 80 0D 01 02 [18:48:13]Write to MH i2c: E2 08 00 D8 05 80 0D 01 02 00 00 00 00 56 [18:48:13]Write i2c OK [18:48:13]MH_I2C_Read... [18:48:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:13]Read from MH i2c: E2 [18:48:13]MH_I2C_Read... [18:48:13]Read from MH i2c: E2 03 00 [18:48:13]MH_I2C_Read... [18:48:13]Read from MH i2c: E2 03 00 D8 05 00 90 00 51 [18:48:13]RAPDU: 90 00 [18:48:13]wFMCommunicate OK [18:48:13]wFMCommunicate request_size=255 [18:48:13]MH_SAM_APDU [18:48:13]CAPDU: 80 0D 02 02 FA 03 00 E5 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 [18:48:13]Write to MH i2c: E2 02 01 D9 05 80 0D 02 02 FA 00 03 00 E5 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 00 00 59 [18:48:13]Write i2c OK [18:48:13]MH_I2C_Read... [18:48:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:13]Read from MH i2c: E2 [18:48:13]MH_I2C_Read... [18:48:13]Read from MH i2c: E2 03 00 [18:48:13]MH_I2C_Read... [18:48:13]Read from MH i2c: E2 03 00 D9 05 00 90 00 52 [18:48:13]RAPDU: 90 00 [18:48:13]wFMCommunicate OK [18:48:13]wFMCommunicate request_size=244 [18:48:13]MH_SAM_APDU [18:48:13]CAPDU: 80 0D 02 02 EF BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 ED B7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 27 C4 01 00 35 04 06 00 2C F3 AF 5D 4E FD [18:48:13]Write to MH i2c: E2 F7 00 DA 05 80 0D 02 02 EF 00 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 ED B7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 27 C4 01 00 35 04 06 00 2C F3 AF 5D 4E FD 00 00 97 [18:48:13]Write i2c OK [18:48:13]MH_I2C_Read... [18:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:14]Read from MH i2c: E2 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: E2 03 00 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: E2 03 00 DA 05 00 90 00 53 [18:48:14]RAPDU: 90 00 [18:48:14]wFMCommunicate OK [18:48:14]wFMCommunicate request_size=4 [18:48:14]MH_SAM_APDU [18:48:14]CAPDU: 80 0D 03 02 [18:48:14]Write to MH i2c: E2 08 00 DB 05 80 0D 03 02 00 00 00 00 5B [18:48:14]Write i2c OK [18:48:14]MH_I2C_Read... [18:48:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:14]Read from MH i2c: E2 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: E2 0B 00 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: E2 0B 00 DB 05 00 CB F8 58 5B 16 75 76 28 90 00 FB [18:48:14]RAPDU: CB F8 58 5B 16 75 76 28 90 00 [18:48:14]wFMCommunicate OK [18:48:14]SAM_PROTO_SignData done [18:48:14]FM_MakeSignedData done [18:48:14]CreateOFDProtocolMessage [18:48:14]wFMCommunicate request_size=4 [18:48:14]MH_SAM_APDU [18:48:14]CAPDU: 80 11 00 00 [18:48:14]Write to MH i2c: E2 08 00 DC 05 80 11 00 00 00 00 00 00 5B [18:48:14]Write i2c OK [18:48:14]MH_I2C_Read... [18:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:14]Read from MH i2c: E2 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: E2 17 00 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: E2 17 00 DC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A9 [18:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:48:14]wFMCommunicate OK [18:48:14]CreateOFDProtocolMessage done [18:48:14]OFDSenderStorePacket 115751 [18:48:14]StoreOFDPacket docnum=115751 [18:48:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F9 01 00 00 6F 30 F1 01 42 AE 5A 03 01 00 03 00 E5 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 ED B7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 27 C4 01 00 35 04 06 00 2C F3 AF 5D 4E FD CB F8 58 5B 16 75 76 28 [18:48:14]CheckFolder [18:48:14]dirname=/storage/ofd_packets [18:48:14]CheckFolder done [18:48:14]ProducePacketName [18:48:14]name=ofd_packets/00115751 [18:48:14]NVStorageSaveData ofd_packets/00115751 [18:48:14]File name is /storage/ofd_packets/00115751 [18:48:14]Write 535 bytes [18:48:14]NVStorageSaveData done [18:48:14]OFDSenderStorePacket done [18:48:14]KKMCreateOFDPacket done [18:48:14]NVStorageSaveData kkm_last_timestamp [18:48:14]File name is /storage/kkm_last_timestamp [18:48:14]Write 4 bytes [18:48:14]NVStorageSaveData done [18:48:14]ExternCall_PrintAddStr [18:48:14]wPrintStart [18:48:14]Write to MH i2c: 01 00 00 DD 05 E2 [18:48:14]Write i2c OK [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: 01 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: 01 07 00 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: 01 07 00 DD 05 00 00 00 00 00 FF 0F F7 [18:48:14]RasterBufferAndPrint [18:48:14]line Счет N : (3)344073 [18:48:14]line ИНН: 02508201610067 [18:48:14]line Контрольно-Кассовый Чек [18:48:14]line ПРОДАЖА [18:48:14]line Товар: 47011656 [18:48:14]line Водка Пшеничная 0,1л [18:48:14]line 2.000 * 65.00 [18:48:14]line = 130.00 [18:48:14]line НДС 12% НСП 1% [18:48:14]line > о реализуемом товаре [18:48:14]line Товар: 2000031750019 [18:48:14]line Пакет Партнер Нефть [18:48:14]line 1.000 * 4.00 [18:48:14]line = 4.00 [18:48:14]line НДС 12% НСП 1% [18:48:14]line > о реализуемом товаре [18:48:14]line Товар: 54491472 [18:48:14]line Напиток Кока-Кола 0,5л [18:48:14]line 1.000 * 75.00 [18:48:14]line = 75.00 [18:48:14]line НДС 12% НСП 1% [18:48:14]line > о реализуемом товаре [18:48:14]line ИТОГО: 209.00 [18:48:14]line НСП 1% : 1.84 [18:48:14]line НДС 12% : 22.18 [18:48:14]line Наличными: 209.00 [18:48:14]line Безнал.: 0.00 [18:48:14]line Место: АЗС № 90 "Партнер Нефть" [18:48:14]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:48:14]line СНО: Общий режим [18:48:14]line Чек 234 23.09.2024 18:48 [18:48:14]line Смена: 472 ФФД: 1.0 [18:48:14]line ЗНМ: 0300000120 [18:48:14]line РНМ: 0000000000091831 [18:48:14]line Версия ККМ: 001 [18:48:14]line ФМ: 0000000000871830 [18:48:14]line ФД: 115751 [18:48:14]line ФПД: 49425130802941 [18:48:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T184813&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115751&fm=49425130802941&tin=02508201610067®Number=0000000000091831&sum=20900 [18:48:14]line 0 [18:48:14]written 0, free lines is 4095 [18:48:14]OFD Sender: Processing packet 115751 [packets to send 482, broken 481] [18:48:14]ProducePacketName [18:48:14]name=ofd_packets/00115751 [18:48:14]OFD Sender: To server: pG, [18:48:14]CommunicateWithHost lk.salyk.kg:30040 [18:48:14]ConnectInit lk.salyk.kg [18:48:14]Connected sock=10 [18:48: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 38 33 30 F9 01 00 00 6F 30 F1 01 42 AE 5A 03 01 00 03 00 E5 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 ED B7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 27 C4 01 00 35 04 06 00 2C F3 AF 5D 4E FD CB F8 58 5B 16 75 76 28 [18:48:14]Write to MH i2c: 01 00 00 10 06 16 [18:48:14]Write i2c OK [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: 01 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: 01 07 00 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: 01 07 00 10 06 00 00 00 00 00 83 0B AB [18:48:14]RasterBufferAndPrint [18:48:14]line [18:48:14]line [18:48:14]line [18:48:14]line [18:48:14]line [18:48:14]written 0, free lines is 2950 [18:48:14]MH_Cut [18:48:14]Write to MH i2c: D1 01 00 17 06 01 EF [18:48:14]Write i2c OK [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: D1 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: D1 01 00 [18:48:14]MH_I2C_Read... [18:48:14]Read from MH i2c: D1 01 00 17 06 00 EE [18:48:14]Write to MH i2c: 01 00 00 18 06 1E [18:48:14]Write i2c OK [18:48:14]MH_I2C_Read... [18:48:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 95 FC 47 00 2B 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 38 33 30 10 04 04 00 27 C4 01 00 F4 03 04 00 2F 5D F1 66 B6 04 01 00 00 D2 E2 49 19 03 B9 4E 2C [18:48:14]CommunicateWithHost err = 0 [18:48:14]CheckOFDResponse [18:48:14]1017 (14) - 77093643461234 [18:48:14]1041 (16) - 0000000000871830 [18:48:14]1040 (4) - 115751 [18:48:14]1012 (4) - 23.09.2024 12:21 [18:48:14]1206 (1) - 0 [18:48:14]OFD Sender: Remove packet 115751 [18:48:14]ProducePacketName [18:48:14]name=ofd_packets/00115751 [18:48:14]NVStorageDeleteData [18:48:15]OFD Sender: No OFD packet to send [18:48:16]*** Cut start [18:48:16]*** Partial cut [18:48:16]*** CUTSNS_PIN = 1 [18:48:16]*** CUTSNS_PIN = 0 [18:48:16]*** Brake cut motor [18:48:16]Read from MH i2c: 01 [18:48:16]MH_I2C_Read... [18:48:16]*** Stop cut motor [18:48:16]*** Cut end [18:48:16]Read from MH i2c: 01 07 00 [18:48:16]MH_I2C_Read... [18:48:16]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 FF 0F 33 [18:48:16]process_action close_receipt done [18:48:16]requested_data is exist [18:48:16]produce_requested_data [18:48:16]requested_item fm.sn is exist - process it [18:48:16]wFMCommunicate request_size=4 [18:48:16]MH_SAM_APDU [18:48:16]CAPDU: 80 11 00 00 [18:48:16]Write to MH i2c: E2 08 00 19 06 80 11 00 00 00 00 00 00 99 [18:48:16]Write i2c OK [18:48:16]MH_I2C_Read... [18:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:17]Read from MH i2c: E2 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 17 00 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 17 00 19 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E7 [18:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:48:17]wFMCommunicate OK [18:48:17]requested_item fd.num is exist - process it [18:48:17]SAM_PROTO_GetFieldsCounters [18:48:17]wFMCommunicate request_size=4 [18:48:17]MH_SAM_APDU [18:48:17]CAPDU: 80 13 00 00 [18:48:17]Write to MH i2c: E2 08 00 1A 06 80 13 00 00 00 00 00 00 9C [18:48:17]Write i2c OK [18:48:17]MH_I2C_Read... [18:48:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:17]Read from MH i2c: E2 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 62 00 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 62 00 1A 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 27 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [18:48: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 27 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:17]wFMCommunicate OK [18:48:17]SAM_PROTO_GetFieldsCounters done [18:48:17]requested_item shift.num is exist - process it [18:48:17]requested_item shift.opened is exist - process it [18:48:17]req_shift_opened [18:48:17]FM_GetShiftState [18:48:17]SAM_PROTO_GetShiftState [18:48:17]wFMCommunicate request_size=4 [18:48:17]MH_SAM_APDU [18:48:17]CAPDU: 80 13 01 00 [18:48:17]Write to MH i2c: E2 08 00 1B 06 80 13 01 00 00 00 00 00 9E [18:48:17]Write i2c OK [18:48:17]MH_I2C_Read... [18:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:17]Read from MH i2c: E2 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 0E 00 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 0E 00 1B 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 DF [18:48:17]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:48:17]wFMCommunicate OK [18:48:17]SAM_PROTO_GetShiftState done [18:48:17]FM_GetShiftState done [18:48:17]req_shift_opened done [18:48:17]requested_item shift.open_date is exist - process it [18:48:17]req_shift_open_date [18:48:17]req_shift_open_date done [18:48:17]produce_requested_data done [18:48:17]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115751,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:48:17]process_action_free close_receipt [18:48:17]json_value_free [18:48:17]json_value_free done [18:48:17]process_json_proto returns [18:48:17]Send response to host [18:48:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115751,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:48:17]free response buf [18:48:17]execute_script done [18:48:17]execute_script returns [18:48:17]free content buf [18:48:17]Sock 9.Close socket [18:48:17]Sock 9.Thread stoped [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:48:56]accept exits with 8 [18:48:56]New connection [18:48:56]New thread 3067010404 created [18:48:56]Thread 3066867044 joined [18:48:56]Waiting for new connection... [18:48:56] Sock 8.Parse request [18:48:56]Sock 8.Check first char [18:48:56]Sock 8.First char is OK [18:48:56]request: POST /json_proto HTTP/1.0 [18:48:56]Method: POST [18:48:56]URL: /json_proto [18:48:56]Method is POST - this is cgi request [18:48:56]url: /json_proto [18:48:56]query_string will be loaded in cgi processing [18:48:56]execute_cgi json_proto POST (null) [18:48:56]execute_cgi path=json_proto method=POST [18:48:56]POST find Content-Length [18:48:56]Host: 172.17.41.136:8080 [18:48:56]Content-Length: 988 [18:48:56]Content-Type: application/json [18:48:56] [18:48:56]POST finish read [18:48:56]Found Content-Length = 988 [18:48:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344074", "tax_sys" : 0, "items" : [ { "code": "4601025117542", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,5", "price" : 85.00, "quantity" : 3.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:56]execute_script... [18:48:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344074", "tax_sys" : 0, "items" : [ { "code": "4601025117542", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,5", "price" : 85.00, "quantity" : 3.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:56]POST & json_proto [18:48:56]process_json_proto [18:48:56]json parsed OK: [18:48:56]protocol is kg_v1.0 [18:48:56]action value=close_receipt [18:48:56]process_action close_receipt [18:48:56]cmd_close_receipt [18:48:56]MH_GetDate [18:48:56]Write to MH i2c: F0 00 00 1C 06 11 [18:48:56]Write i2c OK [18:48:56]MH_I2C_Read... [18:48:56]Read from MH i2c: F0 [18:48:56]MH_I2C_Read... [18:48:56]Read from MH i2c: F0 09 00 [18:48:56]MH_I2C_Read... [18:48:56]Read from MH i2c: F0 09 00 1C 06 00 1A B8 F1 66 1B D0 5A 64 EC [18:48:56]GetLastDocTimeStamp 1727117293 [18:48:56]current date 1727117338 [18:48:56]FM_GetShiftState [18:48:56]SAM_PROTO_GetShiftState [18:48:56]wFMCommunicate request_size=4 [18:48:56]MH_SAM_APDU [18:48:56]CAPDU: 80 13 01 00 [18:48:56]Write to MH i2c: E2 08 00 1D 06 80 13 01 00 00 00 00 00 A0 [18:48:56]Write i2c OK [18:48:56]MH_I2C_Read... [18:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:56]Read from MH i2c: E2 [18:48:56]MH_I2C_Read... [18:48:56]Read from MH i2c: E2 0E 00 [18:48:56]MH_I2C_Read... [18:48:56]Read from MH i2c: E2 0E 00 1D 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E1 [18:48:56]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:48:56]wFMCommunicate OK [18:48:56]SAM_PROTO_GetShiftState done [18:48:56]FM_GetShiftState done [18:48:56]opened in 1727052070 [18:48:56]opened+sec_in_day 1727138470 [18:48:56]quantity*price = 25500 [18:48:56]sum+1 = 25501 [18:48:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.59 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 235 23.09.2024 18:48 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115752 ФПД: 85925082056321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T184858&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115752&fm=85925082056321&tin=02508201610067®Number=0000000000091831&sum=40500 0 [18:48:58]StoreToDocumentArchive [18:48:58]shift 472 fd 115752 [18:48:58]save to /storage/0472/doc_00115752 [18:48:58]save last doc name /storage/0472/doc_00115752 to /storage/kkm_last_doc_name [18:48:58]save OK [18:48:58]Clear old archive folders... [18:48:58]ProcessDocumentItem done err = 0, tmpTLVsize=415 [18:48:58]tlvbuf is 0114ECD0 [18:48:58]SAM_PROTO_ClearQueue [18:48:58]wFMCommunicate request_size=4 [18:48:58]MH_SAM_APDU [18:48:58]CAPDU: 80 09 00 00 [18:48:58]Write to MH i2c: E2 08 00 2A 06 80 09 00 00 00 00 00 00 A2 [18:48:58]Write i2c OK [18:48:58]MH_I2C_Read... [18:48:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:58]Read from MH i2c: E2 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 03 00 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 03 00 2A 06 00 90 00 A4 [18:48:58]RAPDU: 90 00 [18:48:58]wFMCommunicate OK [18:48:58]SAM_PROTO_ClearQueue done [18:48:58]KKMCreateOFDPacket [18:48:58]OFDProtocolAddRootSTLVToBuf [18:48:58]FM_MakeSignedData [18:48:58]FM_MakeSignedData [18:48:58]SAM_PROTO_SignData [18:48:58]wFMCommunicate request_size=4 [18:48:58]MH_SAM_APDU [18:48:58]CAPDU: 80 0D 01 02 [18:48:58]Write to MH i2c: E2 08 00 2B 06 80 0D 01 02 00 00 00 00 AA [18:48:58]Write i2c OK [18:48:58]MH_I2C_Read... [18:48:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:58]Read from MH i2c: E2 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 03 00 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 03 00 2B 06 00 90 00 A5 [18:48:58]RAPDU: 90 00 [18:48:58]wFMCommunicate OK [18:48:58]wFMCommunicate request_size=255 [18:48:58]MH_SAM_APDU [18:48:58]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [18:48:58]Write to MH i2c: E2 02 01 2C 06 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 47 [18:48:58]Write i2c OK [18:48:58]MH_I2C_Read... [18:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:58]Read from MH i2c: E2 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 03 00 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 03 00 2C 06 00 90 00 A6 [18:48:58]RAPDU: 90 00 [18:48:58]wFMCommunicate OK [18:48:58]wFMCommunicate request_size=174 [18:48:58]MH_SAM_APDU [18:48:58]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 1A B8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 28 C4 01 00 35 04 06 00 4E 25 FD FE 46 81 [18:48:58]Write to MH i2c: E2 B1 00 2D 06 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 1A B8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 28 C4 01 00 35 04 06 00 4E 25 FD FE 46 81 00 00 37 [18:48:58]Write i2c OK [18:48:58]MH_I2C_Read... [18:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:58]Read from MH i2c: E2 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 03 00 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 03 00 2D 06 00 90 00 A7 [18:48:58]RAPDU: 90 00 [18:48:58]wFMCommunicate OK [18:48:58]wFMCommunicate request_size=4 [18:48:58]MH_SAM_APDU [18:48:58]CAPDU: 80 0D 03 02 [18:48:58]Write to MH i2c: E2 08 00 2E 06 80 0D 03 02 00 00 00 00 AF [18:48:58]Write i2c OK [18:48:58]MH_I2C_Read... [18:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:58]Read from MH i2c: E2 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 0B 00 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 0B 00 2E 06 00 88 1F 83 71 D5 91 7F AD 90 00 DD [18:48:58]RAPDU: 88 1F 83 71 D5 91 7F AD 90 00 [18:48:58]wFMCommunicate OK [18:48:58]SAM_PROTO_SignData done [18:48:58]FM_MakeSignedData done [18:48:58]CreateOFDProtocolMessage [18:48:58]wFMCommunicate request_size=4 [18:48:58]MH_SAM_APDU [18:48:58]CAPDU: 80 11 00 00 [18:48:58]Write to MH i2c: E2 08 00 2F 06 80 11 00 00 00 00 00 00 AF [18:48:58]Write i2c OK [18:48:58]MH_I2C_Read... [18:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:58]Read from MH i2c: E2 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 17 00 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: E2 17 00 2F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FD [18:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:48:58]wFMCommunicate OK [18:48:58]CreateOFDProtocolMessage done [18:48:58]OFDSenderStorePacket 115752 [18:48:58]StoreOFDPacket docnum=115752 [18:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B3 01 00 00 97 1E AB 01 F2 D8 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 1A B8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 28 C4 01 00 35 04 06 00 4E 25 FD FE 46 81 88 1F 83 71 D5 91 7F AD [18:48:58]CheckFolder [18:48:58]dirname=/storage/ofd_packets [18:48:58]CheckFolder done [18:48:58]ProducePacketName [18:48:58]name=ofd_packets/00115752 [18:48:58]NVStorageSaveData ofd_packets/00115752 [18:48:58]File name is /storage/ofd_packets/00115752 [18:48:58]Write 465 bytes [18:48:58]NVStorageSaveData done [18:48:58]OFDSenderStorePacket done [18:48:58]KKMCreateOFDPacket done [18:48:58]NVStorageSaveData kkm_last_timestamp [18:48:58]File name is /storage/kkm_last_timestamp [18:48:58]Write 4 bytes [18:48:58]NVStorageSaveData done [18:48:58]ExternCall_PrintAddStr [18:48:58]wPrintStart [18:48:58]Write to MH i2c: 01 00 00 30 06 36 [18:48:58]Write i2c OK [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: 01 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: 01 07 00 [18:48:58]MH_I2C_Read... [18:48:58]Read from MH i2c: 01 07 00 30 06 00 00 00 00 00 FF 0F 4B [18:48:59]RasterBufferAndPrint [18:48:59]line Счет N : (3)344074 [18:48:59]line ИНН: 02508201610067 [18:48:59]line Контрольно-Кассовый Чек [18:48:59]line ПРОДАЖА [18:48:59]line Товар: 4601025117542 [18:48:59]line Напиток Фрутмотив тропический микс 0,5 [18:48:59]line 3.000 * 85.00 [18:48:59]line = 255.00 [18:48:59]line НДС 12% НСП 1% [18:48:59]line > о реализуемом товаре [18:48:59]line Товар: 4640030091645 [18:48:59]line Сигареты ESSE Exchange M [18:48:59]line 1.000 * 150.00 [18:48:59]line = 150.00 [18:48:59]line НДС 12% НСП 1% [18:48:59]line > о реализуемом товаре [18:48:59]line ИТОГО: 405.00 [18:48:59]line НСП 1% : 3.59 [18:48:59]line НДС 12% : 43.01 [18:48:59]line Наличными: 405.00 [18:48:59]line Безнал.: 0.00 [18:48:59]line Место: АЗС № 90 "Партнер Нефть" [18:48:59]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:48:59]line СНО: Общий режим [18:48:59]line Чек 235 23.09.2024 18:48 [18:48:59]line Смена: 472 ФФД: 1.0 [18:48:59]line ЗНМ: 0300000120 [18:48:59]line РНМ: 0000000000091831 [18:48:59]line Версия ККМ: 001 [18:48:59]line ФМ: 0000000000871830 [18:48:59]line ФД: 115752 [18:48:59]line ФПД: 85925082056321 [18:48:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T184858&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115752&fm=85925082056321&tin=02508201610067®Number=0000000000091831&sum=40500 [18:48:59]line 0 [18:48:59]OFD Sender: Processing packet 115752 [packets to send 482, broken 481] [18:48:59]ProducePacketName [18:48:59]name=ofd_packets/00115752 [18:48:59]OFD Sender: To server: pG, [18:48:59]CommunicateWithHost lk.salyk.kg:30040 [18:48:59]ConnectInit lk.salyk.kg [18:48:59]written 0, free lines is 4095 [18:48:59]Connected sock=10 [18:48:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B3 01 00 00 97 1E AB 01 F2 D8 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 1A B8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 28 C4 01 00 35 04 06 00 4E 25 FD FE 46 81 88 1F 83 71 D5 91 7F AD [18:48:59]Write to MH i2c: 01 00 00 5E 06 64 [18:48:59]Write i2c OK [18:48:59]MH_I2C_Read... [18:48:59]Read from MH i2c: 01 [18:48:59]MH_I2C_Read... [18:48:59]Read from MH i2c: 01 07 00 [18:48:59]MH_I2C_Read... [18:48:59]Read from MH i2c: 01 07 00 5E 06 00 00 00 00 00 F5 0B 6B [18:48:59]RasterBufferAndPrint [18:48:59]line [18:48:59]line [18:48:59]line [18:48:59]line [18:48:59]line [18:48:59]written 0, free lines is 3065 [18:48:59]MH_Cut [18:48:59]Write to MH i2c: D1 01 00 65 06 01 3D [18:48:59]Write i2c OK [18:48:59]MH_I2C_Read... [18:48:59]Read from MH i2c: D1 [18:48:59]MH_I2C_Read... [18:48:59]Read from MH i2c: D1 01 00 [18:48:59]MH_I2C_Read... [18:48:59]Read from MH i2c: D1 01 00 65 06 00 3C [18:48:59]Write to MH i2c: 01 00 00 66 06 6C [18:48:59]Write i2c OK [18:48:59]MH_I2C_Read... [18:48:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0F 56 47 00 D2 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 38 33 30 10 04 04 00 28 C4 01 00 F4 03 04 00 5C 5D F1 66 B6 04 01 00 00 7B 7E A8 69 83 15 2C 03 [18:48:59]CommunicateWithHost err = 0 [18:48:59]CheckOFDResponse [18:48:59]1017 (14) - 77093643461234 [18:48:59]1041 (16) - 0000000000871830 [18:48:59]1040 (4) - 115752 [18:48:59]1012 (4) - 23.09.2024 12:21 [18:48:59]1206 (1) - 0 [18:48:59]OFD Sender: Remove packet 115752 [18:48:59]ProducePacketName [18:48:59]name=ofd_packets/00115752 [18:48:59]NVStorageDeleteData [18:49:00]OFD Sender: No OFD packet to send [18:49:01]*** Cut start [18:49:01]*** Partial cut [18:49:01]*** CUTSNS_PIN = 1 [18:49:01]*** CUTSNS_PIN = 0 [18:49:01]*** Brake cut motor [18:49:01]Read from MH i2c: 01 [18:49:01]MH_I2C_Read... [18:49:01]*** Stop cut motor [18:49:01]*** Cut end [18:49:01]Read from MH i2c: 01 07 00 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: 01 07 00 66 06 00 00 00 00 00 FF 0F 81 [18:49:01]process_action close_receipt done [18:49:01]requested_data is exist [18:49:01]produce_requested_data [18:49:01]requested_item fm.sn is exist - process it [18:49:01]wFMCommunicate request_size=4 [18:49:01]MH_SAM_APDU [18:49:01]CAPDU: 80 11 00 00 [18:49:01]Write to MH i2c: E2 08 00 67 06 80 11 00 00 00 00 00 00 E7 [18:49:01]Write i2c OK [18:49:01]MH_I2C_Read... [18:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:01]Read from MH i2c: E2 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 17 00 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 17 00 67 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 35 [18:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:49:01]wFMCommunicate OK [18:49:01]requested_item fd.num is exist - process it [18:49:01]SAM_PROTO_GetFieldsCounters [18:49:01]wFMCommunicate request_size=4 [18:49:01]MH_SAM_APDU [18:49:01]CAPDU: 80 13 00 00 [18:49:01]Write to MH i2c: E2 08 00 68 06 80 13 00 00 00 00 00 00 EA [18:49:01]Write i2c OK [18:49:01]MH_I2C_Read... [18:49:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:01]Read from MH i2c: E2 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 62 00 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 62 00 68 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 28 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [18:49:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 28 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:01]wFMCommunicate OK [18:49:01]SAM_PROTO_GetFieldsCounters done [18:49:01]requested_item shift.num is exist - process it [18:49:01]requested_item shift.opened is exist - process it [18:49:01]req_shift_opened [18:49:01]FM_GetShiftState [18:49:01]SAM_PROTO_GetShiftState [18:49:01]wFMCommunicate request_size=4 [18:49:01]MH_SAM_APDU [18:49:01]CAPDU: 80 13 01 00 [18:49:01]Write to MH i2c: E2 08 00 69 06 80 13 01 00 00 00 00 00 EC [18:49:01]Write i2c OK [18:49:01]MH_I2C_Read... [18:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:01]Read from MH i2c: E2 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 0E 00 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 0E 00 69 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 2D [18:49:01]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:49:01]wFMCommunicate OK [18:49:01]SAM_PROTO_GetShiftState done [18:49:01]FM_GetShiftState done [18:49:01]req_shift_opened done [18:49:01]requested_item shift.open_date is exist - process it [18:49:01]req_shift_open_date [18:49:01]req_shift_open_date done [18:49:01]produce_requested_data done [18:49:01]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115752,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:49:01]process_action_free close_receipt [18:49:01]json_value_free [18:49:01]json_value_free done [18:49:01]process_json_proto returns [18:49:01]Send response to host [18:49:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115752,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:49:01]free response buf [18:49:01]execute_script done [18:49:01]execute_script returns [18:49:01]free content buf [18:49:01]Sock 8.Close socket [18:49:01]Sock 8.Thread stoped [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:16]accept exits with 9 [18:53:16]New connection [18:53:16]New thread 3066867044 created [18:53:16]Thread 3067010404 joined [18:53:16]Waiting for new connection... [18:53:16] Sock 9.Parse request [18:53:16]Sock 9.Check first char [18:53:16]Sock 9.First char is OK [18:53:16]request: POST /json_proto HTTP/1.0 [18:53:16]Method: POST [18:53:16]URL: /json_proto [18:53:16]Method is POST - this is cgi request [18:53:16]url: /json_proto [18:53:16]query_string will be loaded in cgi processing [18:53:16]execute_cgi json_proto POST (null) [18:53:16]execute_cgi path=json_proto method=POST [18:53:16]POST find Content-Length [18:53:16]Host: 172.17.41.136:8080 [18:53:16]Content-Length: 957 [18:53:16]Content-Type: application/json [18:53:16] [18:53:16]POST finish read [18:53:16]Found Content-Length = 957 [18:53:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344075", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:16]execute_script... [18:53:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344075", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:16]POST & json_proto [18:53:16]process_json_proto [18:53:16]json parsed OK: [18:53:16]protocol is kg_v1.0 [18:53:16]action value=close_receipt [18:53:16]process_action close_receipt [18:53:16]cmd_close_receipt [18:53:16]MH_GetDate [18:53:16]Write to MH i2c: F0 00 00 6A 06 5F [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: F0 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: F0 09 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: F0 09 00 6A 06 00 1E B9 F1 66 1B D0 5A 64 3F [18:53:16]GetLastDocTimeStamp 1727117338 [18:53:16]current date 1727117598 [18:53:16]FM_GetShiftState [18:53:16]SAM_PROTO_GetShiftState [18:53:16]wFMCommunicate request_size=4 [18:53:16]MH_SAM_APDU [18:53:16]CAPDU: 80 13 01 00 [18:53:16]Write to MH i2c: E2 08 00 6B 06 80 13 01 00 00 00 00 00 EE [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:16]Read from MH i2c: E2 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 0E 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 0E 00 6B 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 2F [18:53:16]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:53:16]wFMCommunicate OK [18:53:16]SAM_PROTO_GetShiftState done [18:53:16]FM_GetShiftState done [18:53:16]opened in 1727052070 [18:53:16]opened+sec_in_day 1727138470 [18:53:16]quantity*price = 3000 [18:53:16]sum+1 = 3001 [18:53:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571535 Вода ASU пит н.газ персик ПЭТ 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.83 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 236 23.09.2024 18:53 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115753 ФПД: 89193505721640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T185318&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115753&fm=89193505721640&tin=02508201610067®Number=0000000000091831&sum=9500 0 [18:53:18]StoreToDocumentArchive [18:53:18]shift 472 fd 115753 [18:53:18]save to /storage/0472/doc_00115753 [18:53:18]save last doc name /storage/0472/doc_00115753 to /storage/kkm_last_doc_name [18:53:18]save OK [18:53:18]Clear old archive folders... [18:53:18]ProcessDocumentItem done err = 0, tmpTLVsize=404 [18:53:18]tlvbuf is 0114E840 [18:53:18]SAM_PROTO_ClearQueue [18:53:18]wFMCommunicate request_size=4 [18:53:18]MH_SAM_APDU [18:53:18]CAPDU: 80 09 00 00 [18:53:18]Write to MH i2c: E2 08 00 78 06 80 09 00 00 00 00 00 00 F0 [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:18]Read from MH i2c: E2 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 03 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 03 00 78 06 00 90 00 F2 [18:53:18]RAPDU: 90 00 [18:53:18]wFMCommunicate OK [18:53:18]SAM_PROTO_ClearQueue done [18:53:18]KKMCreateOFDPacket [18:53:18]OFDProtocolAddRootSTLVToBuf [18:53:18]FM_MakeSignedData [18:53:18]FM_MakeSignedData [18:53:18]SAM_PROTO_SignData [18:53:18]wFMCommunicate request_size=4 [18:53:18]MH_SAM_APDU [18:53:18]CAPDU: 80 0D 01 02 [18:53:18]Write to MH i2c: E2 08 00 79 06 80 0D 01 02 00 00 00 00 F8 [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:18]Read from MH i2c: E2 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 03 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 03 00 79 06 00 90 00 F3 [18:53:18]RAPDU: 90 00 [18:53:18]wFMCommunicate OK [18:53:18]wFMCommunicate request_size=255 [18:53:18]MH_SAM_APDU [18:53:18]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 [18:53:18]Write to MH i2c: E2 02 01 7A 06 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 0D [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:18]Read from MH i2c: E2 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 03 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 03 00 7A 06 00 90 00 F4 [18:53:18]RAPDU: 90 00 [18:53:18]wFMCommunicate OK [18:53:18]wFMCommunicate request_size=163 [18:53:18]MH_SAM_APDU [18:53:18]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 1E B9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 29 C4 01 00 35 04 06 00 51 1E FB 39 8D 28 [18:53:18]Write to MH i2c: E2 A6 00 7B 06 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 1E B9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 29 C4 01 00 35 04 06 00 51 1E FB 39 8D 28 00 00 2D [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:18]Read from MH i2c: E2 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 03 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 03 00 7B 06 00 90 00 F5 [18:53:18]RAPDU: 90 00 [18:53:18]wFMCommunicate OK [18:53:18]wFMCommunicate request_size=4 [18:53:18]MH_SAM_APDU [18:53:18]CAPDU: 80 0D 03 02 [18:53:18]Write to MH i2c: E2 08 00 7C 06 80 0D 03 02 00 00 00 00 FD [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:18]Read from MH i2c: E2 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 0B 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 0B 00 7C 06 00 C3 14 44 60 FC 27 AA D5 90 00 1B [18:53:18]RAPDU: C3 14 44 60 FC 27 AA D5 90 00 [18:53:18]wFMCommunicate OK [18:53:18]SAM_PROTO_SignData done [18:53:18]FM_MakeSignedData done [18:53:18]CreateOFDProtocolMessage [18:53:18]wFMCommunicate request_size=4 [18:53:18]MH_SAM_APDU [18:53:18]CAPDU: 80 11 00 00 [18:53:18]Write to MH i2c: E2 08 00 7D 06 80 11 00 00 00 00 00 00 FD [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:18]Read from MH i2c: E2 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 17 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 17 00 7D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4B [18:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:53:18]wFMCommunicate OK [18:53:18]CreateOFDProtocolMessage done [18:53:18]OFDSenderStorePacket 115753 [18:53:18]StoreOFDPacket docnum=115753 [18:53:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A8 01 00 00 A9 34 A0 01 75 C8 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 1E B9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 29 C4 01 00 35 04 06 00 51 1E FB 39 8D 28 C3 14 44 60 FC 27 AA D5 [18:53:18]CheckFolder [18:53:18]dirname=/storage/ofd_packets [18:53:18]CheckFolder done [18:53:18]ProducePacketName [18:53:18]name=ofd_packets/00115753 [18:53:18]NVStorageSaveData ofd_packets/00115753 [18:53:18]File name is /storage/ofd_packets/00115753 [18:53:18]Write 454 bytes [18:53:18]NVStorageSaveData done [18:53:18]OFDSenderStorePacket done [18:53:18]KKMCreateOFDPacket done [18:53:18]NVStorageSaveData kkm_last_timestamp [18:53:18]File name is /storage/kkm_last_timestamp [18:53:18]Write 4 bytes [18:53:18]NVStorageSaveData done [18:53:18]ExternCall_PrintAddStr [18:53:18]wPrintStart [18:53:18]Write to MH i2c: 01 00 00 7E 06 84 [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: 01 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: 01 07 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: 01 07 00 7E 06 00 00 00 00 00 FF 0F 99 [18:53:18]RasterBufferAndPrint [18:53:19]line Счет N : (3)344075 [18:53:19]line ИНН: 02508201610067 [18:53:19]line Контрольно-Кассовый Чек [18:53:19]line ПРОДАЖА [18:53:19]line Товар: 4700000310173 [18:53:19]line Вода Адыгене 0,5л б/г [18:53:19]line 1.000 * 30.00 [18:53:19]line = 30.00 [18:53:19]line НДС 12% НСП 1% [18:53:19]line > о реализуемом товаре [18:53:19]line Товар: 4870001571535 [18:53:19]line Вода ASU пит н.газ персик ПЭТ 0,5л [18:53:19]line 1.000 * 65.00 [18:53:19]line = 65.00 [18:53:19]line НДС 12% НСП 1% [18:53:19]line > о реализуемом товаре [18:53:19]line ИТОГО: 95.00 [18:53:19]line НСП 1% : 0.83 [18:53:19]line НДС 12% : 10.09 [18:53:19]line Наличными: 95.00 [18:53:19]line Безнал.: 0.00 [18:53:19]line Место: АЗС № 90 "Партнер Нефть" [18:53:19]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:53:19]line СНО: Общий режим [18:53:19]line Чек 236 23.09.2024 18:53 [18:53:19]line Смена: 472 ФФД: 1.0 [18:53:19]line ЗНМ: 0300000120 [18:53:19]line РНМ: 0000000000091831 [18:53:19]line Версия ККМ: 001 [18:53:19]line ФМ: 0000000000871830 [18:53:19]line ФД: 115753 [18:53:19]line ФПД: 89193505721640 [18:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T185318&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115753&fm=89193505721640&tin=02508201610067®Number=0000000000091831&sum=9500 [18:53:19]line 0 [18:53:19]OFD Sender: Processing packet 115753 [packets to send 482, broken 481] [18:53:19]ProducePacketName [18:53:19]name=ofd_packets/00115753 [18:53:19]OFD Sender: To server: pG, [18:53:19]CommunicateWithHost lk.salyk.kg:30040 [18:53:19]ConnectInit lk.salyk.kg [18:53:19]written 0, free lines is 4095 [18:53:19]Connected sock=10 [18:53: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 38 33 30 A8 01 00 00 A9 34 A0 01 75 C8 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 1E B9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 29 C4 01 00 35 04 06 00 51 1E FB 39 8D 28 C3 14 44 60 FC 27 AA D5 [18:53:19]Write to MH i2c: 01 00 00 AC 06 B2 [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: 01 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: 01 07 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: 01 07 00 AC 06 00 00 00 00 00 F8 0B BC [18:53:19]RasterBufferAndPrint [18:53:19]line [18:53:19]line [18:53:19]line [18:53:19]line [18:53:19]line [18:53:19]written 0, free lines is 3066 [18:53:19]MH_Cut [18:53:19]Write to MH i2c: D1 01 00 B3 06 01 8B [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: D1 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: D1 01 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: D1 01 00 B3 06 00 8A [18:53:19]Write to MH i2c: 01 00 00 B4 06 BA [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 76 AB 47 00 71 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 38 33 30 10 04 04 00 29 C4 01 00 F4 03 04 00 60 5E F1 66 B6 04 01 00 00 5B 82 D5 D6 4B F4 3E 9F [18:53:19]CommunicateWithHost err = 0 [18:53:19]CheckOFDResponse [18:53:19]1017 (14) - 77093643461234 [18:53:19]1041 (16) - 0000000000871830 [18:53:19]1040 (4) - 115753 [18:53:19]1012 (4) - 23.09.2024 12:26 [18:53:19]1206 (1) - 0 [18:53:19]OFD Sender: Remove packet 115753 [18:53:19]ProducePacketName [18:53:19]name=ofd_packets/00115753 [18:53:19]NVStorageDeleteData [18:53:20]OFD Sender: No OFD packet to send [18:53:21]*** Cut start [18:53:21]*** Partial cut [18:53:21]*** CUTSNS_PIN = 1 [18:53:21]*** CUTSNS_PIN = 0 [18:53:21]*** Brake cut motor [18:53:21]Read from MH i2c: 01 [18:53:21]MH_I2C_Read... [18:53:21]*** Stop cut motor [18:53:21]*** Cut end [18:53:21]Read from MH i2c: 01 07 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: 01 07 00 B4 06 00 00 00 00 00 FF 0F CF [18:53:21]process_action close_receipt done [18:53:21]requested_data is exist [18:53:21]produce_requested_data [18:53:21]requested_item fm.sn is exist - process it [18:53:21]wFMCommunicate request_size=4 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 11 00 00 [18:53:21]Write to MH i2c: E2 08 00 B5 06 80 11 00 00 00 00 00 00 35 [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 17 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 17 00 B5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 83 [18:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:53:21]wFMCommunicate OK [18:53:21]requested_item fd.num is exist - process it [18:53:21]SAM_PROTO_GetFieldsCounters [18:53:21]wFMCommunicate request_size=4 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 13 00 00 [18:53:21]Write to MH i2c: E2 08 00 B6 06 80 13 00 00 00 00 00 00 38 [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 62 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 62 00 B6 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 29 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [18:53: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 29 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:21]wFMCommunicate OK [18:53:21]SAM_PROTO_GetFieldsCounters done [18:53:21]requested_item shift.num is exist - process it [18:53:21]requested_item shift.opened is exist - process it [18:53:21]req_shift_opened [18:53:21]FM_GetShiftState [18:53:21]SAM_PROTO_GetShiftState [18:53:21]wFMCommunicate request_size=4 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 13 01 00 [18:53:21]Write to MH i2c: E2 08 00 B7 06 80 13 01 00 00 00 00 00 3A [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 0E 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 0E 00 B7 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7B [18:53:21]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:53:21]wFMCommunicate OK [18:53:21]SAM_PROTO_GetShiftState done [18:53:21]FM_GetShiftState done [18:53:21]req_shift_opened done [18:53:21]requested_item shift.open_date is exist - process it [18:53:21]req_shift_open_date [18:53:21]req_shift_open_date done [18:53:21]produce_requested_data done [18:53:21]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115753,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:53:21]process_action_free close_receipt [18:53:21]json_value_free [18:53:21]json_value_free done [18:53:21]process_json_proto returns [18:53:21]Send response to host [18:53:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115753,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:53:21]free response buf [18:53:21]execute_script done [18:53:21]execute_script returns [18:53:21]free content buf [18:53:21]Sock 9.Close socket [18:53:21]Sock 9.Thread stoped [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:34]accept exits with 8 [18:54:34]New connection [18:54:34]New thread 3067010404 created [18:54:34]Thread 3066867044 joined [18:54:34]Waiting for new connection... [18:54:34] Sock 8.Parse request [18:54:34]Sock 8.Check first char [18:54:34]Sock 8.First char is OK [18:54:34]request: POST /json_proto HTTP/1.0 [18:54:34]Method: POST [18:54:34]URL: /json_proto [18:54:34]Method is POST - this is cgi request [18:54:34]url: /json_proto [18:54:34]query_string will be loaded in cgi processing [18:54:34]execute_cgi json_proto POST (null) [18:54:34]execute_cgi path=json_proto method=POST [18:54:34]POST find Content-Length [18:54:34]Host: 172.17.41.136:8080 [18:54:34]Content-Length: 684 [18:54:34]Content-Type: application/json [18:54:34] [18:54:34]POST finish read [18:54:34]Found Content-Length = 684 [18:54:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:34]execute_script... [18:54: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)24617959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:34]POST & json_proto [18:54:34]process_json_proto [18:54:34]json parsed OK: [18:54:34]protocol is kg_v1.0 [18:54:34]action value=close_receipt [18:54:34]process_action close_receipt [18:54:34]cmd_close_receipt [18:54:34]MH_GetDate [18:54:34]Write to MH i2c: F0 00 00 B8 06 AD [18:54:34]Write i2c OK [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: F0 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: F0 09 00 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: F0 09 00 B8 06 00 6C B9 F1 66 1B D0 5A 64 DB [18:54:34]GetLastDocTimeStamp 1727117598 [18:54:34]current date 1727117676 [18:54:34]FM_GetShiftState [18:54:34]SAM_PROTO_GetShiftState [18:54:34]wFMCommunicate request_size=4 [18:54:34]MH_SAM_APDU [18:54:34]CAPDU: 80 13 01 00 [18:54:34]Write to MH i2c: E2 08 00 B9 06 80 13 01 00 00 00 00 00 3C [18:54:35]Write i2c OK [18:54:35]MH_I2C_Read... [18:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:35]Read from MH i2c: E2 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 0E 00 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 0E 00 B9 06 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7D [18:54:35]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:54:35]wFMCommunicate OK [18:54:35]SAM_PROTO_GetShiftState done [18:54:35]FM_GetShiftState done [18:54:35]opened in 1727052070 [18:54:35]opened+sec_in_day 1727138470 [18:54:35]quantity*price = 100005 [18:54:35]sum+1 = 100006 [18:54:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 237 23.09.2024 18:54 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115754 ФПД: 155430368861157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T185436&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115754&fm=155430368861157&tin=02508201610067®Number=0000000000091831&sum=100000 [18:54:36]StoreToDocumentArchive [18:54:36]shift 472 fd 115754 [18:54:36]save to /storage/0472/doc_00115754 [18:54:36]save last doc name /storage/0472/doc_00115754 to /storage/kkm_last_doc_name [18:54:36]save OK [18:54:36]Clear old archive folders... [18:54:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:36]tlvbuf is 01165AB0 [18:54:36]SAM_PROTO_ClearQueue [18:54:36]wFMCommunicate request_size=4 [18:54:36]MH_SAM_APDU [18:54:36]CAPDU: 80 09 00 00 [18:54:36]Write to MH i2c: E2 08 00 C6 06 80 09 00 00 00 00 00 00 3E [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:36]Read from MH i2c: E2 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 03 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 03 00 C6 06 00 90 00 40 [18:54:36]RAPDU: 90 00 [18:54:36]wFMCommunicate OK [18:54:36]SAM_PROTO_ClearQueue done [18:54:36]KKMCreateOFDPacket [18:54:36]OFDProtocolAddRootSTLVToBuf [18:54:36]FM_MakeSignedData [18:54:36]FM_MakeSignedData [18:54:36]SAM_PROTO_SignData [18:54:36]wFMCommunicate request_size=4 [18:54:36]MH_SAM_APDU [18:54:36]CAPDU: 80 0D 01 02 [18:54:36]Write to MH i2c: E2 08 00 C7 06 80 0D 01 02 00 00 00 00 46 [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:36]Read from MH i2c: E2 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 03 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 03 00 C7 06 00 90 00 41 [18:54:36]RAPDU: 90 00 [18:54:36]wFMCommunicate OK [18:54:36]wFMCommunicate request_size=255 [18:54:36]MH_SAM_APDU [18:54:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 6C B9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2A C4 01 00 35 04 06 00 8D [18:54:36]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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 6C B9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2A C4 01 00 35 04 06 00 8D 00 00 0A [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:36]Read from MH i2c: E2 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 03 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 03 00 C8 06 00 90 00 42 [18:54:36]RAPDU: 90 00 [18:54:36]wFMCommunicate OK [18:54:36]wFMCommunicate request_size=10 [18:54:36]MH_SAM_APDU [18:54:36]CAPDU: 80 0D 02 02 05 5C F3 EC 5B E5 [18:54:36]Write to MH i2c: E2 0D 00 C9 06 80 0D 02 02 05 00 5C F3 EC 5B E5 00 00 CE [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:36]Read from MH i2c: E2 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 03 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 03 00 C9 06 00 90 00 43 [18:54:36]RAPDU: 90 00 [18:54:36]wFMCommunicate OK [18:54:36]wFMCommunicate request_size=4 [18:54:36]MH_SAM_APDU [18:54:36]CAPDU: 80 0D 03 02 [18:54:36]Write to MH i2c: E2 08 00 CA 06 80 0D 03 02 00 00 00 00 4B [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:36]Read from MH i2c: E2 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 0B 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 0B 00 CA 06 00 8D 8E 2B 62 AF 4C 75 71 90 00 D5 [18:54:36]RAPDU: 8D 8E 2B 62 AF 4C 75 71 90 00 [18:54:36]wFMCommunicate OK [18:54:36]SAM_PROTO_SignData done [18:54:36]FM_MakeSignedData done [18:54:36]CreateOFDProtocolMessage [18:54:36]wFMCommunicate request_size=4 [18:54:36]MH_SAM_APDU [18:54:36]CAPDU: 80 11 00 00 [18:54:36]Write to MH i2c: E2 08 00 CB 06 80 11 00 00 00 00 00 00 4B [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:36]Read from MH i2c: E2 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 17 00 [18:54:36]MH_I2C_Read... [18:54:36]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 38 33 30 90 00 99 [18:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:54:36]wFMCommunicate OK [18:54:36]CreateOFDProtocolMessage done [18:54:36]OFDSenderStorePacket 115754 [18:54:36]StoreOFDPacket docnum=115754 [18:54:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 4F D6 07 01 BD 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 6C B9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2A C4 01 00 35 04 06 00 8D 5C F3 EC 5B E5 8D 8E 2B 62 AF 4C 75 71 [18:54:36]CheckFolder [18:54:36]dirname=/storage/ofd_packets [18:54:36]CheckFolder done [18:54:36]ProducePacketName [18:54:36]name=ofd_packets/00115754 [18:54:36]NVStorageSaveData ofd_packets/00115754 [18:54:36]File name is /storage/ofd_packets/00115754 [18:54:36]Write 301 bytes [18:54:36]NVStorageSaveData done [18:54:36]OFDSenderStorePacket done [18:54:36]KKMCreateOFDPacket done [18:54:36]NVStorageSaveData kkm_last_timestamp [18:54:36]File name is /storage/kkm_last_timestamp [18:54:36]Write 4 bytes [18:54:36]NVStorageSaveData done [18:54:36]ExternCall_PrintAddStr [18:54:36]wPrintStart [18:54:36]Write to MH i2c: 01 00 00 CC 06 D2 [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: 01 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: 01 07 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: 01 07 00 CC 06 00 00 00 00 00 FF 0F E7 [18:54:36]RasterBufferAndPrint [18:54:36]line Счет N : (1)24617959 [18:54:36]line ИНН: 02508201610067 [18:54:36]line Контрольно-Кассовый Чек [18:54:36]line ПРОДАЖА [18:54:36]line ТРК (МРК, ГНК) : 33 [18:54:36]line Товар: 2710124130 [18:54:36]line Аи-92-К-5 [18:54:36]line 14.750 * 67.80 [18:54:36]line = 1000.05 [18:54:36]line НДС 12% НСП 1% [18:54:36]line > о реализуемом товаре [18:54:36]line ОКРУГЛЕНИЕ: -0.05 [18:54:36]line ИТОГО: 1000.00 [18:54:36]line Внесено: 1000.00 [18:54:36]line СДАЧА: 0.00 [18:54:36]line НСП 1% : 8.85 [18:54:36]line НДС 12% : 106.20 [18:54:36]line Наличными: 1000.00 [18:54:36]line Безнал.: 0.00 [18:54:36]line Место: АЗС № 90 "Партнер Нефть" [18:54:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:54:36]line СНО: Общий режим [18:54:36]line Чек 237 23.09.2024 18:54 [18:54:36]line Смена: 472 ФФД: 1.0 [18:54:36]line ЗНМ: 0300000120 [18:54:36]line РНМ: 0000000000091831 [18:54:36]line Версия ККМ: 001 [18:54:36]line ФМ: 0000000000871830 [18:54:36]line ФД: 115754 [18:54:36]line ФПД: 155430368861157 [18:54:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T185436&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115754&fm=155430368861157&tin=02508201610067®Number=0000000000091831&sum=100000 [18:54:36]written 0, free lines is 4095 [18:54:36]OFD Sender: Processing packet 115754 [packets to send 482, broken 481] [18:54:36]ProducePacketName [18:54:36]name=ofd_packets/00115754 [18:54:36]OFD Sender: To server: pG, [18:54:36]CommunicateWithHost lk.salyk.kg:30040 [18:54:36]ConnectInit lk.salyk.kg [18:54:36]Connected sock=9 [18:54: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 38 33 30 0F 01 00 00 4F D6 07 01 BD 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 6C B9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2A C4 01 00 35 04 06 00 8D 5C F3 EC 5B E5 8D 8E 2B 62 AF 4C 75 71 [18:54:37]Write to MH i2c: 01 00 00 F6 06 FC [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: 01 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: 01 07 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: 01 07 00 F6 06 00 00 00 00 00 57 0C 66 [18:54:37]RasterBufferAndPrint [18:54:37]line [18:54:37]line [18:54:37]line [18:54:37]line [18:54:37]line [18:54:37]written 0, free lines is 3166 [18:54:37]MH_Cut [18:54:37]Write to MH i2c: D1 01 00 FD 06 01 D5 [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: D1 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: D1 01 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: D1 01 00 FD 06 00 D4 [18:54:37]Write to MH i2c: 01 00 00 FE 06 04 [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 72 88 47 00 04 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 38 33 30 10 04 04 00 2A C4 01 00 F4 03 04 00 AD 5E F1 66 B6 04 01 00 00 85 8B 3C 57 BC 04 16 70 [18:54:37]CommunicateWithHost err = 0 [18:54:37]CheckOFDResponse [18:54:37]1017 (14) - 77093643461234 [18:54:37]1041 (16) - 0000000000871830 [18:54:37]1040 (4) - 115754 [18:54:37]1012 (4) - 23.09.2024 12:27 [18:54:37]1206 (1) - 0 [18:54:37]OFD Sender: Remove packet 115754 [18:54:37]ProducePacketName [18:54:37]name=ofd_packets/00115754 [18:54:37]NVStorageDeleteData [18:54:37]OFD Sender: No OFD packet to send [18:54:38]*** Cut start [18:54:38]*** Partial cut [18:54:38]*** CUTSNS_PIN = 1 [18:54:38]*** CUTSNS_PIN = 0 [18:54:38]*** Brake cut motor [18:54:39]Read from MH i2c: 01 [18:54:39]MH_I2C_Read... [18:54:39]*** Stop cut motor [18:54:39]*** Cut end [18:54:39]Read from MH i2c: 01 07 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: 01 07 00 FE 06 00 00 00 00 00 FF 0F 19 [18:54:39]process_action close_receipt done [18:54:39]requested_data is exist [18:54:39]produce_requested_data [18:54:39]requested_item fm.sn is exist - process it [18:54:39]wFMCommunicate request_size=4 [18:54:39]MH_SAM_APDU [18:54:39]CAPDU: 80 11 00 00 [18:54:39]Write to MH i2c: E2 08 00 FF 06 80 11 00 00 00 00 00 00 7F [18:54:39]Write i2c OK [18:54:39]MH_I2C_Read... [18:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:39]Read from MH i2c: E2 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 17 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 17 00 FF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CD [18:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:54:39]wFMCommunicate OK [18:54:39]requested_item fd.num is exist - process it [18:54:39]SAM_PROTO_GetFieldsCounters [18:54:39]wFMCommunicate request_size=4 [18:54:39]MH_SAM_APDU [18:54:39]CAPDU: 80 13 00 00 [18:54:39]Write to MH i2c: E2 08 00 00 07 80 13 00 00 00 00 00 00 83 [18:54:39]Write i2c OK [18:54:39]MH_I2C_Read... [18:54:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:39]Read from MH i2c: E2 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 62 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 62 00 00 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2A C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [18:54: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2A C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:39]wFMCommunicate OK [18:54:39]SAM_PROTO_GetFieldsCounters done [18:54:39]requested_item shift.num is exist - process it [18:54:39]requested_item shift.opened is exist - process it [18:54:39]req_shift_opened [18:54:39]FM_GetShiftState [18:54:39]SAM_PROTO_GetShiftState [18:54:39]wFMCommunicate request_size=4 [18:54:39]MH_SAM_APDU [18:54:39]CAPDU: 80 13 01 00 [18:54:39]Write to MH i2c: E2 08 00 01 07 80 13 01 00 00 00 00 00 85 [18:54:39]Write i2c OK [18:54:39]MH_I2C_Read... [18:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:39]Read from MH i2c: E2 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 0E 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 0E 00 01 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C6 [18:54:39]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:54:39]wFMCommunicate OK [18:54:39]SAM_PROTO_GetShiftState done [18:54:39]FM_GetShiftState done [18:54:39]req_shift_opened done [18:54:39]requested_item shift.open_date is exist - process it [18:54:39]req_shift_open_date [18:54:39]req_shift_open_date done [18:54:39]produce_requested_data done [18:54:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115754,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:54:39]process_action_free close_receipt [18:54:39]json_value_free [18:54:39]json_value_free done [18:54:39]process_json_proto returns [18:54:39]Send response to host [18:54:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115754,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:54:39]free response buf [18:54:39]execute_script done [18:54:39]execute_script returns [18:54:39]free content buf [18:54:39]Sock 8.Close socket [18:54:39]Sock 8.Thread stoped [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:02]OFD Sender: No OFD packet to send [18:55:07]OFD Sender: No OFD packet to send [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:18]accept exits with 10 [18:55:18]New connection [18:55:18]New thread 3066867044 created [18:55:18]Thread 3067010404 joined [18:55:18]Waiting for new connection... [18:55:18] Sock 10.Parse request [18:55:18]Sock 10.Check first char [18:55:18]Sock 10.First char is OK [18:55:18]request: POST /json_proto HTTP/1.0 [18:55:18]Method: POST [18:55:18]URL: /json_proto [18:55:18]Method is POST - this is cgi request [18:55:18]url: /json_proto [18:55:18]query_string will be loaded in cgi processing [18:55:18]execute_cgi json_proto POST (null) [18:55:18]execute_cgi path=json_proto method=POST [18:55:18]POST find Content-Length [18:55:18]Host: 172.17.41.136:8080 [18:55:18]Content-Length: 684 [18:55:18]Content-Type: application/json [18:55:18] [18:55:18]POST finish read [18:55:18]Found Content-Length = 684 [18:55:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24617961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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" ] } } [18:55:18]execute_script... [18:55: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)24617961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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" ] } } [18:55:18]POST & json_proto [18:55:18]process_json_proto [18:55:18]json parsed OK: [18:55:18]protocol is kg_v1.0 [18:55:18]action value=close_receipt [18:55:18]process_action close_receipt [18:55:18]cmd_close_receipt [18:55:18]MH_GetDate [18:55:18]Write to MH i2c: F0 00 00 02 07 F8 [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: F0 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: F0 09 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: F0 09 00 02 07 00 97 B9 F1 66 1B D0 5A 64 51 [18:55:18]GetLastDocTimeStamp 1727117676 [18:55:18]current date 1727117719 [18:55:18]FM_GetShiftState [18:55:18]SAM_PROTO_GetShiftState [18:55:18]wFMCommunicate request_size=4 [18:55:18]MH_SAM_APDU [18:55:18]CAPDU: 80 13 01 00 [18:55:18]Write to MH i2c: E2 08 00 03 07 80 13 01 00 00 00 00 00 87 [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:18]Read from MH i2c: E2 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 0E 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 0E 00 03 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C8 [18:55:18]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:55:18]wFMCommunicate OK [18:55:18]SAM_PROTO_GetShiftState done [18:55:18]FM_GetShiftState done [18:55:18]opened in 1727052070 [18:55:18]opened+sec_in_day 1727138470 [18:55:18]quantity*price = 100021 [18:55:18]sum+1 = 100023 [18:55: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 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 238 23.09.2024 18:55 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115755 ФПД: 264368895579871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T185519&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115755&fm=264368895579871&tin=02508201610067®Number=0000000000091831&sum=100000 [18:55:19]StoreToDocumentArchive [18:55:19]shift 472 fd 115755 [18:55:19]save to /storage/0472/doc_00115755 [18:55:19]save last doc name /storage/0472/doc_00115755 to /storage/kkm_last_doc_name [18:55:19]save OK [18:55:19]Clear old archive folders... [18:55:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:55:19]tlvbuf is 0115C960 [18:55:19]SAM_PROTO_ClearQueue [18:55:19]wFMCommunicate request_size=4 [18:55:19]MH_SAM_APDU [18:55:19]CAPDU: 80 09 00 00 [18:55:19]Write to MH i2c: E2 08 00 10 07 80 09 00 00 00 00 00 00 89 [18:55:19]Write i2c OK [18:55:19]MH_I2C_Read... [18:55:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:19]Read from MH i2c: E2 [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: E2 03 00 [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: E2 03 00 10 07 00 90 00 8B [18:55:19]RAPDU: 90 00 [18:55:19]wFMCommunicate OK [18:55:19]SAM_PROTO_ClearQueue done [18:55:19]KKMCreateOFDPacket [18:55:19]OFDProtocolAddRootSTLVToBuf [18:55:19]FM_MakeSignedData [18:55:19]FM_MakeSignedData [18:55:19]SAM_PROTO_SignData [18:55:19]wFMCommunicate request_size=4 [18:55:19]MH_SAM_APDU [18:55:19]CAPDU: 80 0D 01 02 [18:55:19]Write to MH i2c: E2 08 00 11 07 80 0D 01 02 00 00 00 00 91 [18:55:19]Write i2c OK [18:55:19]MH_I2C_Read... [18:55:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:19]Read from MH i2c: E2 [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: E2 03 00 [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: E2 03 00 11 07 00 90 00 8C [18:55:19]RAPDU: 90 00 [18:55:19]wFMCommunicate OK [18:55:19]wFMCommunicate request_size=255 [18:55:19]MH_SAM_APDU [18:55:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 EE 00 00 00 F4 03 04 00 97 B9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2B C4 01 00 35 04 06 00 F0 [18:55:19]Write to MH i2c: E2 02 01 12 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 35 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 EE 00 00 00 F4 03 04 00 97 B9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2B C4 01 00 35 04 06 00 F0 00 00 83 [18:55:19]Write i2c OK [18:55:19]MH_I2C_Read... [18:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:20]Read from MH i2c: E2 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 03 00 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 03 00 12 07 00 90 00 8D [18:55:20]RAPDU: 90 00 [18:55:20]wFMCommunicate OK [18:55:20]wFMCommunicate request_size=10 [18:55:20]MH_SAM_APDU [18:55:20]CAPDU: 80 0D 02 02 05 71 2E 1C 56 DF [18:55:20]Write to MH i2c: E2 0D 00 13 07 80 0D 02 02 05 00 71 2E 1C 56 DF 00 00 8E [18:55:20]Write i2c OK [18:55:20]MH_I2C_Read... [18:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:20]Read from MH i2c: E2 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 03 00 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 03 00 13 07 00 90 00 8E [18:55:20]RAPDU: 90 00 [18:55:20]wFMCommunicate OK [18:55:20]wFMCommunicate request_size=4 [18:55:20]MH_SAM_APDU [18:55:20]CAPDU: 80 0D 03 02 [18:55:20]Write to MH i2c: E2 08 00 14 07 80 0D 03 02 00 00 00 00 96 [18:55:20]Write i2c OK [18:55:20]MH_I2C_Read... [18:55:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:20]Read from MH i2c: E2 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 0B 00 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 0B 00 14 07 00 20 97 E0 AA 4B 72 F8 8D 90 00 1A [18:55:20]RAPDU: 20 97 E0 AA 4B 72 F8 8D 90 00 [18:55:20]wFMCommunicate OK [18:55:20]SAM_PROTO_SignData done [18:55:20]FM_MakeSignedData done [18:55:20]CreateOFDProtocolMessage [18:55:20]wFMCommunicate request_size=4 [18:55:20]MH_SAM_APDU [18:55:20]CAPDU: 80 11 00 00 [18:55:20]Write to MH i2c: E2 08 00 15 07 80 11 00 00 00 00 00 00 96 [18:55:20]Write i2c OK [18:55:20]MH_I2C_Read... [18:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:20]Read from MH i2c: E2 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 17 00 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: E2 17 00 15 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E4 [18:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:55:20]wFMCommunicate OK [18:55:20]CreateOFDProtocolMessage done [18:55:20]OFDSenderStorePacket 115755 [18:55:20]StoreOFDPacket docnum=115755 [18:55:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 5E 19 07 01 CD 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 EE 00 00 00 F4 03 04 00 97 B9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2B C4 01 00 35 04 06 00 F0 71 2E 1C 56 DF 20 97 E0 AA 4B 72 F8 8D [18:55:20]CheckFolder [18:55:20]dirname=/storage/ofd_packets [18:55:20]CheckFolder done [18:55:20]ProducePacketName [18:55:20]name=ofd_packets/00115755 [18:55:20]NVStorageSaveData ofd_packets/00115755 [18:55:20]File name is /storage/ofd_packets/00115755 [18:55:20]Write 301 bytes [18:55:20]NVStorageSaveData done [18:55:20]OFDSenderStorePacket done [18:55:20]KKMCreateOFDPacket done [18:55:20]NVStorageSaveData kkm_last_timestamp [18:55:20]File name is /storage/kkm_last_timestamp [18:55:20]Write 4 bytes [18:55:20]NVStorageSaveData done [18:55:20]ExternCall_PrintAddStr [18:55:20]wPrintStart [18:55:20]Write to MH i2c: 01 00 00 16 07 1D [18:55:20]Write i2c OK [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: 01 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: 01 07 00 [18:55:20]MH_I2C_Read... [18:55:20]Read from MH i2c: 01 07 00 16 07 00 00 00 00 00 FF 0F 32 [18:55:20]RasterBufferAndPrint [18:55:20]line Счет N : (1)24617961 [18:55:20]line ИНН: 02508201610067 [18:55:20]line Контрольно-Кассовый Чек [18:55:20]line ПРОДАЖА [18:55:20]line ТРК (МРК, ГНК) : 52 [18:55:20]line Товар: 2710124500 [18:55:20]line Аи-95-К-5 [18:55:20]line 13.480 * 74.20 [18:55:20]line = 1000.22 [18:55:20]line НДС 12% НСП 1% [18:55:20]line > о реализуемом товаре [18:55:20]line ОКРУГЛЕНИЕ: -0.22 [18:55:20]line ИТОГО: 1000.00 [18:55:20]line Внесено: 1000.00 [18:55:20]line СДАЧА: 0.00 [18:55:20]line НСП 1% : 8.85 [18:55:20]line НДС 12% : 106.22 [18:55:20]line Наличными: 1000.00 [18:55:20]line Безнал.: 0.00 [18:55:20]line Место: АЗС № 90 "Партнер Нефть" [18:55:20]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:55:20]line СНО: Общий режим [18:55:20]line Чек 238 23.09.2024 18:55 [18:55:20]line Смена: 472 ФФД: 1.0 [18:55:20]line ЗНМ: 0300000120 [18:55:20]line РНМ: 0000000000091831 [18:55:20]line Версия ККМ: 001 [18:55:20]line ФМ: 0000000000871830 [18:55:20]line ФД: 115755 [18:55:20]line ФПД: 264368895579871 [18:55:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T185519&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115755&fm=264368895579871&tin=02508201610067®Number=0000000000091831&sum=100000 [18:55:20]OFD Sender: Processing packet 115755 [packets to send 482, broken 481] [18:55:20]ProducePacketName [18:55:20]name=ofd_packets/00115755 [18:55:20]OFD Sender: To server: pG, [18:55:20]CommunicateWithHost lk.salyk.kg:30040 [18:55:20]ConnectInit lk.salyk.kg [18:55:20]written 0, free lines is 4095 [18:55:20]Connected sock=9 [18:55: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 38 33 30 0F 01 00 00 5E 19 07 01 CD 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 EE 00 00 00 F4 03 04 00 97 B9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2B C4 01 00 35 04 06 00 F0 71 2E 1C 56 DF 20 97 E0 AA 4B 72 F8 8D [18:55:21]Write to MH i2c: 01 00 00 40 07 47 [18:55:21]Write i2c OK [18:55:21]MH_I2C_Read... [18:55:21]Read from MH i2c: 01 [18:55:21]MH_I2C_Read... [18:55:21]Read from MH i2c: 01 07 00 [18:55:21]MH_I2C_Read... [18:55:21]Read from MH i2c: 01 07 00 40 07 00 00 00 00 00 5D 0C B7 [18:55:21]RasterBufferAndPrint [18:55:21]line [18:55:21]line [18:55:21]line [18:55:21]line [18:55:21]line [18:55:21]written 0, free lines is 3169 [18:55:21]MH_Cut [18:55:21]Write to MH i2c: D1 01 00 47 07 01 20 [18:55:21]Write i2c OK [18:55:21]MH_I2C_Read... [18:55:21]Read from MH i2c: D1 [18:55:21]MH_I2C_Read... [18:55:21]Read from MH i2c: D1 01 00 [18:55:21]MH_I2C_Read... [18:55:21]Read from MH i2c: D1 01 00 47 07 00 1F [18:55:21]Write to MH i2c: 01 00 00 48 07 4F [18:55:21]Write i2c OK [18:55:21]MH_I2C_Read... [18:55:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A9 55 47 00 A8 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 38 33 30 10 04 04 00 2B C4 01 00 F4 03 04 00 D9 5E F1 66 B6 04 01 00 00 EB CB 0A 9C EE AE 67 2B [18:55:21]CommunicateWithHost err = 0 [18:55:21]CheckOFDResponse [18:55:21]1017 (14) - 77093643461234 [18:55:21]1041 (16) - 0000000000871830 [18:55:21]1040 (4) - 115755 [18:55:21]1012 (4) - 23.09.2024 12:28 [18:55:21]1206 (1) - 0 [18:55:21]OFD Sender: Remove packet 115755 [18:55:21]ProducePacketName [18:55:21]name=ofd_packets/00115755 [18:55:21]NVStorageDeleteData [18:55:21]OFD Sender: No OFD packet to send [18:55:22]*** Cut start [18:55:22]*** Partial cut [18:55:22]*** CUTSNS_PIN = 1 [18:55:22]*** CUTSNS_PIN = 0 [18:55:22]*** Brake cut motor [18:55:23]Read from MH i2c: 01 [18:55:23]MH_I2C_Read... [18:55:23]*** Stop cut motor [18:55:23]*** Cut end [18:55:23]Read from MH i2c: 01 07 00 [18:55:23]MH_I2C_Read... [18:55:23]Read from MH i2c: 01 07 00 48 07 00 00 00 00 00 FF 0F 64 [18:55:23]process_action close_receipt done [18:55:23]requested_data is exist [18:55:23]produce_requested_data [18:55:23]requested_item fm.sn is exist - process it [18:55:23]wFMCommunicate request_size=4 [18:55:23]MH_SAM_APDU [18:55:23]CAPDU: 80 11 00 00 [18:55:23]Write to MH i2c: E2 08 00 49 07 80 11 00 00 00 00 00 00 CA [18:55:23]Write i2c OK [18:55:23]MH_I2C_Read... [18:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:23]Read from MH i2c: E2 [18:55:23]MH_I2C_Read... [18:55:23]Read from MH i2c: E2 17 00 [18:55:23]MH_I2C_Read... [18:55:23]Read from MH i2c: E2 17 00 49 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 18 [18:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:55:23]wFMCommunicate OK [18:55:23]requested_item fd.num is exist - process it [18:55:23]SAM_PROTO_GetFieldsCounters [18:55:23]wFMCommunicate request_size=4 [18:55:23]MH_SAM_APDU [18:55:23]CAPDU: 80 13 00 00 [18:55:23]Write to MH i2c: E2 08 00 4A 07 80 13 00 00 00 00 00 00 CD [18:55:23]Write i2c OK [18:55:23]MH_I2C_Read... [18:55:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:23]Read from MH i2c: E2 [18:55:23]MH_I2C_Read... [18:55:23]Read from MH i2c: E2 62 00 [18:55:23]MH_I2C_Read... [18:55:23]Read from MH i2c: E2 62 00 4A 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2B C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [18:55: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2B C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:23]wFMCommunicate OK [18:55:23]SAM_PROTO_GetFieldsCounters done [18:55:23]requested_item shift.num is exist - process it [18:55:23]requested_item shift.opened is exist - process it [18:55:23]req_shift_opened [18:55:23]FM_GetShiftState [18:55:23]SAM_PROTO_GetShiftState [18:55:23]wFMCommunicate request_size=4 [18:55:23]MH_SAM_APDU [18:55:23]CAPDU: 80 13 01 00 [18:55:23]Write to MH i2c: E2 08 00 4B 07 80 13 01 00 00 00 00 00 CF [18:55:23]Write i2c OK [18:55:23]MH_I2C_Read... [18:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:23]Read from MH i2c: E2 [18:55:23]MH_I2C_Read... [18:55:23]Read from MH i2c: E2 0E 00 [18:55:23]MH_I2C_Read... [18:55:23]Read from MH i2c: E2 0E 00 4B 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 10 [18:55:23]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:55:23]wFMCommunicate OK [18:55:23]SAM_PROTO_GetShiftState done [18:55:23]FM_GetShiftState done [18:55:23]req_shift_opened done [18:55:23]requested_item shift.open_date is exist - process it [18:55:23]req_shift_open_date [18:55:23]req_shift_open_date done [18:55:23]produce_requested_data done [18:55:23]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115755,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:55:23]process_action_free close_receipt [18:55:23]json_value_free [18:55:23]json_value_free done [18:55:23]process_json_proto returns [18:55:23]Send response to host [18:55:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115755,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:55:23]free response buf [18:55:23]execute_script done [18:55:23]execute_script returns [18:55:23]free content buf [18:55:23]Sock 10.Close socket [18:55:23]Sock 10.Thread stoped [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56: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:05]accept exits with 8 [18:59:05]New connection [18:59:05]New thread 3067010404 created [18:59:05]Thread 3066867044 joined [18:59:05]Waiting for new connection... [18:59:05] Sock 8.Parse request [18:59:05]Sock 8.Check first char [18:59:05]Sock 8.First char is OK [18:59:05]request: POST /json_proto HTTP/1.0 [18:59:05]Method: POST [18:59:05]URL: /json_proto [18:59:05]Method is POST - this is cgi request [18:59:05]url: /json_proto [18:59:05]query_string will be loaded in cgi processing [18:59:05]execute_cgi json_proto POST (null) [18:59:05]execute_cgi path=json_proto method=POST [18:59:05]POST find Content-Length [18:59:05]Host: 172.17.41.136:8080 [18:59:05]Content-Length: 620 [18:59:05]Content-Type: application/json [18:59:05] [18:59:05]POST finish read [18:59:05]Found Content-Length = 620 [18:59:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344076", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:05]execute_script... [18:59:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344076", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:05]POST & json_proto [18:59:05]process_json_proto [18:59:05]json parsed OK: [18:59:05]protocol is kg_v1.0 [18:59:05]action value=close_receipt [18:59:05]process_action close_receipt [18:59:05]cmd_close_receipt [18:59:05]MH_GetDate [18:59:05]Write to MH i2c: F0 00 00 4C 07 42 [18:59:05]Write i2c OK [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: F0 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: F0 09 00 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: F0 09 00 4C 07 00 7A BA F1 66 1B D0 5A 64 7F [18:59:05]GetLastDocTimeStamp 1727117719 [18:59:05]current date 1727117946 [18:59:05]FM_GetShiftState [18:59:05]SAM_PROTO_GetShiftState [18:59:05]wFMCommunicate request_size=4 [18:59:05]MH_SAM_APDU [18:59:05]CAPDU: 80 13 01 00 [18:59:05]Write to MH i2c: E2 08 00 4D 07 80 13 01 00 00 00 00 00 D1 [18:59:05]Write i2c OK [18:59:05]MH_I2C_Read... [18:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:05]Read from MH i2c: E2 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 0E 00 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 0E 00 4D 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 12 [18:59:05]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:59:05]wFMCommunicate OK [18:59:05]SAM_PROTO_GetShiftState done [18:59:05]FM_GetShiftState done [18:59:05]opened in 1727052070 [18:59:05]opened+sec_in_day 1727138470 [18:59:05]quantity*price = 13900 [18:59:05]sum+1 = 13901 [18:59:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 239 23.09.2024 18:59 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115756 ФПД: 212811452875017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T185906&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115756&fm=212811452875017&tin=02508201610067®Number=0000000000091831&sum=13900 0 [18:59:06]StoreToDocumentArchive [18:59:06]shift 472 fd 115756 [18:59:06]save to /storage/0472/doc_00115756 [18:59:06]save last doc name /storage/0472/doc_00115756 to /storage/kkm_last_doc_name [18:59:06]save OK [18:59:06]Clear old archive folders... [18:59:06]ProcessDocumentItem done err = 0, tmpTLVsize=272 [18:59:06]tlvbuf is B6ECFA70 [18:59:06]SAM_PROTO_ClearQueue [18:59:06]wFMCommunicate request_size=4 [18:59:06]MH_SAM_APDU [18:59:06]CAPDU: 80 09 00 00 [18:59:06]Write to MH i2c: E2 08 00 5A 07 80 09 00 00 00 00 00 00 D3 [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:06]Read from MH i2c: E2 03 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 5A 07 00 90 00 D5 [18:59:06]RAPDU: 90 00 [18:59:06]wFMCommunicate OK [18:59:06]SAM_PROTO_ClearQueue done [18:59:06]KKMCreateOFDPacket [18:59:06]OFDProtocolAddRootSTLVToBuf [18:59:06]FM_MakeSignedData [18:59:06]FM_MakeSignedData [18:59:06]SAM_PROTO_SignData [18:59:06]wFMCommunicate request_size=4 [18:59:06]MH_SAM_APDU [18:59:06]CAPDU: 80 0D 01 02 [18:59:06]Write to MH i2c: E2 08 00 5B 07 80 0D 01 02 00 00 00 00 DB [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 5B 07 00 90 00 D6 [18:59:06]RAPDU: 90 00 [18:59:06]wFMCommunicate OK [18:59:06]wFMCommunicate request_size=255 [18:59:06]MH_SAM_APDU [18:59:06]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 7A BA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [18:59:06]Write to MH i2c: E2 02 01 5C 07 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 7A BA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 5C [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:07]Read from MH i2c: E2 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 03 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 03 00 5C 07 00 90 00 D7 [18:59:07]RAPDU: 90 00 [18:59:07]wFMCommunicate OK [18:59:07]wFMCommunicate request_size=31 [18:59:07]MH_SAM_APDU [18:59:07]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 2C C4 01 00 35 04 06 00 C1 8D 07 0D 81 09 [18:59:07]Write to MH i2c: E2 22 00 5D 07 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 2C C4 01 00 35 04 06 00 C1 8D 07 0D 81 09 00 00 E1 [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:07]Read from MH i2c: E2 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 03 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 03 00 5D 07 00 90 00 D8 [18:59:07]RAPDU: 90 00 [18:59:07]wFMCommunicate OK [18:59:07]wFMCommunicate request_size=4 [18:59:07]MH_SAM_APDU [18:59:07]CAPDU: 80 0D 03 02 [18:59:07]Write to MH i2c: E2 08 00 5E 07 80 0D 03 02 00 00 00 00 E0 [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:07]Read from MH i2c: E2 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 0B 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 0B 00 5E 07 00 CD AA F6 06 44 D2 7B 3E 90 00 23 [18:59:07]RAPDU: CD AA F6 06 44 D2 7B 3E 90 00 [18:59:07]wFMCommunicate OK [18:59:07]SAM_PROTO_SignData done [18:59:07]FM_MakeSignedData done [18:59:07]CreateOFDProtocolMessage [18:59:07]wFMCommunicate request_size=4 [18:59:07]MH_SAM_APDU [18:59:07]CAPDU: 80 11 00 00 [18:59:07]Write to MH i2c: E2 08 00 5F 07 80 11 00 00 00 00 00 00 E0 [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]OFD Sender: No OFD packet to send [18:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:07]Read from MH i2c: E2 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 17 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 17 00 5F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2E [18:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:59:07]wFMCommunicate OK [18:59:07]CreateOFDProtocolMessage done [18:59:07]OFDSenderStorePacket 115756 [18:59:07]StoreOFDPacket docnum=115756 [18:59:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 09 D8 1C 01 FB EB 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 7A BA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2C C4 01 00 35 04 06 00 C1 8D 07 0D 81 09 CD AA F6 06 44 D2 7B 3E [18:59:07]CheckFolder [18:59:07]dirname=/storage/ofd_packets [18:59:07]CheckFolder done [18:59:07]ProducePacketName [18:59:07]name=ofd_packets/00115756 [18:59:07]NVStorageSaveData ofd_packets/00115756 [18:59:07]File name is /storage/ofd_packets/00115756 [18:59:07]Write 322 bytes [18:59:07]NVStorageSaveData done [18:59:07]OFDSenderStorePacket done [18:59:07]KKMCreateOFDPacket done [18:59:07]NVStorageSaveData kkm_last_timestamp [18:59:07]File name is /storage/kkm_last_timestamp [18:59:07]Write 4 bytes [18:59:07]NVStorageSaveData done [18:59:07]ExternCall_PrintAddStr [18:59:07]wPrintStart [18:59:07]Write to MH i2c: 01 00 00 60 07 67 [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: 01 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: 01 07 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: 01 07 00 60 07 00 00 00 00 00 FF 0F 7C [18:59:07]RasterBufferAndPrint [18:59:07]line Счет N : (3)344076 [18:59:07]line ИНН: 02508201610067 [18:59:07]line Контрольно-Кассовый Чек [18:59:07]line ПРОДАЖА [18:59:07]line Товар: 48745000 [18:59:07]line Сигареты Winston Purple Mix [18:59:07]line 1.000 * 139.00 [18:59:07]line = 139.00 [18:59:07]line НДС 12% НСП 1% [18:59:07]line > о реализуемом товаре [18:59:07]line ИТОГО: 139.00 [18:59:07]line НСП 1% : 1.23 [18:59:07]line НДС 12% : 14.76 [18:59:07]line Наличными: 139.00 [18:59:07]line Безнал.: 0.00 [18:59:07]line Место: АЗС № 90 "Партнер Нефть" [18:59:07]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [18:59:07]line СНО: Общий режим [18:59:07]line Чек 239 23.09.2024 18:59 [18:59:07]line Смена: 472 ФФД: 1.0 [18:59:07]line ЗНМ: 0300000120 [18:59:07]line РНМ: 0000000000091831 [18:59:07]line Версия ККМ: 001 [18:59:07]line ФМ: 0000000000871830 [18:59:07]line ФД: 115756 [18:59:07]line ФПД: 212811452875017 [18:59:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T185906&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115756&fm=212811452875017&tin=02508201610067®Number=0000000000091831&sum=13900 [18:59:07]line 0 [18:59:07]written 0, free lines is 4095 [18:59:07]OFD Sender: Processing packet 115756 [packets to send 482, broken 481] [18:59:07]ProducePacketName [18:59:07]name=ofd_packets/00115756 [18:59:07]OFD Sender: To server: pG, [18:59:07]CommunicateWithHost lk.salyk.kg:30040 [18:59:07]ConnectInit lk.salyk.kg [18:59:07]Connected sock=10 [18:59: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 38 33 30 24 01 00 00 09 D8 1C 01 FB EB 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 7A BA F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2C C4 01 00 35 04 06 00 C1 8D 07 0D 81 09 CD AA F6 06 44 D2 7B 3E [18:59:07]Write to MH i2c: 01 00 00 87 07 8E [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: 01 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: 01 07 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: 01 07 00 87 07 00 00 00 00 00 7C 0C 1D [18:59:07]RasterBufferAndPrint [18:59:07]line [18:59:07]line [18:59:07]line [18:59:07]line [18:59:07]line [18:59:07]written 0, free lines is 3199 [18:59:07]MH_Cut [18:59:07]Write to MH i2c: D1 01 00 8E 07 01 67 [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: D1 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: D1 01 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: D1 01 00 8E 07 00 66 [18:59:07]Write to MH i2c: 01 00 00 8F 07 96 [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6B E5 47 00 7B 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 38 33 30 10 04 04 00 2C C4 01 00 F4 03 04 00 BC 5F F1 66 B6 04 01 00 00 A4 1D 27 4E E9 5E 29 77 [18:59:08]CommunicateWithHost err = 0 [18:59:08]CheckOFDResponse [18:59:08]1017 (14) - 77093643461234 [18:59:08]1041 (16) - 0000000000871830 [18:59:08]1040 (4) - 115756 [18:59:08]1012 (4) - 23.09.2024 12:31 [18:59:08]1206 (1) - 0 [18:59:08]OFD Sender: Remove packet 115756 [18:59:08]ProducePacketName [18:59:08]name=ofd_packets/00115756 [18:59:08]NVStorageDeleteData [18:59:08]OFD Sender: No OFD packet to send [18:59:09]*** Cut start [18:59:09]*** Partial cut [18:59:09]*** CUTSNS_PIN = 1 [18:59:09]*** CUTSNS_PIN = 0 [18:59:09]*** Brake cut motor [18:59:09]Read from MH i2c: 01 [18:59:09]MH_I2C_Read... [18:59:09]*** Stop cut motor [18:59:09]*** Cut end [18:59:09]Read from MH i2c: 01 07 00 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: 01 07 00 8F 07 00 00 00 00 00 FF 0F AB [18:59:09]process_action close_receipt done [18:59:09]requested_data is exist [18:59:09]produce_requested_data [18:59:09]requested_item fm.sn is exist - process it [18:59:09]wFMCommunicate request_size=4 [18:59:09]MH_SAM_APDU [18:59:09]CAPDU: 80 11 00 00 [18:59:09]Write to MH i2c: E2 08 00 90 07 80 11 00 00 00 00 00 00 11 [18:59:09]Write i2c OK [18:59:09]MH_I2C_Read... [18:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:09]Read from MH i2c: E2 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 17 00 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 17 00 90 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5F [18:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [18:59:09]wFMCommunicate OK [18:59:09]requested_item fd.num is exist - process it [18:59:09]SAM_PROTO_GetFieldsCounters [18:59:09]wFMCommunicate request_size=4 [18:59:09]MH_SAM_APDU [18:59:09]CAPDU: 80 13 00 00 [18:59:09]Write to MH i2c: E2 08 00 91 07 80 13 00 00 00 00 00 00 14 [18:59:09]Write i2c OK [18:59:09]MH_I2C_Read... [18:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:09]Read from MH i2c: E2 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 62 00 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 62 00 91 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2C C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [18:59: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2C C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:09]wFMCommunicate OK [18:59:09]SAM_PROTO_GetFieldsCounters done [18:59:09]requested_item shift.num is exist - process it [18:59:09]requested_item shift.opened is exist - process it [18:59:09]req_shift_opened [18:59:09]FM_GetShiftState [18:59:09]SAM_PROTO_GetShiftState [18:59:09]wFMCommunicate request_size=4 [18:59:09]MH_SAM_APDU [18:59:09]CAPDU: 80 13 01 00 [18:59:09]Write to MH i2c: E2 08 00 92 07 80 13 01 00 00 00 00 00 16 [18:59:09]Write i2c OK [18:59:09]MH_I2C_Read... [18:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:09]Read from MH i2c: E2 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 0E 00 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 0E 00 92 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 57 [18:59:09]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [18:59:09]wFMCommunicate OK [18:59:09]SAM_PROTO_GetShiftState done [18:59:09]FM_GetShiftState done [18:59:09]req_shift_opened done [18:59:09]requested_item shift.open_date is exist - process it [18:59:09]req_shift_open_date [18:59:09]req_shift_open_date done [18:59:09]produce_requested_data done [18:59:09]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115756,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [18:59:09]process_action_free close_receipt [18:59:09]json_value_free [18:59:09]json_value_free done [18:59:09]process_json_proto returns [18:59:09]Send response to host [18:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115756,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [18:59:09]free response buf [18:59:09]execute_script done [18:59:09]execute_script returns [18:59:09]free content buf [18:59:09]Sock 8.Close socket [18:59:09]Sock 8.Thread stoped [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:54]OFD Sender: No OFD packet to send [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:20:01]OFD Sender: No OFD packet to send [19:20:06]OFD Sender: No OFD packet to send [19:20:11]OFD Sender: No OFD packet to send [19:20:16]OFD Sender: No OFD packet to send [19:20:21]OFD Sender: No OFD packet to send [19:20:26]OFD Sender: No OFD packet to send [19:20:31]OFD Sender: No OFD packet to send [19:20:36]OFD Sender: No OFD packet to send [19:20:41]OFD Sender: No OFD packet to send [19:20:46]OFD Sender: No OFD packet to send [19:20:51]OFD Sender: No OFD packet to send [19:20:56]OFD Sender: No OFD packet to send [19:21:01]OFD Sender: No OFD packet to send [19:21:06]OFD Sender: No OFD packet to send [19:21:11]OFD Sender: No OFD packet to send [19:21:16]OFD Sender: No OFD packet to send [19:21:21]OFD Sender: No OFD packet to send [19:21:26]OFD Sender: No OFD packet to send [19:21:31]OFD Sender: No OFD packet to send [19:21:36]OFD Sender: No OFD packet to send [19:21:41]OFD Sender: No OFD packet to send [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]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:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29: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:29]accept exits with 9 [19:36:29]New connection [19:36:29]New thread 3066867044 created [19:36:29]Thread 3067010404 joined [19:36:29]Waiting for new connection... [19:36:29] Sock 9.Parse request [19:36:29]Sock 9.Check first char [19:36:29]Sock 9.First char is OK [19:36:29]request: POST /json_proto HTTP/1.0 [19:36:29]Method: POST [19:36:29]URL: /json_proto [19:36:29]Method is POST - this is cgi request [19:36:29]url: /json_proto [19:36:29]query_string will be loaded in cgi processing [19:36:29]execute_cgi json_proto POST (null) [19:36:29]execute_cgi path=json_proto method=POST [19:36:29]POST find Content-Length [19:36:29]Host: 172.17.41.136:8080 [19:36:29]Content-Length: 919 [19:36:29]Content-Type: application/json [19:36:29] [19:36:29]POST finish read [19:36:29]Found Content-Length = 919 [19:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344077", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100091108", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0430\u0440\u0441 50\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 124.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:29]execute_script... [19:36:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344077", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100091108", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0430\u0440\u0441 50\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 124.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:29]POST & json_proto [19:36:29]process_json_proto [19:36:29]json parsed OK: [19:36:29]protocol is kg_v1.0 [19:36:29]action value=close_receipt [19:36:29]process_action close_receipt [19:36:29]cmd_close_receipt [19:36:29]MH_GetDate [19:36:29]Write to MH i2c: F0 00 00 93 07 89 [19:36:29]Write i2c OK [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: F0 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: F0 09 00 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: F0 09 00 93 07 00 3F C3 F1 66 1B D0 5A 64 94 [19:36:29]GetLastDocTimeStamp 1727117946 [19:36:29]current date 1727120191 [19:36:29]FM_GetShiftState [19:36:29]SAM_PROTO_GetShiftState [19:36:29]wFMCommunicate request_size=4 [19:36:29]MH_SAM_APDU [19:36:29]CAPDU: 80 13 01 00 [19:36:29]Write to MH i2c: E2 08 00 94 07 80 13 01 00 00 00 00 00 18 [19:36:29]Write i2c OK [19:36:29]MH_I2C_Read... [19:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:29]Read from MH i2c: E2 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: E2 0E 00 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: E2 0E 00 94 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 59 [19:36:29]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [19:36:29]wFMCommunicate OK [19:36:29]SAM_PROTO_GetShiftState done [19:36:29]FM_GetShiftState done [19:36:29]opened in 1727052070 [19:36:29]opened+sec_in_day 1727138470 [19:36:29]quantity*price = 6500 [19:36:29]sum+1 = 6501 [19:36:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4011100091108 Шок Батончик Марс 50г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 124.00 НСП 1% : 1.09 НДС 12% : 13.16 Наличными: 124.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 240 23.09.2024 19:36 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115757 ФПД: 235794273193733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T193631&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115757&fm=235794273193733&tin=02508201610067®Number=0000000000091831&sum=12400 0 [19:36:30]StoreToDocumentArchive [19:36:30]shift 472 fd 115757 [19:36:30]save to /storage/0472/doc_00115757 [19:36:30]save last doc name /storage/0472/doc_00115757 to /storage/kkm_last_doc_name [19:36:30]save OK [19:36:30]Clear old archive folders... [19:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=381 [19:36:30]tlvbuf is 01142CC0 [19:36:30]SAM_PROTO_ClearQueue [19:36:30]wFMCommunicate request_size=4 [19:36:30]MH_SAM_APDU [19:36:30]CAPDU: 80 09 00 00 [19:36:30]Write to MH i2c: E2 08 00 A1 07 80 09 00 00 00 00 00 00 1A [19:36:30]Write i2c OK [19:36:30]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 A1 07 00 90 00 1C [19:36:31]RAPDU: 90 00 [19:36:31]wFMCommunicate OK [19:36:31]SAM_PROTO_ClearQueue done [19:36:31]KKMCreateOFDPacket [19:36:31]OFDProtocolAddRootSTLVToBuf [19:36:31]FM_MakeSignedData [19:36:31]FM_MakeSignedData [19:36:31]SAM_PROTO_SignData [19:36:31]wFMCommunicate request_size=4 [19:36:31]MH_SAM_APDU [19:36:31]CAPDU: 80 0D 01 02 [19:36:31]Write to MH i2c: E2 08 00 A2 07 80 0D 01 02 00 00 00 00 22 [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 A2 07 00 90 00 1D [19:36:31]RAPDU: 90 00 [19:36:31]wFMCommunicate OK [19:36:31]wFMCommunicate request_size=255 [19:36:31]MH_SAM_APDU [19:36:31]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B0 D1 80 D1 81 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 [19:36:31]Write to MH i2c: E2 02 01 A3 07 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B0 D1 80 D1 81 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 1F [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 A3 07 00 90 00 1E [19:36:31]RAPDU: 90 00 [19:36:31]wFMCommunicate OK [19:36:31]wFMCommunicate request_size=140 [19:36:31]MH_SAM_APDU [19:36:31]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 3F C3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2D C4 01 00 35 04 06 00 D6 74 21 E4 CF 05 [19:36:31]Write to MH i2c: E2 8F 00 A4 07 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 3F C3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2D C4 01 00 35 04 06 00 D6 74 21 E4 CF 05 00 00 58 [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 03 00 A4 07 00 90 00 1F [19:36:31]RAPDU: 90 00 [19:36:31]wFMCommunicate OK [19:36:31]wFMCommunicate request_size=4 [19:36:31]MH_SAM_APDU [19:36:31]CAPDU: 80 0D 03 02 [19:36:31]Write to MH i2c: E2 08 00 A5 07 80 0D 03 02 00 00 00 00 27 [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 0B 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 0B 00 A5 07 00 9D 80 4F A2 A5 05 BC A1 90 00 3D [19:36:31]RAPDU: 9D 80 4F A2 A5 05 BC A1 90 00 [19:36:31]wFMCommunicate OK [19:36:31]SAM_PROTO_SignData done [19:36:31]FM_MakeSignedData done [19:36:31]CreateOFDProtocolMessage [19:36:31]wFMCommunicate request_size=4 [19:36:31]MH_SAM_APDU [19:36:31]CAPDU: 80 11 00 00 [19:36:31]Write to MH i2c: E2 08 00 A6 07 80 11 00 00 00 00 00 00 27 [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:31]Read from MH i2c: E2 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 17 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: E2 17 00 A6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 75 [19:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:36:31]wFMCommunicate OK [19:36:31]CreateOFDProtocolMessage done [19:36:31]OFDSenderStorePacket 115757 [19:36:31]StoreOFDPacket docnum=115757 [19:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 91 01 00 00 5F 19 89 01 CA DD 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B0 D1 80 D1 81 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 3F C3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2D C4 01 00 35 04 06 00 D6 74 21 E4 CF 05 9D 80 4F A2 A5 05 BC A1 [19:36:31]CheckFolder [19:36:31]dirname=/storage/ofd_packets [19:36:31]CheckFolder done [19:36:31]ProducePacketName [19:36:31]name=ofd_packets/00115757 [19:36:31]NVStorageSaveData ofd_packets/00115757 [19:36:31]File name is /storage/ofd_packets/00115757 [19:36:31]Write 431 bytes [19:36:31]NVStorageSaveData done [19:36:31]OFDSenderStorePacket done [19:36:31]KKMCreateOFDPacket done [19:36:31]NVStorageSaveData kkm_last_timestamp [19:36:31]File name is /storage/kkm_last_timestamp [19:36:31]Write 4 bytes [19:36:31]NVStorageSaveData done [19:36:31]ExternCall_PrintAddStr [19:36:31]wPrintStart [19:36:31]Write to MH i2c: 01 00 00 A7 07 AE [19:36:31]Write i2c OK [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: 01 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: 01 07 00 [19:36:31]MH_I2C_Read... [19:36:31]Read from MH i2c: 01 07 00 A7 07 00 00 00 00 00 FF 0F C3 [19:36:31]RasterBufferAndPrint [19:36:31]line Счет N : (3)344077 [19:36:31]line ИНН: 02508201610067 [19:36:31]line Контрольно-Кассовый Чек [19:36:31]line ПРОДАЖА [19:36:31]line Товар: 47011656 [19:36:31]line Водка Пшеничная 0,1л [19:36:31]line 1.000 * 65.00 [19:36:31]line = 65.00 [19:36:31]line НДС 12% НСП 1% [19:36:31]line > о реализуемом товаре [19:36:31]line Товар: 4011100091108 [19:36:31]line Шок Батончик Марс 50г [19:36:31]line 1.000 * 59.00 [19:36:31]line = 59.00 [19:36:31]line НДС 12% НСП 1% [19:36:31]line > о реализуемом товаре [19:36:31]line ИТОГО: 124.00 [19:36:31]line НСП 1% : 1.09 [19:36:31]line НДС 12% : 13.16 [19:36:31]line Наличными: 124.00 [19:36:31]line Безнал.: 0.00 [19:36:31]line Место: АЗС № 90 "Партнер Нефть" [19:36:31]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [19:36:31]line СНО: Общий режим [19:36:31]line Чек 240 23.09.2024 19:36 [19:36:31]line Смена: 472 ФФД: 1.0 [19:36:31]line ЗНМ: 0300000120 [19:36:31]line РНМ: 0000000000091831 [19:36:31]line Версия ККМ: 001 [19:36:31]line ФМ: 0000000000871830 [19:36:31]line ФД: 115757 [19:36:31]line ФПД: 235794273193733 [19:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T193631&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115757&fm=235794273193733&tin=02508201610067®Number=0000000000091831&sum=12400 [19:36:31]line 0 [19:36:31]OFD Sender: Processing packet 115757 [packets to send 482, broken 481] [19:36:31]ProducePacketName [19:36:31]name=ofd_packets/00115757 [19:36:31]OFD Sender: To server: pG, [19:36:31]CommunicateWithHost lk.salyk.kg:30040 [19:36:31]ConnectInit lk.salyk.kg [19:36:31]written 0, free lines is 4095 [19:36:32]Connected sock=10 [19:36:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 91 01 00 00 5F 19 89 01 CA DD 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B0 D1 80 D1 81 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 3F C3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2D C4 01 00 35 04 06 00 D6 74 21 E4 CF 05 9D 80 4F A2 A5 05 BC A1 [19:36:32]Write to MH i2c: 01 00 00 D4 07 DB [19:36:32]Write i2c OK [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: 01 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: 01 07 00 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: 01 07 00 D4 07 00 00 00 00 00 0D 0C FB [19:36:32]RasterBufferAndPrint [19:36:32]line [19:36:32]line [19:36:32]line [19:36:32]line [19:36:32]line [19:36:32]written 0, free lines is 3089 [19:36:32]MH_Cut [19:36:32]Write to MH i2c: D1 01 00 DB 07 01 B4 [19:36:32]Write i2c OK [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: D1 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: D1 01 00 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: D1 01 00 DB 07 00 B3 [19:36:32]Write to MH i2c: 01 00 00 DC 07 E3 [19:36:32]Write i2c OK [19:36:32]MH_I2C_Read... [19:36:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 5D 13 47 00 1F C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2D C4 01 00 F4 03 04 00 81 68 F1 66 B6 04 01 00 00 B8 93 22 D3 E7 27 58 77 [19:36:32]CommunicateWithHost err = 0 [19:36:32]CheckOFDResponse [19:36:32]1017 (14) - 77093643461234 [19:36:32]1041 (16) - 0000000000871830 [19:36:32]1040 (4) - 115757 [19:36:32]1012 (4) - 23.09.2024 13:09 [19:36:32]1206 (1) - 0 [19:36:32]OFD Sender: Remove packet 115757 [19:36:32]ProducePacketName [19:36:32]name=ofd_packets/00115757 [19:36:32]NVStorageDeleteData [19:36:33]OFD Sender: No OFD packet to send [19:36:33]*** Cut start [19:36:33]*** Partial cut [19:36:33]*** CUTSNS_PIN = 1 [19:36:33]*** CUTSNS_PIN = 0 [19:36:34]*** Brake cut motor [19:36:34]Read from MH i2c: 01 [19:36:34]MH_I2C_Read... [19:36:34]*** Stop cut motor [19:36:34]*** Cut end [19:36:34]Read from MH i2c: 01 07 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: 01 07 00 DC 07 00 00 00 00 00 FF 0F F8 [19:36:34]process_action close_receipt done [19:36:34]requested_data is exist [19:36:34]produce_requested_data [19:36:34]requested_item fm.sn is exist - process it [19:36:34]wFMCommunicate request_size=4 [19:36:34]MH_SAM_APDU [19:36:34]CAPDU: 80 11 00 00 [19:36:34]Write to MH i2c: E2 08 00 DD 07 80 11 00 00 00 00 00 00 5E [19:36:34]Write i2c OK [19:36:34]MH_I2C_Read... [19:36:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:34]Read from MH i2c: E2 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 17 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 17 00 DD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AC [19:36:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:36:34]wFMCommunicate OK [19:36:34]requested_item fd.num is exist - process it [19:36:34]SAM_PROTO_GetFieldsCounters [19:36:34]wFMCommunicate request_size=4 [19:36:34]MH_SAM_APDU [19:36:34]CAPDU: 80 13 00 00 [19:36:34]Write to MH i2c: E2 08 00 DE 07 80 13 00 00 00 00 00 00 61 [19:36:34]Write i2c OK [19:36:34]MH_I2C_Read... [19:36:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:34]Read from MH i2c: E2 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 62 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 62 00 DE 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2D C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [19:36: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2D C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:34]wFMCommunicate OK [19:36:34]SAM_PROTO_GetFieldsCounters done [19:36:34]requested_item shift.num is exist - process it [19:36:34]requested_item shift.opened is exist - process it [19:36:34]req_shift_opened [19:36:34]FM_GetShiftState [19:36:34]SAM_PROTO_GetShiftState [19:36:34]wFMCommunicate request_size=4 [19:36:34]MH_SAM_APDU [19:36:34]CAPDU: 80 13 01 00 [19:36:34]Write to MH i2c: E2 08 00 DF 07 80 13 01 00 00 00 00 00 63 [19:36:34]Write i2c OK [19:36:34]MH_I2C_Read... [19:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:34]Read from MH i2c: E2 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 0E 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 0E 00 DF 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A4 [19:36:34]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [19:36:34]wFMCommunicate OK [19:36:34]SAM_PROTO_GetShiftState done [19:36:34]FM_GetShiftState done [19:36:34]req_shift_opened done [19:36:34]requested_item shift.open_date is exist - process it [19:36:34]req_shift_open_date [19:36:34]req_shift_open_date done [19:36:34]produce_requested_data done [19:36:34]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115757,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [19:36:34]process_action_free close_receipt [19:36:34]json_value_free [19:36:34]json_value_free done [19:36:34]process_json_proto returns [19:36:34]Send response to host [19:36:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115757,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [19:36:34]free response buf [19:36:34]execute_script done [19:36:34]execute_script returns [19:36:34]free content buf [19:36:34]Sock 9.Close socket [19:36:34]Sock 9.Thread stoped [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:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:34]accept exits with 8 [19:41:34]New connection [19:41:34]New thread 3067010404 created [19:41:34]Thread 3066867044 joined [19:41:34]Waiting for new connection... [19:41:34] Sock 8.Parse request [19:41:34]Sock 8.Check first char [19:41:34]Sock 8.First char is OK [19:41:34]request: POST /json_proto HTTP/1.0 [19:41:34]Method: POST [19:41:34]URL: /json_proto [19:41:34]Method is POST - this is cgi request [19:41:34]url: /json_proto [19:41:34]query_string will be loaded in cgi processing [19:41:34]execute_cgi json_proto POST (null) [19:41:34]execute_cgi path=json_proto method=POST [19:41:34]POST find Content-Length [19:41:34]Host: 172.17.41.136:8080 [19:41:34]Content-Length: 614 [19:41:34]Content-Type: application/json [19:41:34] [19:41:34]POST finish read [19:41:34]Found Content-Length = 614 [19:41:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344078", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:34]execute_script... [19:41:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344078", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:34]POST & json_proto [19:41:34]process_json_proto [19:41:34]json parsed OK: [19:41:34]protocol is kg_v1.0 [19:41:34]action value=close_receipt [19:41:34]process_action close_receipt [19:41:34]cmd_close_receipt [19:41:34]MH_GetDate [19:41:34]Write to MH i2c: F0 00 00 E0 07 D6 [19:41:34]Write i2c OK [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: F0 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: F0 09 00 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: F0 09 00 E0 07 00 6F C4 F1 66 1B D0 5A 64 12 [19:41:34]GetLastDocTimeStamp 1727120191 [19:41:34]current date 1727120495 [19:41:34]FM_GetShiftState [19:41:34]SAM_PROTO_GetShiftState [19:41:34]wFMCommunicate request_size=4 [19:41:34]MH_SAM_APDU [19:41:34]CAPDU: 80 13 01 00 [19:41:34]Write to MH i2c: E2 08 00 E1 07 80 13 01 00 00 00 00 00 65 [19:41:34]Write i2c OK [19:41:34]MH_I2C_Read... [19:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:34]Read from MH i2c: E2 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 0E 00 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 0E 00 E1 07 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A6 [19:41:34]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [19:41:34]wFMCommunicate OK [19:41:34]SAM_PROTO_GetShiftState done [19:41:34]FM_GetShiftState done [19:41:34]opened in 1727052070 [19:41:34]opened+sec_in_day 1727138470 [19:41:34]quantity*price = 11000 [19:41:34]sum+1 = 11001 [19:41:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 241 23.09.2024 19:41 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115758 ФПД: 191864858042232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T194135&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115758&fm=191864858042232&tin=02508201610067®Number=0000000000091831&sum=11000 0 [19:41:35]StoreToDocumentArchive [19:41:35]shift 472 fd 115758 [19:41:35]save to /storage/0472/doc_00115758 [19:41:35]save last doc name /storage/0472/doc_00115758 to /storage/kkm_last_doc_name [19:41:35]save OK [19:41:35]Clear old archive folders... [19:41:35]ProcessDocumentItem done err = 0, tmpTLVsize=266 [19:41:35]tlvbuf is 0113F800 [19:41:35]SAM_PROTO_ClearQueue [19:41:35]wFMCommunicate request_size=4 [19:41:35]MH_SAM_APDU [19:41:35]CAPDU: 80 09 00 00 [19:41:35]Write to MH i2c: E2 08 00 EE 07 80 09 00 00 00 00 00 00 67 [19:41:35]Write i2c OK [19:41:35]MH_I2C_Read... [19:41:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:35]Read from MH i2c: E2 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: E2 03 00 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: E2 03 00 EE 07 00 90 00 69 [19:41:35]RAPDU: 90 00 [19:41:35]wFMCommunicate OK [19:41:35]SAM_PROTO_ClearQueue done [19:41:35]KKMCreateOFDPacket [19:41:35]OFDProtocolAddRootSTLVToBuf [19:41:35]FM_MakeSignedData [19:41:35]FM_MakeSignedData [19:41:35]SAM_PROTO_SignData [19:41:35]wFMCommunicate request_size=4 [19:41:35]MH_SAM_APDU [19:41:35]CAPDU: 80 0D 01 02 [19:41:35]Write to MH i2c: E2 08 00 EF 07 80 0D 01 02 00 00 00 00 6F [19:41:35]Write i2c OK [19:41:35]MH_I2C_Read... [19:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:35]Read from MH i2c: E2 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: E2 03 00 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: E2 03 00 EF 07 00 90 00 6A [19:41:35]RAPDU: 90 00 [19:41:35]wFMCommunicate OK [19:41:35]wFMCommunicate request_size=255 [19:41:35]MH_SAM_APDU [19:41:35]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 6F C4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [19:41:35]Write to MH i2c: E2 02 01 F0 07 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 6F C4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 37 [19:41:35]Write i2c OK [19:41:35]MH_I2C_Read... [19:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 03 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 03 00 F0 07 00 90 00 6B [19:41:36]RAPDU: 90 00 [19:41:36]wFMCommunicate OK [19:41:36]wFMCommunicate request_size=25 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 0D 02 02 14 33 30 10 04 04 00 2E C4 01 00 35 04 06 00 AE 80 04 B5 5F 78 [19:41:36]Write to MH i2c: E2 1C 00 F1 07 80 0D 02 02 14 00 33 30 10 04 04 00 2E C4 01 00 35 04 06 00 AE 80 04 B5 5F 78 00 00 05 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 03 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 03 00 F1 07 00 90 00 6C [19:41:36]RAPDU: 90 00 [19:41:36]wFMCommunicate OK [19:41:36]wFMCommunicate request_size=4 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 0D 03 02 [19:41:36]Write to MH i2c: E2 08 00 F2 07 80 0D 03 02 00 00 00 00 74 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 0B 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 0B 00 F2 07 00 B7 4C AA 6C D9 12 D7 1C 90 00 6C [19:41:36]RAPDU: B7 4C AA 6C D9 12 D7 1C 90 00 [19:41:36]wFMCommunicate OK [19:41:36]SAM_PROTO_SignData done [19:41:36]FM_MakeSignedData done [19:41:36]CreateOFDProtocolMessage [19:41:36]wFMCommunicate request_size=4 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 11 00 00 [19:41:36]Write to MH i2c: E2 08 00 F3 07 80 11 00 00 00 00 00 00 74 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 17 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 17 00 F3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C2 [19:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:41:36]wFMCommunicate OK [19:41:36]CreateOFDProtocolMessage done [19:41:36]OFDSenderStorePacket 115758 [19:41:36]StoreOFDPacket docnum=115758 [19:41:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 6F 87 16 01 67 2E 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 6F C4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2E C4 01 00 35 04 06 00 AE 80 04 B5 5F 78 B7 4C AA 6C D9 12 D7 1C [19:41:36]CheckFolder [19:41:36]dirname=/storage/ofd_packets [19:41:36]CheckFolder done [19:41:36]ProducePacketName [19:41:36]name=ofd_packets/00115758 [19:41:36]NVStorageSaveData ofd_packets/00115758 [19:41:36]File name is /storage/ofd_packets/00115758 [19:41:36]Write 316 bytes [19:41:36]NVStorageSaveData done [19:41:36]OFDSenderStorePacket done [19:41:36]KKMCreateOFDPacket done [19:41:36]NVStorageSaveData kkm_last_timestamp [19:41:36]File name is /storage/kkm_last_timestamp [19:41:36]Write 4 bytes [19:41:36]NVStorageSaveData done [19:41:36]ExternCall_PrintAddStr [19:41:36]wPrintStart [19:41:36]Write to MH i2c: 01 00 00 F4 07 FB [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: 01 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: 01 07 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: 01 07 00 F4 07 00 00 00 00 00 FF 0F 10 [19:41:36]RasterBufferAndPrint [19:41:36]line Счет N : (3)344078 [19:41:36]line ИНН: 02508201610067 [19:41:36]line Контрольно-Кассовый Чек [19:41:36]line ПРОДАЖА [19:41:36]line Товар: 4870001570071 [19:41:36]line Напиток Pepsi 1л [19:41:36]line 1.000 * 110.00 [19:41:36]line = 110.00 [19:41:36]line НДС 12% НСП 1% [19:41:36]line > о реализуемом товаре [19:41:36]line ИТОГО: 110.00 [19:41:36]line НСП 1% : 0.97 [19:41:36]line НДС 12% : 11.68 [19:41:36]line Наличными: 110.00 [19:41:36]line Безнал.: 0.00 [19:41:36]line Место: АЗС № 90 "Партнер Нефть" [19:41:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [19:41:36]line СНО: Общий режим [19:41:36]line Чек 241 23.09.2024 19:41 [19:41:36]line Смена: 472 ФФД: 1.0 [19:41:36]line ЗНМ: 0300000120 [19:41:36]line РНМ: 0000000000091831 [19:41:36]line Версия ККМ: 001 [19:41:36]line ФМ: 0000000000871830 [19:41:36]line ФД: 115758 [19:41:36]line ФПД: 191864858042232 [19:41:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T194135&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115758&fm=191864858042232&tin=02508201610067®Number=0000000000091831&sum=11000 [19:41:36]line 0 [19:41:36]OFD Sender: Processing packet 115758 [packets to send 482, broken 481] [19:41:36]ProducePacketName [19:41:36]name=ofd_packets/00115758 [19:41:36]OFD Sender: To server: pG, [19:41:36]CommunicateWithHost lk.salyk.kg:30040 [19:41:36]ConnectInit lk.salyk.kg [19:41:36]written 0, free lines is 4095 [19:41:36]Write to MH i2c: 01 00 00 1B 08 23 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: 01 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: 01 07 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: 01 07 00 1B 08 00 00 00 00 00 7B 0C B1 [19:41:36]RasterBufferAndPrint [19:41:36]line [19:41:36]line [19:41:36]line [19:41:36]line [19:41:36]line [19:41:36]written 0, free lines is 3198 [19:41:36]MH_Cut [19:41:36]Write to MH i2c: D1 01 00 22 08 01 FC [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: D1 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: D1 01 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: D1 01 00 22 08 00 FB [19:41:36]Write to MH i2c: 01 00 00 23 08 2B [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:37]*** Cut start [19:41:37]*** Partial cut [19:41:37]*** CUTSNS_PIN = 1 [19:41:37]*** CUTSNS_PIN = 0 [19:41:38]*** Brake cut motor [19:41:38]Read from MH i2c: 01 [19:41:38]MH_I2C_Read... [19:41:38]*** Stop cut motor [19:41:38]*** Cut end [19:41:38]Read from MH i2c: 01 07 00 [19:41:38]MH_I2C_Read... [19:41:38]Read from MH i2c: 01 07 00 23 08 00 00 00 00 00 FF 0F 40 [19:41:38]process_action close_receipt done [19:41:38]requested_data is exist [19:41:38]produce_requested_data [19:41:38]requested_item fm.sn is exist - process it [19:41:38]wFMCommunicate request_size=4 [19:41:38]MH_SAM_APDU [19:41:38]CAPDU: 80 11 00 00 [19:41:38]Write to MH i2c: E2 08 00 24 08 80 11 00 00 00 00 00 00 A6 [19:41:38]Write i2c OK [19:41:38]MH_I2C_Read... [19:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:38]Read from MH i2c: E2 [19:41:38]MH_I2C_Read... [19:41:38]Read from MH i2c: E2 17 00 [19:41:38]MH_I2C_Read... [19:41:38]Read from MH i2c: E2 17 00 24 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F4 [19:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [19:41:38]wFMCommunicate OK [19:41:38]requested_item fd.num is exist - process it [19:41:38]SAM_PROTO_GetFieldsCounters [19:41:38]wFMCommunicate request_size=4 [19:41:38]MH_SAM_APDU [19:41:38]CAPDU: 80 13 00 00 [19:41:38]Write to MH i2c: E2 08 00 25 08 80 13 00 00 00 00 00 00 A9 [19:41:38]Write i2c OK [19:41:38]MH_I2C_Read... [19:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:38]Read from MH i2c: E2 [19:41:38]MH_I2C_Read... [19:41:38]Read from MH i2c: E2 62 00 [19:41:38]MH_I2C_Read... [19:41:38]Read from MH i2c: E2 62 00 25 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2E C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [19:41: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2E C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:38]wFMCommunicate OK [19:41:38]SAM_PROTO_GetFieldsCounters done [19:41:38]requested_item shift.num is exist - process it [19:41:38]requested_item shift.opened is exist - process it [19:41:38]req_shift_opened [19:41:38]FM_GetShiftState [19:41:38]SAM_PROTO_GetShiftState [19:41:38]wFMCommunicate request_size=4 [19:41:38]MH_SAM_APDU [19:41:38]CAPDU: 80 13 01 00 [19:41:38]Write to MH i2c: E2 08 00 26 08 80 13 01 00 00 00 00 00 AB [19:41:38]Write i2c OK [19:41:38]MH_I2C_Read... [19:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:38]Read from MH i2c: E2 [19:41:38]MH_I2C_Read... [19:41:38]Read from MH i2c: E2 0E 00 [19:41:38]MH_I2C_Read... [19:41:38]Read from MH i2c: E2 0E 00 26 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 EC [19:41:38]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [19:41:38]wFMCommunicate OK [19:41:38]SAM_PROTO_GetShiftState done [19:41:38]FM_GetShiftState done [19:41:38]req_shift_opened done [19:41:38]requested_item shift.open_date is exist - process it [19:41:38]req_shift_open_date [19:41:38]req_shift_open_date done [19:41:38]produce_requested_data done [19:41:38]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115758,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [19:41:38]process_action_free close_receipt [19:41:38]json_value_free [19:41:38]json_value_free done [19:41:38]process_json_proto returns [19:41:38]Send response to host [19:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115758,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [19:41:38]free response buf [19:41:38]execute_script done [19:41:38]execute_script returns [19:41:38]free content buf [19:41:38]Sock 8.Close socket [19:41:38]Sock 8.Thread stoped [19:43:46]ConnectInit Can't connect to host [19:43:46]CommunicateWithHost connect error [19:43:46]CommunicateWithHost err = -1 [19:43:46]OFD Sender: Server communicate error [19:43:51]OFD Sender: Processing packet 115758 [packets to send 482, broken 481] [19:43:51]ProducePacketName [19:43:51]name=ofd_packets/00115758 [19:43:51]OFD Sender: To server: pG, [19:43:51]CommunicateWithHost lk.salyk.kg:30040 [19:43:51]ConnectInit lk.salyk.kg [19:43:51]Connected sock=8 [19:43: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 38 33 30 1E 01 00 00 6F 87 16 01 67 2E 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 6F C4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2E C4 01 00 35 04 06 00 AE 80 04 B5 5F 78 B7 4C AA 6C D9 12 D7 1C [19:43:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 5F 72 47 00 36 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 38 33 30 10 04 04 00 2E C4 01 00 F4 03 04 00 38 6A F1 66 B6 04 01 00 00 4A 12 5E 50 AD A7 2F 7F [19:43:52]CommunicateWithHost err = 0 [19:43:52]CheckOFDResponse [19:43:52]1017 (14) - 77093643461234 [19:43:52]1041 (16) - 0000000000871830 [19:43:52]1040 (4) - 115758 [19:43:52]1012 (4) - 23.09.2024 13:16 [19:43:52]1206 (1) - 0 [19:43:52]OFD Sender: Remove packet 115758 [19:43:52]ProducePacketName [19:43:52]name=ofd_packets/00115758 [19:43:52]NVStorageDeleteData [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:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:37]accept exits with 9 [20:02:37]New connection [20:02:37]New thread 3066867044 created [20:02:37]Thread 3067010404 joined [20:02:37]Waiting for new connection... [20:02:37] Sock 9.Parse request [20:02:37]Sock 9.Check first char [20:02:37]Sock 9.First char is OK [20:02:37]request: POST /json_proto HTTP/1.0 [20:02:37]Method: POST [20:02:37]URL: /json_proto [20:02:37]Method is POST - this is cgi request [20:02:37]url: /json_proto [20:02:37]query_string will be loaded in cgi processing [20:02:37]execute_cgi json_proto POST (null) [20:02:37]execute_cgi path=json_proto method=POST [20:02:37]POST find Content-Length [20:02:37]Host: 172.17.41.136:8080 [20:02:37]Content-Length: 862 [20:02:37]Content-Type: application/json [20:02:37] [20:02:37]POST finish read [20:02:37]Found Content-Length = 862 [20:02:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344079", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:37]execute_script... [20:02: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 : (3)344079", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:37]POST & json_proto [20:02:37]process_json_proto [20:02:37]json parsed OK: [20:02:37]protocol is kg_v1.0 [20:02:37]action value=close_receipt [20:02:37]process_action close_receipt [20:02:37]cmd_close_receipt [20:02:37]MH_GetDate [20:02:37]Write to MH i2c: F0 00 00 27 08 1E [20:02:37]Write i2c OK [20:02:37]MH_I2C_Read... [20:02:37]Read from MH i2c: F0 [20:02:37]MH_I2C_Read... [20:02:37]Read from MH i2c: F0 09 00 [20:02:37]MH_I2C_Read... [20:02:37]Read from MH i2c: F0 09 00 27 08 00 5F C9 F1 66 1B D0 5A 64 4F [20:02:37]GetLastDocTimeStamp 1727120495 [20:02:37]current date 1727121759 [20:02:37]FM_GetShiftState [20:02:37]SAM_PROTO_GetShiftState [20:02:37]wFMCommunicate request_size=4 [20:02:37]MH_SAM_APDU [20:02:37]CAPDU: 80 13 01 00 [20:02:37]Write to MH i2c: E2 08 00 28 08 80 13 01 00 00 00 00 00 AD [20:02:37]Write i2c OK [20:02:37]MH_I2C_Read... [20:02:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:37]Read from MH i2c: E2 [20:02:37]MH_I2C_Read... [20:02:37]Read from MH i2c: E2 0E 00 [20:02:37]MH_I2C_Read... [20:02:37]Read from MH i2c: E2 0E 00 28 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 EE [20:02:37]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:02:37]wFMCommunicate OK [20:02:37]SAM_PROTO_GetShiftState done [20:02:37]FM_GetShiftState done [20:02:37]opened in 1727052070 [20:02:37]opened+sec_in_day 1727138470 [20:02:37]quantity*price = 10000 [20:02:37]sum+1 = 10001 [20:02:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.85 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 242 23.09.2024 20:02 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115759 ФПД: 5931700967880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T200239&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115759&fm=5931700967880&tin=02508201610067®Number=0000000000091831&sum=21000 0 [20:02:38]StoreToDocumentArchive [20:02:38]shift 472 fd 115759 [20:02:38]save to /storage/0472/doc_00115759 [20:02:38]save last doc name /storage/0472/doc_00115759 to /storage/kkm_last_doc_name [20:02:38]save OK [20:02:38]Clear old archive folders... [20:02:38]ProcessDocumentItem done err = 0, tmpTLVsize=365 [20:02:38]tlvbuf is B6DB6310 [20:02:38]SAM_PROTO_ClearQueue [20:02:38]wFMCommunicate request_size=4 [20:02:38]MH_SAM_APDU [20:02:38]CAPDU: 80 09 00 00 [20:02:38]Write to MH i2c: E2 08 00 35 08 80 09 00 00 00 00 00 00 AF [20:02:38]Write i2c OK [20:02:38]MH_I2C_Read... [20:02:38]Read from MH i2c: E2 [20:02:38]MH_I2C_Read... [20:02:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:38]Read from MH i2c: E2 03 00 [20:02:38]MH_I2C_Read... [20:02:38]Read from MH i2c: E2 03 00 35 08 00 90 00 B1 [20:02:38]RAPDU: 90 00 [20:02:38]wFMCommunicate OK [20:02:38]SAM_PROTO_ClearQueue done [20:02:38]KKMCreateOFDPacket [20:02:38]OFDProtocolAddRootSTLVToBuf [20:02:38]FM_MakeSignedData [20:02:38]FM_MakeSignedData [20:02:38]SAM_PROTO_SignData [20:02:38]wFMCommunicate request_size=4 [20:02:38]MH_SAM_APDU [20:02:38]CAPDU: 80 0D 01 02 [20:02:38]Write to MH i2c: E2 08 00 36 08 80 0D 01 02 00 00 00 00 B7 [20:02:38]Write i2c OK [20:02:38]MH_I2C_Read... [20:02:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:39]Read from MH i2c: E2 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 03 00 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 03 00 36 08 00 90 00 B2 [20:02:39]RAPDU: 90 00 [20:02:39]wFMCommunicate OK [20:02:39]wFMCommunicate request_size=255 [20:02:39]MH_SAM_APDU [20:02:39]CAPDU: 80 0D 02 02 FA 03 00 6D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 [20:02:39]Write to MH i2c: E2 02 01 37 08 80 0D 02 02 FA 00 03 00 6D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 09 [20:02:39]Write i2c OK [20:02:39]MH_I2C_Read... [20:02:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:39]Read from MH i2c: E2 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 03 00 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 03 00 37 08 00 90 00 B3 [20:02:39]RAPDU: 90 00 [20:02:39]wFMCommunicate OK [20:02:39]wFMCommunicate request_size=124 [20:02:39]MH_SAM_APDU [20:02:39]CAPDU: 80 0D 02 02 77 B6 08 00 00 00 00 07 04 06 00 08 52 00 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 5F C9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2F C4 01 00 35 04 06 00 05 65 14 ED D9 C8 [20:02:39]Write to MH i2c: E2 7F 00 38 08 80 0D 02 02 77 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 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 5F C9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2F C4 01 00 35 04 06 00 05 65 14 ED D9 C8 00 00 3C [20:02:39]Write i2c OK [20:02:39]MH_I2C_Read... [20:02:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:39]Read from MH i2c: E2 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 03 00 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 03 00 38 08 00 90 00 B4 [20:02:39]RAPDU: 90 00 [20:02:39]wFMCommunicate OK [20:02:39]wFMCommunicate request_size=4 [20:02:39]MH_SAM_APDU [20:02:39]CAPDU: 80 0D 03 02 [20:02:39]Write to MH i2c: E2 08 00 39 08 80 0D 03 02 00 00 00 00 BC [20:02:39]Write i2c OK [20:02:39]MH_I2C_Read... [20:02:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:39]Read from MH i2c: E2 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 0B 00 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 0B 00 39 08 00 8C CE FD 38 0D 18 7A AC 90 00 97 [20:02:39]RAPDU: 8C CE FD 38 0D 18 7A AC 90 00 [20:02:39]wFMCommunicate OK [20:02:39]SAM_PROTO_SignData done [20:02:39]FM_MakeSignedData done [20:02:39]CreateOFDProtocolMessage [20:02:39]wFMCommunicate request_size=4 [20:02:39]MH_SAM_APDU [20:02:39]CAPDU: 80 11 00 00 [20:02:39]Write to MH i2c: E2 08 00 3A 08 80 11 00 00 00 00 00 00 BC [20:02:39]Write i2c OK [20:02:39]MH_I2C_Read... [20:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:39]Read from MH i2c: E2 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 17 00 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 17 00 3A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0A [20:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:02:39]wFMCommunicate OK [20:02:39]CreateOFDProtocolMessage done [20:02:39]OFDSenderStorePacket 115759 [20:02:39]StoreOFDPacket docnum=115759 [20:02:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 81 01 00 00 51 67 79 01 4E F6 5A 03 01 00 03 00 6D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 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 5F C9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2F C4 01 00 35 04 06 00 05 65 14 ED D9 C8 8C CE FD 38 0D 18 7A AC [20:02:39]CheckFolder [20:02:39]dirname=/storage/ofd_packets [20:02:39]CheckFolder done [20:02:39]ProducePacketName [20:02:39]name=ofd_packets/00115759 [20:02:39]NVStorageSaveData ofd_packets/00115759 [20:02:39]File name is /storage/ofd_packets/00115759 [20:02:39]Write 415 bytes [20:02:39]NVStorageSaveData done [20:02:39]OFDSenderStorePacket done [20:02:39]KKMCreateOFDPacket done [20:02:39]NVStorageSaveData kkm_last_timestamp [20:02:39]File name is /storage/kkm_last_timestamp [20:02:39]Write 4 bytes [20:02:39]NVStorageSaveData done [20:02:39]ExternCall_PrintAddStr [20:02:39]wPrintStart [20:02:39]Write to MH i2c: 01 00 00 3B 08 43 [20:02:39]Write i2c OK [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: 01 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: 01 07 00 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: 01 07 00 3B 08 00 00 00 00 00 FF 0F 58 [20:02:39]RasterBufferAndPrint [20:02:39]line Счет N : (3)344079 [20:02:39]line ИНН: 02508201610067 [20:02:39]line Контрольно-Кассовый Чек [20:02:39]line ПРОДАЖА [20:02:39]line Товар: 4700000160358 [20:02:39]line Вода Легенда 1л [20:02:39]line 2.000 * 50.00 [20:02:39]line = 100.00 [20:02:39]line НДС 12% НСП 1% [20:02:39]line > о реализуемом товаре [20:02:39]line Товар: 4870001570071 [20:02:39]line Напиток Pepsi 1л [20:02:39]line 1.000 * 110.00 [20:02:39]line = 110.00 [20:02:39]line НДС 12% НСП 1% [20:02:39]line > о реализуемом товаре [20:02:39]line ИТОГО: 210.00 [20:02:39]line НСП 1% : 1.85 [20:02:39]line НДС 12% : 22.30 [20:02:39]line Наличными: 210.00 [20:02:39]line Безнал.: 0.00 [20:02:39]line Место: АЗС № 90 "Партнер Нефть" [20:02:39]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:02:39]line СНО: Общий режим [20:02:39]line Чек 242 23.09.2024 20:02 [20:02:39]line Смена: 472 ФФД: 1.0 [20:02:39]line ЗНМ: 0300000120 [20:02:39]line РНМ: 0000000000091831 [20:02:39]line Версия ККМ: 001 [20:02:39]line ФМ: 0000000000871830 [20:02:39]line ФД: 115759 [20:02:39]line ФПД: 5931700967880 [20:02:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T200239&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115759&fm=5931700967880&tin=02508201610067®Number=0000000000091831&sum=21000 [20:02:39]line 0 [20:02:39]OFD Sender: Processing packet 115759 [packets to send 482, broken 481] [20:02:39]ProducePacketName [20:02:39]name=ofd_packets/00115759 [20:02:39]OFD Sender: To server: pG, [20:02:39]CommunicateWithHost lk.salyk.kg:30040 [20:02:39]ConnectInit lk.salyk.kg [20:02:39]written 0, free lines is 4095 [20:02:40]Connected sock=10 [20:02:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 81 01 00 00 51 67 79 01 4E F6 5A 03 01 00 03 00 6D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 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 5F C9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 2F C4 01 00 35 04 06 00 05 65 14 ED D9 C8 8C CE FD 38 0D 18 7A AC [20:02:40]Write to MH i2c: 01 00 00 68 08 70 [20:02:40]Write i2c OK [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: 01 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: 01 07 00 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: 01 07 00 68 08 00 00 00 00 00 04 0C 87 [20:02:40]RasterBufferAndPrint [20:02:40]line [20:02:40]line [20:02:40]line [20:02:40]line [20:02:40]line [20:02:40]written 0, free lines is 3078 [20:02:40]MH_Cut [20:02:40]Write to MH i2c: D1 01 00 6F 08 01 49 [20:02:40]Write i2c OK [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: D1 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: D1 01 00 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: D1 01 00 6F 08 00 48 [20:02:40]Write to MH i2c: 01 00 00 70 08 78 [20:02:40]Write i2c OK [20:02:40]MH_I2C_Read... [20:02:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F6 C9 47 00 27 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 38 33 30 10 04 04 00 2F C4 01 00 F4 03 04 00 A1 6E F1 66 B6 04 01 00 00 2C 35 73 1A EF 18 0A BA [20:02:40]CommunicateWithHost err = 0 [20:02:40]CheckOFDResponse [20:02:40]1017 (14) - 77093643461234 [20:02:40]1041 (16) - 0000000000871830 [20:02:40]1040 (4) - 115759 [20:02:40]1012 (4) - 23.09.2024 13:35 [20:02:40]1206 (1) - 0 [20:02:40]OFD Sender: Remove packet 115759 [20:02:40]ProducePacketName [20:02:40]name=ofd_packets/00115759 [20:02:40]NVStorageDeleteData [20:02:40]OFD Sender: No OFD packet to send [20:02:41]*** Cut start [20:02:41]*** Partial cut [20:02:41]*** CUTSNS_PIN = 1 [20:02:41]*** CUTSNS_PIN = 0 [20:02:42]*** Brake cut motor [20:02:42]Read from MH i2c: 01 [20:02:42]MH_I2C_Read... [20:02:42]*** Stop cut motor [20:02:42]*** Cut end [20:02:42]Read from MH i2c: 01 07 00 [20:02:42]MH_I2C_Read... [20:02:42]Read from MH i2c: 01 07 00 70 08 00 00 00 00 00 FF 0F 8D [20:02:42]process_action close_receipt done [20:02:42]requested_data is exist [20:02:42]produce_requested_data [20:02:42]requested_item fm.sn is exist - process it [20:02:42]wFMCommunicate request_size=4 [20:02:42]MH_SAM_APDU [20:02:42]CAPDU: 80 11 00 00 [20:02:42]Write to MH i2c: E2 08 00 71 08 80 11 00 00 00 00 00 00 F3 [20:02:42]Write i2c OK [20:02:42]MH_I2C_Read... [20:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:42]Read from MH i2c: E2 [20:02:42]MH_I2C_Read... [20:02:42]Read from MH i2c: E2 17 00 [20:02:42]MH_I2C_Read... [20:02:42]Read from MH i2c: E2 17 00 71 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 41 [20:02:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:02:42]wFMCommunicate OK [20:02:42]requested_item fd.num is exist - process it [20:02:42]SAM_PROTO_GetFieldsCounters [20:02:42]wFMCommunicate request_size=4 [20:02:42]MH_SAM_APDU [20:02:42]CAPDU: 80 13 00 00 [20:02:42]Write to MH i2c: E2 08 00 72 08 80 13 00 00 00 00 00 00 F6 [20:02:42]Write i2c OK [20:02:42]MH_I2C_Read... [20:02:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:42]Read from MH i2c: E2 [20:02:42]MH_I2C_Read... [20:02:42]Read from MH i2c: E2 62 00 [20:02:42]MH_I2C_Read... [20:02:42]Read from MH i2c: E2 62 00 72 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2F C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [20:02:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 2F C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:02:42]wFMCommunicate OK [20:02:42]SAM_PROTO_GetFieldsCounters done [20:02:42]requested_item shift.num is exist - process it [20:02:42]requested_item shift.opened is exist - process it [20:02:42]req_shift_opened [20:02:42]FM_GetShiftState [20:02:42]SAM_PROTO_GetShiftState [20:02:42]wFMCommunicate request_size=4 [20:02:42]MH_SAM_APDU [20:02:42]CAPDU: 80 13 01 00 [20:02:42]Write to MH i2c: E2 08 00 73 08 80 13 01 00 00 00 00 00 F8 [20:02:42]Write i2c OK [20:02:42]MH_I2C_Read... [20:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:42]Read from MH i2c: E2 [20:02:42]MH_I2C_Read... [20:02:42]Read from MH i2c: E2 0E 00 [20:02:42]MH_I2C_Read... [20:02:42]Read from MH i2c: E2 0E 00 73 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 39 [20:02:42]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:02:42]wFMCommunicate OK [20:02:42]SAM_PROTO_GetShiftState done [20:02:42]FM_GetShiftState done [20:02:42]req_shift_opened done [20:02:42]requested_item shift.open_date is exist - process it [20:02:42]req_shift_open_date [20:02:42]req_shift_open_date done [20:02:42]produce_requested_data done [20:02:42]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115759,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [20:02:42]process_action_free close_receipt [20:02:42]json_value_free [20:02:42]json_value_free done [20:02:42]process_json_proto returns [20:02:42]Send response to host [20:02:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115759,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [20:02:42]free response buf [20:02:42]execute_script done [20:02:42]execute_script returns [20:02:42]free content buf [20:02:42]Sock 9.Close socket [20:02:42]Sock 9.Thread stoped [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:23]accept exits with 8 [20:12:23]New connection [20:12:23]New thread 3067010404 created [20:12:23]Thread 3066867044 joined [20:12:23]Waiting for new connection... [20:12:23] Sock 8.Parse request [20:12:23]Sock 8.Check first char [20:12:23]Sock 8.First char is OK [20:12:23]request: POST /json_proto HTTP/1.0 [20:12:23]Method: POST [20:12:23]URL: /json_proto [20:12:23]Method is POST - this is cgi request [20:12:23]url: /json_proto [20:12:23]query_string will be loaded in cgi processing [20:12:23]execute_cgi json_proto POST (null) [20:12:23]execute_cgi path=json_proto method=POST [20:12:23]POST find Content-Length [20:12:23]Host: 172.17.41.136:8080 [20:12:23]Content-Length: 1030 [20:12:23]Content-Type: application/json [20:12:23] [20:12:23]POST finish read [20:12:23]Found Content-Length = 1030 [20:12:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344080", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 206.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:23]execute_script... [20:12:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344080", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 206.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:23]POST & json_proto [20:12:23]process_json_proto [20:12:23]json parsed OK: [20:12:23]protocol is kg_v1.0 [20:12:23]action value=close_receipt [20:12:23]process_action close_receipt [20:12:23]cmd_close_receipt [20:12:23]MH_GetDate [20:12:23]Write to MH i2c: F0 00 00 74 08 6B [20:12:23]Write i2c OK [20:12:23]MH_I2C_Read... [20:12:23]Read from MH i2c: F0 [20:12:23]MH_I2C_Read... [20:12:23]Read from MH i2c: F0 09 00 [20:12:23]MH_I2C_Read... [20:12:23]Read from MH i2c: F0 09 00 74 08 00 A9 CB F1 66 1B D0 5A 64 E8 [20:12:23]GetLastDocTimeStamp 1727121759 [20:12:23]current date 1727122345 [20:12:23]FM_GetShiftState [20:12:23]SAM_PROTO_GetShiftState [20:12:23]wFMCommunicate request_size=4 [20:12:23]MH_SAM_APDU [20:12:23]CAPDU: 80 13 01 00 [20:12:23]Write to MH i2c: E2 08 00 75 08 80 13 01 00 00 00 00 00 FA [20:12:23]Write i2c OK [20:12:23]MH_I2C_Read... [20:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:23]Read from MH i2c: E2 [20:12:23]MH_I2C_Read... [20:12:23]Read from MH i2c: E2 0E 00 [20:12:23]MH_I2C_Read... [20:12:23]Read from MH i2c: E2 0E 00 75 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 3B [20:12:23]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:12:23]wFMCommunicate OK [20:12:23]SAM_PROTO_GetShiftState done [20:12:23]FM_GetShiftState done [20:12:23]opened in 1727052070 [20:12:23]opened+sec_in_day 1727138470 [20:12:23]quantity*price = 15600 [20:12:23]sum+1 = 15601 [20:12:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 206.00 НСП 1% : 1.82 НДС 12% : 21.88 Наличными: 0.00 Безнал.: 206.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 243 23.09.2024 20:12 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115760 ФПД: 155613391709736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T201225&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115760&fm=155613391709736&tin=02508201610067®Number=0000000000091831&sum=20600 0 [20:12:24]StoreToDocumentArchive [20:12:24]shift 472 fd 115760 [20:12:24]save to /storage/0472/doc_00115760 [20:12:24]save last doc name /storage/0472/doc_00115760 to /storage/kkm_last_doc_name [20:12:24]save OK [20:12:24]Clear old archive folders... [20:12:24]ProcessDocumentItem done err = 0, tmpTLVsize=373 [20:12:24]tlvbuf is 01140930 [20:12:24]SAM_PROTO_ClearQueue [20:12:24]wFMCommunicate request_size=4 [20:12:24]MH_SAM_APDU [20:12:24]CAPDU: 80 09 00 00 [20:12:24]Write to MH i2c: E2 08 00 82 08 80 09 00 00 00 00 00 00 FC [20:12:24]Write i2c OK [20:12:24]MH_I2C_Read... [20:12:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:24]Read from MH i2c: E2 [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: E2 03 00 [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: E2 03 00 82 08 00 90 00 FE [20:12:24]RAPDU: 90 00 [20:12:24]wFMCommunicate OK [20:12:24]SAM_PROTO_ClearQueue done [20:12:24]KKMCreateOFDPacket [20:12:24]OFDProtocolAddRootSTLVToBuf [20:12:24]FM_MakeSignedData [20:12:24]FM_MakeSignedData [20:12:24]SAM_PROTO_SignData [20:12:24]wFMCommunicate request_size=4 [20:12:24]MH_SAM_APDU [20:12:24]CAPDU: 80 0D 01 02 [20:12:24]Write to MH i2c: E2 08 00 83 08 80 0D 01 02 00 00 00 00 04 [20:12:24]Write i2c OK [20:12:24]MH_I2C_Read... [20:12:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:24]Read from MH i2c: E2 [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: E2 03 00 [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: E2 03 00 83 08 00 90 00 FF [20:12:24]RAPDU: 90 00 [20:12:24]wFMCommunicate OK [20:12:24]wFMCommunicate request_size=255 [20:12:24]MH_SAM_APDU [20:12:24]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 [20:12:24]Write to MH i2c: E2 02 01 84 08 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 00 00 0C [20:12:24]Write i2c OK [20:12:24]MH_I2C_Read... [20:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:25]Read from MH i2c: E2 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: E2 03 00 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: E2 03 00 84 08 00 90 00 00 [20:12:25]RAPDU: 90 00 [20:12:25]wFMCommunicate OK [20:12:25]wFMCommunicate request_size=132 [20:12:25]MH_SAM_APDU [20:12:25]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 8C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 A9 CB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 30 C4 01 00 35 04 06 00 8D 87 90 EF 66 28 [20:12:25]Write to MH i2c: E2 87 00 85 08 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 8C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 A9 CB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 30 C4 01 00 35 04 06 00 8D 87 90 EF 66 28 00 00 41 [20:12:25]Write i2c OK [20:12:25]MH_I2C_Read... [20:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:25]Read from MH i2c: E2 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: E2 03 00 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: E2 03 00 85 08 00 90 00 01 [20:12:25]RAPDU: 90 00 [20:12:25]wFMCommunicate OK [20:12:25]wFMCommunicate request_size=4 [20:12:25]MH_SAM_APDU [20:12:25]CAPDU: 80 0D 03 02 [20:12:25]Write to MH i2c: E2 08 00 86 08 80 0D 03 02 00 00 00 00 09 [20:12:25]Write i2c OK [20:12:25]MH_I2C_Read... [20:12:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:25]Read from MH i2c: E2 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: E2 0B 00 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: E2 0B 00 86 08 00 E9 EA 2C 8B A9 ED 3C 96 90 00 FC [20:12:25]RAPDU: E9 EA 2C 8B A9 ED 3C 96 90 00 [20:12:25]wFMCommunicate OK [20:12:25]SAM_PROTO_SignData done [20:12:25]FM_MakeSignedData done [20:12:25]CreateOFDProtocolMessage [20:12:25]wFMCommunicate request_size=4 [20:12:25]MH_SAM_APDU [20:12:25]CAPDU: 80 11 00 00 [20:12:25]Write to MH i2c: E2 08 00 87 08 80 11 00 00 00 00 00 00 09 [20:12:25]Write i2c OK [20:12:25]MH_I2C_Read... [20:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:25]Read from MH i2c: E2 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: E2 17 00 [20:12:25]MH_I2C_Read... [20:12:25]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 38 33 30 90 00 57 [20:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:12:25]wFMCommunicate OK [20:12:25]CreateOFDProtocolMessage done [20:12:25]OFDSenderStorePacket 115760 [20:12:25]StoreOFDPacket docnum=115760 [20:12:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 89 01 00 00 52 EB 81 01 25 93 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 A9 CB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 30 C4 01 00 35 04 06 00 8D 87 90 EF 66 28 E9 EA 2C 8B A9 ED 3C 96 [20:12:25]CheckFolder [20:12:25]dirname=/storage/ofd_packets [20:12:25]CheckFolder done [20:12:25]ProducePacketName [20:12:25]name=ofd_packets/00115760 [20:12:25]NVStorageSaveData ofd_packets/00115760 [20:12:25]File name is /storage/ofd_packets/00115760 [20:12:25]Write 423 bytes [20:12:25]NVStorageSaveData done [20:12:25]OFDSenderStorePacket done [20:12:25]KKMCreateOFDPacket done [20:12:25]NVStorageSaveData kkm_last_timestamp [20:12:25]File name is /storage/kkm_last_timestamp [20:12:25]Write 4 bytes [20:12:25]NVStorageSaveData done [20:12:25]ExternCall_PrintAddStr [20:12:25]wPrintStart [20:12:25]Write to MH i2c: 01 00 00 88 08 90 [20:12:25]Write i2c OK [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: 01 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: 01 07 00 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: 01 07 00 88 08 00 00 00 00 00 FF 0F A5 [20:12:25]RasterBufferAndPrint [20:12:25]line Счет N : (3)344080 [20:12:25]line ИНН: 02508201610067 [20:12:25]line Контрольно-Кассовый Чек [20:12:25]line ПРОДАЖА [20:12:25]line Товар: 48741958 [20:12:25]line Сигареты Parliament Aqua Blue [20:12:25]line 1.000 * 156.00 [20:12:25]line = 156.00 [20:12:25]line НДС 12% НСП 1% [20:12:25]line > о реализуемом товаре [20:12:25]line Товар: 4700000160358 [20:12:25]line Вода Легенда 1л [20:12:25]line 1.000 * 50.00 [20:12:25]line = 50.00 [20:12:25]line НДС 12% НСП 1% [20:12:25]line > о реализуемом товаре [20:12:25]line ИТОГО: 206.00 [20:12:25]line НСП 1% : 1.82 [20:12:25]line НДС 12% : 21.88 [20:12:25]line Наличными: 0.00 [20:12:25]line Безнал.: 206.00 [20:12:25]line Место: АЗС № 90 "Партнер Нефть" [20:12:25]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:12:25]line СНО: Общий режим [20:12:25]line Чек 243 23.09.2024 20:12 [20:12:25]line Смена: 472 ФФД: 1.0 [20:12:25]line ЗНМ: 0300000120 [20:12:25]line РНМ: 0000000000091831 [20:12:25]line Версия ККМ: 001 [20:12:25]line Платежная система: O! деньги [20:12:25]line ФМ: 0000000000871830 [20:12:25]line ФД: 115760 [20:12:25]line ФПД: 155613391709736 [20:12:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T201225&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115760&fm=155613391709736&tin=02508201610067®Number=0000000000091831&sum=20600 [20:12:25]line 0 [20:12:25]OFD Sender: Processing packet 115760 [packets to send 482, broken 481] [20:12:25]ProducePacketName [20:12:25]name=ofd_packets/00115760 [20:12:25]OFD Sender: To server: pG, [20:12:25]CommunicateWithHost lk.salyk.kg:30040 [20:12:25]ConnectInit lk.salyk.kg [20:12:25]written 0, free lines is 4095 [20:12:26]Connected sock=10 [20: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 38 33 30 89 01 00 00 52 EB 81 01 25 93 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 A9 CB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 30 C4 01 00 35 04 06 00 8D 87 90 EF 66 28 E9 EA 2C 8B A9 ED 3C 96 [20:12:26]Write to MH i2c: 01 00 00 B8 08 C0 [20:12:26]Write i2c OK [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: 01 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: 01 07 00 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: 01 07 00 B8 08 00 00 00 00 00 C3 0B 95 [20:12:26]RasterBufferAndPrint [20:12:26]line [20:12:26]line [20:12:26]line [20:12:26]line [20:12:26]line [20:12:26]written 0, free lines is 3014 [20:12:26]MH_Cut [20:12:26]Write to MH i2c: D1 01 00 BF 08 01 99 [20:12:26]Write i2c OK [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: D1 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: D1 01 00 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: D1 01 00 BF 08 00 98 [20:12:26]Write to MH i2c: 01 00 00 C0 08 C8 [20:12:26]Write i2c OK [20:12:26]MH_I2C_Read... [20: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 38 33 30 4F 00 00 00 7F 1A 47 00 55 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 30 C4 01 00 F4 03 04 00 EB 70 F1 66 B6 04 01 00 00 FA 83 99 50 A9 D9 6D FF [20:12:26]CommunicateWithHost err = 0 [20:12:26]CheckOFDResponse [20:12:26]1017 (14) - 77093643461234 [20:12:26]1041 (16) - 0000000000871830 [20:12:26]1040 (4) - 115760 [20:12:26]1012 (4) - 23.09.2024 13:45 [20:12:26]1206 (1) - 0 [20:12:26]OFD Sender: Remove packet 115760 [20:12:26]ProducePacketName [20:12:26]name=ofd_packets/00115760 [20:12:26]NVStorageDeleteData [20:12:26]OFD Sender: No OFD packet to send [20:12:27]*** Cut start [20:12:27]*** Partial cut [20:12:27]*** CUTSNS_PIN = 1 [20:12:27]*** CUTSNS_PIN = 0 [20:12:28]*** Brake cut motor [20:12:28]Read from MH i2c: 01 [20:12:28]MH_I2C_Read... [20:12:28]*** Stop cut motor [20:12:28]*** Cut end [20:12:28]Read from MH i2c: 01 07 00 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: 01 07 00 C0 08 00 00 00 00 00 FF 0F DD [20:12:28]process_action close_receipt done [20:12:28]requested_data is exist [20:12:28]produce_requested_data [20:12:28]requested_item fm.sn is exist - process it [20:12:28]wFMCommunicate request_size=4 [20:12:28]MH_SAM_APDU [20:12:28]CAPDU: 80 11 00 00 [20:12:28]Write to MH i2c: E2 08 00 C1 08 80 11 00 00 00 00 00 00 43 [20:12:28]Write i2c OK [20:12:28]MH_I2C_Read... [20:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:28]Read from MH i2c: E2 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 17 00 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 17 00 C1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 91 [20:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:12:28]wFMCommunicate OK [20:12:28]requested_item fd.num is exist - process it [20:12:28]SAM_PROTO_GetFieldsCounters [20:12:28]wFMCommunicate request_size=4 [20:12:28]MH_SAM_APDU [20:12:28]CAPDU: 80 13 00 00 [20:12:28]Write to MH i2c: E2 08 00 C2 08 80 13 00 00 00 00 00 00 46 [20:12:28]Write i2c OK [20:12:28]MH_I2C_Read... [20:12:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:28]Read from MH i2c: E2 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 62 00 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 62 00 C2 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 30 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [20: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 30 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:28]wFMCommunicate OK [20:12:28]SAM_PROTO_GetFieldsCounters done [20:12:28]requested_item shift.num is exist - process it [20:12:28]requested_item shift.opened is exist - process it [20:12:28]req_shift_opened [20:12:28]FM_GetShiftState [20:12:28]SAM_PROTO_GetShiftState [20:12:28]wFMCommunicate request_size=4 [20:12:28]MH_SAM_APDU [20:12:28]CAPDU: 80 13 01 00 [20:12:28]Write to MH i2c: E2 08 00 C3 08 80 13 01 00 00 00 00 00 48 [20:12:28]Write i2c OK [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 [20:12:28]MH_I2C_Read... [20:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:28]Read from MH i2c: E2 0E 00 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 0E 00 C3 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 89 [20:12:28]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:12:28]wFMCommunicate OK [20:12:28]SAM_PROTO_GetShiftState done [20:12:28]FM_GetShiftState done [20:12:28]req_shift_opened done [20:12:28]requested_item shift.open_date is exist - process it [20:12:28]req_shift_open_date [20:12:28]req_shift_open_date done [20:12:28]produce_requested_data done [20:12:28]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115760,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [20:12:28]process_action_free close_receipt [20:12:28]json_value_free [20:12:28]json_value_free done [20:12:28]process_json_proto returns [20:12:28]Send response to host [20:12:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115760,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [20:12:28]free response buf [20:12:28]execute_script done [20:12:28]execute_script returns [20:12:28]free content buf [20:12:28]Sock 8.Close socket [20:12:28]Sock 8.Thread stoped [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:38]accept exits with 9 [20:24:38]New connection [20:24:38]New thread 3066867044 created [20:24:38]Thread 3067010404 joined [20:24:38]Waiting for new connection... [20:24:38] Sock 9.Parse request [20:24:38]Sock 9.Check first char [20:24:38]Sock 9.First char is OK [20:24:38]request: POST /json_proto HTTP/1.0 [20:24:38]Method: POST [20:24:38]URL: /json_proto [20:24:38]Method is POST - this is cgi request [20:24:38]url: /json_proto [20:24:38]query_string will be loaded in cgi processing [20:24:38]execute_cgi json_proto POST (null) [20:24:38]execute_cgi path=json_proto method=POST [20:24:38]POST find Content-Length [20:24:38]Host: 172.17.41.136:8080 [20:24:38]Content-Length: 1311 [20:24:38]Content-Type: application/json [20:24:38] [20:24:38]POST finish read [20:24:38]Found Content-Length = 1311 [20:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344081", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:38]execute_script... [20:24:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344081", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:38]POST & json_proto [20:24:38]process_json_proto [20:24:38]json parsed OK: [20:24:38]protocol is kg_v1.0 [20:24:38]action value=close_receipt [20:24:38]process_action close_receipt [20:24:38]cmd_close_receipt [20:24:38]MH_GetDate [20:24:38]Write to MH i2c: F0 00 00 C4 08 BB [20:24:38]Write i2c OK [20:24:38]MH_I2C_Read... [20:24:38]Read from MH i2c: F0 [20:24:38]MH_I2C_Read... [20:24:38]Read from MH i2c: F0 09 00 [20:24:38]MH_I2C_Read... [20:24:38]Read from MH i2c: F0 09 00 C4 08 00 88 CE F1 66 1B D0 5A 64 1A [20:24:38]GetLastDocTimeStamp 1727122345 [20:24:38]current date 1727123080 [20:24:38]FM_GetShiftState [20:24:38]SAM_PROTO_GetShiftState [20:24:38]wFMCommunicate request_size=4 [20:24:38]MH_SAM_APDU [20:24:38]CAPDU: 80 13 01 00 [20:24:38]Write to MH i2c: E2 08 00 C5 08 80 13 01 00 00 00 00 00 4A [20:24:38]Write i2c OK [20:24:38]MH_I2C_Read... [20:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:39]Read from MH i2c: E2 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 0E 00 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 0E 00 C5 08 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 8B [20:24:39]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:24:39]wFMCommunicate OK [20:24:39]SAM_PROTO_GetShiftState done [20:24:39]FM_GetShiftState done [20:24:39]opened in 1727052070 [20:24:39]opened+sec_in_day 1727138470 [20:24:39]quantity*price = 26000 [20:24:39]sum+1 = 26001 [20:24:39]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700007690018 Негаз вода Pamir 0,5 л 2.000 * 30.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 550.00 НСП 1% : 4.86 НДС 12% : 58.40 Наличными: 0.00 Безнал.: 550.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 244 23.09.2024 20:24 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115761 ФПД: 239115912924485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T202440&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115761&fm=239115912924485&tin=02508201610067®Number=0000000000091831&sum=55000 0 [20:24:40]StoreToDocumentArchive [20:24:40]shift 472 fd 115761 [20:24:40]save to /storage/0472/doc_00115761 [20:24:40]save last doc name /storage/0472/doc_00115761 to /storage/kkm_last_doc_name [20:24:40]save OK [20:24:40]Clear old archive folders... [20:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=496 [20:24:40]tlvbuf is B6ECF7F0 [20:24:40]SAM_PROTO_ClearQueue [20:24:40]wFMCommunicate request_size=4 [20:24:40]MH_SAM_APDU [20:24:40]CAPDU: 80 09 00 00 [20:24:40]Write to MH i2c: E2 08 00 D2 08 80 09 00 00 00 00 00 00 4C [20:24:40]Write i2c OK [20:24:40]MH_I2C_Read... [20:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:24:40]Read from MH i2c: E2 [20:24:40]MH_I2C_Read... [20:24:40]Read from MH i2c: E2 03 00 [20:24:40]MH_I2C_Read... [20:24:40]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [20:24:40]RAPDU: 90 00 [20:24:40]wFMCommunicate OK [20:24:40]SAM_PROTO_ClearQueue done [20:24:40]KKMCreateOFDPacket [20:24:40]OFDProtocolAddRootSTLVToBuf [20:24:40]FM_MakeSignedData [20:24:40]FM_MakeSignedData [20:24:40]SAM_PROTO_SignData [20:24:40]wFMCommunicate request_size=4 [20:24:40]MH_SAM_APDU [20:24:40]CAPDU: 80 0D 01 02 [20:24:40]Write to MH i2c: E2 08 00 D3 08 80 0D 01 02 00 00 00 00 54 [20:24:40]Write i2c OK [20:24:40]MH_I2C_Read... [20:24:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:24:40]Read from MH i2c: E2 [20:24:40]MH_I2C_Read... [20:24:40]Read from MH i2c: E2 03 00 [20:24:40]MH_I2C_Read... [20:24:40]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [20:24:40]RAPDU: 90 00 [20:24:40]wFMCommunicate OK [20:24:40]wFMCommunicate request_size=255 [20:24:40]MH_SAM_APDU [20:24:40]CAPDU: 80 0D 02 02 FA 03 00 F0 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 [20:24:40]Write to MH i2c: E2 02 01 D4 08 80 0D 02 02 FA 00 03 00 F0 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 00 00 D0 [20:24:40]Write i2c OK [20:24:40]MH_I2C_Read... [20:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:40]Read from MH i2c: E2 [20:24:40]MH_I2C_Read... [20:24:40]Read from MH i2c: E2 03 00 [20:24:40]MH_I2C_Read... [20:24:40]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [20:24:40]RAPDU: 90 00 [20:24:40]wFMCommunicate OK [20:24:40]wFMCommunicate request_size=255 [20:24:40]MH_SAM_APDU [20:24:40]CAPDU: 80 0D 02 02 FA 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 88 CE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 31 C4 01 00 35 04 06 00 D9 79 83 0C CD 45 [20:24:40]Write to MH i2c: E2 02 01 D5 08 80 0D 02 02 FA 00 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 88 CE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 31 C4 01 00 35 04 06 00 D9 79 83 0C CD 45 00 00 0A [20:24:40]Write i2c OK [20:24:40]MH_I2C_Read... [20:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:41]Read from MH i2c: E2 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: E2 03 00 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: E2 03 00 D5 08 00 90 00 51 [20:24:41]RAPDU: 90 00 [20:24:41]wFMCommunicate OK [20:24:41]wFMCommunicate request_size=4 [20:24:41]MH_SAM_APDU [20:24:41]CAPDU: 80 0D 03 02 [20:24:41]Write to MH i2c: E2 08 00 D6 08 80 0D 03 02 00 00 00 00 59 [20:24:41]Write i2c OK [20:24:41]MH_I2C_Read... [20:24:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:24:41]Read from MH i2c: E2 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: E2 0B 00 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: E2 0B 00 D6 08 00 10 D5 F3 AE 04 69 0B DF 90 00 37 [20:24:41]RAPDU: 10 D5 F3 AE 04 69 0B DF 90 00 [20:24:41]wFMCommunicate OK [20:24:41]SAM_PROTO_SignData done [20:24:41]FM_MakeSignedData done [20:24:41]CreateOFDProtocolMessage [20:24:41]wFMCommunicate request_size=4 [20:24:41]MH_SAM_APDU [20:24:41]CAPDU: 80 11 00 00 [20:24:41]Write to MH i2c: E2 08 00 D7 08 80 11 00 00 00 00 00 00 59 [20:24:41]Write i2c OK [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: E2 [20:24:41]MH_I2C_Read... [20:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:41]Read from MH i2c: E2 17 00 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: E2 17 00 D7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A7 [20:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:24:41]wFMCommunicate OK [20:24:41]CreateOFDProtocolMessage done [20:24:41]OFDSenderStorePacket 115761 [20:24:41]StoreOFDPacket docnum=115761 [20:24:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 04 02 00 00 75 56 FC 01 11 7C 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 88 CE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 31 C4 01 00 35 04 06 00 D9 79 83 0C CD 45 10 D5 F3 AE 04 69 0B DF [20:24:41]CheckFolder [20:24:41]dirname=/storage/ofd_packets [20:24:41]CheckFolder done [20:24:41]ProducePacketName [20:24:41]name=ofd_packets/00115761 [20:24:41]NVStorageSaveData ofd_packets/00115761 [20:24:41]File name is /storage/ofd_packets/00115761 [20:24:41]Write 546 bytes [20:24:41]NVStorageSaveData done [20:24:41]OFDSenderStorePacket done [20:24:41]KKMCreateOFDPacket done [20:24:41]NVStorageSaveData kkm_last_timestamp [20:24:41]File name is /storage/kkm_last_timestamp [20:24:41]Write 4 bytes [20:24:41]NVStorageSaveData done [20:24:41]ExternCall_PrintAddStr [20:24:41]wPrintStart [20:24:41]Write to MH i2c: 01 00 00 D8 08 E0 [20:24:41]Write i2c OK [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: 01 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: 01 07 00 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: 01 07 00 D8 08 00 00 00 00 00 FF 0F F5 [20:24:41]RasterBufferAndPrint [20:24:41]line Счет N : (3)344081 [20:24:41]line ИНН: 02508201610067 [20:24:41]line Контрольно-Кассовый Чек [20:24:41]line ПРОДАЖА [20:24:41]line Товар: 2000036220012 [20:24:41]line Кофе Капучино XL(GABB TRADE) [20:24:41]line 2.000 * 130.00 [20:24:41]line = 260.00 [20:24:41]line НДС 12% НСП 1% [20:24:41]line > о реализуемом товаре [20:24:41]line Товар: 2000036210013 [20:24:41]line Кофе Капучино (GABB TRADE) [20:24:41]line 2.000 * 115.00 [20:24:41]line = 230.00 [20:24:41]line НДС 12% НСП 1% [20:24:41]line > о реализуемом товаре [20:24:41]line Товар: 4700007690018 [20:24:41]line Негаз вода Pamir 0,5 л [20:24:41]line 2.000 * 30.00 [20:24:41]line = 60.00 [20:24:41]line НДС 12% НСП 1% [20:24:41]line > о реализуемом товаре [20:24:41]line ИТОГО: 550.00 [20:24:41]line НСП 1% : 4.86 [20:24:41]line НДС 12% : 58.40 [20:24:41]line Наличными: 0.00 [20:24:41]line Безнал.: 550.00 [20:24:41]line Место: АЗС № 90 "Партнер Нефть" [20:24:41]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:24:41]line СНО: Общий режим [20:24:41]line Чек 244 23.09.2024 20:24 [20:24:41]line Смена: 472 ФФД: 1.0 [20:24:41]line ЗНМ: 0300000120 [20:24:41]line РНМ: 0000000000091831 [20:24:41]line Версия ККМ: 001 [20:24:41]line Платежная система: O! деньги [20:24:41]line ФМ: 0000000000871830 [20:24:41]line ФД: 115761 [20:24:41]line ФПД: 239115912924485 [20:24:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T202440&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115761&fm=239115912924485&tin=02508201610067®Number=0000000000091831&sum=55000 [20:24:41]line 0 [20:24:41]written 0, free lines is 4095 [20:24:41]OFD Sender: Processing packet 115761 [packets to send 482, broken 481] [20:24:41]ProducePacketName [20:24:41]name=ofd_packets/00115761 [20:24:41]OFD Sender: To server: pG, [20:24:41]CommunicateWithHost lk.salyk.kg:30040 [20:24:41]ConnectInit lk.salyk.kg [20:24:41]Connected sock=10 [20:24:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 04 02 00 00 75 56 FC 01 11 7C 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 88 CE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 31 C4 01 00 35 04 06 00 D9 79 83 0C CD 45 10 D5 F3 AE 04 69 0B DF [20:24:41]Write to MH i2c: 01 00 00 0E 09 17 [20:24:41]Write i2c OK [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: 01 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: 01 07 00 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: 01 07 00 0E 09 00 00 00 00 00 3F 0B 68 [20:24:41]RasterBufferAndPrint [20:24:41]line [20:24:41]line [20:24:41]line [20:24:41]line [20:24:41]line [20:24:41]written 0, free lines is 2882 [20:24:41]MH_Cut [20:24:41]Write to MH i2c: D1 01 00 15 09 01 F0 [20:24:41]Write i2c OK [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: D1 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: D1 01 00 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: D1 01 00 15 09 00 EF [20:24:41]Write to MH i2c: 01 00 00 16 09 1F [20:24:41]Write i2c OK [20:24:41]MH_I2C_Read... [20:24:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 BD F6 47 00 6F 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 38 33 30 10 04 04 00 31 C4 01 00 F4 03 04 00 CA 73 F1 66 B6 04 01 00 00 2A A3 12 C6 73 34 B0 3D [20:24:41]CommunicateWithHost err = 0 [20:24:41]CheckOFDResponse [20:24:41]1017 (14) - 77093643461234 [20:24:41]1041 (16) - 0000000000871830 [20:24:41]1040 (4) - 115761 [20:24:41]1012 (4) - 23.09.2024 13:57 [20:24:41]1206 (1) - 0 [20:24:41]OFD Sender: Remove packet 115761 [20:24:41]ProducePacketName [20:24:41]name=ofd_packets/00115761 [20:24:41]NVStorageDeleteData [20:24:42]OFD Sender: No OFD packet to send [20:24:43]*** Cut start [20:24:43]*** Partial cut [20:24:43]*** CUTSNS_PIN = 1 [20:24:43]*** CUTSNS_PIN = 0 [20:24:43]*** Brake cut motor [20:24:44]Read from MH i2c: 01 [20:24:44]MH_I2C_Read... [20:24:44]*** Stop cut motor [20:24:44]*** Cut end [20:24:44]Read from MH i2c: 01 07 00 [20:24:44]MH_I2C_Read... [20:24:44]Read from MH i2c: 01 07 00 16 09 00 00 00 00 00 FF 0F 34 [20:24:44]process_action close_receipt done [20:24:44]requested_data is exist [20:24:44]produce_requested_data [20:24:44]requested_item fm.sn is exist - process it [20:24:44]wFMCommunicate request_size=4 [20:24:44]MH_SAM_APDU [20:24:44]CAPDU: 80 11 00 00 [20:24:44]Write to MH i2c: E2 08 00 17 09 80 11 00 00 00 00 00 00 9A [20:24:44]Write i2c OK [20:24:44]MH_I2C_Read... [20:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:44]Read from MH i2c: E2 [20:24:44]MH_I2C_Read... [20:24:44]Read from MH i2c: E2 17 00 [20:24:44]MH_I2C_Read... [20:24:44]Read from MH i2c: E2 17 00 17 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E8 [20:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:24:44]wFMCommunicate OK [20:24:44]requested_item fd.num is exist - process it [20:24:44]SAM_PROTO_GetFieldsCounters [20:24:44]wFMCommunicate request_size=4 [20:24:44]MH_SAM_APDU [20:24:44]CAPDU: 80 13 00 00 [20:24:44]Write to MH i2c: E2 08 00 18 09 80 13 00 00 00 00 00 00 9D [20:24:44]Write i2c OK [20:24:44]MH_I2C_Read... [20:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:44]Read from MH i2c: E2 [20:24:44]MH_I2C_Read... [20:24:44]Read from MH i2c: E2 62 00 [20:24:44]MH_I2C_Read... [20:24:44]Read from MH i2c: E2 62 00 18 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 31 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [20:24:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 31 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:24:44]wFMCommunicate OK [20:24:44]SAM_PROTO_GetFieldsCounters done [20:24:44]requested_item shift.num is exist - process it [20:24:44]requested_item shift.opened is exist - process it [20:24:44]req_shift_opened [20:24:44]FM_GetShiftState [20:24:44]SAM_PROTO_GetShiftState [20:24:44]wFMCommunicate request_size=4 [20:24:44]MH_SAM_APDU [20:24:44]CAPDU: 80 13 01 00 [20:24:44]Write to MH i2c: E2 08 00 19 09 80 13 01 00 00 00 00 00 9F [20:24:44]Write i2c OK [20:24:44]MH_I2C_Read... [20:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:44]Read from MH i2c: E2 [20:24:44]MH_I2C_Read... [20:24:44]Read from MH i2c: E2 0E 00 [20:24:44]MH_I2C_Read... [20:24:44]Read from MH i2c: E2 0E 00 19 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E0 [20:24:44]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:24:44]wFMCommunicate OK [20:24:44]SAM_PROTO_GetShiftState done [20:24:44]FM_GetShiftState done [20:24:44]req_shift_opened done [20:24:44]requested_item shift.open_date is exist - process it [20:24:44]req_shift_open_date [20:24:44]req_shift_open_date done [20:24:44]produce_requested_data done [20:24:44]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115761,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [20:24:44]process_action_free close_receipt [20:24:44]json_value_free [20:24:44]json_value_free done [20:24:44]process_json_proto returns [20:24:44]Send response to host [20:24:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115761,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [20:24:44]free response buf [20:24:44]execute_script done [20:24:44]execute_script returns [20:24:44]free content buf [20:24:44]Sock 9.Close socket [20:24:44]Sock 9.Thread stoped [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:56]accept exits with 8 [20:26:56]New connection [20:26:56]New thread 3067010404 created [20:26:56]Thread 3066867044 joined [20:26:56]Waiting for new connection... [20:26:56] Sock 8.Parse request [20:26:56]Sock 8.Check first char [20:26:56]Sock 8.First char is OK [20:26:56]request: POST /json_proto HTTP/1.0 [20:26:56]Method: POST [20:26:56]URL: /json_proto [20:26:56]Method is POST - this is cgi request [20:26:56]url: /json_proto [20:26:56]query_string will be loaded in cgi processing [20:26:56]execute_cgi json_proto POST (null) [20:26:56]execute_cgi path=json_proto method=POST [20:26:56]POST find Content-Length [20:26:56]Host: 172.17.41.136:8080 [20:26:56]Content-Length: 756 [20:26:56]Content-Type: application/json [20:26:56] [20:26:56]POST finish read [20:26:56]Found Content-Length = 756 [20:26:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24618026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "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\u000A30039459", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:56]execute_script... [20:26:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24618026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "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\u000A30039459", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:56]POST & json_proto [20:26:56]process_json_proto [20:26:56]json parsed OK: [20:26:56]protocol is kg_v1.0 [20:26:56]action value=close_receipt [20:26:56]process_action close_receipt [20:26:56]cmd_close_receipt [20:26:56]MH_GetDate [20:26:56]Write to MH i2c: F0 00 00 1A 09 12 [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: F0 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: F0 09 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: F0 09 00 1A 09 00 12 CF F1 66 1B D0 5A 64 FC [20:26:56]GetLastDocTimeStamp 1727123080 [20:26:56]current date 1727123218 [20:26:56]FM_GetShiftState [20:26:56]SAM_PROTO_GetShiftState [20:26:56]wFMCommunicate request_size=4 [20:26:56]MH_SAM_APDU [20:26:56]CAPDU: 80 13 01 00 [20:26:56]Write to MH i2c: E2 08 00 1B 09 80 13 01 00 00 00 00 00 A1 [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 0E 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 0E 00 1B 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E2 [20:26:56]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:26:56]wFMCommunicate OK [20:26:56]SAM_PROTO_GetShiftState done [20:26:56]FM_GetShiftState done [20:26:56]opened in 1727052070 [20:26:56]opened+sec_in_day 1727138470 [20:26:56]quantity*price = 0 [20:26:56]sum+1 = 1 [20:26:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 245 23.09.2024 20:26 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30039459 ФМ: 0000000000871830 ФД: 115762 ФПД: 204877508759298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T202658&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115762&fm=204877508759298&tin=02508201610067®Number=0000000000091831&sum=0 [20:26:57]StoreToDocumentArchive [20:26:57]shift 472 fd 115762 [20:26:57]save to /storage/0472/doc_00115762 [20:26:57]save last doc name /storage/0472/doc_00115762 to /storage/kkm_last_doc_name [20:26:57]save OK [20:26:57]Clear old archive folders... [20:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:57]tlvbuf is 01168970 [20:26:57]SAM_PROTO_ClearQueue [20:26:57]wFMCommunicate request_size=4 [20:26:57]MH_SAM_APDU [20:26:57]CAPDU: 80 09 00 00 [20:26:57]Write to MH i2c: E2 08 00 28 09 80 09 00 00 00 00 00 00 A3 [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:57]Read from MH i2c: E2 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 28 09 00 90 00 A5 [20:26:57]RAPDU: 90 00 [20:26:57]wFMCommunicate OK [20:26:57]SAM_PROTO_ClearQueue done [20:26:57]KKMCreateOFDPacket [20:26:57]OFDProtocolAddRootSTLVToBuf [20:26:57]FM_MakeSignedData [20:26:57]FM_MakeSignedData [20:26:57]SAM_PROTO_SignData [20:26:57]wFMCommunicate request_size=4 [20:26:57]MH_SAM_APDU [20:26:57]CAPDU: 80 0D 01 02 [20:26:57]Write to MH i2c: E2 08 00 29 09 80 0D 01 02 00 00 00 00 AB [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]OFD Sender: No OFD packet to send [20:26:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:57]Read from MH i2c: E2 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 29 09 00 90 00 A6 [20:26:57]RAPDU: 90 00 [20:26:57]wFMCommunicate OK [20:26:57]wFMCommunicate request_size=255 [20:26:57]MH_SAM_APDU [20:26:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 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 F5 00 00 00 F4 03 04 00 12 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 32 C4 01 00 35 04 06 00 BA [20:26:57]Write to MH i2c: E2 02 01 2A 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 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 F5 00 00 00 F4 03 04 00 12 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 32 C4 01 00 35 04 06 00 BA 00 00 3B [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:58]Read from MH i2c: E2 03 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 2A 09 00 90 00 A7 [20:26:58]RAPDU: 90 00 [20:26:58]wFMCommunicate OK [20:26:58]wFMCommunicate request_size=10 [20:26:58]MH_SAM_APDU [20:26:58]CAPDU: 80 0D 02 02 05 55 C3 21 CF 02 [20:26:58]Write to MH i2c: E2 0D 00 2B 09 80 0D 02 02 05 00 55 C3 21 CF 02 00 00 C2 [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 2B 09 00 90 00 A8 [20:26:58]RAPDU: 90 00 [20:26:58]wFMCommunicate OK [20:26:58]wFMCommunicate request_size=4 [20:26:58]MH_SAM_APDU [20:26:58]CAPDU: 80 0D 03 02 [20:26:58]Write to MH i2c: E2 08 00 2C 09 80 0D 03 02 00 00 00 00 B0 [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 0B 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 0B 00 2C 09 00 BC 2C 30 26 FD A2 E5 16 90 00 89 [20:26:58]RAPDU: BC 2C 30 26 FD A2 E5 16 90 00 [20:26:58]wFMCommunicate OK [20:26:58]SAM_PROTO_SignData done [20:26:58]FM_MakeSignedData done [20:26:58]CreateOFDProtocolMessage [20:26:58]wFMCommunicate request_size=4 [20:26:58]MH_SAM_APDU [20:26:58]CAPDU: 80 11 00 00 [20:26:58]Write to MH i2c: E2 08 00 2D 09 80 11 00 00 00 00 00 00 B0 [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 17 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 17 00 2D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FE [20:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:26:58]wFMCommunicate OK [20:26:58]CreateOFDProtocolMessage done [20:26:58]OFDSenderStorePacket 115762 [20:26:58]StoreOFDPacket docnum=115762 [20:26:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 F0 3A 07 01 3B 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 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 F5 00 00 00 F4 03 04 00 12 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 32 C4 01 00 35 04 06 00 BA 55 C3 21 CF 02 BC 2C 30 26 FD A2 E5 16 [20:26:58]CheckFolder [20:26:58]dirname=/storage/ofd_packets [20:26:58]CheckFolder done [20:26:58]ProducePacketName [20:26:58]name=ofd_packets/00115762 [20:26:58]NVStorageSaveData ofd_packets/00115762 [20:26:58]File name is /storage/ofd_packets/00115762 [20:26:58]Write 301 bytes [20:26:58]NVStorageSaveData done [20:26:58]OFDSenderStorePacket done [20:26:58]KKMCreateOFDPacket done [20:26:58]NVStorageSaveData kkm_last_timestamp [20:26:58]File name is /storage/kkm_last_timestamp [20:26:58]Write 4 bytes [20:26:58]NVStorageSaveData done [20:26:58]ExternCall_PrintAddStr [20:26:58]wPrintStart [20:26:58]Write to MH i2c: 01 00 00 2E 09 37 [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: 01 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: 01 07 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: 01 07 00 2E 09 00 00 00 00 00 FF 0F 4C [20:26:58]RasterBufferAndPrint [20:26:58]line Счет N : (1)24618026 [20:26:58]line ИНН: 02508201610067 [20:26:58]line Контрольно-Кассовый Чек [20:26:58]line ПРОДАЖА [20:26:58]line ТРК (МРК, ГНК) : 53 [20:26:58]line Товар: 2710124130 [20:26:58]line Аи-92-К-5 [20:26:58]line 14.750 * 0.00 [20:26:58]line = 0.00 [20:26:58]line НДС 12% НСП 1% [20:26:58]line > о реализуемом товаре [20:26:58]line ИТОГО: 0.00 [20:26:58]line НСП 1% : 0.00 [20:26:58]line НДС 12% : 0.00 [20:26:58]line Наличными: 0.00 [20:26:58]line Безнал.: 0.00 [20:26:58]line Место: АЗС № 90 "Партнер Нефть" [20:26:58]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:26:58]line СНО: Общий режим [20:26:58]line Чек 245 23.09.2024 20:26 [20:26:58]line Смена: 472 ФФД: 1.0 [20:26:58]line ЗНМ: 0300000120 [20:26:58]line РНМ: 0000000000091831 [20:26:58]line Версия ККМ: 001 [20:26:58]line Талоны: ТК ГПНА Online [20:26:58]line 30039459 [20:26:58]line ФМ: 0000000000871830 [20:26:58]line ФД: 115762 [20:26:58]line ФПД: 204877508759298 [20:26:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T202658&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115762&fm=204877508759298&tin=02508201610067®Number=0000000000091831&sum=0 [20:26:58]written 0, free lines is 4095 [20:26:58]OFD Sender: Processing packet 115762 [packets to send 482, broken 481] [20:26:58]ProducePacketName [20:26:58]name=ofd_packets/00115762 [20:26:58]OFD Sender: To server: pG, [20:26:58]CommunicateWithHost lk.salyk.kg:30040 [20:26:58]ConnectInit lk.salyk.kg [20:26:58]Connected sock=10 [20:26:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 F0 3A 07 01 3B 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 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 F5 00 00 00 F4 03 04 00 12 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 32 C4 01 00 35 04 06 00 BA 55 C3 21 CF 02 BC 2C 30 26 FD A2 E5 16 [20:26:58]Write to MH i2c: 01 00 00 57 09 60 [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: 01 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: 01 07 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: 01 07 00 57 09 00 00 00 00 00 63 0C D6 [20:26:58]RasterBufferAndPrint [20:26:58]line [20:26:58]line [20:26:58]line [20:26:58]line [20:26:58]line [20:26:58]written 0, free lines is 3174 [20:26:58]MH_Cut [20:26:58]Write to MH i2c: D1 01 00 5E 09 01 39 [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: D1 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: D1 01 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: D1 01 00 5E 09 00 38 [20:26:58]Write to MH i2c: 01 00 00 5F 09 68 [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 45 64 47 00 D4 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 32 C4 01 00 F4 03 04 00 53 74 F1 66 B6 04 01 00 00 20 CF A6 0A DB A8 58 91 [20:26:58]CommunicateWithHost err = 0 [20:26:58]CheckOFDResponse [20:26:58]1017 (14) - 77093643461234 [20:26:58]1041 (16) - 0000000000871830 [20:26:58]1040 (4) - 115762 [20:26:58]1012 (4) - 23.09.2024 13:59 [20:26:58]1206 (1) - 0 [20:26:58]OFD Sender: Remove packet 115762 [20:26:58]ProducePacketName [20:26:58]name=ofd_packets/00115762 [20:26:58]NVStorageDeleteData [20:26:59]OFD Sender: No OFD packet to send [20:26:59]*** Cut start [20:26:59]*** Partial cut [20:26:59]*** CUTSNS_PIN = 1 [20:27:00]*** CUTSNS_PIN = 0 [20:27:00]*** Brake cut motor [20:27:00]Read from MH i2c: 01 [20:27:00]MH_I2C_Read... [20:27:00]*** Stop cut motor [20:27:00]*** Cut end [20:27:00]Read from MH i2c: 01 07 00 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: 01 07 00 5F 09 00 00 00 00 00 FF 0F 7D [20:27:00]process_action close_receipt done [20:27:00]requested_data is exist [20:27:00]produce_requested_data [20:27:00]requested_item fm.sn is exist - process it [20:27:00]wFMCommunicate request_size=4 [20:27:00]MH_SAM_APDU [20:27:00]CAPDU: 80 11 00 00 [20:27:00]Write to MH i2c: E2 08 00 60 09 80 11 00 00 00 00 00 00 E3 [20:27:00]Write i2c OK [20:27:00]MH_I2C_Read... [20:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:00]Read from MH i2c: E2 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: E2 17 00 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: E2 17 00 60 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 31 [20:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:27:00]wFMCommunicate OK [20:27:00]requested_item fd.num is exist - process it [20:27:00]SAM_PROTO_GetFieldsCounters [20:27:00]wFMCommunicate request_size=4 [20:27:00]MH_SAM_APDU [20:27:00]CAPDU: 80 13 00 00 [20:27:00]Write to MH i2c: E2 08 00 61 09 80 13 00 00 00 00 00 00 E6 [20:27:00]Write i2c OK [20:27:00]MH_I2C_Read... [20:27:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:00]Read from MH i2c: E2 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: E2 62 00 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: E2 62 00 61 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 32 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [20:27:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 32 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:00]wFMCommunicate OK [20:27:00]SAM_PROTO_GetFieldsCounters done [20:27:00]requested_item shift.num is exist - process it [20:27:00]requested_item shift.opened is exist - process it [20:27:00]req_shift_opened [20:27:00]FM_GetShiftState [20:27:00]SAM_PROTO_GetShiftState [20:27:00]wFMCommunicate request_size=4 [20:27:00]MH_SAM_APDU [20:27:00]CAPDU: 80 13 01 00 [20:27:00]Write to MH i2c: E2 08 00 62 09 80 13 01 00 00 00 00 00 E8 [20:27:00]Write i2c OK [20:27:00]MH_I2C_Read... [20:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:00]Read from MH i2c: E2 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: E2 0E 00 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: E2 0E 00 62 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 29 [20:27:00]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:27:00]wFMCommunicate OK [20:27:00]SAM_PROTO_GetShiftState done [20:27:00]FM_GetShiftState done [20:27:00]req_shift_opened done [20:27:00]requested_item shift.open_date is exist - process it [20:27:00]req_shift_open_date [20:27:00]req_shift_open_date done [20:27:00]produce_requested_data done [20:27:00]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115762,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [20:27:00]process_action_free close_receipt [20:27:00]json_value_free [20:27:00]json_value_free done [20:27:00]process_json_proto returns [20:27:00]Send response to host [20:27:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115762,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [20:27:00]free response buf [20:27:00]execute_script done [20:27:00]execute_script returns [20:27:00]free content buf [20:27:00]Sock 8.Close socket [20:27:00]Sock 8.Thread stoped [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:26]accept exits with 9 [20:27:26]New connection [20:27:26]New thread 3066867044 created [20:27:26]Thread 3067010404 joined [20:27:26]Waiting for new connection... [20:27:26] Sock 9.Parse request [20:27:26]Sock 9.Check first char [20:27:26]Sock 9.First char is OK [20:27:26]request: POST /json_proto HTTP/1.0 [20:27:26]Method: POST [20:27:26]URL: /json_proto [20:27:26]Method is POST - this is cgi request [20:27:26]url: /json_proto [20:27:26]query_string will be loaded in cgi processing [20:27:26]execute_cgi json_proto POST (null) [20:27:26]execute_cgi path=json_proto method=POST [20:27:26]POST find Content-Length [20:27:26]Host: 172.17.41.136:8080 [20:27:26]Content-Length: 1459 [20:27:26]Content-Type: application/json [20:27:26] [20:27:26]POST finish read [20:27:26]Found Content-Length = 1459 [20:27:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344082", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:26]execute_script... [20: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 : (3)344082", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:26]POST & json_proto [20:27:26]process_json_proto [20:27:26]json parsed OK: [20:27:26]protocol is kg_v1.0 [20:27:26]action value=close_receipt [20:27:26]process_action close_receipt [20:27:26]cmd_close_receipt [20:27:26]MH_GetDate [20:27:26]Write to MH i2c: F0 00 00 63 09 5B [20:27:26]Write i2c OK [20:27:26]MH_I2C_Read... [20:27:26]Read from MH i2c: F0 [20:27:26]MH_I2C_Read... [20:27:26]Read from MH i2c: F0 09 00 [20:27:26]MH_I2C_Read... [20:27:26]Read from MH i2c: F0 09 00 63 09 00 30 CF F1 66 1B D0 5A 64 63 [20:27:26]GetLastDocTimeStamp 1727123218 [20:27:26]current date 1727123248 [20:27:26]FM_GetShiftState [20:27:26]SAM_PROTO_GetShiftState [20:27:26]wFMCommunicate request_size=4 [20:27:27]MH_SAM_APDU [20:27:27]CAPDU: 80 13 01 00 [20:27:27]Write to MH i2c: E2 08 00 64 09 80 13 01 00 00 00 00 00 EA [20:27:27]Write i2c OK [20:27:27]MH_I2C_Read... [20:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:27]Read from MH i2c: E2 [20:27:27]MH_I2C_Read... [20:27:27]Read from MH i2c: E2 0E 00 [20:27:27]MH_I2C_Read... [20:27:27]Read from MH i2c: E2 0E 00 64 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 2B [20:27:27]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:27:27]wFMCommunicate OK [20:27:27]SAM_PROTO_GetShiftState done [20:27:27]FM_GetShiftState done [20:27:27]opened in 1727052070 [20:27:27]opened+sec_in_day 1727138470 [20:27:27]quantity*price = 5000 [20:27:27]sum+1 = 5001 [20:27:27]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681062 Grizzly волнистые Колбаски с горчицей 55 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.90 Наличными: 0.00 Безнал.: 225.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 246 23.09.2024 20:27 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115763 ФПД: 65534917849077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T202728&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115763&fm=65534917849077&tin=02508201610067®Number=0000000000091831&sum=22500 0 [20:27:27]StoreToDocumentArchive [20:27:27]shift 472 fd 115763 [20:27:27]save to /storage/0472/doc_00115763 [20:27:27]save last doc name /storage/0472/doc_00115763 to /storage/kkm_last_doc_name [20:27:27]save OK [20:27:27]Clear old archive folders... [20:27:27]ProcessDocumentItem done err = 0, tmpTLVsize=536 [20:27:27]tlvbuf is 0113C5B0 [20:27:27]SAM_PROTO_ClearQueue [20:27:27]wFMCommunicate request_size=4 [20:27:27]MH_SAM_APDU [20:27:27]CAPDU: 80 09 00 00 [20:27:27]Write to MH i2c: E2 08 00 71 09 80 09 00 00 00 00 00 00 EC [20:27:27]Write i2c OK [20:27:27]MH_I2C_Read... [20:27:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:27]Read from MH i2c: E2 [20:27:27]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 03 00 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 03 00 71 09 00 90 00 EE [20:27:28]RAPDU: 90 00 [20:27:28]wFMCommunicate OK [20:27:28]SAM_PROTO_ClearQueue done [20:27:28]KKMCreateOFDPacket [20:27:28]OFDProtocolAddRootSTLVToBuf [20:27:28]FM_MakeSignedData [20:27:28]FM_MakeSignedData [20:27:28]SAM_PROTO_SignData [20:27:28]wFMCommunicate request_size=4 [20:27:28]MH_SAM_APDU [20:27:28]CAPDU: 80 0D 01 02 [20:27:28]Write to MH i2c: E2 08 00 72 09 80 0D 01 02 00 00 00 00 F4 [20:27:28]Write i2c OK [20:27:28]MH_I2C_Read... [20:27:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:28]Read from MH i2c: E2 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 03 00 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 03 00 72 09 00 90 00 EF [20:27:28]RAPDU: 90 00 [20:27:28]wFMCommunicate OK [20:27:28]wFMCommunicate request_size=255 [20:27:28]MH_SAM_APDU [20:27:28]CAPDU: 80 0D 02 02 FA 03 00 18 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 [20:27:28]Write to MH i2c: E2 02 01 73 09 80 0D 02 02 FA 00 03 00 18 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 00 00 55 [20:27:28]Write i2c OK [20:27:28]MH_I2C_Read... [20:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:28]Read from MH i2c: E2 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 03 00 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 03 00 73 09 00 90 00 F0 [20:27:28]RAPDU: 90 00 [20:27:28]wFMCommunicate OK [20:27:28]wFMCommunicate request_size=255 [20:27:28]MH_SAM_APDU [20:27:28]CAPDU: 80 0D 02 02 FA 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 30 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 [20:27:28]Write to MH i2c: E2 02 01 74 09 80 0D 02 02 FA 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 30 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 00 00 B4 [20:27:28]Write i2c OK [20:27:28]MH_I2C_Read... [20:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:28]Read from MH i2c: E2 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 03 00 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 03 00 74 09 00 90 00 F1 [20:27:28]RAPDU: 90 00 [20:27:28]wFMCommunicate OK [20:27:28]wFMCommunicate request_size=45 [20:27:28]MH_SAM_APDU [20:27:28]CAPDU: 80 0D 02 02 28 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 33 C4 01 00 35 04 06 00 3B 9A 89 7F AF F5 [20:27:28]Write to MH i2c: E2 30 00 75 09 80 0D 02 02 28 00 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 33 C4 01 00 35 04 06 00 3B 9A 89 7F AF F5 00 00 BC [20:27:28]Write i2c OK [20:27:28]MH_I2C_Read... [20:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:28]Read from MH i2c: E2 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 03 00 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 03 00 75 09 00 90 00 F2 [20:27:28]RAPDU: 90 00 [20:27:28]wFMCommunicate OK [20:27:28]wFMCommunicate request_size=4 [20:27:28]MH_SAM_APDU [20:27:29]CAPDU: 80 0D 03 02 [20:27:29]Write to MH i2c: E2 08 00 76 09 80 0D 03 02 00 00 00 00 FA [20:27:29]Write i2c OK [20:27:29]MH_I2C_Read... [20:27:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:29]Read from MH i2c: E2 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 0B 00 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 0B 00 76 09 00 8E 8C 94 9D 75 4C 6D 59 90 00 CD [20:27:29]RAPDU: 8E 8C 94 9D 75 4C 6D 59 90 00 [20:27:29]wFMCommunicate OK [20:27:29]SAM_PROTO_SignData done [20:27:29]FM_MakeSignedData done [20:27:29]CreateOFDProtocolMessage [20:27:29]wFMCommunicate request_size=4 [20:27:29]MH_SAM_APDU [20:27:29]CAPDU: 80 11 00 00 [20:27:29]Write to MH i2c: E2 08 00 77 09 80 11 00 00 00 00 00 00 FA [20:27:29]Write i2c OK [20:27:29]MH_I2C_Read... [20:27:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:29]Read from MH i2c: E2 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 17 00 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 17 00 77 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 48 [20:27:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:27:29]wFMCommunicate OK [20:27:29]CreateOFDProtocolMessage done [20:27:29]OFDSenderStorePacket 115763 [20:27:29]StoreOFDPacket docnum=115763 [20:27:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2C 02 00 00 B1 86 24 02 F8 66 5A 03 01 00 03 00 18 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 30 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 33 C4 01 00 35 04 06 00 3B 9A 89 7F AF F5 8E 8C 94 9D 75 4C 6D 59 [20:27:29]CheckFolder [20:27:29]dirname=/storage/ofd_packets [20:27:29]CheckFolder done [20:27:29]ProducePacketName [20:27:29]name=ofd_packets/00115763 [20:27:29]NVStorageSaveData ofd_packets/00115763 [20:27:29]File name is /storage/ofd_packets/00115763 [20:27:29]Write 586 bytes [20:27:29]NVStorageSaveData done [20:27:29]OFDSenderStorePacket done [20:27:29]KKMCreateOFDPacket done [20:27:29]NVStorageSaveData kkm_last_timestamp [20:27:29]File name is /storage/kkm_last_timestamp [20:27:29]Write 4 bytes [20:27:29]NVStorageSaveData done [20:27:29]ExternCall_PrintAddStr [20:27:29]wPrintStart [20:27:29]Write to MH i2c: 01 00 00 78 09 81 [20:27:29]Write i2c OK [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: 01 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: 01 07 00 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: 01 07 00 78 09 00 00 00 00 00 FF 0F 96 [20:27:29]RasterBufferAndPrint [20:27:29]line Счет N : (3)344082 [20:27:29]line ИНН: 02508201610067 [20:27:29]line Контрольно-Кассовый Чек [20:27:29]line ПРОДАЖА [20:27:29]line Товар: 4700000160358 [20:27:29]line Вода Легенда 1л [20:27:29]line 1.000 * 50.00 [20:27:29]line = 50.00 [20:27:29]line НДС 12% НСП 1% [20:27:29]line > о реализуемом товаре [20:27:29]line Товар: 4870235681062 [20:27:29]line Grizzly волнистые Колбаски с горчицей 55 [20:27:29]line 1.000 * 90.00 [20:27:29]line = 90.00 [20:27:29]line НДС 12% НСП 1% [20:27:29]line > о реализуемом товаре [20:27:29]line Товар: 4660085515163 [20:27:29]line Шок Батончик Сникерс супер 95/80г [20:27:29]line 1.000 * 85.00 [20:27:29]line = 85.00 [20:27:29]line НДС 12% НСП 1% [20:27:29]line > о реализуемом товаре [20:27:29]line ИТОГО: 225.00 [20:27:29]line НСП 1% : 1.99 [20:27:29]line НДС 12% : 23.90 [20:27:29]line Наличными: 0.00 [20:27:29]line Безнал.: 225.00 [20:27:29]line Место: АЗС № 90 "Партнер Нефть" [20:27:29]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:27:29]line СНО: Общий режим [20:27:29]line Чек 246 23.09.2024 20:27 [20:27:29]line Смена: 472 ФФД: 1.0 [20:27:29]line ЗНМ: 0300000120 [20:27:29]line РНМ: 0000000000091831 [20:27:29]line Версия ККМ: 001 [20:27:29]line Платежная система: O! деньги [20:27:29]line ФМ: 0000000000871830 [20:27:29]line ФД: 115763 [20:27:29]line ФПД: 65534917849077 [20:27:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T202728&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115763&fm=65534917849077&tin=02508201610067®Number=0000000000091831&sum=22500 [20:27:29]line 0 [20:27:29]OFD Sender: Processing packet 115763 [packets to send 482, broken 481] [20:27:29]ProducePacketName [20:27:29]name=ofd_packets/00115763 [20:27:29]OFD Sender: To server: pG, [20:27:29]CommunicateWithHost lk.salyk.kg:30040 [20:27:29]ConnectInit lk.salyk.kg [20:27:29]written 0, free lines is 4095 [20:27:29]Connected sock=10 [20: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 38 33 30 2C 02 00 00 B1 86 24 02 F8 66 5A 03 01 00 03 00 18 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 30 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 33 C4 01 00 35 04 06 00 3B 9A 89 7F AF F5 8E 8C 94 9D 75 4C 6D 59 [20:27:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1E 5A 47 00 38 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 38 33 30 10 04 04 00 33 C4 01 00 F4 03 04 00 72 74 F1 66 B6 04 01 00 00 92 07 9E 2A 50 31 12 BA [20:27:30]CommunicateWithHost err = 0 [20:27:30]CheckOFDResponse [20:27:30]1017 (14) - 77093643461234 [20:27:30]1041 (16) - 0000000000871830 [20:27:30]1040 (4) - 115763 [20:27:30]1012 (4) - 23.09.2024 14:00 [20:27:30]1206 (1) - 0 [20:27:30]OFD Sender: Remove packet 115763 [20:27:30]ProducePacketName [20:27:30]name=ofd_packets/00115763 [20:27:30]NVStorageDeleteData [20:27:30]Write to MH i2c: 01 00 00 AF 09 B8 [20:27:30]Write i2c OK [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: 01 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: 01 07 00 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: 01 07 00 AF 09 00 00 00 00 00 26 0B F0 [20:27:30]RasterBufferAndPrint [20:27:30]line [20:27:30]line [20:27:30]line [20:27:30]line [20:27:30]line [20:27:30]written 0, free lines is 2857 [20:27:30]MH_Cut [20:27:30]Write to MH i2c: D1 01 00 B6 09 01 91 [20:27:30]Write i2c OK [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: D1 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: D1 01 00 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: D1 01 00 B6 09 00 90 [20:27:30]Write to MH i2c: 01 00 00 B7 09 C0 [20:27:30]Write i2c OK [20:27:30]MH_I2C_Read... [20:27:30]OFD Sender: No OFD packet to send [20:27:31]*** Cut start [20:27:31]*** Partial cut [20:27:31]*** CUTSNS_PIN = 1 [20:27:31]*** CUTSNS_PIN = 0 [20:27:32]*** Brake cut motor [20:27:32]Read from MH i2c: 01 [20:27:32]MH_I2C_Read... [20:27:32]*** Stop cut motor [20:27:32]*** Cut end [20:27:32]Read from MH i2c: 01 07 00 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: 01 07 00 B7 09 00 00 00 00 00 FF 0F D5 [20:27:32]process_action close_receipt done [20:27:32]requested_data is exist [20:27:32]produce_requested_data [20:27:32]requested_item fm.sn is exist - process it [20:27:32]wFMCommunicate request_size=4 [20:27:32]MH_SAM_APDU [20:27:32]CAPDU: 80 11 00 00 [20:27:32]Write to MH i2c: E2 08 00 B8 09 80 11 00 00 00 00 00 00 3B [20:27:32]Write i2c OK [20:27:32]MH_I2C_Read... [20:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:32]Read from MH i2c: E2 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 17 00 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 17 00 B8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 89 [20:27:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:27:32]wFMCommunicate OK [20:27:32]requested_item fd.num is exist - process it [20:27:32]SAM_PROTO_GetFieldsCounters [20:27:32]wFMCommunicate request_size=4 [20:27:32]MH_SAM_APDU [20:27:32]CAPDU: 80 13 00 00 [20:27:32]Write to MH i2c: E2 08 00 B9 09 80 13 00 00 00 00 00 00 3E [20:27:32]Write i2c OK [20:27:32]MH_I2C_Read... [20:27:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:32]Read from MH i2c: E2 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 62 00 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 62 00 B9 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 33 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [20:27: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 33 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:32]wFMCommunicate OK [20:27:32]SAM_PROTO_GetFieldsCounters done [20:27:32]requested_item shift.num is exist - process it [20:27:32]requested_item shift.opened is exist - process it [20:27:32]req_shift_opened [20:27:32]FM_GetShiftState [20:27:32]SAM_PROTO_GetShiftState [20:27:32]wFMCommunicate request_size=4 [20:27:32]MH_SAM_APDU [20:27:32]CAPDU: 80 13 01 00 [20:27:32]Write to MH i2c: E2 08 00 BA 09 80 13 01 00 00 00 00 00 40 [20:27:32]Write i2c OK [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 [20:27:32]MH_I2C_Read... [20:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:32]Read from MH i2c: E2 0E 00 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 0E 00 BA 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 81 [20:27:32]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:27:32]wFMCommunicate OK [20:27:32]SAM_PROTO_GetShiftState done [20:27:32]FM_GetShiftState done [20:27:32]req_shift_opened done [20:27:32]requested_item shift.open_date is exist - process it [20:27:32]req_shift_open_date [20:27:32]req_shift_open_date done [20:27:32]produce_requested_data done [20:27:32]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115763,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [20:27:32]process_action_free close_receipt [20:27:32]json_value_free [20:27:32]json_value_free done [20:27:32]process_json_proto returns [20:27:32]Send response to host [20:27:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115763,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [20:27:32]free response buf [20:27:32]execute_script done [20:27:32]execute_script returns [20:27:32]free content buf [20:27:32]Sock 9.Close socket [20:27:32]Sock 9.Thread stoped [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:52]accept exits with 8 [20:27:52]New connection [20:27:52]New thread 3067010404 created [20:27:52]Thread 3066867044 joined [20:27:52]Waiting for new connection... [20:27:52] Sock 8.Parse request [20:27:52]Sock 8.Check first char [20:27:52]Sock 8.First char is OK [20:27:52]request: POST /json_proto HTTP/1.0 [20:27:52]Method: POST [20:27:52]URL: /json_proto [20:27:52]Method is POST - this is cgi request [20:27:52]url: /json_proto [20:27:52]query_string will be loaded in cgi processing [20:27:52]execute_cgi json_proto POST (null) [20:27:52]execute_cgi path=json_proto method=POST [20:27:52]POST find Content-Length [20:27:52]Host: 172.17.41.136:8080 [20:27:52]Content-Length: 655 [20:27:52]Content-Type: application/json [20:27:52] [20:27:52]POST finish read [20:27:52]Found Content-Length = 655 [20:27:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344083", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:52]execute_script... [20:27:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344083", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:52]POST & json_proto [20:27:52]process_json_proto [20:27:52]json parsed OK: [20:27:52]protocol is kg_v1.0 [20:27:52]action value=close_receipt [20:27:52]process_action close_receipt [20:27:52]cmd_close_receipt [20:27:52]MH_GetDate [20:27:52]Write to MH i2c: F0 00 00 BB 09 B3 [20:27:52]Write i2c OK [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: F0 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: F0 09 00 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: F0 09 00 BB 09 00 49 CF F1 66 1B D0 5A 64 D4 [20:27:52]GetLastDocTimeStamp 1727123248 [20:27:52]current date 1727123273 [20:27:52]FM_GetShiftState [20:27:52]SAM_PROTO_GetShiftState [20:27:52]wFMCommunicate request_size=4 [20:27:52]MH_SAM_APDU [20:27:52]CAPDU: 80 13 01 00 [20:27:52]Write to MH i2c: E2 08 00 BC 09 80 13 01 00 00 00 00 00 42 [20:27:52]Write i2c OK [20:27:52]MH_I2C_Read... [20:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:52]Read from MH i2c: E2 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: E2 0E 00 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: E2 0E 00 BC 09 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 83 [20:27:52]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:27:52]wFMCommunicate OK [20:27:52]SAM_PROTO_GetShiftState done [20:27:52]FM_GetShiftState done [20:27:52]opened in 1727052070 [20:27:52]opened+sec_in_day 1727138470 [20:27:52]quantity*price = 8500 [20:27:52]sum+1 = 8501 [20:27:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 247 23.09.2024 20:27 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115764 ФПД: 116533795688743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T202753&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115764&fm=116533795688743&tin=02508201610067®Number=0000000000091831&sum=8500 0 [20:27:53]StoreToDocumentArchive [20:27:53]shift 472 fd 115764 [20:27:53]save to /storage/0472/doc_00115764 [20:27:53]save last doc name /storage/0472/doc_00115764 to /storage/kkm_last_doc_name [20:27:53]save OK [20:27:53]Clear old archive folders... [20:27:53]ProcessDocumentItem done err = 0, tmpTLVsize=294 [20:27:53]tlvbuf is 01156930 [20:27:53]SAM_PROTO_ClearQueue [20:27:53]wFMCommunicate request_size=4 [20:27:53]MH_SAM_APDU [20:27:53]CAPDU: 80 09 00 00 [20:27:53]Write to MH i2c: E2 08 00 C9 09 80 09 00 00 00 00 00 00 44 [20:27:53]Write i2c OK [20:27:53]MH_I2C_Read... [20:27:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:53]Read from MH i2c: E2 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 03 00 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 03 00 C9 09 00 90 00 46 [20:27:53]RAPDU: 90 00 [20:27:53]wFMCommunicate OK [20:27:53]SAM_PROTO_ClearQueue done [20:27:53]KKMCreateOFDPacket [20:27:53]OFDProtocolAddRootSTLVToBuf [20:27:53]FM_MakeSignedData [20:27:53]FM_MakeSignedData [20:27:53]SAM_PROTO_SignData [20:27:53]wFMCommunicate request_size=4 [20:27:53]MH_SAM_APDU [20:27:53]CAPDU: 80 0D 01 02 [20:27:53]Write to MH i2c: E2 08 00 CA 09 80 0D 01 02 00 00 00 00 4C [20:27:53]Write i2c OK [20:27:53]MH_I2C_Read... [20:27:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:53]Read from MH i2c: E2 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 03 00 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 03 00 CA 09 00 90 00 47 [20:27:53]RAPDU: 90 00 [20:27:53]wFMCommunicate OK [20:27:53]wFMCommunicate request_size=255 [20:27:53]MH_SAM_APDU [20:27:53]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 49 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [20:27:53]Write to MH i2c: E2 02 01 CB 09 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 49 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 6F [20:27:53]Write i2c OK [20:27:53]MH_I2C_Read... [20:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:53]Read from MH i2c: E2 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 03 00 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 03 00 CB 09 00 90 00 48 [20:27:53]RAPDU: 90 00 [20:27:53]wFMCommunicate OK [20:27:53]wFMCommunicate request_size=53 [20:27:53]MH_SAM_APDU [20:27:53]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 34 C4 01 00 35 04 06 00 69 FC A3 7F 11 27 [20:27:53]Write to MH i2c: E2 38 00 CC 09 80 0D 02 02 30 00 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 34 C4 01 00 35 04 06 00 69 FC A3 7F 11 27 00 00 F4 [20:27:53]Write i2c OK [20:27:53]MH_I2C_Read... [20:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:54]Read from MH i2c: E2 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: E2 03 00 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: E2 03 00 CC 09 00 90 00 49 [20:27:54]RAPDU: 90 00 [20:27:54]wFMCommunicate OK [20:27:54]wFMCommunicate request_size=4 [20:27:54]MH_SAM_APDU [20:27:54]CAPDU: 80 0D 03 02 [20:27:54]Write to MH i2c: E2 08 00 CD 09 80 0D 03 02 00 00 00 00 51 [20:27:54]Write i2c OK [20:27:54]MH_I2C_Read... [20:27:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:54]Read from MH i2c: E2 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: E2 0B 00 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: E2 0B 00 CD 09 00 E5 C4 CF F5 87 43 49 23 90 00 F5 [20:27:54]RAPDU: E5 C4 CF F5 87 43 49 23 90 00 [20:27:54]wFMCommunicate OK [20:27:54]SAM_PROTO_SignData done [20:27:54]FM_MakeSignedData done [20:27:54]CreateOFDProtocolMessage [20:27:54]wFMCommunicate request_size=4 [20:27:54]MH_SAM_APDU [20:27:54]CAPDU: 80 11 00 00 [20:27:54]Write to MH i2c: E2 08 00 CE 09 80 11 00 00 00 00 00 00 51 [20:27:54]Write i2c OK [20:27:54]MH_I2C_Read... [20:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:54]Read from MH i2c: E2 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: E2 17 00 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: E2 17 00 CE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9F [20:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:27:54]wFMCommunicate OK [20:27:54]CreateOFDProtocolMessage done [20:27:54]OFDSenderStorePacket 115764 [20:27:54]StoreOFDPacket docnum=115764 [20:27:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3A 01 00 00 AF 87 32 01 74 C7 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 49 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 34 C4 01 00 35 04 06 00 69 FC A3 7F 11 27 E5 C4 CF F5 87 43 49 23 [20:27:54]CheckFolder [20:27:54]dirname=/storage/ofd_packets [20:27:54]CheckFolder done [20:27:54]ProducePacketName [20:27:54]name=ofd_packets/00115764 [20:27:54]NVStorageSaveData ofd_packets/00115764 [20:27:54]File name is /storage/ofd_packets/00115764 [20:27:54]Write 344 bytes [20:27:54]NVStorageSaveData done [20:27:54]OFDSenderStorePacket done [20:27:54]KKMCreateOFDPacket done [20:27:54]NVStorageSaveData kkm_last_timestamp [20:27:54]File name is /storage/kkm_last_timestamp [20:27:54]Write 4 bytes [20:27:54]NVStorageSaveData done [20:27:54]ExternCall_PrintAddStr [20:27:54]wPrintStart [20:27:54]Write to MH i2c: 01 00 00 CF 09 D8 [20:27:54]Write i2c OK [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: 01 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: 01 07 00 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: 01 07 00 CF 09 00 00 00 00 00 FF 0F ED [20:27:54]RasterBufferAndPrint [20:27:54]line Счет N : (3)344083 [20:27:54]line ИНН: 02508201610067 [20:27:54]line Контрольно-Кассовый Чек [20:27:54]line ПРОДАЖА [20:27:54]line Товар: 4600682557456 [20:27:54]line Напиток FLash up energy эн ж/б 0,5/0,45л [20:27:54]line 1.000 * 85.00 [20:27:54]line = 85.00 [20:27:54]line НДС 12% НСП 1% [20:27:54]line > о реализуемом товаре [20:27:54]line ИТОГО: 85.00 [20:27:54]line НСП 1% : 0.75 [20:27:54]line НДС 12% : 9.03 [20:27:54]line Наличными: 85.00 [20:27:54]line Безнал.: 0.00 [20:27:54]line Место: АЗС № 90 "Партнер Нефть" [20:27:54]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:27:54]line СНО: Общий режим [20:27:54]line Чек 247 23.09.2024 20:27 [20:27:54]line Смена: 472 ФФД: 1.0 [20:27:54]line ЗНМ: 0300000120 [20:27:54]line РНМ: 0000000000091831 [20:27:54]line Версия ККМ: 001 [20:27:54]line ФМ: 0000000000871830 [20:27:54]line ФД: 115764 [20:27:54]line ФПД: 116533795688743 [20:27:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T202753&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115764&fm=116533795688743&tin=02508201610067®Number=0000000000091831&sum=8500 [20:27:54]line 0 [20:27:54]written 0, free lines is 4095 [20:27:54]OFD Sender: Processing packet 115764 [packets to send 482, broken 481] [20:27:54]ProducePacketName [20:27:54]name=ofd_packets/00115764 [20:27:54]OFD Sender: To server: pG, [20:27:54]CommunicateWithHost lk.salyk.kg:30040 [20:27:54]ConnectInit lk.salyk.kg [20:27:54]Connected sock=10 [20:27: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 38 33 30 3A 01 00 00 AF 87 32 01 74 C7 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 49 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 34 C4 01 00 35 04 06 00 69 FC A3 7F 11 27 E5 C4 CF F5 87 43 49 23 [20:27:54]Write to MH i2c: 01 00 00 F7 09 00 [20:27:54]Write i2c OK [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: 01 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: 01 07 00 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: 01 07 00 F7 09 00 00 00 00 00 5F 0C 72 [20:27:54]RasterBufferAndPrint [20:27:54]line [20:27:54]line [20:27:54]line [20:27:54]line [20:27:54]line [20:27:54]written 0, free lines is 3171 [20:27:54]MH_Cut [20:27:54]Write to MH i2c: D1 01 00 FE 09 01 D9 [20:27:54]Write i2c OK [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: D1 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: D1 01 00 [20:27:54]MH_I2C_Read... [20:27:54]Read from MH i2c: D1 01 00 FE 09 00 D8 [20:27:54]Write to MH i2c: 01 00 00 FF 09 08 [20:27:54]Write i2c OK [20:27:54]MH_I2C_Read... [20:27:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C8 C7 47 00 F6 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 38 33 30 10 04 04 00 34 C4 01 00 F4 03 04 00 8B 74 F1 66 B6 04 01 00 00 DC 43 FD 2E 90 00 4C 7C [20:27:54]CommunicateWithHost err = 0 [20:27:54]CheckOFDResponse [20:27:54]1017 (14) - 77093643461234 [20:27:54]1041 (16) - 0000000000871830 [20:27:54]1040 (4) - 115764 [20:27:54]1012 (4) - 23.09.2024 14:00 [20:27:54]1206 (1) - 0 [20:27:54]OFD Sender: Remove packet 115764 [20:27:54]ProducePacketName [20:27:54]name=ofd_packets/00115764 [20:27:54]NVStorageDeleteData [20:27:55]OFD Sender: No OFD packet to send [20:27:55]*** Cut start [20:27:55]*** Partial cut [20:27:55]*** CUTSNS_PIN = 1 [20:27:55]*** CUTSNS_PIN = 0 [20:27:56]*** Brake cut motor [20:27:56]Read from MH i2c: 01 [20:27:56]MH_I2C_Read... [20:27:56]*** Stop cut motor [20:27:56]*** Cut end [20:27:56]Read from MH i2c: 01 07 00 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: 01 07 00 FF 09 00 00 00 00 00 FF 0F 1D [20:27:56]process_action close_receipt done [20:27:56]requested_data is exist [20:27:56]produce_requested_data [20:27:56]requested_item fm.sn is exist - process it [20:27:56]wFMCommunicate request_size=4 [20:27:56]MH_SAM_APDU [20:27:56]CAPDU: 80 11 00 00 [20:27:56]Write to MH i2c: E2 08 00 00 0A 80 11 00 00 00 00 00 00 84 [20:27:56]Write i2c OK [20:27:56]MH_I2C_Read... [20:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:56]Read from MH i2c: E2 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: E2 17 00 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: E2 17 00 00 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [20:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:27:56]wFMCommunicate OK [20:27:56]requested_item fd.num is exist - process it [20:27:56]SAM_PROTO_GetFieldsCounters [20:27:56]wFMCommunicate request_size=4 [20:27:56]MH_SAM_APDU [20:27:56]CAPDU: 80 13 00 00 [20:27:56]Write to MH i2c: E2 08 00 01 0A 80 13 00 00 00 00 00 00 87 [20:27:56]Write i2c OK [20:27:56]MH_I2C_Read... [20:27:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:56]Read from MH i2c: E2 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: E2 62 00 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: E2 62 00 01 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 34 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [20:27: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 34 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:56]wFMCommunicate OK [20:27:56]SAM_PROTO_GetFieldsCounters done [20:27:56]requested_item shift.num is exist - process it [20:27:56]requested_item shift.opened is exist - process it [20:27:56]req_shift_opened [20:27:56]FM_GetShiftState [20:27:56]SAM_PROTO_GetShiftState [20:27:56]wFMCommunicate request_size=4 [20:27:56]MH_SAM_APDU [20:27:56]CAPDU: 80 13 01 00 [20:27:56]Write to MH i2c: E2 08 00 02 0A 80 13 01 00 00 00 00 00 89 [20:27:56]Write i2c OK [20:27:56]MH_I2C_Read... [20:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:56]Read from MH i2c: E2 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: E2 0E 00 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: E2 0E 00 02 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CA [20:27:56]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:27:56]wFMCommunicate OK [20:27:56]SAM_PROTO_GetShiftState done [20:27:56]FM_GetShiftState done [20:27:56]req_shift_opened done [20:27:56]requested_item shift.open_date is exist - process it [20:27:56]req_shift_open_date [20:27:56]req_shift_open_date done [20:27:56]produce_requested_data done [20:27:56]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115764,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [20:27:56]process_action_free close_receipt [20:27:56]json_value_free [20:27:56]json_value_free done [20:27:56]process_json_proto returns [20:27:56]Send response to host [20:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115764,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [20:27:56]free response buf [20:27:56]execute_script done [20:27:56]execute_script returns [20:27:56]free content buf [20:27:56]Sock 8.Close socket [20:27:56]Sock 8.Thread stoped [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:28:55]accept exits with 9 [20:28:55]New connection [20:28:55]New thread 3066867044 created [20:28:55]Thread 3067010404 joined [20:28:55]Waiting for new connection... [20:28:55] Sock 9.Parse request [20:28:55]Sock 9.Check first char [20:28:55]Sock 9.First char is OK [20:28:55]request: POST /json_proto HTTP/1.0 [20:28:55]Method: POST [20:28:55]URL: /json_proto [20:28:55]Method is POST - this is cgi request [20:28:55]url: /json_proto [20:28:55]query_string will be loaded in cgi processing [20:28:55]execute_cgi json_proto POST (null) [20:28:55]execute_cgi path=json_proto method=POST [20:28:55]POST find Content-Length [20:28:55]Host: 172.17.41.136:8080 [20:28:55]Content-Length: 756 [20:28:55]Content-Type: application/json [20:28:55] [20:28:55]POST finish read [20:28:55]Found Content-Length = 756 [20:28:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24618027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30039459", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:55]execute_script... [20:28:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24618027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30039459", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:55]POST & json_proto [20:28:55]process_json_proto [20:28:55]json parsed OK: [20:28:55]protocol is kg_v1.0 [20:28:55]action value=close_receipt [20:28:55]process_action close_receipt [20:28:55]cmd_close_receipt [20:28:55]MH_GetDate [20:28:55]Write to MH i2c: F0 00 00 03 0A FC [20:28:55]Write i2c OK [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: F0 [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: F0 09 00 [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: F0 09 00 03 0A 00 89 CF F1 66 1B D0 5A 64 5D [20:28:55]GetLastDocTimeStamp 1727123273 [20:28:55]current date 1727123337 [20:28:55]FM_GetShiftState [20:28:55]SAM_PROTO_GetShiftState [20:28:55]wFMCommunicate request_size=4 [20:28:55]MH_SAM_APDU [20:28:55]CAPDU: 80 13 01 00 [20:28:55]Write to MH i2c: E2 08 00 04 0A 80 13 01 00 00 00 00 00 8B [20:28:55]Write i2c OK [20:28:55]MH_I2C_Read... [20:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:55]Read from MH i2c: E2 [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: E2 0E 00 [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: E2 0E 00 04 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CC [20:28:55]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:28:55]wFMCommunicate OK [20:28:55]SAM_PROTO_GetShiftState done [20:28:55]FM_GetShiftState done [20:28:55]opened in 1727052070 [20:28:55]opened+sec_in_day 1727138470 [20:28:55]quantity*price = 0 [20:28:55]sum+1 = 1 [20:28:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 248 23.09.2024 20:28 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30039459 ФМ: 0000000000871830 ФД: 115765 ФПД: 252581548731829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T202857&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115765&fm=252581548731829&tin=02508201610067®Number=0000000000091831&sum=0 [20:28:56]StoreToDocumentArchive [20:28:56]shift 472 fd 115765 [20:28:56]save to /storage/0472/doc_00115765 [20:28:56]save last doc name /storage/0472/doc_00115765 to /storage/kkm_last_doc_name [20:28:56]save OK [20:28:56]Clear old archive folders... [20:28:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:56]tlvbuf is 0113A4C0 [20:28:56]SAM_PROTO_ClearQueue [20:28:56]wFMCommunicate request_size=4 [20:28:56]MH_SAM_APDU [20:28:56]CAPDU: 80 09 00 00 [20:28:56]Write to MH i2c: E2 08 00 11 0A 80 09 00 00 00 00 00 00 8D [20:28:56]Write i2c OK [20:28:56]MH_I2C_Read... [20:28:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:57]Read from MH i2c: E2 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 03 00 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 03 00 11 0A 00 90 00 8F [20:28:57]RAPDU: 90 00 [20:28:57]wFMCommunicate OK [20:28:57]SAM_PROTO_ClearQueue done [20:28:57]KKMCreateOFDPacket [20:28:57]OFDProtocolAddRootSTLVToBuf [20:28:57]FM_MakeSignedData [20:28:57]FM_MakeSignedData [20:28:57]SAM_PROTO_SignData [20:28:57]wFMCommunicate request_size=4 [20:28:57]MH_SAM_APDU [20:28:57]CAPDU: 80 0D 01 02 [20:28:57]Write to MH i2c: E2 08 00 12 0A 80 0D 01 02 00 00 00 00 95 [20:28:57]Write i2c OK [20:28:57]MH_I2C_Read... [20:28:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:57]Read from MH i2c: E2 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 03 00 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 03 00 12 0A 00 90 00 90 [20:28:57]RAPDU: 90 00 [20:28:57]wFMCommunicate OK [20:28:57]wFMCommunicate request_size=255 [20:28:57]MH_SAM_APDU [20:28:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F8 00 00 00 F4 03 04 00 89 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 35 C4 01 00 35 04 06 00 E5 [20:28:57]Write to MH i2c: E2 02 01 13 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F8 00 00 00 F4 03 04 00 89 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 35 C4 01 00 35 04 06 00 E5 00 00 9B [20:28:57]Write i2c OK [20:28:57]MH_I2C_Read... [20:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:57]Read from MH i2c: E2 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 03 00 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 03 00 13 0A 00 90 00 91 [20:28:57]RAPDU: 90 00 [20:28:57]wFMCommunicate OK [20:28:57]wFMCommunicate request_size=10 [20:28:57]MH_SAM_APDU [20:28:57]CAPDU: 80 0D 02 02 05 B8 B9 7D 2D B5 [20:28:57]Write to MH i2c: E2 0D 00 14 0A 80 0D 02 02 05 00 B8 B9 7D 2D B5 00 00 72 [20:28:57]Write i2c OK [20:28:57]MH_I2C_Read... [20:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:57]Read from MH i2c: E2 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 03 00 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 03 00 14 0A 00 90 00 92 [20:28:57]RAPDU: 90 00 [20:28:57]wFMCommunicate OK [20:28:57]wFMCommunicate request_size=4 [20:28:57]MH_SAM_APDU [20:28:57]CAPDU: 80 0D 03 02 [20:28:57]Write to MH i2c: E2 08 00 15 0A 80 0D 03 02 00 00 00 00 9A [20:28:57]Write i2c OK [20:28:57]MH_I2C_Read... [20:28:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:57]Read from MH i2c: E2 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 0B 00 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 0B 00 15 0A 00 38 2D 05 B0 F2 7D 30 A5 90 00 F9 [20:28:57]RAPDU: 38 2D 05 B0 F2 7D 30 A5 90 00 [20:28:57]wFMCommunicate OK [20:28:57]SAM_PROTO_SignData done [20:28:57]FM_MakeSignedData done [20:28:57]CreateOFDProtocolMessage [20:28:57]wFMCommunicate request_size=4 [20:28:57]MH_SAM_APDU [20:28:57]CAPDU: 80 11 00 00 [20:28:57]Write to MH i2c: E2 08 00 16 0A 80 11 00 00 00 00 00 00 9A [20:28:57]Write i2c OK [20:28:57]MH_I2C_Read... [20:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:57]Read from MH i2c: E2 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 17 00 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: E2 17 00 16 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E8 [20:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:28:57]wFMCommunicate OK [20:28:57]CreateOFDProtocolMessage done [20:28:57]OFDSenderStorePacket 115765 [20:28:57]StoreOFDPacket docnum=115765 [20:28:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 2B 0C 07 01 2E 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F8 00 00 00 F4 03 04 00 89 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 35 C4 01 00 35 04 06 00 E5 B8 B9 7D 2D B5 38 2D 05 B0 F2 7D 30 A5 [20:28:57]CheckFolder [20:28:57]dirname=/storage/ofd_packets [20:28:57]CheckFolder done [20:28:57]ProducePacketName [20:28:57]name=ofd_packets/00115765 [20:28:57]NVStorageSaveData ofd_packets/00115765 [20:28:57]File name is /storage/ofd_packets/00115765 [20:28:57]Write 301 bytes [20:28:57]NVStorageSaveData done [20:28:57]OFDSenderStorePacket done [20:28:57]KKMCreateOFDPacket done [20:28:57]NVStorageSaveData kkm_last_timestamp [20:28:57]File name is /storage/kkm_last_timestamp [20:28:57]Write 4 bytes [20:28:57]NVStorageSaveData done [20:28:57]ExternCall_PrintAddStr [20:28:57]wPrintStart [20:28:57]Write to MH i2c: 01 00 00 17 0A 21 [20:28:57]Write i2c OK [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: 01 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: 01 07 00 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: 01 07 00 17 0A 00 00 00 00 00 FF 0F 36 [20:28:57]RasterBufferAndPrint [20:28:57]line Счет N : (1)24618027 [20:28:57]line ИНН: 02508201610067 [20:28:57]line Контрольно-Кассовый Чек [20:28:57]line ПРОДАЖА [20:28:57]line ТРК (МРК, ГНК) : 63 [20:28:57]line Товар: 2710124130 [20:28:57]line Аи-92-К-5 [20:28:57]line 30.000 * 0.00 [20:28:57]line = 0.00 [20:28:57]line НДС 12% НСП 1% [20:28:57]line > о реализуемом товаре [20:28:57]line ИТОГО: 0.00 [20:28:57]line НСП 1% : 0.00 [20:28:57]line НДС 12% : 0.00 [20:28:57]line Наличными: 0.00 [20:28:57]line Безнал.: 0.00 [20:28:57]line Место: АЗС № 90 "Партнер Нефть" [20:28:57]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:28:57]line СНО: Общий режим [20:28:57]line Чек 248 23.09.2024 20:28 [20:28:57]line Смена: 472 ФФД: 1.0 [20:28:57]line ЗНМ: 0300000120 [20:28:57]line РНМ: 0000000000091831 [20:28:57]line Версия ККМ: 001 [20:28:57]line Талоны: ТК ГПНА Online [20:28:57]line 30039459 [20:28:57]line ФМ: 0000000000871830 [20:28:57]line ФД: 115765 [20:28:57]line ФПД: 252581548731829 [20:28:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T202857&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115765&fm=252581548731829&tin=02508201610067®Number=0000000000091831&sum=0 [20:28:57]written 0, free lines is 4095 [20:28:57]OFD Sender: Processing packet 115765 [packets to send 482, broken 481] [20:28:57]ProducePacketName [20:28:57]name=ofd_packets/00115765 [20:28:57]OFD Sender: To server: pG, [20:28:57]CommunicateWithHost lk.salyk.kg:30040 [20:28:57]ConnectInit lk.salyk.kg [20:28:57]Connected sock=10 [20:28:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 2B 0C 07 01 2E 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F8 00 00 00 F4 03 04 00 89 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 35 C4 01 00 35 04 06 00 E5 B8 B9 7D 2D B5 38 2D 05 B0 F2 7D 30 A5 [20:28:57]Write to MH i2c: 01 00 00 40 0A 4A [20:28:57]Write i2c OK [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: 01 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: 01 07 00 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: 01 07 00 40 0A 00 00 00 00 00 6F 0C CC [20:28:57]RasterBufferAndPrint [20:28:57]line [20:28:57]line [20:28:57]line [20:28:57]line [20:28:57]line [20:28:57]written 0, free lines is 3189 [20:28:57]MH_Cut [20:28:57]Write to MH i2c: D1 01 00 47 0A 01 23 [20:28:57]Write i2c OK [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: D1 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: D1 01 00 [20:28:57]MH_I2C_Read... [20:28:57]Read from MH i2c: D1 01 00 47 0A 00 22 [20:28:57]Write to MH i2c: 01 00 00 48 0A 52 [20:28:57]Write i2c OK [20:28:57]MH_I2C_Read... [20:28:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1C 38 47 00 E5 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 38 33 30 10 04 04 00 35 C4 01 00 F4 03 04 00 CA 74 F1 66 B6 04 01 00 00 A5 A2 FA 33 4E DB A2 94 [20:28:58]CommunicateWithHost err = 0 [20:28:58]CheckOFDResponse [20:28:58]1017 (14) - 77093643461234 [20:28:58]1041 (16) - 0000000000871830 [20:28:58]1040 (4) - 115765 [20:28:58]1012 (4) - 23.09.2024 14:01 [20:28:58]1206 (1) - 0 [20:28:58]OFD Sender: Remove packet 115765 [20:28:58]ProducePacketName [20:28:58]name=ofd_packets/00115765 [20:28:58]NVStorageDeleteData [20:28:58]OFD Sender: No OFD packet to send [20:28:59]*** Cut start [20:28:59]*** Partial cut [20:28:59]*** CUTSNS_PIN = 1 [20:28:59]*** CUTSNS_PIN = 0 [20:28:59]*** Brake cut motor [20:28:59]Read from MH i2c: 01 [20:28:59]MH_I2C_Read... [20:28:59]*** Stop cut motor [20:28:59]*** Cut end [20:28:59]Read from MH i2c: 01 07 00 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: 01 07 00 48 0A 00 00 00 00 00 FF 0F 67 [20:28:59]process_action close_receipt done [20:28:59]requested_data is exist [20:28:59]produce_requested_data [20:28:59]requested_item fm.sn is exist - process it [20:28:59]wFMCommunicate request_size=4 [20:28:59]MH_SAM_APDU [20:28:59]CAPDU: 80 11 00 00 [20:28:59]Write to MH i2c: E2 08 00 49 0A 80 11 00 00 00 00 00 00 CD [20:28:59]Write i2c OK [20:28:59]MH_I2C_Read... [20:28:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:59]Read from MH i2c: E2 [20:28:59]MH_I2C_Read... [20:28:59]Read from MH i2c: E2 17 00 [20:28:59]MH_I2C_Read... [20:28:59]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 38 33 30 90 00 1B [20:28:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:28:59]wFMCommunicate OK [20:28:59]requested_item fd.num is exist - process it [20:28:59]SAM_PROTO_GetFieldsCounters [20:28:59]wFMCommunicate request_size=4 [20:28:59]MH_SAM_APDU [20:28:59]CAPDU: 80 13 00 00 [20:28:59]Write to MH i2c: E2 08 00 4A 0A 80 13 00 00 00 00 00 00 D0 [20:28:59]Write i2c OK [20:28:59]MH_I2C_Read... [20:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:00]Read from MH i2c: E2 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 62 00 [20:29:00]MH_I2C_Read... [20:29:00]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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 35 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [20:29:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 35 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:00]wFMCommunicate OK [20:29:00]SAM_PROTO_GetFieldsCounters done [20:29:00]requested_item shift.num is exist - process it [20:29:00]requested_item shift.opened is exist - process it [20:29:00]req_shift_opened [20:29:00]FM_GetShiftState [20:29:00]SAM_PROTO_GetShiftState [20:29:00]wFMCommunicate request_size=4 [20:29:00]MH_SAM_APDU [20:29:00]CAPDU: 80 13 01 00 [20:29:00]Write to MH i2c: E2 08 00 4B 0A 80 13 01 00 00 00 00 00 D2 [20:29:00]Write i2c OK [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 [20:29:00]MH_I2C_Read... [20:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:00]Read from MH i2c: E2 0E 00 [20:29:00]MH_I2C_Read... [20:29:00]Read from MH i2c: E2 0E 00 4B 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 13 [20:29:00]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:29:00]wFMCommunicate OK [20:29:00]SAM_PROTO_GetShiftState done [20:29:00]FM_GetShiftState done [20:29:00]req_shift_opened done [20:29:00]requested_item shift.open_date is exist - process it [20:29:00]req_shift_open_date [20:29:00]req_shift_open_date done [20:29:00]produce_requested_data done [20:29:00]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115765,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [20:29:00]process_action_free close_receipt [20:29:00]json_value_free [20:29:00]json_value_free done [20:29:00]process_json_proto returns [20:29:00]Send response to host [20:29:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115765,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [20:29:00]free response buf [20:29:00]execute_script done [20:29:00]execute_script returns [20:29:00]free content buf [20:29:00]Sock 9.Close socket [20:29:00]Sock 9.Thread stoped [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]accept exits with 8 [20:30:23]New connection [20:30:23]New thread 3067010404 created [20:30:23]Thread 3066867044 joined [20:30:23]Waiting for new connection... [20:30:23] Sock 8.Parse request [20:30:23]Sock 8.Check first char [20:30:23]Sock 8.First char is OK [20:30:23]request: POST /json_proto HTTP/1.0 [20:30:23]Method: POST [20:30:23]URL: /json_proto [20:30:23]Method is POST - this is cgi request [20:30:23]url: /json_proto [20:30:23]query_string will be loaded in cgi processing [20:30:23]execute_cgi json_proto POST (null) [20:30:23]execute_cgi path=json_proto method=POST [20:30:23]POST find Content-Length [20:30:23]Host: 172.17.41.136:8080 [20:30:23]Content-Length: 613 [20:30:23]Content-Type: application/json [20:30:23] [20:30:23]POST finish read [20:30:23]Found Content-Length = 613 [20:30:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344084", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:23]execute_script... [20:30:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344084", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:23]POST & json_proto [20:30:23]process_json_proto [20:30:23]json parsed OK: [20:30:23]protocol is kg_v1.0 [20:30:23]action value=close_receipt [20:30:23]process_action close_receipt [20:30:23]cmd_close_receipt [20:30:23]MH_GetDate [20:30:23]Write to MH i2c: F0 00 00 4C 0A 45 [20:30:23]Write i2c OK [20:30:23]MH_I2C_Read... [20:30:23]Read from MH i2c: F0 [20:30:23]MH_I2C_Read... [20:30:23]Read from MH i2c: F0 09 00 [20:30:23]MH_I2C_Read... [20:30:23]Read from MH i2c: F0 09 00 4C 0A 00 E0 CF F1 66 1B D0 5A 64 FD [20:30:23]GetLastDocTimeStamp 1727123337 [20:30:23]current date 1727123424 [20:30:23]FM_GetShiftState [20:30:23]SAM_PROTO_GetShiftState [20:30:23]wFMCommunicate request_size=4 [20:30:23]MH_SAM_APDU [20:30:23]CAPDU: 80 13 01 00 [20:30:23]Write to MH i2c: E2 08 00 4D 0A 80 13 01 00 00 00 00 00 D4 [20:30:23]Write i2c OK [20:30:23]MH_I2C_Read... [20:30:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:23]Read from MH i2c: E2 [20:30:23]MH_I2C_Read... [20:30:23]Read from MH i2c: E2 0E 00 [20:30:23]MH_I2C_Read... [20:30:23]Read from MH i2c: E2 0E 00 4D 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 15 [20:30:23]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:30:23]wFMCommunicate OK [20:30:23]SAM_PROTO_GetShiftState done [20:30:23]FM_GetShiftState done [20:30:23]opened in 1727052070 [20:30:23]opened+sec_in_day 1727138470 [20:30:23]quantity*price = 8000 [20:30:23]sum+1 = 8001 [20:30:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 249 23.09.2024 20:30 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115766 ФПД: 28545561320571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T203024&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115766&fm=28545561320571&tin=02508201610067®Number=0000000000091831&sum=8000 0 [20:30:24]StoreToDocumentArchive [20:30:24]shift 472 fd 115766 [20:30:24]save to /storage/0472/doc_00115766 [20:30:24]save last doc name /storage/0472/doc_00115766 to /storage/kkm_last_doc_name [20:30:24]save OK [20:30:24]Clear old archive folders... [20:30:24]ProcessDocumentItem done err = 0, tmpTLVsize=268 [20:30:24]tlvbuf is 01166110 [20:30:24]SAM_PROTO_ClearQueue [20:30:24]wFMCommunicate request_size=4 [20:30:24]MH_SAM_APDU [20:30:24]CAPDU: 80 09 00 00 [20:30:24]Write to MH i2c: E2 08 00 5A 0A 80 09 00 00 00 00 00 00 D6 [20:30:24]Write i2c OK [20:30:24]MH_I2C_Read... [20:30:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:24]Read from MH i2c: E2 [20:30:24]MH_I2C_Read... [20:30:24]Read from MH i2c: E2 03 00 [20:30:24]MH_I2C_Read... [20:30:24]Read from MH i2c: E2 03 00 5A 0A 00 90 00 D8 [20:30:24]RAPDU: 90 00 [20:30:24]wFMCommunicate OK [20:30:24]SAM_PROTO_ClearQueue done [20:30:24]KKMCreateOFDPacket [20:30:24]OFDProtocolAddRootSTLVToBuf [20:30:24]FM_MakeSignedData [20:30:24]FM_MakeSignedData [20:30:24]SAM_PROTO_SignData [20:30:24]wFMCommunicate request_size=4 [20:30:24]MH_SAM_APDU [20:30:24]CAPDU: 80 0D 01 02 [20:30:24]Write to MH i2c: E2 08 00 5B 0A 80 0D 01 02 00 00 00 00 DE [20:30:24]Write i2c OK [20:30:24]MH_I2C_Read... [20:30:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:24]Read from MH i2c: E2 [20:30:24]MH_I2C_Read... [20:30:24]Read from MH i2c: E2 03 00 [20:30:24]MH_I2C_Read... [20:30:24]Read from MH i2c: E2 03 00 5B 0A 00 90 00 D9 [20:30:24]RAPDU: 90 00 [20:30:24]wFMCommunicate OK [20:30:24]wFMCommunicate request_size=255 [20:30:24]MH_SAM_APDU [20:30:24]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 E0 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [20:30:24]Write to MH i2c: E2 02 01 5C 0A 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 E0 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 C6 [20:30:24]Write i2c OK [20:30:24]MH_I2C_Read... [20:30:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:24]Read from MH i2c: E2 [20:30:24]MH_I2C_Read... [20:30:24]Read from MH i2c: E2 03 00 [20:30:24]MH_I2C_Read... [20:30:24]Read from MH i2c: E2 03 00 5C 0A 00 90 00 DA [20:30:24]RAPDU: 90 00 [20:30:24]wFMCommunicate OK [20:30:24]wFMCommunicate request_size=27 [20:30:24]MH_SAM_APDU [20:30:24]CAPDU: 80 0D 02 02 16 31 38 33 30 10 04 04 00 36 C4 01 00 35 04 06 00 19 F6 48 0A DC 7B [20:30:24]Write to MH i2c: E2 1E 00 5D 0A 80 0D 02 02 16 00 31 38 33 30 10 04 04 00 36 C4 01 00 35 04 06 00 19 F6 48 0A DC 7B 00 00 E3 [20:30:24]Write i2c OK [20:30:24]MH_I2C_Read... [20:30:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:24]Read from MH i2c: E2 [20:30:24]MH_I2C_Read... [20:30:24]Read from MH i2c: E2 03 00 [20:30:24]MH_I2C_Read... [20:30:24]Read from MH i2c: E2 03 00 5D 0A 00 90 00 DB [20:30:24]RAPDU: 90 00 [20:30:24]wFMCommunicate OK [20:30:24]wFMCommunicate request_size=4 [20:30:24]MH_SAM_APDU [20:30:24]CAPDU: 80 0D 03 02 [20:30:24]Write to MH i2c: E2 08 00 5E 0A 80 0D 03 02 00 00 00 00 E3 [20:30:24]Write i2c OK [20:30:24]MH_I2C_Read... [20:30:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:24]Read from MH i2c: E2 [20:30:24]MH_I2C_Read... [20:30:24]Read from MH i2c: E2 0B 00 [20:30:24]MH_I2C_Read... [20:30:24]Read from MH i2c: E2 0B 00 5E 0A 00 70 8B 2C D4 35 07 C4 85 90 00 64 [20:30:24]RAPDU: 70 8B 2C D4 35 07 C4 85 90 00 [20:30:24]wFMCommunicate OK [20:30:24]SAM_PROTO_SignData done [20:30:24]FM_MakeSignedData done [20:30:24]CreateOFDProtocolMessage [20:30:24]wFMCommunicate request_size=4 [20:30:24]MH_SAM_APDU [20:30:24]CAPDU: 80 11 00 00 [20:30:24]Write to MH i2c: E2 08 00 5F 0A 80 11 00 00 00 00 00 00 E3 [20:30:24]Write i2c OK [20:30:24]MH_I2C_Read... [20:30:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:24]Read from MH i2c: E2 [20:30:24]MH_I2C_Read... [20:30:24]Read from MH i2c: E2 17 00 [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: E2 17 00 5F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 31 [20:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:30:25]wFMCommunicate OK [20:30:25]CreateOFDProtocolMessage done [20:30:25]OFDSenderStorePacket 115766 [20:30:25]StoreOFDPacket docnum=115766 [20:30:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 20 01 00 00 E9 06 18 01 BE 3D 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 E0 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 36 C4 01 00 35 04 06 00 19 F6 48 0A DC 7B 70 8B 2C D4 35 07 C4 85 [20:30:25]CheckFolder [20:30:25]dirname=/storage/ofd_packets [20:30:25]CheckFolder done [20:30:25]ProducePacketName [20:30:25]name=ofd_packets/00115766 [20:30:25]NVStorageSaveData ofd_packets/00115766 [20:30:25]File name is /storage/ofd_packets/00115766 [20:30:25]Write 318 bytes [20:30:25]NVStorageSaveData done [20:30:25]OFDSenderStorePacket done [20:30:25]KKMCreateOFDPacket done [20:30:25]NVStorageSaveData kkm_last_timestamp [20:30:25]File name is /storage/kkm_last_timestamp [20:30:25]Write 4 bytes [20:30:25]NVStorageSaveData done [20:30:25]ExternCall_PrintAddStr [20:30:25]wPrintStart [20:30:25]Write to MH i2c: 01 00 00 60 0A 6A [20:30:25]Write i2c OK [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: 01 [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: 01 07 00 [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: 01 07 00 60 0A 00 00 00 00 00 FF 0F 7F [20:30:25]RasterBufferAndPrint [20:30:25]line Счет N : (3)344084 [20:30:25]line ИНН: 02508201610067 [20:30:25]line Контрольно-Кассовый Чек [20:30:25]line ПРОДАЖА [20:30:25]line Товар: 4870001570057 [20:30:25]line Напиток Pepsi 0,5л [20:30:25]line 1.000 * 80.00 [20:30:25]line = 80.00 [20:30:25]line НДС 12% НСП 1% [20:30:25]line > о реализуемом товаре [20:30:25]line ИТОГО: 80.00 [20:30:25]line НСП 1% : 0.71 [20:30:25]line НДС 12% : 8.50 [20:30:25]line Наличными: 80.00 [20:30:25]line Безнал.: 0.00 [20:30:25]line Место: АЗС № 90 "Партнер Нефть" [20:30:25]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:30:25]line СНО: Общий режим [20:30:25]line Чек 249 23.09.2024 20:30 [20:30:25]line Смена: 472 ФФД: 1.0 [20:30:25]line ЗНМ: 0300000120 [20:30:25]line РНМ: 0000000000091831 [20:30:25]line Версия ККМ: 001 [20:30:25]line ФМ: 0000000000871830 [20:30:25]line ФД: 115766 [20:30:25]line ФПД: 28545561320571 [20:30:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T203024&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115766&fm=28545561320571&tin=02508201610067®Number=0000000000091831&sum=8000 [20:30:25]OFD Sender: Processing packet 115766 [packets to send 482, broken 481] [20:30:25]ProducePacketName [20:30:25]name=ofd_packets/00115766 [20:30:25]OFD Sender: To server: pG, [20:30:25]CommunicateWithHost lk.salyk.kg:30040 [20:30:25]ConnectInit lk.salyk.kg [20:30:25]line 0 [20:30:25]written 0, free lines is 4095 [20:30:25]Connected sock=10 [20:30: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 38 33 30 20 01 00 00 E9 06 18 01 BE 3D 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 E0 CF F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 36 C4 01 00 35 04 06 00 19 F6 48 0A DC 7B 70 8B 2C D4 35 07 C4 85 [20:30:25]Write to MH i2c: 01 00 00 87 0A 91 [20:30:25]Write i2c OK [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: 01 [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: 01 07 00 [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: 01 07 00 87 0A 00 00 00 00 00 8B 0C 2F [20:30:25]RasterBufferAndPrint [20:30:25]line [20:30:25]line [20:30:25]line [20:30:25]line [20:30:25]line [20:30:25]written 0, free lines is 3215 [20:30:25]MH_Cut [20:30:25]Write to MH i2c: D1 01 00 8E 0A 01 6A [20:30:25]Write i2c OK [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: D1 [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: D1 01 00 [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: D1 01 00 8E 0A 00 69 [20:30:25]Write to MH i2c: 01 00 00 8F 0A 99 [20:30:25]Write i2c OK [20:30:25]MH_I2C_Read... [20:30:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1E D4 47 00 E2 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 38 33 30 10 04 04 00 36 C4 01 00 F4 03 04 00 22 75 F1 66 B6 04 01 00 00 6D 33 96 54 06 1B 2E 5F [20:30:26]CommunicateWithHost err = 0 [20:30:26]CheckOFDResponse [20:30:26]1017 (14) - 77093643461234 [20:30:26]1041 (16) - 0000000000871830 [20:30:26]1040 (4) - 115766 [20:30:26]1012 (4) - 23.09.2024 14:03 [20:30:26]1206 (1) - 0 [20:30:26]OFD Sender: Remove packet 115766 [20:30:26]ProducePacketName [20:30:26]name=ofd_packets/00115766 [20:30:26]NVStorageDeleteData [20:30:26]OFD Sender: No OFD packet to send [20:30:27]*** Cut start [20:30:27]*** Partial cut [20:30:27]*** CUTSNS_PIN = 1 [20:30:27]*** CUTSNS_PIN = 0 [20:30:27]*** Brake cut motor [20:30:27]Read from MH i2c: 01 [20:30:27]MH_I2C_Read... [20:30:27]*** Stop cut motor [20:30:27]Read from MH i2c: 01 *** Cut end [20:30:27]07 00 [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: 01 07 00 8F 0A 00 00 00 00 00 FF 0F AE [20:30:27]process_action close_receipt done [20:30:27]requested_data is exist [20:30:27]produce_requested_data [20:30:27]requested_item fm.sn is exist - process it [20:30:27]wFMCommunicate request_size=4 [20:30:27]MH_SAM_APDU [20:30:27]CAPDU: 80 11 00 00 [20:30:27]Write to MH i2c: E2 08 00 90 0A 80 11 00 00 00 00 00 00 14 [20:30:27]Write i2c OK [20:30:27]MH_I2C_Read... [20:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:27]Read from MH i2c: E2 [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: E2 17 00 [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: E2 17 00 90 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 62 [20:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:30:27]wFMCommunicate OK [20:30:27]requested_item fd.num is exist - process it [20:30:27]SAM_PROTO_GetFieldsCounters [20:30:27]wFMCommunicate request_size=4 [20:30:27]MH_SAM_APDU [20:30:27]CAPDU: 80 13 00 00 [20:30:27]Write to MH i2c: E2 08 00 91 0A 80 13 00 00 00 00 00 00 17 [20:30:27]Write i2c OK [20:30:27]MH_I2C_Read... [20:30:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:27]Read from MH i2c: E2 [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: E2 62 00 [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: E2 62 00 91 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 36 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [20:30: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 36 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:30:27]wFMCommunicate OK [20:30:27]SAM_PROTO_GetFieldsCounters done [20:30:27]requested_item shift.num is exist - process it [20:30:27]requested_item shift.opened is exist - process it [20:30:27]req_shift_opened [20:30:27]FM_GetShiftState [20:30:27]SAM_PROTO_GetShiftState [20:30:27]wFMCommunicate request_size=4 [20:30:27]MH_SAM_APDU [20:30:27]CAPDU: 80 13 01 00 [20:30:27]Write to MH i2c: E2 08 00 92 0A 80 13 01 00 00 00 00 00 19 [20:30:27]Write i2c OK [20:30:27]MH_I2C_Read... [20:30:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:27]Read from MH i2c: E2 [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: E2 0E 00 [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: E2 0E 00 92 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5A [20:30:27]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:30:27]wFMCommunicate OK [20:30:27]SAM_PROTO_GetShiftState done [20:30:27]FM_GetShiftState done [20:30:27]req_shift_opened done [20:30:27]requested_item shift.open_date is exist - process it [20:30:27]req_shift_open_date [20:30:27]req_shift_open_date done [20:30:27]produce_requested_data done [20:30:27]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115766,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [20:30:27]process_action_free close_receipt [20:30:27]json_value_free [20:30:27]json_value_free done [20:30:27]process_json_proto returns [20:30:27]Send response to host [20:30:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115766,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [20:30:27]free response buf [20:30:27]execute_script done [20:30:27]execute_script returns [20:30:27]free content buf [20:30:27]Sock 8.Close socket [20:30:27]Sock 8.Thread stoped [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]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:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:16]accept exits with 9 [20:40:16]New connection [20:40:16]New thread 3066867044 created [20:40:16]Thread 3067010404 joined [20:40:16]Waiting for new connection... [20:40:16] Sock 9.Parse request [20:40:16]Sock 9.Check first char [20:40:16]Sock 9.First char is OK [20:40:16]request: POST /json_proto HTTP/1.0 [20:40:16]Method: POST [20:40:16]URL: /json_proto [20:40:16]Method is POST - this is cgi request [20:40:16]url: /json_proto [20:40:16]query_string will be loaded in cgi processing [20:40:16]execute_cgi json_proto POST (null) [20:40:16]execute_cgi path=json_proto method=POST [20:40:16]POST find Content-Length [20:40:16]Host: 172.17.41.136:8080 [20:40:16]Content-Length: 706 [20:40:16]Content-Type: application/json [20:40:16] [20:40:16]POST finish read [20:40:16]Found Content-Length = 706 [20:40:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344086", "tax_sys" : 0, "items" : [ { "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:16]execute_script... [20:40:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344086", "tax_sys" : 0, "items" : [ { "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:16]POST & json_proto [20:40:16]process_json_proto [20:40:16]json parsed OK: [20:40:16]protocol is kg_v1.0 [20:40:16]action value=close_receipt [20:40:16]process_action close_receipt [20:40:16]cmd_close_receipt [20:40:16]MH_GetDate [20:40:16]Write to MH i2c: F0 00 00 93 0A 8C [20:40:16]Write i2c OK [20:40:16]MH_I2C_Read... [20:40:16]Read from MH i2c: F0 [20:40:16]MH_I2C_Read... [20:40:16]Read from MH i2c: F0 09 00 [20:40:16]MH_I2C_Read... [20:40:16]Read from MH i2c: F0 09 00 93 0A 00 31 D2 F1 66 1B D0 5A 64 98 [20:40:16]GetLastDocTimeStamp 1727123424 [20:40:16]current date 1727124017 [20:40:16]FM_GetShiftState [20:40:16]SAM_PROTO_GetShiftState [20:40:16]wFMCommunicate request_size=4 [20:40:16]MH_SAM_APDU [20:40:16]CAPDU: 80 13 01 00 [20:40:16]Write to MH i2c: E2 08 00 94 0A 80 13 01 00 00 00 00 00 1B [20:40:16]Write i2c OK [20:40:16]MH_I2C_Read... [20:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:16]Read from MH i2c: E2 [20:40:16]MH_I2C_Read... [20:40:16]Read from MH i2c: E2 0E 00 [20:40:16]MH_I2C_Read... [20:40:16]Read from MH i2c: E2 0E 00 94 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5C [20:40:16]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:40:16]wFMCommunicate OK [20:40:16]SAM_PROTO_GetShiftState done [20:40:16]FM_GetShiftState done [20:40:16]opened in 1727052070 [20:40:16]opened+sec_in_day 1727138470 [20:40:16]quantity*price = 17500 [20:40:16]sum+1 = 17501 [20:40:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 250 23.09.2024 20:40 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115767 ФПД: 11018303449653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T204017&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115767&fm=11018303449653&tin=02508201610067®Number=0000000000091831&sum=17500 0 [20:40:17]StoreToDocumentArchive [20:40:17]shift 472 fd 115767 [20:40:17]save to /storage/0472/doc_00115767 [20:40:17]save last doc name /storage/0472/doc_00115767 to /storage/kkm_last_doc_name [20:40:17]save OK [20:40:17]Clear old archive folders... [20:40:17]ProcessDocumentItem done err = 0, tmpTLVsize=302 [20:40:17]tlvbuf is B6ECF810 [20:40:17]SAM_PROTO_ClearQueue [20:40:17]wFMCommunicate request_size=4 [20:40:17]MH_SAM_APDU [20:40:17]CAPDU: 80 09 00 00 [20:40:17]Write to MH i2c: E2 08 00 A1 0A 80 09 00 00 00 00 00 00 1D [20:40:17]Write i2c OK [20:40:17]MH_I2C_Read... [20:40:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:17]Read from MH i2c: E2 [20:40:17]MH_I2C_Read... [20:40:17]Read from MH i2c: E2 03 00 [20:40:17]MH_I2C_Read... [20:40:17]Read from MH i2c: E2 03 00 A1 0A 00 90 00 1F [20:40:17]RAPDU: 90 00 [20:40:17]wFMCommunicate OK [20:40:17]SAM_PROTO_ClearQueue done [20:40:17]KKMCreateOFDPacket [20:40:17]OFDProtocolAddRootSTLVToBuf [20:40:17]FM_MakeSignedData [20:40:17]FM_MakeSignedData [20:40:17]SAM_PROTO_SignData [20:40:17]wFMCommunicate request_size=4 [20:40:17]MH_SAM_APDU [20:40:17]CAPDU: 80 0D 01 02 [20:40:17]Write to MH i2c: E2 08 00 A2 0A 80 0D 01 02 00 00 00 00 25 [20:40:17]Write i2c OK [20:40:17]MH_I2C_Read... [20:40:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:17]Read from MH i2c: E2 [20:40:17]MH_I2C_Read... [20:40:17]Read from MH i2c: E2 03 00 [20:40:17]MH_I2C_Read... [20:40:17]Read from MH i2c: E2 03 00 A2 0A 00 90 00 20 [20:40:17]RAPDU: 90 00 [20:40:17]wFMCommunicate OK [20:40:17]wFMCommunicate request_size=255 [20:40:17]MH_SAM_APDU [20:40:17]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 31 D2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 [20:40:17]Write to MH i2c: E2 02 01 A3 0A 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 31 D2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 00 00 E0 [20:40:17]Write i2c OK [20:40:17]MH_I2C_Read... [20:40:17]Read from MH i2c: E2 [20:40:17]MH_I2C_Read... [20:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:17]Read from MH i2c: E2 03 00 [20:40:17]MH_I2C_Read... [20:40:17]Read from MH i2c: E2 03 00 A3 0A 00 90 00 21 [20:40:17]RAPDU: 90 00 [20:40:17]wFMCommunicate OK [20:40:17]wFMCommunicate request_size=61 [20:40:17]MH_SAM_APDU [20:40:17]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 37 C4 01 00 35 04 06 00 0A 05 66 10 2A 35 [20:40:17]Write to MH i2c: E2 40 00 A4 0A 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 37 C4 01 00 35 04 06 00 0A 05 66 10 2A 35 00 00 35 [20:40:17]Write i2c OK [20:40:17]MH_I2C_Read... [20:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:17]Read from MH i2c: E2 [20:40:17]MH_I2C_Read... [20:40:17]Read from MH i2c: E2 03 00 [20:40:17]MH_I2C_Read... [20:40:17]Read from MH i2c: E2 03 00 A4 0A 00 90 00 22 [20:40:17]RAPDU: 90 00 [20:40:17]wFMCommunicate OK [20:40:17]wFMCommunicate request_size=4 [20:40:17]MH_SAM_APDU [20:40:17]CAPDU: 80 0D 03 02 [20:40:17]Write to MH i2c: E2 08 00 A5 0A 80 0D 03 02 00 00 00 00 2A [20:40:17]Write i2c OK [20:40:17]MH_I2C_Read... [20:40:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:18]Read from MH i2c: E2 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 0B 00 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 0B 00 A5 0A 00 DA 89 8F 53 7F 7F F1 4D 90 00 AC [20:40:18]RAPDU: DA 89 8F 53 7F 7F F1 4D 90 00 [20:40:18]wFMCommunicate OK [20:40:18]SAM_PROTO_SignData done [20:40:18]FM_MakeSignedData done [20:40:18]CreateOFDProtocolMessage [20:40:18]wFMCommunicate request_size=4 [20:40:18]MH_SAM_APDU [20:40:18]CAPDU: 80 11 00 00 [20:40:18]Write to MH i2c: E2 08 00 A6 0A 80 11 00 00 00 00 00 00 2A [20:40:18]Write i2c OK [20:40:18]MH_I2C_Read... [20:40:18]OFD Sender: No OFD packet to send [20:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:18]Read from MH i2c: E2 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 17 00 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 17 00 A6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 78 [20:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:40:18]wFMCommunicate OK [20:40:18]CreateOFDProtocolMessage done [20:40:18]OFDSenderStorePacket 115767 [20:40:18]StoreOFDPacket docnum=115767 [20:40:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 42 01 00 00 0A 0A 3A 01 AF 66 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 31 D2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 37 C4 01 00 35 04 06 00 0A 05 66 10 2A 35 DA 89 8F 53 7F 7F F1 4D [20:40:18]CheckFolder [20:40:18]dirname=/storage/ofd_packets [20:40:18]CheckFolder done [20:40:18]ProducePacketName [20:40:18]name=ofd_packets/00115767 [20:40:18]NVStorageSaveData ofd_packets/00115767 [20:40:18]File name is /storage/ofd_packets/00115767 [20:40:18]Write 352 bytes [20:40:18]NVStorageSaveData done [20:40:18]OFDSenderStorePacket done [20:40:18]KKMCreateOFDPacket done [20:40:18]NVStorageSaveData kkm_last_timestamp [20:40:18]File name is /storage/kkm_last_timestamp [20:40:18]Write 4 bytes [20:40:18]NVStorageSaveData done [20:40:18]ExternCall_PrintAddStr [20:40:18]wPrintStart [20:40:18]Write to MH i2c: 01 00 00 A7 0A B1 [20:40:18]Write i2c OK [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: 01 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: 01 07 00 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: 01 07 00 A7 0A 00 00 00 00 00 FF 0F C6 [20:40:18]RasterBufferAndPrint [20:40:18]line Счет N : (3)344086 [20:40:18]line ИНН: 02508201610067 [20:40:18]line Контрольно-Кассовый Чек [20:40:18]line ПРОДАЖА [20:40:18]line Товар: 5449000273673 [20:40:18]line Сок Piko Pulpy красный виноград ПЭТ 1л [20:40:18]line 1.000 * 175.00 [20:40:18]line = 175.00 [20:40:18]line НДС 12% НСП 1% [20:40:18]line > о реализуемом товаре [20:40:18]line ИТОГО: 175.00 [20:40:18]line НСП 1% : 1.55 [20:40:18]line НДС 12% : 18.58 [20:40:18]line Наличными: 175.00 [20:40:18]line Безнал.: 0.00 [20:40:18]line Место: АЗС № 90 "Партнер Нефть" [20:40:18]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:40:18]line СНО: Общий режим [20:40:18]line Чек 250 23.09.2024 20:40 [20:40:18]line Смена: 472 ФФД: 1.0 [20:40:18]line ЗНМ: 0300000120 [20:40:18]line РНМ: 0000000000091831 [20:40:18]line Версия ККМ: 001 [20:40:18]line ФМ: 0000000000871830 [20:40:18]line ФД: 115767 [20:40:18]line ФПД: 11018303449653 [20:40:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T204017&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115767&fm=11018303449653&tin=02508201610067®Number=0000000000091831&sum=17500 [20:40:18]line 0 [20:40:18]written 0, free lines is 4095 [20:40:18]OFD Sender: Processing packet 115767 [packets to send 482, broken 481] [20:40:18]ProducePacketName [20:40:18]name=ofd_packets/00115767 [20:40:18]OFD Sender: To server: pG, [20:40:18]CommunicateWithHost lk.salyk.kg:30040 [20:40:18]ConnectInit lk.salyk.kg [20:40:18]Connected sock=10 [20:40:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 42 01 00 00 0A 0A 3A 01 AF 66 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 31 D2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 37 C4 01 00 35 04 06 00 0A 05 66 10 2A 35 DA 89 8F 53 7F 7F F1 4D [20:40:18]Write to MH i2c: 01 00 00 CF 0A D9 [20:40:18]Write i2c OK [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: 01 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: 01 07 00 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: 01 07 00 CF 0A 00 00 00 00 00 59 0C 45 [20:40:18]RasterBufferAndPrint [20:40:18]line [20:40:18]line [20:40:18]line [20:40:18]line [20:40:18]line [20:40:18]written 0, free lines is 3164 [20:40:18]MH_Cut [20:40:18]Write to MH i2c: D1 01 00 D6 0A 01 B2 [20:40:18]Write i2c OK [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: D1 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: D1 01 00 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: D1 01 00 D6 0A 00 B1 [20:40:18]Write to MH i2c: 01 00 00 D7 0A E1 [20:40:18]Write i2c OK [20:40:18]MH_I2C_Read... [20:40:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 75 75 47 00 FD E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 37 C4 01 00 F4 03 04 00 73 77 F1 66 B6 04 01 00 00 3F 98 37 24 E5 72 26 71 [20:40:18]CommunicateWithHost err = 0 [20:40:18]CheckOFDResponse [20:40:18]1017 (14) - 77093643461234 [20:40:18]1041 (16) - 0000000000871830 [20:40:18]1040 (4) - 115767 [20:40:18]1012 (4) - 23.09.2024 14:13 [20:40:18]1206 (1) - 0 [20:40:18]OFD Sender: Remove packet 115767 [20:40:18]ProducePacketName [20:40:18]name=ofd_packets/00115767 [20:40:18]NVStorageDeleteData [20:40:19]OFD Sender: No OFD packet to send [20:40:19]*** Cut start [20:40:19]*** Partial cut [20:40:19]*** CUTSNS_PIN = 1 [20:40:19]*** CUTSNS_PIN = 0 [20:40:20]*** Brake cut motor [20:40:20]Read from MH i2c: 01 [20:40:20]MH_I2C_Read... [20:40:20]*** Stop cut motor [20:40:20]*** Cut end [20:40:20]Read from MH i2c: 01 07 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: 01 07 00 D7 0A 00 00 00 00 00 FF 0F F6 [20:40:20]process_action close_receipt done [20:40:20]requested_data is exist [20:40:20]produce_requested_data [20:40:20]requested_item fm.sn is exist - process it [20:40:20]wFMCommunicate request_size=4 [20:40:20]MH_SAM_APDU [20:40:20]CAPDU: 80 11 00 00 [20:40:20]Write to MH i2c: E2 08 00 D8 0A 80 11 00 00 00 00 00 00 5C [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:20]Read from MH i2c: E2 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 17 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 17 00 D8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AA [20:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:40:20]wFMCommunicate OK [20:40:20]requested_item fd.num is exist - process it [20:40:20]SAM_PROTO_GetFieldsCounters [20:40:20]wFMCommunicate request_size=4 [20:40:20]MH_SAM_APDU [20:40:20]CAPDU: 80 13 00 00 [20:40:20]Write to MH i2c: E2 08 00 D9 0A 80 13 00 00 00 00 00 00 5F [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:20]Read from MH i2c: E2 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 62 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 62 00 D9 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 37 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [20:40: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 37 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:20]wFMCommunicate OK [20:40:20]SAM_PROTO_GetFieldsCounters done [20:40:20]requested_item shift.num is exist - process it [20:40:20]requested_item shift.opened is exist - process it [20:40:20]req_shift_opened [20:40:20]FM_GetShiftState [20:40:20]SAM_PROTO_GetShiftState [20:40:20]wFMCommunicate request_size=4 [20:40:20]MH_SAM_APDU [20:40:20]CAPDU: 80 13 01 00 [20:40:20]Write to MH i2c: E2 08 00 DA 0A 80 13 01 00 00 00 00 00 61 [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:20]Read from MH i2c: E2 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 0E 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 0E 00 DA 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A2 [20:40:20]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:40:20]wFMCommunicate OK [20:40:20]SAM_PROTO_GetShiftState done [20:40:20]FM_GetShiftState done [20:40:20]req_shift_opened done [20:40:20]requested_item shift.open_date is exist - process it [20:40:20]req_shift_open_date [20:40:20]req_shift_open_date done [20:40:20]produce_requested_data done [20:40:20]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115767,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [20:40:20]process_action_free close_receipt [20:40:20]json_value_free [20:40:20]json_value_free done [20:40:20]process_json_proto returns [20:40:20]Send response to host [20:40:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115767,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [20:40:20]free response buf [20:40:20]execute_script done [20:40:20]execute_script returns [20:40:20]free content buf [20:40:20]Sock 9.Close socket [20:40:20]Sock 9.Thread stoped [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:41]accept exits with 8 [20:40:41]New connection [20:40:41]New thread 3067010404 created [20:40:41]Thread 3066867044 joined [20:40:41]Waiting for new connection... [20:40:41] Sock 8.Parse request [20:40:41]Sock 8.Check first char [20:40:41]Sock 8.First char is OK [20:40:41]request: POST /json_proto HTTP/1.0 [20:40:41]Method: POST [20:40:41]URL: /json_proto [20:40:41]Method is POST - this is cgi request [20:40:41]url: /json_proto [20:40:41]query_string will be loaded in cgi processing [20:40:41]execute_cgi json_proto POST (null) [20:40:41]execute_cgi path=json_proto method=POST [20:40:41]POST find Content-Length [20:40:41]Host: 172.17.41.136:8080 [20:40:41]Content-Length: 805 [20:40:41]Content-Type: application/json [20:40:41] [20:40:41]POST finish read [20:40:41]Found Content-Length = 805 [20:40:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24618033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:41]execute_script... [20:40: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)24618033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:41]POST & json_proto [20:40:41]process_json_proto [20:40:41]json parsed OK: [20:40:41]protocol is kg_v1.0 [20:40:41]action value=close_receipt [20:40:41]process_action close_receipt [20:40:41]cmd_close_receipt [20:40:41]MH_GetDate [20:40:41]Write to MH i2c: F0 00 00 DB 0A D4 [20:40:41]Write i2c OK [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: F0 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: F0 09 00 [20:40:41]MH_I2C_Read... [20:40:41]Read from MH i2c: F0 09 00 DB 0A 00 4B D2 F1 66 1B D0 5A 64 FA [20:40:41]GetLastDocTimeStamp 1727124017 [20:40:41]current date 1727124043 [20:40:41]FM_GetShiftState [20:40:41]SAM_PROTO_GetShiftState [20:40:41]wFMCommunicate request_size=4 [20:40:41]MH_SAM_APDU [20:40:41]CAPDU: 80 13 01 00 [20:40:41]Write to MH i2c: E2 08 00 DC 0A 80 13 01 00 00 00 00 00 63 [20:40:41]Write i2c OK [20:40:41]MH_I2C_Read... [20:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:42]Read from MH i2c: E2 [20:40:42]MH_I2C_Read... [20:40:42]Read from MH i2c: E2 0E 00 [20:40:42]MH_I2C_Read... [20:40:42]Read from MH i2c: E2 0E 00 DC 0A 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A4 [20:40:42]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:40:42]wFMCommunicate OK [20:40:42]SAM_PROTO_GetShiftState done [20:40:42]FM_GetShiftState done [20:40:42]opened in 1727052070 [20:40:42]opened+sec_in_day 1727138470 [20:40:42]quantity*price = 100021 [20:40:42]sum+1 = 100023 [20:40:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 251 23.09.2024 20:40 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115768 ФПД: 224560571231067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T204043&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115768&fm=224560571231067&tin=02508201610067®Number=0000000000091831&sum=100022 [20:40:43]StoreToDocumentArchive [20:40:43]shift 472 fd 115768 [20:40:43]save to /storage/0472/doc_00115768 [20:40:43]save last doc name /storage/0472/doc_00115768 to /storage/kkm_last_doc_name [20:40:43]save OK [20:40:43]Clear old archive folders... [20:40:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:40:43]tlvbuf is 01155FD0 [20:40:43]SAM_PROTO_ClearQueue [20:40:43]wFMCommunicate request_size=4 [20:40:43]MH_SAM_APDU [20:40:43]CAPDU: 80 09 00 00 [20:40:43]Write to MH i2c: E2 08 00 E9 0A 80 09 00 00 00 00 00 00 65 [20:40:43]Write i2c OK [20:40:43]MH_I2C_Read... [20:40:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:43]Read from MH i2c: E2 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: E2 03 00 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: E2 03 00 E9 0A 00 90 00 67 [20:40:43]RAPDU: 90 00 [20:40:43]wFMCommunicate OK [20:40:43]SAM_PROTO_ClearQueue done [20:40:43]KKMCreateOFDPacket [20:40:43]OFDProtocolAddRootSTLVToBuf [20:40:43]FM_MakeSignedData [20:40:43]FM_MakeSignedData [20:40:43]SAM_PROTO_SignData [20:40:43]wFMCommunicate request_size=4 [20:40:43]MH_SAM_APDU [20:40:43]CAPDU: 80 0D 01 02 [20:40:43]Write to MH i2c: E2 08 00 EA 0A 80 0D 01 02 00 00 00 00 6D [20:40:43]Write i2c OK [20:40:43]MH_I2C_Read... [20:40:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:43]Read from MH i2c: E2 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: E2 03 00 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: E2 03 00 EA 0A 00 90 00 68 [20:40:43]RAPDU: 90 00 [20:40:43]wFMCommunicate OK [20:40:43]wFMCommunicate request_size=255 [20:40:43]MH_SAM_APDU [20:40: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 FB 00 00 00 F4 03 04 00 4B D2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 38 C4 01 00 35 04 06 00 CC [20:40:43]Write to MH i2c: E2 02 01 EB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 FB 00 00 00 F4 03 04 00 4B D2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 38 C4 01 00 35 04 06 00 CC 00 00 4E [20:40:43]Write i2c OK [20:40:43]MH_I2C_Read... [20:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:43]Read from MH i2c: E2 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: E2 03 00 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: E2 03 00 EB 0A 00 90 00 69 [20:40:43]RAPDU: 90 00 [20:40:43]wFMCommunicate OK [20:40:43]wFMCommunicate request_size=10 [20:40:43]MH_SAM_APDU [20:40:43]CAPDU: 80 0D 02 02 05 3C 95 14 2B 5B [20:40:43]Write to MH i2c: E2 0D 00 EC 0A 80 0D 02 02 05 00 3C 95 14 2B 5B 00 00 E5 [20:40:43]Write i2c OK [20:40:43]MH_I2C_Read... [20:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:43]Read from MH i2c: E2 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: E2 03 00 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: E2 03 00 EC 0A 00 90 00 6A [20:40:43]RAPDU: 90 00 [20:40:43]wFMCommunicate OK [20:40:43]wFMCommunicate request_size=4 [20:40:43]MH_SAM_APDU [20:40:43]CAPDU: 80 0D 03 02 [20:40:43]Write to MH i2c: E2 08 00 ED 0A 80 0D 03 02 00 00 00 00 72 [20:40:43]Write i2c OK [20:40:43]MH_I2C_Read... [20:40:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:43]Read from MH i2c: E2 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: E2 0B 00 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: E2 0B 00 ED 0A 00 AE 96 5B 51 A7 10 D5 F0 90 00 DF [20:40:43]RAPDU: AE 96 5B 51 A7 10 D5 F0 90 00 [20:40:43]wFMCommunicate OK [20:40:43]SAM_PROTO_SignData done [20:40:43]FM_MakeSignedData done [20:40:43]CreateOFDProtocolMessage [20:40:43]wFMCommunicate request_size=4 [20:40:43]MH_SAM_APDU [20:40:43]CAPDU: 80 11 00 00 [20:40:43]Write to MH i2c: E2 08 00 EE 0A 80 11 00 00 00 00 00 00 72 [20:40:43]Write i2c OK [20:40:43]MH_I2C_Read... [20:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:43]Read from MH i2c: E2 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: E2 17 00 [20:40:43]MH_I2C_Read... [20:40:43]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 38 33 30 90 00 C0 [20:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:40:43]wFMCommunicate OK [20:40:43]CreateOFDProtocolMessage done [20:40:43]OFDSenderStorePacket 115768 [20:40:43]StoreOFDPacket docnum=115768 [20:40:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 6B C4 07 01 30 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 FB 00 00 00 F4 03 04 00 4B D2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 38 C4 01 00 35 04 06 00 CC 3C 95 14 2B 5B AE 96 5B 51 A7 10 D5 F0 [20:40:43]CheckFolder [20:40:43]dirname=/storage/ofd_packets [20:40:43]CheckFolder done [20:40:43]ProducePacketName [20:40:43]name=ofd_packets/00115768 [20:40:43]NVStorageSaveData ofd_packets/00115768 [20:40:43]File name is /storage/ofd_packets/00115768 [20:40:43]Write 301 bytes [20:40:43]NVStorageSaveData done [20:40:43]OFDSenderStorePacket done [20:40:43]KKMCreateOFDPacket done [20:40:43]NVStorageSaveData kkm_last_timestamp [20:40:43]File name is /storage/kkm_last_timestamp [20:40:43]Write 4 bytes [20:40:43]NVStorageSaveData done [20:40:43]ExternCall_PrintAddStr [20:40:43]wPrintStart [20:40:43]Write to MH i2c: 01 00 00 EF 0A F9 [20:40:43]Write i2c OK [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: 01 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: 01 07 00 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: 01 07 00 EF 0A 00 00 00 00 00 FF 0F 0E [20:40:43]RasterBufferAndPrint [20:40:43]line Счет N : (1)24618033 [20:40:43]line ИНН: 02508201610067 [20:40:43]line Контрольно-Кассовый Чек [20:40:43]line ПРОДАЖА [20:40:43]line ТРК (МРК, ГНК) : 32 [20:40:43]line Товар: 2710124500 [20:40:43]line Аи-95-К-5 [20:40:43]line 13.480 * 74.20 [20:40:43]line = 1000.22 [20:40:43]line НДС 12% НСП 1% [20:40:43]line > о реализуемом товаре [20:40:43]line ИТОГО: 1000.22 [20:40:43]line НСП 1% : 8.85 [20:40:43]line НДС 12% : 106.22 [20:40:43]line Наличными: 0.00 [20:40:43]line Безнал.: 1000.22 [20:40:43]line Место: АЗС № 90 "Партнер Нефть" [20:40:43]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:40:43]line СНО: Общий режим [20:40:43]line Чек 251 23.09.2024 20:40 [20:40:43]line Смена: 472 ФФД: 1.0 [20:40:43]line ЗНМ: 0300000120 [20:40:43]line РНМ: 0000000000091831 [20:40:43]line Версия ККМ: 001 [20:40:43]line Платежная система: O! деньги [20:40:43]line ФМ: 0000000000871830 [20:40:43]line ФД: 115768 [20:40:43]line ФПД: 224560571231067 [20:40:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T204043&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115768&fm=224560571231067&tin=02508201610067®Number=0000000000091831&sum=100022 [20:40:43]written 0, free lines is 4095 [20:40:43]OFD Sender: Processing packet 115768 [packets to send 482, broken 481] [20:40:43]ProducePacketName [20:40:43]name=ofd_packets/00115768 [20:40:43]OFD Sender: To server: pG, [20:40:43]CommunicateWithHost lk.salyk.kg:30040 [20:40:43]ConnectInit lk.salyk.kg [20:40:44]Connected sock=10 [20: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 38 33 30 0F 01 00 00 6B C4 07 01 30 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 FB 00 00 00 F4 03 04 00 4B D2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 38 C4 01 00 35 04 06 00 CC 3C 95 14 2B 5B AE 96 5B 51 A7 10 D5 F0 [20:40:44]Write to MH i2c: 01 00 00 18 0B 23 [20:40:44]Write i2c OK [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: 01 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: 01 07 00 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: 01 07 00 18 0B 00 00 00 00 00 68 0C 9E [20:40:44]RasterBufferAndPrint [20:40:44]line [20:40:44]line [20:40:44]line [20:40:44]line [20:40:44]line [20:40:44]written 0, free lines is 3181 [20:40:44]MH_Cut [20:40:44]Write to MH i2c: D1 01 00 1F 0B 01 FC [20:40:44]Write i2c OK [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: D1 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: D1 01 00 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: D1 01 00 1F 0B 00 FB [20:40:44]Write to MH i2c: 01 00 00 20 0B 2B [20:40:44]Write i2c OK [20:40:44]MH_I2C_Read... [20:40:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 78 9F 47 00 04 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 38 33 30 10 04 04 00 38 C4 01 00 F4 03 04 00 8D 77 F1 66 B6 04 01 00 00 37 45 17 C4 2A A6 CA A2 [20:40:44]CommunicateWithHost err = 0 [20:40:44]CheckOFDResponse [20:40:44]1017 (14) - 77093643461234 [20:40:44]1041 (16) - 0000000000871830 [20:40:44]1040 (4) - 115768 [20:40:44]1012 (4) - 23.09.2024 14:13 [20:40:44]1206 (1) - 0 [20:40:44]OFD Sender: Remove packet 115768 [20:40:44]ProducePacketName [20:40:44]name=ofd_packets/00115768 [20:40:44]NVStorageDeleteData [20:40:44]OFD Sender: No OFD packet to send [20:40:45]*** Cut start [20:40:45]*** Partial cut [20:40:45]*** CUTSNS_PIN = 1 [20:40:45]*** CUTSNS_PIN = 0 [20:40:45]*** Brake cut motor [20:40:46]Read from MH i2c: 01 [20:40:46]MH_I2C_Read... [20:40:46]*** Stop cut motor [20:40:46]*** Cut end [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 20 0B 00 00 00 00 00 FF 0F 40 [20:40:46]process_action close_receipt done [20:40:46]requested_data is exist [20:40:46]produce_requested_data [20:40:46]requested_item fm.sn is exist - process it [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 21 0B 80 11 00 00 00 00 00 00 A6 [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 21 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F4 [20:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:40:46]wFMCommunicate OK [20:40:46]requested_item fd.num is exist - process it [20:40:46]SAM_PROTO_GetFieldsCounters [20:40:46]wFMCommunicate request_size=4 [20:40:46]MH_SAM_APDU [20:40:46]CAPDU: 80 13 00 00 [20:40:46]Write to MH i2c: E2 08 00 22 0B 80 13 00 00 00 00 00 00 A9 [20:40:46]Write i2c OK [20:40:46]MH_I2C_Read... [20:40:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:46]Read from MH i2c: E2 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 62 00 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 62 00 22 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 38 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [20: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 38 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:46]wFMCommunicate OK [20:40:46]SAM_PROTO_GetFieldsCounters done [20:40:46]requested_item shift.num is exist - process it [20:40:46]requested_item shift.opened is exist - process it [20:40:46]req_shift_opened [20:40:46]FM_GetShiftState [20:40:46]SAM_PROTO_GetShiftState [20:40:46]wFMCommunicate request_size=4 [20:40:46]MH_SAM_APDU [20:40:46]CAPDU: 80 13 01 00 [20:40:46]Write to MH i2c: E2 08 00 23 0B 80 13 01 00 00 00 00 00 AB [20:40:46]Write i2c OK [20:40:46]MH_I2C_Read... [20:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:46]Read from MH i2c: E2 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 0E 00 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 0E 00 23 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 EC [20:40:46]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:40:46]wFMCommunicate OK [20:40:46]SAM_PROTO_GetShiftState done [20:40:46]FM_GetShiftState done [20:40:46]req_shift_opened done [20:40:46]requested_item shift.open_date is exist - process it [20:40:46]req_shift_open_date [20:40:46]req_shift_open_date done [20:40:46]produce_requested_data done [20:40:46]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115768,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [20:40:46]process_action_free close_receipt [20:40:46]json_value_free [20:40:46]json_value_free done [20:40:46]process_json_proto returns [20:40:46]Send response to host [20:40:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115768,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [20:40:46]free response buf [20:40:46]execute_script done [20:40:46]execute_script returns [20:40:46]free content buf [20:40:46]Sock 8.Close socket [20:40:46]Sock 8.Thread stoped [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:22]accept exits with 9 [20:41:22]New connection [20:41:22]New thread 3066867044 created [20:41:22]Thread 3067010404 joined [20:41:22]Waiting for new connection... [20:41:22] Sock 9.Parse request [20:41:22]Sock 9.Check first char [20:41:22]Sock 9.First char is OK [20:41:22]request: POST /json_proto HTTP/1.0 [20:41:22]Method: POST [20:41:22]URL: /json_proto [20:41:22]Method is POST - this is cgi request [20:41:22]url: /json_proto [20:41:22]query_string will be loaded in cgi processing [20:41:22]execute_cgi json_proto POST (null) [20:41:22]execute_cgi path=json_proto method=POST [20:41:22]POST find Content-Length [20:41:22]Host: 172.17.41.136:8080 [20:41:22]Content-Length: 677 [20:41:22]Content-Type: application/json [20:41:22] [20:41:22]POST finish read [20:41:22]Found Content-Length = 677 [20:41:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24618034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 55", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.830, "sum" : 825.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 825.00, "total" : 825.00, "payments": [ { "type": 0, "sum" : 825.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:22]execute_script... [20:41: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)24618034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 55", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.830, "sum" : 825.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 825.00, "total" : 825.00, "payments": [ { "type": 0, "sum" : 825.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:22]POST & json_proto [20:41:22]process_json_proto [20:41:22]json parsed OK: [20:41:22]protocol is kg_v1.0 [20:41:22]action value=close_receipt [20:41:22]process_action close_receipt [20:41:22]cmd_close_receipt [20:41:22]MH_GetDate [20:41:22]Write to MH i2c: F0 00 00 24 0B 1E [20:41:22]Write i2c OK [20:41:22]MH_I2C_Read... [20:41:22]Read from MH i2c: F0 [20:41:22]MH_I2C_Read... [20:41:22]Read from MH i2c: F0 09 00 [20:41:22]MH_I2C_Read... [20:41:22]Read from MH i2c: F0 09 00 24 0B 00 74 D2 F1 66 1B D0 5A 64 6D [20:41:22]GetLastDocTimeStamp 1727124043 [20:41:22]current date 1727124084 [20:41:22]FM_GetShiftState [20:41:22]SAM_PROTO_GetShiftState [20:41:22]wFMCommunicate request_size=4 [20:41:22]MH_SAM_APDU [20:41:22]CAPDU: 80 13 01 00 [20:41:22]Write to MH i2c: E2 08 00 25 0B 80 13 01 00 00 00 00 00 AD [20:41:22]Write i2c OK [20:41:22]MH_I2C_Read... [20:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:22]Read from MH i2c: E2 [20:41:22]MH_I2C_Read... [20:41:22]Read from MH i2c: E2 0E 00 [20:41:22]MH_I2C_Read... [20:41:22]Read from MH i2c: E2 0E 00 25 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 EE [20:41:22]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:41:22]wFMCommunicate OK [20:41:22]SAM_PROTO_GetShiftState done [20:41:22]FM_GetShiftState done [20:41:22]opened in 1727052070 [20:41:22]opened+sec_in_day 1727138470 [20:41:22]quantity*price = 82524 [20:41:22]sum+1 = 82526 [20:41:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 825.00 Внесено: 825.00 СДАЧА: 0.00 НСП 1% : 7.30 НДС 12% : 87.64 Наличными: 825.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 252 23.09.2024 20:41 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115769 ФПД: 222426528016643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T204124&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115769&fm=222426528016643&tin=02508201610067®Number=0000000000091831&sum=82500 [20:41:24]StoreToDocumentArchive [20:41:24]shift 472 fd 115769 [20:41:24]save to /storage/0472/doc_00115769 [20:41:24]save last doc name /storage/0472/doc_00115769 to /storage/kkm_last_doc_name [20:41:24]save OK [20:41:24]Clear old archive folders... [20:41:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:41:24]tlvbuf is 01178CA0 [20:41:24]SAM_PROTO_ClearQueue [20:41:24]wFMCommunicate request_size=4 [20:41:24]MH_SAM_APDU [20:41:24]CAPDU: 80 09 00 00 [20:41:24]Write to MH i2c: E2 08 00 32 0B 80 09 00 00 00 00 00 00 AF [20:41:24]Write i2c OK [20:41:24]MH_I2C_Read... [20:41:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:24]Read from MH i2c: E2 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 03 00 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 03 00 32 0B 00 90 00 B1 [20:41:24]RAPDU: 90 00 [20:41:24]wFMCommunicate OK [20:41:24]SAM_PROTO_ClearQueue done [20:41:24]KKMCreateOFDPacket [20:41:24]OFDProtocolAddRootSTLVToBuf [20:41:24]FM_MakeSignedData [20:41:24]FM_MakeSignedData [20:41:24]SAM_PROTO_SignData [20:41:24]wFMCommunicate request_size=4 [20:41:24]MH_SAM_APDU [20:41:24]CAPDU: 80 0D 01 02 [20:41:24]Write to MH i2c: E2 08 00 33 0B 80 0D 01 02 00 00 00 00 B7 [20:41:24]Write i2c OK [20:41:24]MH_I2C_Read... [20:41:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:24]Read from MH i2c: E2 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 03 00 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 03 00 33 0B 00 90 00 B2 [20:41:24]RAPDU: 90 00 [20:41:24]wFMCommunicate OK [20:41:24]wFMCommunicate request_size=255 [20:41:24]MH_SAM_APDU [20:41:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D 42 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 22 00 00 00 00 07 04 06 00 44 42 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 74 D2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 39 C4 01 00 35 04 06 00 CA 4B B6 30 [20:41:24]Write to MH i2c: E2 02 01 34 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D 42 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 22 00 00 00 00 07 04 06 00 44 42 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 74 D2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 39 C4 01 00 35 04 06 00 CA 4B B6 30 00 00 B8 [20:41:24]Write i2c OK [20:41:24]MH_I2C_Read... [20:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:24]Read from MH i2c: E2 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 03 00 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 03 00 34 0B 00 90 00 B3 [20:41:24]RAPDU: 90 00 [20:41:24]wFMCommunicate OK [20:41:24]wFMCommunicate request_size=7 [20:41:24]MH_SAM_APDU [20:41:24]CAPDU: 80 0D 02 02 02 E9 03 [20:41:24]Write to MH i2c: E2 0A 00 35 0B 80 0D 02 02 02 00 E9 03 00 00 AA [20:41:24]Write i2c OK [20:41:24]MH_I2C_Read... [20:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:24]Read from MH i2c: E2 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 03 00 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 03 00 35 0B 00 90 00 B4 [20:41:24]RAPDU: 90 00 [20:41:24]wFMCommunicate OK [20:41:24]wFMCommunicate request_size=4 [20:41:24]MH_SAM_APDU [20:41:24]CAPDU: 80 0D 03 02 [20:41:24]Write to MH i2c: E2 08 00 36 0B 80 0D 03 02 00 00 00 00 BC [20:41:24]Write i2c OK [20:41:24]MH_I2C_Read... [20:41:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:24]Read from MH i2c: E2 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 0B 00 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 0B 00 36 0B 00 AB A2 B5 F5 0D 5F 74 49 90 00 DD [20:41:24]RAPDU: AB A2 B5 F5 0D 5F 74 49 90 00 [20:41:24]wFMCommunicate OK [20:41:24]SAM_PROTO_SignData done [20:41:24]FM_MakeSignedData done [20:41:24]CreateOFDProtocolMessage [20:41:24]wFMCommunicate request_size=4 [20:41:24]MH_SAM_APDU [20:41:24]CAPDU: 80 11 00 00 [20:41:24]Write to MH i2c: E2 08 00 37 0B 80 11 00 00 00 00 00 00 BC [20:41:24]Write i2c OK [20:41:24]MH_I2C_Read... [20:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:24]Read from MH i2c: E2 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 17 00 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 17 00 37 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0A [20:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:41:24]wFMCommunicate OK [20:41:24]CreateOFDProtocolMessage done [20:41:24]OFDSenderStorePacket 115769 [20:41:24]StoreOFDPacket docnum=115769 [20:41:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 90 A5 04 01 1D 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D 42 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 22 00 00 00 00 07 04 06 00 44 42 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 74 D2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 39 C4 01 00 35 04 06 00 CA 4B B6 30 E9 03 AB A2 B5 F5 0D 5F 74 49 [20:41:24]CheckFolder [20:41:24]dirname=/storage/ofd_packets [20:41:24]CheckFolder done [20:41:24]ProducePacketName [20:41:24]name=ofd_packets/00115769 [20:41:24]NVStorageSaveData ofd_packets/00115769 [20:41:24]File name is /storage/ofd_packets/00115769 [20:41:24]Write 298 bytes [20:41:24]NVStorageSaveData done [20:41:24]OFDSenderStorePacket done [20:41:24]KKMCreateOFDPacket done [20:41:24]NVStorageSaveData kkm_last_timestamp [20:41:24]File name is /storage/kkm_last_timestamp [20:41:24]Write 4 bytes [20:41:24]NVStorageSaveData done [20:41:24]ExternCall_PrintAddStr [20:41:24]wPrintStart [20:41:24]Write to MH i2c: 01 00 00 38 0B 43 [20:41:24]Write i2c OK [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: 01 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: 01 07 00 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: 01 07 00 38 0B 00 00 00 00 00 FF 0F 58 [20:41:24]RasterBufferAndPrint [20:41:24]line Счет N : (1)24618034 [20:41:24]line ИНН: 02508201610067 [20:41:24]line Контрольно-Кассовый Чек [20:41:24]line ПРОДАЖА [20:41:24]line ТРК (МРК, ГНК) : 55 [20:41:24]line Товар: 2710194210 [20:41:24]line ДТ-К-5 [20:41:24]line 10.830 * 76.20 [20:41:24]line = 825.25 [20:41:24]line НДС 12% НСП 1% [20:41:24]line > о реализуемом товаре [20:41:24]line ОКРУГЛЕНИЕ: -0.25 [20:41:24]line ИТОГО: 825.00 [20:41:24]line Внесено: 825.00 [20:41:24]line СДАЧА: 0.00 [20:41:24]line НСП 1% : 7.30 [20:41:24]line НДС 12% : 87.64 [20:41:24]line Наличными: 825.00 [20:41:24]line Безнал.: 0.00 [20:41:24]line Место: АЗС № 90 "Партнер Нефть" [20:41:24]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:41:24]line СНО: Общий режим [20:41:24]line Чек 252 23.09.2024 20:41 [20:41:24]line Смена: 472 ФФД: 1.0 [20:41:24]line ЗНМ: 0300000120 [20:41:24]line РНМ: 0000000000091831 [20:41:24]line Версия ККМ: 001 [20:41:24]line ФМ: 0000000000871830 [20:41:24]line ФД: 115769 [20:41:24]line ФПД: 222426528016643 [20:41:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T204124&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115769&fm=222426528016643&tin=02508201610067®Number=0000000000091831&sum=82500 [20:41:24]OFD Sender: Processing packet 115769 [packets to send 482, broken 481] [20:41:24]ProducePacketName [20:41:24]name=ofd_packets/00115769 [20:41:24]OFD Sender: To server: pG, [20:41:24]CommunicateWithHost lk.salyk.kg:30040 [20:41:24]ConnectInit lk.salyk.kg [20:41:24]written 0, free lines is 4095 [20:41:25]Connected sock=10 [20:41: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 38 33 30 0C 01 00 00 90 A5 04 01 1D 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D 42 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 22 00 00 00 00 07 04 06 00 44 42 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 74 D2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 39 C4 01 00 35 04 06 00 CA 4B B6 30 E9 03 AB A2 B5 F5 0D 5F 74 49 [20:41:25]Write to MH i2c: 01 00 00 62 0B 6D [20:41:25]Write i2c OK [20:41:25]MH_I2C_Read... [20:41:25]Read from MH i2c: 01 [20:41:25]MH_I2C_Read... [20:41:25]Read from MH i2c: 01 07 00 [20:41:25]MH_I2C_Read... [20:41:25]Read from MH i2c: 01 07 00 62 0B 00 00 00 00 00 52 0C D2 [20:41:25]RasterBufferAndPrint [20:41:25]line [20:41:25]line [20:41:25]line [20:41:25]line [20:41:25]line [20:41:25]written 0, free lines is 3160 [20:41:25]MH_Cut [20:41:25]Write to MH i2c: D1 01 00 69 0B 01 46 [20:41:25]Write i2c OK [20:41:25]MH_I2C_Read... [20:41:25]Read from MH i2c: D1 [20:41:25]MH_I2C_Read... [20:41:25]Read from MH i2c: D1 01 00 [20:41:25]MH_I2C_Read... [20:41:25]Read from MH i2c: D1 01 00 69 0B 00 45 [20:41:25]Write to MH i2c: 01 00 00 6A 0B 75 [20:41:25]Write i2c OK [20:41:25]MH_I2C_Read... [20:41:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E8 DB 47 00 05 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 38 33 30 10 04 04 00 39 C4 01 00 F4 03 04 00 B6 77 F1 66 B6 04 01 00 00 5A 68 E1 BE F2 2B F7 96 [20:41:25]CommunicateWithHost err = 0 [20:41:25]CheckOFDResponse [20:41:25]1017 (14) - 77093643461234 [20:41:25]1041 (16) - 0000000000871830 [20:41:25]1040 (4) - 115769 [20:41:25]1012 (4) - 23.09.2024 14:14 [20:41:25]1206 (1) - 0 [20:41:25]OFD Sender: Remove packet 115769 [20:41:25]ProducePacketName [20:41:25]name=ofd_packets/00115769 [20:41:25]NVStorageDeleteData [20:41:26]OFD Sender: No OFD packet to send [20:41:26]*** Cut start [20:41:26]*** Partial cut [20:41:26]*** CUTSNS_PIN = 1 [20:41:26]*** CUTSNS_PIN = 0 [20:41:27]*** Brake cut motor [20:41:27]Read from MH i2c: 01 [20:41:27]MH_I2C_Read... [20:41:27]*** Stop cut motor [20:41:27]*** Cut end [20:41:27]Read from MH i2c: 01 07 00 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: 01 07 00 6A 0B 00 00 00 00 00 FF 0F 8A [20:41:27]process_action close_receipt done [20:41:27]requested_data is exist [20:41:27]produce_requested_data [20:41:27]requested_item fm.sn is exist - process it [20:41:27]wFMCommunicate request_size=4 [20:41:27]MH_SAM_APDU [20:41:27]CAPDU: 80 11 00 00 [20:41:27]Write to MH i2c: E2 08 00 6B 0B 80 11 00 00 00 00 00 00 F0 [20:41:27]Write i2c OK [20:41:27]MH_I2C_Read... [20:41:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:27]Read from MH i2c: E2 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: E2 17 00 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: E2 17 00 6B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3E [20:41:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:41:27]wFMCommunicate OK [20:41:27]requested_item fd.num is exist - process it [20:41:27]SAM_PROTO_GetFieldsCounters [20:41:27]wFMCommunicate request_size=4 [20:41:27]MH_SAM_APDU [20:41:27]CAPDU: 80 13 00 00 [20:41:27]Write to MH i2c: E2 08 00 6C 0B 80 13 00 00 00 00 00 00 F3 [20:41:27]Write i2c OK [20:41:27]MH_I2C_Read... [20:41:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:27]Read from MH i2c: E2 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: E2 62 00 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: E2 62 00 6C 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 39 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [20:41:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 39 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:27]wFMCommunicate OK [20:41:27]SAM_PROTO_GetFieldsCounters done [20:41:27]requested_item shift.num is exist - process it [20:41:27]requested_item shift.opened is exist - process it [20:41:27]req_shift_opened [20:41:27]FM_GetShiftState [20:41:27]SAM_PROTO_GetShiftState [20:41:27]wFMCommunicate request_size=4 [20:41:27]MH_SAM_APDU [20:41:27]CAPDU: 80 13 01 00 [20:41:27]Write to MH i2c: E2 08 00 6D 0B 80 13 01 00 00 00 00 00 F5 [20:41:27]Write i2c OK [20:41:27]MH_I2C_Read... [20:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:27]Read from MH i2c: E2 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: E2 0E 00 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: E2 0E 00 6D 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 36 [20:41:27]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:41:27]wFMCommunicate OK [20:41:27]SAM_PROTO_GetShiftState done [20:41:27]FM_GetShiftState done [20:41:27]req_shift_opened done [20:41:27]requested_item shift.open_date is exist - process it [20:41:27]req_shift_open_date [20:41:27]req_shift_open_date done [20:41:27]produce_requested_data done [20:41:27]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115769,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [20:41:27]process_action_free close_receipt [20:41:27]json_value_free [20:41:27]json_value_free done [20:41:27]process_json_proto returns [20:41:27]Send response to host [20:41:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115769,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [20:41:27]free response buf [20:41:27]execute_script done [20:41:27]execute_script returns [20:41:27]free content buf [20:41:27]Sock 9.Close socket [20:41:27]Sock 9.Thread stoped [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:50]accept exits with 8 [20:44:50]New connection [20:44:50]New thread 3067010404 created [20:44:50]Thread 3066867044 joined [20:44:50]Waiting for new connection... [20:44:50] Sock 8.Parse request [20:44:50]Sock 8.Check first char [20:44:50]Sock 8.First char is OK [20:44:50]request: POST /json_proto HTTP/1.0 [20:44:50]Method: POST [20:44:50]URL: /json_proto [20:44:50]Method is POST - this is cgi request [20:44:50]url: /json_proto [20:44:50]query_string will be loaded in cgi processing [20:44:50]execute_cgi json_proto POST (null) [20:44:50]execute_cgi path=json_proto method=POST [20:44:50]POST find Content-Length [20:44:50]Host: 172.17.41.136:8080 [20:44:50]Content-Length: 802 [20:44:50]Content-Type: application/json [20:44:50] [20:44:50]POST finish read [20:44:50]Found Content-Length = 802 [20:44:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24618036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 45", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:50]execute_script... [20: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)24618036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 45", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:50]POST & json_proto [20:44:50]process_json_proto [20:44:50]json parsed OK: [20:44:50]protocol is kg_v1.0 [20:44:50]action value=close_receipt [20:44:50]process_action close_receipt [20:44:50]cmd_close_receipt [20:44:50]MH_GetDate [20:44:50]Write to MH i2c: F0 00 00 6E 0B 68 [20:44:50]Write i2c OK [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: F0 [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: F0 09 00 [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: F0 09 00 6E 0B 00 44 D3 F1 66 1B D0 5A 64 88 [20:44:50]GetLastDocTimeStamp 1727124084 [20:44:50]current date 1727124292 [20:44:50]FM_GetShiftState [20:44:50]SAM_PROTO_GetShiftState [20:44:50]wFMCommunicate request_size=4 [20:44:50]MH_SAM_APDU [20:44:50]CAPDU: 80 13 01 00 [20:44:50]Write to MH i2c: E2 08 00 6F 0B 80 13 01 00 00 00 00 00 F7 [20:44:50]Write i2c OK [20:44:50]MH_I2C_Read... [20:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:50]Read from MH i2c: E2 [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: E2 0E 00 [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: E2 0E 00 6F 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 38 [20:44:50]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:44:50]wFMCommunicate OK [20:44:50]SAM_PROTO_GetShiftState done [20:44:50]FM_GetShiftState done [20:44:50]opened in 1727052070 [20:44:50]opened+sec_in_day 1727138470 [20:44:50]quantity*price = 200025 [20:44:50]sum+1 = 200026 [20:44:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 253 23.09.2024 20:44 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115770 ФПД: 35359316045639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T204452&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115770&fm=35359316045639&tin=02508201610067®Number=0000000000091831&sum=200025 [20:44:51]StoreToDocumentArchive [20:44:51]shift 472 fd 115770 [20:44:51]save to /storage/0472/doc_00115770 [20:44:51]save last doc name /storage/0472/doc_00115770 to /storage/kkm_last_doc_name [20:44:51]save OK [20:44:51]Clear old archive folders... [20:44:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:44:51]tlvbuf is 01172980 [20:44:51]SAM_PROTO_ClearQueue [20:44:51]wFMCommunicate request_size=4 [20:44:51]MH_SAM_APDU [20:44:51]CAPDU: 80 09 00 00 [20:44:51]Write to MH i2c: E2 08 00 7C 0B 80 09 00 00 00 00 00 00 F9 [20:44:51]Write i2c OK [20:44:51]MH_I2C_Read... [20:44:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:51]Read from MH i2c: E2 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 03 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 03 00 7C 0B 00 90 00 FB [20:44:51]RAPDU: 90 00 [20:44:51]wFMCommunicate OK [20:44:51]SAM_PROTO_ClearQueue done [20:44:51]KKMCreateOFDPacket [20:44:51]OFDProtocolAddRootSTLVToBuf [20:44:51]FM_MakeSignedData [20:44:51]FM_MakeSignedData [20:44:51]SAM_PROTO_SignData [20:44:51]wFMCommunicate request_size=4 [20:44:51]MH_SAM_APDU [20:44:51]CAPDU: 80 0D 01 02 [20:44:51]Write to MH i2c: E2 08 00 7D 0B 80 0D 01 02 00 00 00 00 01 [20:44:51]Write i2c OK [20:44:51]MH_I2C_Read... [20:44:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:51]Read from MH i2c: E2 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 03 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 03 00 7D 0B 00 90 00 FC [20:44:51]RAPDU: 90 00 [20:44:51]wFMCommunicate OK [20:44:51]wFMCommunicate request_size=255 [20:44:51]MH_SAM_APDU [20: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 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FD 00 00 00 F4 03 04 00 44 D3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3A C4 01 00 35 04 06 00 20 28 BB 78 [20:44:51]Write to MH i2c: E2 02 01 7E 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 FD 00 00 00 F4 03 04 00 44 D3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3A C4 01 00 35 04 06 00 20 28 BB 78 00 00 5C [20:44:51]Write i2c OK [20:44:51]MH_I2C_Read... [20:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:52]Read from MH i2c: E2 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 03 00 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 03 00 7E 0B 00 90 00 FD [20:44:52]RAPDU: 90 00 [20:44:52]wFMCommunicate OK [20:44:52]wFMCommunicate request_size=7 [20:44:52]MH_SAM_APDU [20:44:52]CAPDU: 80 0D 02 02 02 EF 47 [20:44:52]Write to MH i2c: E2 0A 00 7F 0B 80 0D 02 02 02 00 EF 47 00 00 3E [20:44:52]Write i2c OK [20:44:52]MH_I2C_Read... [20:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:52]Read from MH i2c: E2 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 03 00 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 03 00 7F 0B 00 90 00 FE [20:44:52]RAPDU: 90 00 [20:44:52]wFMCommunicate OK [20:44:52]wFMCommunicate request_size=4 [20:44:52]MH_SAM_APDU [20:44:52]CAPDU: 80 0D 03 02 [20:44:52]Write to MH i2c: E2 08 00 80 0B 80 0D 03 02 00 00 00 00 06 [20:44:52]Write i2c OK [20:44:52]MH_I2C_Read... [20:44:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:52]Read from MH i2c: E2 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 0B 00 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 0B 00 80 0B 00 C0 99 63 49 EB 01 01 CE 90 00 C7 [20:44:52]RAPDU: C0 99 63 49 EB 01 01 CE 90 00 [20:44:52]wFMCommunicate OK [20:44:52]SAM_PROTO_SignData done [20:44:52]FM_MakeSignedData done [20:44:52]CreateOFDProtocolMessage [20:44:52]wFMCommunicate request_size=4 [20:44:52]MH_SAM_APDU [20:44:52]CAPDU: 80 11 00 00 [20:44:52]Write to MH i2c: E2 08 00 81 0B 80 11 00 00 00 00 00 00 06 [20:44:52]Write i2c OK [20:44:52]MH_I2C_Read... [20:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:52]Read from MH i2c: E2 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 17 00 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 17 00 81 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 54 [20:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:44:52]wFMCommunicate OK [20:44:52]CreateOFDProtocolMessage done [20:44:52]OFDSenderStorePacket 115770 [20:44:52]StoreOFDPacket docnum=115770 [20:44:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 9A 18 04 01 1E 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FD 00 00 00 F4 03 04 00 44 D3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3A C4 01 00 35 04 06 00 20 28 BB 78 EF 47 C0 99 63 49 EB 01 01 CE [20:44:52]CheckFolder [20:44:52]dirname=/storage/ofd_packets [20:44:52]CheckFolder done [20:44:52]ProducePacketName [20:44:52]name=ofd_packets/00115770 [20:44:52]NVStorageSaveData ofd_packets/00115770 [20:44:52]File name is /storage/ofd_packets/00115770 [20:44:52]Write 298 bytes [20:44:52]NVStorageSaveData done [20:44:52]OFDSenderStorePacket done [20:44:52]KKMCreateOFDPacket done [20:44:52]NVStorageSaveData kkm_last_timestamp [20:44:52]File name is /storage/kkm_last_timestamp [20:44:52]Write 4 bytes [20:44:52]NVStorageSaveData done [20:44:52]ExternCall_PrintAddStr [20:44:52]wPrintStart [20:44:52]Write to MH i2c: 01 00 00 82 0B 8D [20:44:52]Write i2c OK [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: 01 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: 01 07 00 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: 01 07 00 82 0B 00 00 00 00 00 FF 0F A2 [20:44:52]RasterBufferAndPrint [20:44:52]line Счет N : (1)24618036 [20:44:52]line ИНН: 02508201610067 [20:44:52]line Контрольно-Кассовый Чек [20:44:52]line ПРОДАЖА [20:44:52]line ТРК (МРК, ГНК) : 45 [20:44:52]line Товар: 2710194210 [20:44:52]line ДТ-К-5 [20:44:52]line 26.250 * 76.20 [20:44:52]line = 2000.25 [20:44:52]line НДС 12% НСП 1% [20:44:52]line > о реализуемом товаре [20:44:52]line ИТОГО: 2000.25 [20:44:52]line НСП 1% : 17.70 [20:44:52]line НДС 12% : 212.42 [20:44:52]line Наличными: 0.00 [20:44:52]line Безнал.: 2000.25 [20:44:52]line Место: АЗС № 90 "Партнер Нефть" [20:44:52]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:44:52]line СНО: Общий режим [20:44:52]line Чек 253 23.09.2024 20:44 [20:44:52]line Смена: 472 ФФД: 1.0 [20:44:52]line ЗНМ: 0300000120 [20:44:52]line РНМ: 0000000000091831 [20:44:52]line Версия ККМ: 001 [20:44:52]line Платежная система: O! деньги [20:44:52]line ФМ: 0000000000871830 [20:44:52]line ФД: 115770 [20:44:52]line ФПД: 35359316045639 [20:44:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T204452&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115770&fm=35359316045639&tin=02508201610067®Number=0000000000091831&sum=200025 [20:44:52]written 0, free lines is 4095 [20:44:52]OFD Sender: Processing packet 115770 [packets to send 482, broken 481] [20:44:52]ProducePacketName [20:44:52]name=ofd_packets/00115770 [20:44:52]OFD Sender: To server: pG, [20:44:52]CommunicateWithHost lk.salyk.kg:30040 [20:44:52]ConnectInit lk.salyk.kg [20:44:52]Write to MH i2c: 01 00 00 AB 0B B6 [20:44:52]Write i2c OK [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: 01 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: 01 07 00 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: 01 07 00 AB 0B 00 00 00 00 00 66 0C 2F [20:44:52]RasterBufferAndPrint [20:44:52]line [20:44:52]line [20:44:52]line [20:44:52]line [20:44:52]line [20:44:52]written 0, free lines is 3178 [20:44:52]MH_Cut [20:44:52]Write to MH i2c: D1 01 00 B2 0B 01 8F [20:44:52]Write i2c OK [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: D1 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: D1 01 00 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: D1 01 00 B2 0B 00 8E [20:44:52]Write to MH i2c: 01 00 00 B3 0B BE [20:44:52]Write i2c OK [20:44:52]MH_I2C_Read... [20:44:52]Connected sock=10 [20: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 38 33 30 0C 01 00 00 9A 18 04 01 1E 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FD 00 00 00 F4 03 04 00 44 D3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3A C4 01 00 35 04 06 00 20 28 BB 78 EF 47 C0 99 63 49 EB 01 01 CE [20: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 38 33 30 4F 00 00 00 A8 5B 47 00 12 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3A C4 01 00 F4 03 04 00 85 78 F1 66 B6 04 01 00 00 D8 42 DE 7C 8C 2B D2 1D [20:44:53]CommunicateWithHost err = 0 [20:44:53]CheckOFDResponse [20:44:53]1017 (14) - 77093643461234 [20:44:53]1041 (16) - 0000000000871830 [20:44:53]1040 (4) - 115770 [20:44:53]1012 (4) - 23.09.2024 14:17 [20:44:53]1206 (1) - 0 [20:44:53]OFD Sender: Remove packet 115770 [20:44:53]ProducePacketName [20:44:53]name=ofd_packets/00115770 [20:44:53]NVStorageDeleteData [20:44:53]OFD Sender: No OFD packet to send [20:44:54]*** Cut start [20:44:54]*** Partial cut [20:44:54]*** CUTSNS_PIN = 1 [20:44:54]*** CUTSNS_PIN = 0 [20:44:54]*** Brake cut motor [20:44:54]Read from MH i2c: 01 [20:44:54]MH_I2C_Read... [20:44:54]*** Stop cut motor [20:44:54]*** Cut end [20:44:54]Read from MH i2c: 01 07 00 [20:44:54]MH_I2C_Read... [20:44:54]Read from MH i2c: 01 07 00 B3 0B 00 00 00 00 00 FF 0F D3 [20:44:54]process_action close_receipt done [20:44:54]requested_data is exist [20:44:54]produce_requested_data [20:44:54]requested_item fm.sn is exist - process it [20:44:54]wFMCommunicate request_size=4 [20:44:54]MH_SAM_APDU [20:44:54]CAPDU: 80 11 00 00 [20:44:54]Write to MH i2c: E2 08 00 B4 0B 80 11 00 00 00 00 00 00 39 [20:44:54]Write i2c OK [20:44:54]MH_I2C_Read... [20:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:54]Read from MH i2c: E2 [20:44:54]MH_I2C_Read... [20:44:54]Read from MH i2c: E2 17 00 [20:44:54]MH_I2C_Read... [20:44:54]Read from MH i2c: E2 17 00 B4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 87 [20:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:44:54]wFMCommunicate OK [20:44:54]requested_item fd.num is exist - process it [20:44:54]SAM_PROTO_GetFieldsCounters [20:44:54]wFMCommunicate request_size=4 [20:44:54]MH_SAM_APDU [20:44:54]CAPDU: 80 13 00 00 [20:44:54]Write to MH i2c: E2 08 00 B5 0B 80 13 00 00 00 00 00 00 3C [20:44:54]Write i2c OK [20:44:54]MH_I2C_Read... [20:44:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:54]Read from MH i2c: E2 [20:44:54]MH_I2C_Read... [20:44:54]Read from MH i2c: E2 62 00 [20:44:54]MH_I2C_Read... [20:44:54]Read from MH i2c: E2 62 00 B5 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3A C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [20: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3A C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:54]wFMCommunicate OK [20:44:54]SAM_PROTO_GetFieldsCounters done [20:44:54]requested_item shift.num is exist - process it [20:44:54]requested_item shift.opened is exist - process it [20:44:54]req_shift_opened [20:44:54]FM_GetShiftState [20:44:54]SAM_PROTO_GetShiftState [20:44:54]wFMCommunicate request_size=4 [20:44:54]MH_SAM_APDU [20:44:54]CAPDU: 80 13 01 00 [20:44:54]Write to MH i2c: E2 08 00 B6 0B 80 13 01 00 00 00 00 00 3E [20:44:54]Write i2c OK [20:44:54]MH_I2C_Read... [20:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:54]Read from MH i2c: E2 [20:44:54]MH_I2C_Read... [20:44:54]Read from MH i2c: E2 0E 00 [20:44:54]MH_I2C_Read... [20:44:54]Read from MH i2c: E2 0E 00 B6 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7F [20:44:54]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:44:54]wFMCommunicate OK [20:44:54]SAM_PROTO_GetShiftState done [20:44:54]FM_GetShiftState done [20:44:54]req_shift_opened done [20:44:54]requested_item shift.open_date is exist - process it [20:44:54]req_shift_open_date [20:44:54]req_shift_open_date done [20:44:54]produce_requested_data done [20:44:54]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115770,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [20:44:54]process_action_free close_receipt [20:44:54]json_value_free [20:44:54]json_value_free done [20:44:54]process_json_proto returns [20:44:54]Send response to host [20:44:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115770,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [20:44:54]free response buf [20:44:54]execute_script done [20:44:54]execute_script returns [20:44:54]free content buf [20:44:54]Sock 8.Close socket [20:44:54]Sock 8.Thread stoped [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:07]accept exits with 9 [20:47:07]New connection [20:47:07]New thread 3066867044 created [20:47:07]Thread 3067010404 joined [20:47:07]Waiting for new connection... [20:47:07] Sock 9.Parse request [20:47:07]Sock 9.Check first char [20:47:07]Sock 9.First char is OK [20:47:07]request: POST /json_proto HTTP/1.0 [20:47:07]Method: POST [20:47:07]URL: /json_proto [20:47:07]Method is POST - this is cgi request [20:47:07]url: /json_proto [20:47:07]query_string will be loaded in cgi processing [20:47:07]execute_cgi json_proto POST (null) [20:47:07]execute_cgi path=json_proto method=POST [20:47:07]POST find Content-Length [20:47:07]Host: 172.17.41.136:8080 [20:47:07]Content-Length: 897 [20:47:07]Content-Type: application/json [20:47:07] [20:47:07]POST finish read [20:47:07]Found Content-Length = 897 [20:47:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344087", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:07]execute_script... [20:47:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344087", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:07]POST & json_proto [20:47:07]process_json_proto [20:47:07]json parsed OK: [20:47:07]protocol is kg_v1.0 [20:47:07]action value=close_receipt [20:47:07]process_action close_receipt [20:47:07]cmd_close_receipt [20:47:07]MH_GetDate [20:47:07]Write to MH i2c: F0 00 00 B7 0B B1 [20:47:07]Write i2c OK [20:47:07]MH_I2C_Read... [20:47:07]Read from MH i2c: F0 [20:47:07]MH_I2C_Read... [20:47:07]Read from MH i2c: F0 09 00 [20:47:07]MH_I2C_Read... [20:47:07]Read from MH i2c: F0 09 00 B7 0B 00 CD D3 F1 66 1B D0 5A 64 5A [20:47:07]GetLastDocTimeStamp 1727124292 [20:47:07]current date 1727124429 [20:47:07]FM_GetShiftState [20:47:07]SAM_PROTO_GetShiftState [20:47:07]wFMCommunicate request_size=4 [20:47:07]MH_SAM_APDU [20:47:07]CAPDU: 80 13 01 00 [20:47:07]Write to MH i2c: E2 08 00 B8 0B 80 13 01 00 00 00 00 00 40 [20:47:07]Write i2c OK [20:47:07]MH_I2C_Read... [20:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:07]Read from MH i2c: E2 [20:47:07]MH_I2C_Read... [20:47:07]Read from MH i2c: E2 0E 00 [20:47:07]MH_I2C_Read... [20:47:07]Read from MH i2c: E2 0E 00 B8 0B 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 81 [20:47:07]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:47:07]wFMCommunicate OK [20:47:07]SAM_PROTO_GetShiftState done [20:47:07]FM_GetShiftState done [20:47:07]opened in 1727052070 [20:47:07]opened+sec_in_day 1727138470 [20:47:07]quantity*price = 9500 [20:47:07]sum+1 = 9501 [20:47:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 239.00 НСП 1% : 2.11 НДС 12% : 25.38 Наличными: 239.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 254 23.09.2024 20:47 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115771 ФПД: 49927038670598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T204709&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115771&fm=49927038670598&tin=02508201610067®Number=0000000000091831&sum=23900 0 [20:47:08]StoreToDocumentArchive [20:47:08]shift 472 fd 115771 [20:47:08]save to /storage/0472/doc_00115771 [20:47:08]save last doc name /storage/0472/doc_00115771 to /storage/kkm_last_doc_name [20:47:08]save OK [20:47:08]Clear old archive folders... [20:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=393 [20:47:08]tlvbuf is 01165C90 [20:47:08]SAM_PROTO_ClearQueue [20:47:08]wFMCommunicate request_size=4 [20:47:08]MH_SAM_APDU [20:47:08]CAPDU: 80 09 00 00 [20:47:08]Write to MH i2c: E2 08 00 C5 0B 80 09 00 00 00 00 00 00 42 [20:47:08]Write i2c OK [20:47:08]MH_I2C_Read... [20:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:08]Read from MH i2c: E2 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 03 00 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [20:47:08]RAPDU: 90 00 [20:47:08]wFMCommunicate OK [20:47:08]SAM_PROTO_ClearQueue done [20:47:08]KKMCreateOFDPacket [20:47:08]OFDProtocolAddRootSTLVToBuf [20:47:08]FM_MakeSignedData [20:47:08]FM_MakeSignedData [20:47:08]SAM_PROTO_SignData [20:47:08]wFMCommunicate request_size=4 [20:47:08]MH_SAM_APDU [20:47:08]CAPDU: 80 0D 01 02 [20:47:08]Write to MH i2c: E2 08 00 C6 0B 80 0D 01 02 00 00 00 00 4A [20:47:08]Write i2c OK [20:47:08]MH_I2C_Read... [20:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:08]OFD Sender: No OFD packet to send [20:47:08]Read from MH i2c: E2 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 03 00 [20:47:08]MH_I2C_Read... [20:47:08]Read from MH i2c: E2 03 00 C6 0B 00 90 00 45 [20:47:08]RAPDU: 90 00 [20:47:08]wFMCommunicate OK [20:47:08]wFMCommunicate request_size=255 [20:47:08]MH_SAM_APDU [20:47:08]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 [20:47:08]Write to MH i2c: E2 02 01 C7 0B 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 7C [20:47:08]Write i2c OK [20:47:08]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 [20:47:09]MH_I2C_Read... [20:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:09]Read from MH i2c: E2 03 00 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 03 00 C7 0B 00 90 00 46 [20:47:09]RAPDU: 90 00 [20:47:09]wFMCommunicate OK [20:47:09]wFMCommunicate request_size=152 [20:47:09]MH_SAM_APDU [20:47:09]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 CD D3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3B C4 01 00 35 04 06 00 2D 68 8B 67 97 06 [20:47:09]Write to MH i2c: E2 9B 00 C8 0B 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 CD D3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3B C4 01 00 35 04 06 00 2D 68 8B 67 97 06 00 00 04 [20:47:09]Write i2c OK [20:47:09]MH_I2C_Read... [20:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:09]Read from MH i2c: E2 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 03 00 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 03 00 C8 0B 00 90 00 47 [20:47:09]RAPDU: 90 00 [20:47:09]wFMCommunicate OK [20:47:09]wFMCommunicate request_size=4 [20:47:09]MH_SAM_APDU [20:47:09]CAPDU: 80 0D 03 02 [20:47:09]Write to MH i2c: E2 08 00 C9 0B 80 0D 03 02 00 00 00 00 4F [20:47:09]Write i2c OK [20:47:09]MH_I2C_Read... [20:47:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:09]Read from MH i2c: E2 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 0B 00 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 0B 00 C9 0B 00 42 6D 74 55 12 BC 4F A2 90 00 87 [20:47:09]RAPDU: 42 6D 74 55 12 BC 4F A2 90 00 [20:47:09]wFMCommunicate OK [20:47:09]SAM_PROTO_SignData done [20:47:09]FM_MakeSignedData done [20:47:09]CreateOFDProtocolMessage [20:47:09]wFMCommunicate request_size=4 [20:47:09]MH_SAM_APDU [20:47:09]CAPDU: 80 11 00 00 [20:47:09]Write to MH i2c: E2 08 00 CA 0B 80 11 00 00 00 00 00 00 4F [20:47:09]Write i2c OK [20:47:09]MH_I2C_Read... [20:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:09]Read from MH i2c: E2 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 17 00 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: E2 17 00 CA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9D [20:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:47:09]wFMCommunicate OK [20:47:09]CreateOFDProtocolMessage done [20:47:09]OFDSenderStorePacket 115771 [20:47:09]StoreOFDPacket docnum=115771 [20:47:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9D 01 00 00 75 5C 95 01 01 3C 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 CD D3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3B C4 01 00 35 04 06 00 2D 68 8B 67 97 06 42 6D 74 55 12 BC 4F A2 [20:47:09]CheckFolder [20:47:09]dirname=/storage/ofd_packets [20:47:09]CheckFolder done [20:47:09]ProducePacketName [20:47:09]name=ofd_packets/00115771 [20:47:09]NVStorageSaveData ofd_packets/00115771 [20:47:09]File name is /storage/ofd_packets/00115771 [20:47:09]Write 443 bytes [20:47:09]NVStorageSaveData done [20:47:09]OFDSenderStorePacket done [20:47:09]KKMCreateOFDPacket done [20:47:09]NVStorageSaveData kkm_last_timestamp [20:47:09]File name is /storage/kkm_last_timestamp [20:47:09]Write 4 bytes [20:47:09]NVStorageSaveData done [20:47:09]ExternCall_PrintAddStr [20:47:09]wPrintStart [20:47:09]Write to MH i2c: 01 00 00 CB 0B D6 [20:47:09]Write i2c OK [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: 01 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: 01 07 00 [20:47:09]MH_I2C_Read... [20:47:09]Read from MH i2c: 01 07 00 CB 0B 00 00 00 00 00 FF 0F EB [20:47:09]RasterBufferAndPrint [20:47:09]line Счет N : (3)344087 [20:47:09]line ИНН: 02508201610067 [20:47:09]line Контрольно-Кассовый Чек [20:47:09]line ПРОДАЖА [20:47:09]line Товар: 4700000481453 [20:47:09]line Напиток энерг Nitro Max 0,45 ж/б [20:47:09]line 1.000 * 95.00 [20:47:09]line = 95.00 [20:47:09]line НДС 12% НСП 1% [20:47:09]line > о реализуемом товаре [20:47:09]line Товар: 48743587 [20:47:09]line Сигареты Winston XStyle Silver [20:47:09]line 1.000 * 144.00 [20:47:09]line = 144.00 [20:47:09]line НДС 12% НСП 1% [20:47:09]line > о реализуемом товаре [20:47:09]line ИТОГО: 239.00 [20:47:09]line НСП 1% : 2.11 [20:47:09]line НДС 12% : 25.38 [20:47:09]line Наличными: 239.00 [20:47:09]line Безнал.: 0.00 [20:47:09]line Место: АЗС № 90 "Партнер Нефть" [20:47:09]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [20:47:09]line СНО: Общий режим [20:47:09]line Чек 254 23.09.2024 20:47 [20:47:09]line Смена: 472 ФФД: 1.0 [20:47:09]line ЗНМ: 0300000120 [20:47:09]line РНМ: 0000000000091831 [20:47:09]line Версия ККМ: 001 [20:47:09]line ФМ: 0000000000871830 [20:47:09]line ФД: 115771 [20:47:09]line ФПД: 49927038670598 [20:47:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T204709&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115771&fm=49927038670598&tin=02508201610067®Number=0000000000091831&sum=23900 [20:47:09]line 0 [20:47:09]OFD Sender: Processing packet 115771 [packets to send 482, broken 481] [20:47:09]ProducePacketName [20:47:09]name=ofd_packets/00115771 [20:47:09]OFD Sender: To server: pG, [20:47:09]CommunicateWithHost lk.salyk.kg:30040 [20:47:09]ConnectInit lk.salyk.kg [20:47:09]written 0, free lines is 4095 [20:47:10]Connected sock=10 [20:47: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 38 33 30 9D 01 00 00 75 5C 95 01 01 3C 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 CD D3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3B C4 01 00 35 04 06 00 2D 68 8B 67 97 06 42 6D 74 55 12 BC 4F A2 [20:47:10]Write to MH i2c: 01 00 00 FA 0B 05 [20:47:10]Write i2c OK [20:47:10]MH_I2C_Read... [20:47:10]Read from MH i2c: 01 [20:47:10]MH_I2C_Read... [20:47:10]Read from MH i2c: 01 07 00 [20:47:10]MH_I2C_Read... [20:47:10]Read from MH i2c: 01 07 00 FA 0B 00 00 00 00 00 E3 0B FA [20:47:10]RasterBufferAndPrint [20:47:10]line [20:47:10]line [20:47:10]line [20:47:10]line [20:47:10]line [20:47:10]written 0, free lines is 3047 [20:47:10]MH_Cut [20:47:10]Write to MH i2c: D1 01 00 01 0C 01 DF [20:47:10]Write i2c OK [20:47:10]MH_I2C_Read... [20:47:10]Read from MH i2c: D1 [20:47:10]MH_I2C_Read... [20:47:10]Read from MH i2c: D1 01 00 [20:47:10]MH_I2C_Read... [20:47:10]Read from MH i2c: D1 01 00 01 0C 00 DE [20:47:10]Write to MH i2c: 01 00 00 02 0C 0E [20:47:10]Write i2c OK [20:47:10]MH_I2C_Read... [20:47:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 EC 15 47 00 C0 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 38 33 30 10 04 04 00 3B C4 01 00 F4 03 04 00 0F 79 F1 66 B6 04 01 00 00 B8 71 D4 D3 F7 13 E5 8E [20:47:10]CommunicateWithHost err = 0 [20:47:10]CheckOFDResponse [20:47:10]1017 (14) - 77093643461234 [20:47:10]1041 (16) - 0000000000871830 [20:47:10]1040 (4) - 115771 [20:47:10]1012 (4) - 23.09.2024 14:19 [20:47:10]1206 (1) - 0 [20:47:10]OFD Sender: Remove packet 115771 [20:47:10]ProducePacketName [20:47:10]name=ofd_packets/00115771 [20:47:10]NVStorageDeleteData [20:47:10]OFD Sender: No OFD packet to send [20:47:11]*** Cut start [20:47:11]*** Partial cut [20:47:11]*** CUTSNS_PIN = 1 [20:47:11]*** CUTSNS_PIN = 0 [20:47:12]*** Brake cut motor [20:47:12]Read from MH i2c: 01 [20:47:12]MH_I2C_Read... [20:47:12]*** Stop cut motor [20:47:12]*** Cut end [20:47:12]Read from MH i2c: 01 07 00 [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: 01 07 00 02 0C 00 00 00 00 00 FF 0F 23 [20:47:12]process_action close_receipt done [20:47:12]requested_data is exist [20:47:12]produce_requested_data [20:47:12]requested_item fm.sn is exist - process it [20:47:12]wFMCommunicate request_size=4 [20:47:12]MH_SAM_APDU [20:47:12]CAPDU: 80 11 00 00 [20:47:12]Write to MH i2c: E2 08 00 03 0C 80 11 00 00 00 00 00 00 89 [20:47:12]Write i2c OK [20:47:12]MH_I2C_Read... [20:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:12]Read from MH i2c: E2 [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: E2 17 00 [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: E2 17 00 03 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D7 [20:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [20:47:12]wFMCommunicate OK [20:47:12]requested_item fd.num is exist - process it [20:47:12]SAM_PROTO_GetFieldsCounters [20:47:12]wFMCommunicate request_size=4 [20:47:12]MH_SAM_APDU [20:47:12]CAPDU: 80 13 00 00 [20:47:12]Write to MH i2c: E2 08 00 04 0C 80 13 00 00 00 00 00 00 8C [20:47:12]Write i2c OK [20:47:12]MH_I2C_Read... [20:47:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:12]Read from MH i2c: E2 [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: E2 62 00 [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: E2 62 00 04 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3B C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [20:47: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3B C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:47:12]wFMCommunicate OK [20:47:12]SAM_PROTO_GetFieldsCounters done [20:47:12]requested_item shift.num is exist - process it [20:47:12]requested_item shift.opened is exist - process it [20:47:12]req_shift_opened [20:47:12]FM_GetShiftState [20:47:12]SAM_PROTO_GetShiftState [20:47:12]wFMCommunicate request_size=4 [20:47:12]MH_SAM_APDU [20:47:12]CAPDU: 80 13 01 00 [20:47:12]Write to MH i2c: E2 08 00 05 0C 80 13 01 00 00 00 00 00 8E [20:47:12]Write i2c OK [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: E2 [20:47:12]MH_I2C_Read... [20:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:12]Read from MH i2c: E2 0E 00 [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: E2 0E 00 05 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 CF [20:47:12]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [20:47:12]wFMCommunicate OK [20:47:12]SAM_PROTO_GetShiftState done [20:47:12]FM_GetShiftState done [20:47:12]req_shift_opened done [20:47:12]requested_item shift.open_date is exist - process it [20:47:12]req_shift_open_date [20:47:12]req_shift_open_date done [20:47:12]produce_requested_data done [20:47:12]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115771,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [20:47:12]process_action_free close_receipt [20:47:12]json_value_free [20:47:12]json_value_free done [20:47:12]process_json_proto returns [20:47:12]Send response to host [20:47:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115771,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [20:47:12]free response buf [20:47:12]execute_script done [20:47:12]execute_script returns [20:47:12]free content buf [20:47:12]Sock 9.Close socket [20:47:12]Sock 9.Thread stoped [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]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:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:42]accept exits with 8 [21:09:42]New connection [21:09:42]New thread 3067010404 created [21:09:42]Thread 3066867044 joined [21:09:42]Waiting for new connection... [21:09:42] Sock 8.Parse request [21:09:42]Sock 8.Check first char [21:09:42]Sock 8.First char is OK [21:09:42]request: POST /json_proto HTTP/1.0 [21:09:42]Method: POST [21:09:42]URL: /json_proto [21:09:42]Method is POST - this is cgi request [21:09:42]url: /json_proto [21:09:42]query_string will be loaded in cgi processing [21:09:42]execute_cgi json_proto POST (null) [21:09:42]execute_cgi path=json_proto method=POST [21:09:42]POST find Content-Length [21:09:42]Host: 172.17.41.136:8080 [21:09:42]Content-Length: 971 [21:09:42]Content-Type: application/json [21:09:42] [21:09:42]POST finish read [21:09:42]Found Content-Length = 971 [21:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344088", "tax_sys" : 0, "items" : [ { "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:42]execute_script... [21:09:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344088", "tax_sys" : 0, "items" : [ { "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:42]POST & json_proto [21:09:42]process_json_proto [21:09:42]json parsed OK: [21:09:42]protocol is kg_v1.0 [21:09:42]action value=close_receipt [21:09:42]process_action close_receipt [21:09:42]cmd_close_receipt [21:09:42]MH_GetDate [21:09:42]Write to MH i2c: F0 00 00 06 0C 01 [21:09:42]Write i2c OK [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: F0 [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: F0 09 00 [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: F0 09 00 06 0C 00 18 D9 F1 66 1B D0 5A 64 FB [21:09:42]GetLastDocTimeStamp 1727124429 [21:09:42]current date 1727125784 [21:09:42]FM_GetShiftState [21:09:42]SAM_PROTO_GetShiftState [21:09:42]wFMCommunicate request_size=4 [21:09:42]MH_SAM_APDU [21:09:42]CAPDU: 80 13 01 00 [21:09:42]Write to MH i2c: E2 08 00 07 0C 80 13 01 00 00 00 00 00 90 [21:09:42]Write i2c OK [21:09:42]MH_I2C_Read... [21:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:42]Read from MH i2c: E2 [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: E2 0E 00 [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: E2 0E 00 07 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D1 [21:09:42]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [21:09:42]wFMCommunicate OK [21:09:42]SAM_PROTO_GetShiftState done [21:09:42]FM_GetShiftState done [21:09:42]opened in 1727052070 [21:09:42]opened+sec_in_day 1727138470 [21:09:42]quantity*price = 9000 [21:09:42]sum+1 = 9001 [21:09:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.82 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 255 23.09.2024 21:09 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115772 ФПД: 100163345729400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T210944&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115772&fm=100163345729400&tin=02508201610067®Number=0000000000091831&sum=20500 0 [21:09:43]StoreToDocumentArchive [21:09:43]shift 472 fd 115772 [21:09:43]save to /storage/0472/doc_00115772 [21:09:43]save last doc name /storage/0472/doc_00115772 to /storage/kkm_last_doc_name [21:09:43]save OK [21:09:43]Clear old archive folders... [21:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=415 [21:09:43]tlvbuf is 011855B0 [21:09:43]SAM_PROTO_ClearQueue [21:09:43]wFMCommunicate request_size=4 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 09 00 00 [21:09:43]Write to MH i2c: E2 08 00 14 0C 80 09 00 00 00 00 00 00 92 [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:43]Read from MH i2c: E2 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 03 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 03 00 14 0C 00 90 00 94 [21:09:43]RAPDU: 90 00 [21:09:43]wFMCommunicate OK [21:09:43]SAM_PROTO_ClearQueue done [21:09:43]KKMCreateOFDPacket [21:09:43]OFDProtocolAddRootSTLVToBuf [21:09:43]FM_MakeSignedData [21:09:43]FM_MakeSignedData [21:09:43]SAM_PROTO_SignData [21:09:43]wFMCommunicate request_size=4 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 0D 01 02 [21:09:43]Write to MH i2c: E2 08 00 15 0C 80 0D 01 02 00 00 00 00 9A [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:43]Read from MH i2c: E2 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 03 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 03 00 15 0C 00 90 00 95 [21:09:43]RAPDU: 90 00 [21:09:43]wFMCommunicate OK [21:09:43]wFMCommunicate request_size=255 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [21:09:43]Write to MH i2c: E2 02 01 16 0C 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 39 [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:44]Read from MH i2c: E2 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 03 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 03 00 16 0C 00 90 00 96 [21:09:44]RAPDU: 90 00 [21:09:44]wFMCommunicate OK [21:09:44]wFMCommunicate request_size=174 [21:09:44]MH_SAM_APDU [21:09:44]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 18 D9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3C C4 01 00 35 04 06 00 5B 19 18 A4 47 78 [21:09:44]Write to MH i2c: E2 B1 00 17 0C 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 18 D9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3C C4 01 00 35 04 06 00 5B 19 18 A4 47 78 00 00 46 [21:09:44]Write i2c OK [21:09:44]MH_I2C_Read... [21:09:44]OFD Sender: No OFD packet to send [21:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:44]Read from MH i2c: E2 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 03 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 03 00 17 0C 00 90 00 97 [21:09:44]RAPDU: 90 00 [21:09:44]wFMCommunicate OK [21:09:44]wFMCommunicate request_size=4 [21:09:44]MH_SAM_APDU [21:09:44]CAPDU: 80 0D 03 02 [21:09:44]Write to MH i2c: E2 08 00 18 0C 80 0D 03 02 00 00 00 00 9F [21:09:44]Write i2c OK [21:09:44]MH_I2C_Read... [21:09:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:44]Read from MH i2c: E2 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 0B 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 0B 00 18 0C 00 B9 36 CB 48 E5 7A 25 AB 90 00 D1 [21:09:44]RAPDU: B9 36 CB 48 E5 7A 25 AB 90 00 [21:09:44]wFMCommunicate OK [21:09:44]SAM_PROTO_SignData done [21:09:44]FM_MakeSignedData done [21:09:44]CreateOFDProtocolMessage [21:09:44]wFMCommunicate request_size=4 [21:09:44]MH_SAM_APDU [21:09:44]CAPDU: 80 11 00 00 [21:09:44]Write to MH i2c: E2 08 00 19 0C 80 11 00 00 00 00 00 00 9F [21:09:44]Write i2c OK [21:09:44]MH_I2C_Read... [21:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:44]Read from MH i2c: E2 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 17 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 17 00 19 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 ED [21:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:09:44]wFMCommunicate OK [21:09:44]CreateOFDProtocolMessage done [21:09:44]OFDSenderStorePacket 115772 [21:09:44]StoreOFDPacket docnum=115772 [21:09:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B3 01 00 00 45 14 AB 01 DC 5E 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 18 D9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3C C4 01 00 35 04 06 00 5B 19 18 A4 47 78 B9 36 CB 48 E5 7A 25 AB [21:09:44]CheckFolder [21:09:44]dirname=/storage/ofd_packets [21:09:44]CheckFolder done [21:09:44]ProducePacketName [21:09:44]name=ofd_packets/00115772 [21:09:44]NVStorageSaveData ofd_packets/00115772 [21:09:44]File name is /storage/ofd_packets/00115772 [21:09:44]Write 465 bytes [21:09:44]NVStorageSaveData done [21:09:44]OFDSenderStorePacket done [21:09:44]KKMCreateOFDPacket done [21:09:44]NVStorageSaveData kkm_last_timestamp [21:09:44]File name is /storage/kkm_last_timestamp [21:09:44]Write 4 bytes [21:09:44]NVStorageSaveData done [21:09:44]ExternCall_PrintAddStr [21:09:44]wPrintStart [21:09:44]Write to MH i2c: 01 00 00 1A 0C 26 [21:09:44]Write i2c OK [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: 01 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: 01 07 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: 01 07 00 1A 0C 00 00 00 00 00 FF 0F 3B [21:09:44]RasterBufferAndPrint [21:09:44]line Счет N : (3)344088 [21:09:44]line ИНН: 02508201610067 [21:09:44]line Контрольно-Кассовый Чек [21:09:44]line ПРОДАЖА [21:09:44]line Товар: 4650243870968 [21:09:44]line Напиток Gorilla ж/б 0,45л Персик Абрикос [21:09:44]line 1.000 * 90.00 [21:09:44]line = 90.00 [21:09:44]line НДС 12% НСП 1% [21:09:44]line > о реализуемом товаре [21:09:44]line Товар: 2000036210013 [21:09:44]line Кофе Капучино (GABB TRADE) [21:09:44]line 1.000 * 115.00 [21:09:44]line = 115.00 [21:09:44]line НДС 12% НСП 1% [21:09:44]line > о реализуемом товаре [21:09:44]line ИТОГО: 205.00 [21:09:44]line НСП 1% : 1.82 [21:09:44]line НДС 12% : 21.77 [21:09:44]line Наличными: 205.00 [21:09:44]line Безнал.: 0.00 [21:09:44]line Место: АЗС № 90 "Партнер Нефть" [21:09:44]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [21:09:44]line СНО: Общий режим [21:09:44]line Чек 255 23.09.2024 21:09 [21:09:44]line Смена: 472 ФФД: 1.0 [21:09:44]line ЗНМ: 0300000120 [21:09:44]line РНМ: 0000000000091831 [21:09:44]line Версия ККМ: 001 [21:09:44]line ФМ: 0000000000871830 [21:09:44]line ФД: 115772 [21:09:44]line ФПД: 100163345729400 [21:09:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T210944&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115772&fm=100163345729400&tin=02508201610067®Number=0000000000091831&sum=20500 [21:09:44]OFD Sender: Processing packet 115772 [packets to send 482, broken 481] [21:09:44]ProducePacketName [21:09:44]name=ofd_packets/00115772 [21:09:44]OFD Sender: To server: pG, [21:09:44]CommunicateWithHost lk.salyk.kg:30040 [21:09:44]ConnectInit lk.salyk.kg [21:09:44]line 0 [21:09:44]written 0, free lines is 4095 [21:09:45]Connected sock=10 [21:09:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B3 01 00 00 45 14 AB 01 DC 5E 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 18 D9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3C C4 01 00 35 04 06 00 5B 19 18 A4 47 78 B9 36 CB 48 E5 7A 25 AB [21:09:45]Write to MH i2c: 01 00 00 48 0C 54 [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: 01 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: 01 07 00 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: 01 07 00 48 0C 00 00 00 00 00 F1 0B 57 [21:09:45]RasterBufferAndPrint [21:09:45]line [21:09:45]line [21:09:45]line [21:09:45]line [21:09:45]line [21:09:45]written 0, free lines is 3062 [21:09:45]MH_Cut [21:09:45]Write to MH i2c: D1 01 00 4F 0C 01 2D [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: D1 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: D1 01 00 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: D1 01 00 4F 0C 00 2C [21:09:45]Write to MH i2c: 01 00 00 50 0C 5C [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 4D E7 47 00 3D 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3C C4 01 00 F4 03 04 00 5A 7E F1 66 B6 04 01 00 00 AB 95 28 BB F6 14 76 BB [21:09:45]CommunicateWithHost err = 0 [21:09:45]CheckOFDResponse [21:09:45]1017 (14) - 77093643461234 [21:09:45]1041 (16) - 0000000000871830 [21:09:45]1040 (4) - 115772 [21:09:45]1012 (4) - 23.09.2024 14:42 [21:09:45]1206 (1) - 0 [21:09:45]OFD Sender: Remove packet 115772 [21:09:45]ProducePacketName [21:09:45]name=ofd_packets/00115772 [21:09:45]NVStorageDeleteData [21:09:45]OFD Sender: No OFD packet to send [21:09:46]*** Cut start [21:09:46]*** Partial cut [21:09:46]*** CUTSNS_PIN = 1 [21:09:46]*** CUTSNS_PIN = 0 [21:09:47]*** Brake cut motor [21:09:47]Read from MH i2c: 01 [21:09:47]MH_I2C_Read... [21:09:47]*** Stop cut motor [21:09:47]*** Cut end [21:09:47]Read from MH i2c: 01 07 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: 01 07 00 50 0C 00 00 00 00 00 FF 0F 71 [21:09:47]process_action close_receipt done [21:09:47]requested_data is exist [21:09:47]produce_requested_data [21:09:47]requested_item fm.sn is exist - process it [21:09:47]wFMCommunicate request_size=4 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 11 00 00 [21:09:47]Write to MH i2c: E2 08 00 51 0C 80 11 00 00 00 00 00 00 D7 [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 17 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 17 00 51 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 25 [21:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:09:47]wFMCommunicate OK [21:09:47]requested_item fd.num is exist - process it [21:09:47]SAM_PROTO_GetFieldsCounters [21:09:47]wFMCommunicate request_size=4 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 13 00 00 [21:09:47]Write to MH i2c: E2 08 00 52 0C 80 13 00 00 00 00 00 00 DA [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 62 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 62 00 52 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3C C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [21:09:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3C C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:47]wFMCommunicate OK [21:09:47]SAM_PROTO_GetFieldsCounters done [21:09:47]requested_item shift.num is exist - process it [21:09:47]requested_item shift.opened is exist - process it [21:09:47]req_shift_opened [21:09:47]FM_GetShiftState [21:09:47]SAM_PROTO_GetShiftState [21:09:47]wFMCommunicate request_size=4 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 13 01 00 [21:09:47]Write to MH i2c: E2 08 00 53 0C 80 13 01 00 00 00 00 00 DC [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 0E 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 0E 00 53 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1D [21:09:47]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [21:09:47]wFMCommunicate OK [21:09:47]SAM_PROTO_GetShiftState done [21:09:47]FM_GetShiftState done [21:09:47]req_shift_opened done [21:09:47]requested_item shift.open_date is exist - process it [21:09:47]req_shift_open_date [21:09:47]req_shift_open_date done [21:09:47]produce_requested_data done [21:09:47]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115772,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [21:09:47]process_action_free close_receipt [21:09:47]json_value_free [21:09:47]json_value_free done [21:09:47]process_json_proto returns [21:09:47]Send response to host [21:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115772,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [21:09:47]free response buf [21:09:47]execute_script done [21:09:47]execute_script returns [21:09:47]free content buf [21:09:47]Sock 8.Close socket [21:09:47]Sock 8.Thread stoped [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:11:01]OFD Sender: No OFD packet to send [21:11:06]OFD Sender: No OFD packet to send [21:11:07]accept exits with 9 [21:11:07]New connection [21:11:07]New thread 3066867044 created [21:11:07]Thread 3067010404 joined [21:11:07]Waiting for new connection... [21:11:07] Sock 9.Parse request [21:11:07]Sock 9.Check first char [21:11:07]Sock 9.First char is OK [21:11:07]request: POST /json_proto HTTP/1.0 [21:11:07]Method: POST [21:11:07]URL: /json_proto [21:11:07]Method is POST - this is cgi request [21:11:07]url: /json_proto [21:11:07]query_string will be loaded in cgi processing [21:11:07]execute_cgi json_proto POST (null) [21:11:07]execute_cgi path=json_proto method=POST [21:11:07]POST find Content-Length [21:11:07]Host: 172.17.41.136:8080 [21:11:07]Content-Length: 960 [21:11:07]Content-Type: application/json [21:11:07] [21:11:07]POST finish read [21:11:07]Found Content-Length = 960 [21:11:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344089", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 3.000, "sum" : 177.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 307.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:07]execute_script... [21:11:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344089", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 3.000, "sum" : 177.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 307.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:07]POST & json_proto [21:11:07]process_json_proto [21:11:07]json parsed OK: [21:11:07]protocol is kg_v1.0 [21:11:07]action value=close_receipt [21:11:07]process_action close_receipt [21:11:07]cmd_close_receipt [21:11:07]MH_GetDate [21:11:07]Write to MH i2c: F0 00 00 54 0C 4F [21:11:07]Write i2c OK [21:11:07]MH_I2C_Read... [21:11:07]Read from MH i2c: F0 [21:11:07]MH_I2C_Read... [21:11:07]Read from MH i2c: F0 09 00 [21:11:07]MH_I2C_Read... [21:11:07]Read from MH i2c: F0 09 00 54 0C 00 6D D9 F1 66 1B D0 5A 64 9E [21:11:07]GetLastDocTimeStamp 1727125784 [21:11:07]current date 1727125869 [21:11:07]FM_GetShiftState [21:11:07]SAM_PROTO_GetShiftState [21:11:07]wFMCommunicate request_size=4 [21:11:07]MH_SAM_APDU [21:11:07]CAPDU: 80 13 01 00 [21:11:07]Write to MH i2c: E2 08 00 55 0C 80 13 01 00 00 00 00 00 DE [21:11:07]Write i2c OK [21:11:07]MH_I2C_Read... [21:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:07]Read from MH i2c: E2 [21:11:07]MH_I2C_Read... [21:11:07]Read from MH i2c: E2 0E 00 [21:11:07]MH_I2C_Read... [21:11:07]Read from MH i2c: E2 0E 00 55 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1F [21:11:07]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [21:11:07]wFMCommunicate OK [21:11:07]SAM_PROTO_GetShiftState done [21:11:07]FM_GetShiftState done [21:11:07]opened in 1727052070 [21:11:07]opened+sec_in_day 1727138470 [21:11:07]quantity*price = 17700 [21:11:07]sum+1 = 17701 [21:11:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700321005024 Миндаль Mike жареный соленый 50г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 307.00 НСП 1% : 2.72 НДС 12% : 32.60 Наличными: 307.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 256 23.09.2024 21:11 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115773 ФПД: 194536316531963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T211109&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115773&fm=194536316531963&tin=02508201610067®Number=0000000000091831&sum=30700 0 [21:11:08]StoreToDocumentArchive [21:11:08]shift 472 fd 115773 [21:11:08]save to /storage/0472/doc_00115773 [21:11:08]save last doc name /storage/0472/doc_00115773 to /storage/kkm_last_doc_name [21:11:08]save OK [21:11:08]Clear old archive folders... [21:11:08]ProcessDocumentItem done err = 0, tmpTLVsize=407 [21:11:08]tlvbuf is 01164D60 [21:11:08]SAM_PROTO_ClearQueue [21:11:08]wFMCommunicate request_size=4 [21:11:08]MH_SAM_APDU [21:11:08]CAPDU: 80 09 00 00 [21:11:08]Write to MH i2c: E2 08 00 62 0C 80 09 00 00 00 00 00 00 E0 [21:11:08]Write i2c OK [21:11:08]MH_I2C_Read... [21:11:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:08]Read from MH i2c: E2 [21:11:08]MH_I2C_Read... [21:11:08]Read from MH i2c: E2 03 00 [21:11:08]MH_I2C_Read... [21:11:08]Read from MH i2c: E2 03 00 62 0C 00 90 00 E2 [21:11:08]RAPDU: 90 00 [21:11:08]wFMCommunicate OK [21:11:08]SAM_PROTO_ClearQueue done [21:11:08]KKMCreateOFDPacket [21:11:08]OFDProtocolAddRootSTLVToBuf [21:11:08]FM_MakeSignedData [21:11:08]FM_MakeSignedData [21:11:08]SAM_PROTO_SignData [21:11:08]wFMCommunicate request_size=4 [21:11:08]MH_SAM_APDU [21:11:08]CAPDU: 80 0D 01 02 [21:11:08]Write to MH i2c: E2 08 00 63 0C 80 0D 01 02 00 00 00 00 E8 [21:11:08]Write i2c OK [21:11:08]MH_I2C_Read... [21:11:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:08]Read from MH i2c: E2 [21:11:08]MH_I2C_Read... [21:11:08]Read from MH i2c: E2 03 00 [21:11:08]MH_I2C_Read... [21:11:08]Read from MH i2c: E2 03 00 63 0C 00 90 00 E3 [21:11:08]RAPDU: 90 00 [21:11:08]wFMCommunicate OK [21:11:08]wFMCommunicate request_size=255 [21:11:08]MH_SAM_APDU [21:11:08]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 [21:11:08]Write to MH i2c: E2 02 01 64 0C 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 6E [21:11:08]Write i2c OK [21:11:08]MH_I2C_Read... [21:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:09]Read from MH i2c: E2 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: E2 03 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: E2 03 00 64 0C 00 90 00 E4 [21:11:09]RAPDU: 90 00 [21:11:09]wFMCommunicate OK [21:11:09]wFMCommunicate request_size=166 [21:11:09]MH_SAM_APDU [21:11:09]CAPDU: 80 0D 02 02 A1 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0C 00 00 00 00 07 04 06 00 EC 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 6D D9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3D C4 01 00 35 04 06 00 B0 EE 04 0A F4 FB [21:11:09]Write to MH i2c: E2 A9 00 65 0C 80 0D 02 02 A1 00 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0C 00 00 00 00 07 04 06 00 EC 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 6D D9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3D C4 01 00 35 04 06 00 B0 EE 04 0A F4 FB 00 00 15 [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:09]Read from MH i2c: E2 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: E2 03 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: E2 03 00 65 0C 00 90 00 E5 [21:11:09]RAPDU: 90 00 [21:11:09]wFMCommunicate OK [21:11:09]wFMCommunicate request_size=4 [21:11:09]MH_SAM_APDU [21:11:09]CAPDU: 80 0D 03 02 [21:11:09]Write to MH i2c: E2 08 00 66 0C 80 0D 03 02 00 00 00 00 ED [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:09]Read from MH i2c: E2 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: E2 0B 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: E2 0B 00 66 0C 00 DE DE D0 94 4C 26 31 53 90 00 04 [21:11:09]RAPDU: DE DE D0 94 4C 26 31 53 90 00 [21:11:09]wFMCommunicate OK [21:11:09]SAM_PROTO_SignData done [21:11:09]FM_MakeSignedData done [21:11:09]CreateOFDProtocolMessage [21:11:09]wFMCommunicate request_size=4 [21:11:09]MH_SAM_APDU [21:11:09]CAPDU: 80 11 00 00 [21:11:09]Write to MH i2c: E2 08 00 67 0C 80 11 00 00 00 00 00 00 ED [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:09]Read from MH i2c: E2 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: E2 17 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: E2 17 00 67 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3B [21:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:11:09]wFMCommunicate OK [21:11:09]CreateOFDProtocolMessage done [21:11:09]OFDSenderStorePacket 115773 [21:11:09]StoreOFDPacket docnum=115773 [21:11:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 AB 01 00 00 F5 A2 A3 01 22 C3 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0C 00 00 00 00 07 04 06 00 EC 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 6D D9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3D C4 01 00 35 04 06 00 B0 EE 04 0A F4 FB DE DE D0 94 4C 26 31 53 [21:11:09]CheckFolder [21:11:09]dirname=/storage/ofd_packets [21:11:09]CheckFolder done [21:11:09]ProducePacketName [21:11:09]name=ofd_packets/00115773 [21:11:09]NVStorageSaveData ofd_packets/00115773 [21:11:09]File name is /storage/ofd_packets/00115773 [21:11:09]Write 457 bytes [21:11:09]NVStorageSaveData done [21:11:09]OFDSenderStorePacket done [21:11:09]KKMCreateOFDPacket done [21:11:09]NVStorageSaveData kkm_last_timestamp [21:11:09]File name is /storage/kkm_last_timestamp [21:11:09]Write 4 bytes [21:11:09]NVStorageSaveData done [21:11:09]ExternCall_PrintAddStr [21:11:09]wPrintStart [21:11:09]Write to MH i2c: 01 00 00 68 0C 74 [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 68 0C 00 00 00 00 00 FF 0F 89 [21:11:09]RasterBufferAndPrint [21:11:09]line Счет N : (3)344089 [21:11:09]line ИНН: 02508201610067 [21:11:09]line Контрольно-Кассовый Чек [21:11:09]line ПРОДАЖА [21:11:09]line Товар: 4607065001445 [21:11:09]line Шок батончик Snickers 50,5г [21:11:09]line 3.000 * 59.00 [21:11:09]line = 177.00 [21:11:09]line НДС 12% НСП 1% [21:11:09]line > о реализуемом товаре [21:11:09]line Товар: 4700321005024 [21:11:09]line Миндаль Mike жареный соленый 50г [21:11:09]line 1.000 * 130.00 [21:11:09]line = 130.00 [21:11:09]line НДС 12% НСП 1% [21:11:09]line > о реализуемом товаре [21:11:09]line ИТОГО: 307.00 [21:11:09]line НСП 1% : 2.72 [21:11:09]line НДС 12% : 32.60 [21:11:09]line Наличными: 307.00 [21:11:09]line Безнал.: 0.00 [21:11:09]line Место: АЗС № 90 "Партнер Нефть" [21:11:09]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [21:11:09]line СНО: Общий режим [21:11:09]line Чек 256 23.09.2024 21:11 [21:11:09]line Смена: 472 ФФД: 1.0 [21:11:09]line ЗНМ: 0300000120 [21:11:09]line РНМ: 0000000000091831 [21:11:09]line Версия ККМ: 001 [21:11:09]line ФМ: 0000000000871830 [21:11:09]line ФД: 115773 [21:11:09]line ФПД: 194536316531963 [21:11:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T211109&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115773&fm=194536316531963&tin=02508201610067®Number=0000000000091831&sum=30700 [21:11:09]line 0 [21:11:09]OFD Sender: Processing packet 115773 [packets to send 482, broken 481] [21:11:09]ProducePacketName [21:11:09]name=ofd_packets/00115773 [21:11:09]OFD Sender: To server: pG, [21:11:09]CommunicateWithHost lk.salyk.kg:30040 [21:11:09]ConnectInit lk.salyk.kg [21:11:09]written 0, free lines is 4095 [21:11:10]Connected sock=10 [21:11: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 38 33 30 AB 01 00 00 F5 A2 A3 01 22 C3 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0C 00 00 00 00 07 04 06 00 EC 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 6D D9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3D C4 01 00 35 04 06 00 B0 EE 04 0A F4 FB DE DE D0 94 4C 26 31 53 [21:11:10]Write to MH i2c: 01 00 00 96 0C A2 [21:11:10]Write i2c OK [21:11:10]MH_I2C_Read... [21:11:10]Read from MH i2c: 01 [21:11:10]MH_I2C_Read... [21:11:10]Read from MH i2c: 01 07 00 [21:11:10]MH_I2C_Read... [21:11:10]Read from MH i2c: 01 07 00 96 0C 00 00 00 00 00 F1 0B A5 [21:11:10]RasterBufferAndPrint [21:11:10]line [21:11:10]line [21:11:10]line [21:11:10]line [21:11:10]line [21:11:10]written 0, free lines is 3059 [21:11:10]MH_Cut [21:11:10]Write to MH i2c: D1 01 00 9D 0C 01 7B [21:11:10]Write i2c OK [21:11:10]MH_I2C_Read... [21:11:10]Read from MH i2c: D1 [21:11:10]MH_I2C_Read... [21:11:10]Read from MH i2c: D1 01 00 [21:11:10]MH_I2C_Read... [21:11:10]Read from MH i2c: D1 01 00 9D 0C 00 7A [21:11:10]Write to MH i2c: 01 00 00 9E 0C AA [21:11:10]Write i2c OK [21:11:10]MH_I2C_Read... [21:11:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 2C A8 47 00 9C 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 38 33 30 10 04 04 00 3D C4 01 00 F4 03 04 00 AF 7E F1 66 B6 04 01 00 00 34 EC AD 6A 56 3E CE 7A [21:11:10]CommunicateWithHost err = 0 [21:11:10]CheckOFDResponse [21:11:10]1017 (14) - 77093643461234 [21:11:10]1041 (16) - 0000000000871830 [21:11:10]1040 (4) - 115773 [21:11:10]1012 (4) - 23.09.2024 14:43 [21:11:10]1206 (1) - 0 [21:11:10]OFD Sender: Remove packet 115773 [21:11:10]ProducePacketName [21:11:10]name=ofd_packets/00115773 [21:11:10]NVStorageDeleteData [21:11:10]OFD Sender: No OFD packet to send [21:11:11]*** Cut start [21:11:11]*** Partial cut [21:11:11]*** CUTSNS_PIN = 1 [21:11:11]*** CUTSNS_PIN = 0 [21:11:12]*** Brake cut motor [21:11:12]Read from MH i2c: 01 [21:11:12]MH_I2C_Read... [21:11:12]*** Stop cut motor [21:11:12]*** Cut end [21:11:12]Read from MH i2c: 01 07 00 [21:11:12]MH_I2C_Read... [21:11:12]Read from MH i2c: 01 07 00 9E 0C 00 00 00 00 00 FF 0F BF [21:11:12]process_action close_receipt done [21:11:12]requested_data is exist [21:11:12]produce_requested_data [21:11:12]requested_item fm.sn is exist - process it [21:11:12]wFMCommunicate request_size=4 [21:11:12]MH_SAM_APDU [21:11:12]CAPDU: 80 11 00 00 [21:11:12]Write to MH i2c: E2 08 00 9F 0C 80 11 00 00 00 00 00 00 25 [21:11:12]Write i2c OK [21:11:12]MH_I2C_Read... [21:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:12]Read from MH i2c: E2 [21:11:12]MH_I2C_Read... [21:11:12]Read from MH i2c: E2 17 00 [21:11:12]MH_I2C_Read... [21:11:12]Read from MH i2c: E2 17 00 9F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 73 [21:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:11:12]wFMCommunicate OK [21:11:12]requested_item fd.num is exist - process it [21:11:12]SAM_PROTO_GetFieldsCounters [21:11:12]wFMCommunicate request_size=4 [21:11:12]MH_SAM_APDU [21:11:12]CAPDU: 80 13 00 00 [21:11:12]Write to MH i2c: E2 08 00 A0 0C 80 13 00 00 00 00 00 00 28 [21:11:12]Write i2c OK [21:11:12]MH_I2C_Read... [21:11:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:12]Read from MH i2c: E2 [21:11:12]MH_I2C_Read... [21:11:12]Read from MH i2c: E2 62 00 [21:11:12]MH_I2C_Read... [21:11:12]Read from MH i2c: E2 62 00 A0 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3D C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 1F [21:11: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3D C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:12]wFMCommunicate OK [21:11:12]SAM_PROTO_GetFieldsCounters done [21:11:12]requested_item shift.num is exist - process it [21:11:12]requested_item shift.opened is exist - process it [21:11:12]req_shift_opened [21:11:12]FM_GetShiftState [21:11:12]SAM_PROTO_GetShiftState [21:11:12]wFMCommunicate request_size=4 [21:11:12]MH_SAM_APDU [21:11:12]CAPDU: 80 13 01 00 [21:11:12]Write to MH i2c: E2 08 00 A1 0C 80 13 01 00 00 00 00 00 2A [21:11:12]Write i2c OK [21:11:12]MH_I2C_Read... [21:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:12]Read from MH i2c: E2 [21:11:12]MH_I2C_Read... [21:11:12]Read from MH i2c: E2 0E 00 [21:11:12]MH_I2C_Read... [21:11:12]Read from MH i2c: E2 0E 00 A1 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6B [21:11:12]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [21:11:12]wFMCommunicate OK [21:11:12]SAM_PROTO_GetShiftState done [21:11:12]FM_GetShiftState done [21:11:12]req_shift_opened done [21:11:12]requested_item shift.open_date is exist - process it [21:11:12]req_shift_open_date [21:11:12]req_shift_open_date done [21:11:12]produce_requested_data done [21:11:12]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115773,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [21:11:12]process_action_free close_receipt [21:11:12]json_value_free [21:11:12]json_value_free done [21:11:12]process_json_proto returns [21:11:12]Send response to host [21:11:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115773,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [21:11:12]free response buf [21:11:12]execute_script done [21:11:12]execute_script returns [21:11:12]free content buf [21:11:12]Sock 9.Close socket [21:11:12]Sock 9.Thread stoped [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]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:15]accept exits with 8 [21:13:15]New connection [21:13:15]New thread 3067010404 created [21:13:15]Thread 3066867044 joined [21:13:15]Waiting for new connection... [21:13:15] Sock 8.Parse request [21:13:15]Sock 8.Check first char [21:13:15]Sock 8.First char is OK [21:13:15]request: POST /json_proto HTTP/1.0 [21:13:15]Method: POST [21:13:15]URL: /json_proto [21:13:15]Method is POST - this is cgi request [21:13:15]url: /json_proto [21:13:15]query_string will be loaded in cgi processing [21:13:15]execute_cgi json_proto POST (null) [21:13:15]execute_cgi path=json_proto method=POST [21:13:15]POST find Content-Length [21:13:15]Host: 172.17.41.136:8080 [21:13:15]Content-Length: 681 [21:13:15]Content-Type: application/json [21:13:15] [21:13:15]POST finish read [21:13:15]Found Content-Length = 681 [21:13:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24618051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:15]execute_script... [21:13: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)24618051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:15]POST & json_proto [21:13:15]process_json_proto [21:13:15]json parsed OK: [21:13:15]protocol is kg_v1.0 [21:13:15]action value=close_receipt [21:13:15]process_action close_receipt [21:13:15]cmd_close_receipt [21:13:15]MH_GetDate [21:13:15]Write to MH i2c: F0 00 00 A2 0C 9D [21:13:15]Write i2c OK [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: F0 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: F0 09 00 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: F0 09 00 A2 0C 00 ED D9 F1 66 1B D0 5A 64 6C [21:13:15]GetLastDocTimeStamp 1727125869 [21:13:15]current date 1727125997 [21:13:15]FM_GetShiftState [21:13:15]SAM_PROTO_GetShiftState [21:13:15]wFMCommunicate request_size=4 [21:13:15]MH_SAM_APDU [21:13:15]CAPDU: 80 13 01 00 [21:13:15]Write to MH i2c: E2 08 00 A3 0C 80 13 01 00 00 00 00 00 2C [21:13:15]Write i2c OK [21:13:15]MH_I2C_Read... [21:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:15]Read from MH i2c: E2 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: E2 0E 00 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: E2 0E 00 A3 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6D [21:13:15]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [21:13:15]wFMCommunicate OK [21:13:15]SAM_PROTO_GetShiftState done [21:13:15]FM_GetShiftState done [21:13:15]opened in 1727052070 [21:13:15]opened+sec_in_day 1727138470 [21:13:15]quantity*price = 150037 [21:13:15]sum+1 = 150039 [21:13:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 257 23.09.2024 21:13 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115774 ФПД: 180409410334020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T211317&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115774&fm=180409410334020&tin=02508201610067®Number=0000000000091831&sum=150000 [21:13:16]StoreToDocumentArchive [21:13:16]shift 472 fd 115774 [21:13:16]save to /storage/0472/doc_00115774 [21:13:16]save last doc name /storage/0472/doc_00115774 to /storage/kkm_last_doc_name [21:13:16]save OK [21:13:16]Clear old archive folders... [21:13:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:13:16]tlvbuf is 01120840 [21:13:16]SAM_PROTO_ClearQueue [21:13:16]wFMCommunicate request_size=4 [21:13:16]MH_SAM_APDU [21:13:16]CAPDU: 80 09 00 00 [21:13:16]Write to MH i2c: E2 08 00 B0 0C 80 09 00 00 00 00 00 00 2E [21:13:16]Write i2c OK [21:13:16]MH_I2C_Read... [21:13:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:16]Read from MH i2c: E2 [21:13:16]MH_I2C_Read... [21:13:16]Read from MH i2c: E2 03 00 [21:13:16]MH_I2C_Read... [21:13:16]Read from MH i2c: E2 03 00 B0 0C 00 90 00 30 [21:13:16]RAPDU: 90 00 [21:13:16]wFMCommunicate OK [21:13:16]SAM_PROTO_ClearQueue done [21:13:16]KKMCreateOFDPacket [21:13:16]OFDProtocolAddRootSTLVToBuf [21:13:16]FM_MakeSignedData [21:13:16]FM_MakeSignedData [21:13:16]SAM_PROTO_SignData [21:13:16]wFMCommunicate request_size=4 [21:13:16]MH_SAM_APDU [21:13:16]CAPDU: 80 0D 01 02 [21:13:16]Write to MH i2c: E2 08 00 B1 0C 80 0D 01 02 00 00 00 00 36 [21:13:16]Write i2c OK [21:13:16]MH_I2C_Read... [21:13:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:16]Read from MH i2c: E2 [21:13:16]MH_I2C_Read... [21:13:16]Read from MH i2c: E2 03 00 [21:13:16]MH_I2C_Read... [21:13:16]Read from MH i2c: E2 03 00 B1 0C 00 90 00 31 [21:13:16]RAPDU: 90 00 [21:13:16]wFMCommunicate OK [21:13:16]wFMCommunicate request_size=255 [21:13:16]MH_SAM_APDU [21:13:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 01 01 00 00 F4 03 04 00 ED D9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3E C4 01 00 35 04 06 00 A4 14 D6 D1 [21:13:16]Write to MH i2c: E2 02 01 B2 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 01 01 00 00 F4 03 04 00 ED D9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3E C4 01 00 35 04 06 00 A4 14 D6 D1 00 00 84 [21:13:16]Write i2c OK [21:13:16]MH_I2C_Read... [21:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:17]Read from MH i2c: E2 [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: E2 03 00 [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: E2 03 00 B2 0C 00 90 00 32 [21:13:17]RAPDU: 90 00 [21:13:17]wFMCommunicate OK [21:13:17]wFMCommunicate request_size=7 [21:13:17]MH_SAM_APDU [21:13:17]CAPDU: 80 0D 02 02 02 2D 44 [21:13:17]Write to MH i2c: E2 0A 00 B3 0C 80 0D 02 02 02 00 2D 44 00 00 AE [21:13:17]Write i2c OK [21:13:17]MH_I2C_Read... [21:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:17]Read from MH i2c: E2 [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: E2 03 00 [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: E2 03 00 B3 0C 00 90 00 33 [21:13:17]RAPDU: 90 00 [21:13:17]wFMCommunicate OK [21:13:17]wFMCommunicate request_size=4 [21:13:17]MH_SAM_APDU [21:13:17]CAPDU: 80 0D 03 02 [21:13:17]Write to MH i2c: E2 08 00 B4 0C 80 0D 03 02 00 00 00 00 3B [21:13:17]Write i2c OK [21:13:17]MH_I2C_Read... [21:13:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:17]Read from MH i2c: E2 [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: E2 0B 00 [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: E2 0B 00 B4 0C 00 25 52 52 8C 13 46 68 FF 90 00 51 [21:13:17]RAPDU: 25 52 52 8C 13 46 68 FF 90 00 [21:13:17]wFMCommunicate OK [21:13:17]SAM_PROTO_SignData done [21:13:17]FM_MakeSignedData done [21:13:17]CreateOFDProtocolMessage [21:13:17]wFMCommunicate request_size=4 [21:13:17]MH_SAM_APDU [21:13:17]CAPDU: 80 11 00 00 [21:13:17]Write to MH i2c: E2 08 00 B5 0C 80 11 00 00 00 00 00 00 3B [21:13:17]Write i2c OK [21:13:17]MH_I2C_Read... [21:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:17]Read from MH i2c: E2 [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: E2 17 00 [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: E2 17 00 B5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 89 [21:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:13:17]wFMCommunicate OK [21:13:17]CreateOFDProtocolMessage done [21:13:17]OFDSenderStorePacket 115774 [21:13:17]StoreOFDPacket docnum=115774 [21:13:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 C5 AC 04 01 5F BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 ED D9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3E C4 01 00 35 04 06 00 A4 14 D6 D1 2D 44 25 52 52 8C 13 46 68 FF [21:13:17]CheckFolder [21:13:17]dirname=/storage/ofd_packets [21:13:17]CheckFolder done [21:13:17]ProducePacketName [21:13:17]name=ofd_packets/00115774 [21:13:17]NVStorageSaveData ofd_packets/00115774 [21:13:17]File name is /storage/ofd_packets/00115774 [21:13:17]Write 298 bytes [21:13:17]NVStorageSaveData done [21:13:17]OFDSenderStorePacket done [21:13:17]KKMCreateOFDPacket done [21:13:17]NVStorageSaveData kkm_last_timestamp [21:13:17]File name is /storage/kkm_last_timestamp [21:13:17]Write 4 bytes [21:13:17]NVStorageSaveData done [21:13:17]ExternCall_PrintAddStr [21:13:17]wPrintStart [21:13:17]Write to MH i2c: 01 00 00 B6 0C C2 [21:13:17]Write i2c OK [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: 01 [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: 01 07 00 [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: 01 07 00 B6 0C 00 00 00 00 00 FF 0F D7 [21:13:17]RasterBufferAndPrint [21:13:17]line Счет N : (1)24618051 [21:13:17]line ИНН: 02508201610067 [21:13:17]line Контрольно-Кассовый Чек [21:13:17]line ПРОДАЖА [21:13:17]line ТРК (МРК, ГНК) : 35 [21:13:17]line Товар: 2710194210 [21:13:17]line ДТ-К-5 [21:13:17]line 19.690 * 76.20 [21:13:17]line = 1500.38 [21:13:17]line НДС 12% НСП 1% [21:13:17]line > о реализуемом товаре [21:13:17]line ОКРУГЛЕНИЕ: -0.38 [21:13:17]line ИТОГО: 1500.00 [21:13:17]line Внесено: 1500.00 [21:13:17]line СДАЧА: 0.00 [21:13:17]line НСП 1% : 13.28 [21:13:17]line НДС 12% : 159.33 [21:13:17]line Наличными: 1500.00 [21:13:17]line Безнал.: 0.00 [21:13:17]line Место: АЗС № 90 "Партнер Нефть" [21:13:17]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [21:13:17]line СНО: Общий режим [21:13:17]line Чек 257 23.09.2024 21:13 [21:13:17]line Смена: 472 ФФД: 1.0 [21:13:17]line ЗНМ: 0300000120 [21:13:17]line РНМ: 0000000000091831 [21:13:17]line Версия ККМ: 001 [21:13:17]line ФМ: 0000000000871830 [21:13:17]line ФД: 115774 [21:13:17]line ФПД: 180409410334020 [21:13:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T211317&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115774&fm=180409410334020&tin=02508201610067®Number=0000000000091831&sum=150000 [21:13:17]OFD Sender: Processing packet 115774 [packets to send 482, broken 481] [21:13:17]ProducePacketName [21:13:17]name=ofd_packets/00115774 [21:13:17]OFD Sender: To server: pG, [21:13:17]CommunicateWithHost lk.salyk.kg:30040 [21:13:17]ConnectInit lk.salyk.kg [21:13:17]written 0, free lines is 4095 [21:13:17]Write to MH i2c: 01 00 00 E0 0C EC [21:13:17]Write i2c OK [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: 01 [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: 01 07 00 [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: 01 07 00 E0 0C 00 00 00 00 00 4B 0C 4A [21:13:17]RasterBufferAndPrint [21:13:17]line [21:13:17]line [21:13:17]line [21:13:17]line [21:13:17]line [21:13:17]written 0, free lines is 3151 [21:13:17]MH_Cut [21:13:17]Write to MH i2c: D1 01 00 E7 0C 01 C5 [21:13:17]Write i2c OK [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: D1 [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: D1 01 00 [21:13:17]MH_I2C_Read... [21:13:17]Read from MH i2c: D1 01 00 E7 0C 00 C4 [21:13:17]Write to MH i2c: 01 00 00 E8 0C F4 [21:13:17]Write i2c OK [21:13:17]MH_I2C_Read... [21:13:18]Connected sock=10 [21:13:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 C5 AC 04 01 5F BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 ED D9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3E C4 01 00 35 04 06 00 A4 14 D6 D1 2D 44 25 52 52 8C 13 46 68 FF [21:13:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 43 01 47 00 1E 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3E C4 01 00 F4 03 04 00 2F 7F F1 66 B6 04 01 00 00 CD B9 17 38 9C 1E 7F DC [21:13:18]CommunicateWithHost err = 0 [21:13:18]CheckOFDResponse [21:13:18]1017 (14) - 77093643461234 [21:13:18]1041 (16) - 0000000000871830 [21:13:18]1040 (4) - 115774 [21:13:18]1012 (4) - 23.09.2024 14:46 [21:13:18]1206 (1) - 0 [21:13:18]OFD Sender: Remove packet 115774 [21:13:18]ProducePacketName [21:13:18]name=ofd_packets/00115774 [21:13:18]NVStorageDeleteData [21:13:18]OFD Sender: No OFD packet to send [21:13:19]*** Cut start [21:13:19]*** Partial cut [21:13:19]*** CUTSNS_PIN = 1 [21:13:19]*** CUTSNS_PIN = 0 [21:13:19]*** Brake cut motor [21:13:19]Read from MH i2c: 01 [21:13:19]MH_I2C_Read... [21:13:19]*** Stop cut motor [21:13:19]*** Cut end [21:13:19]Read from MH i2c: 01 07 00 [21:13:19]MH_I2C_Read... [21:13:19]Read from MH i2c: 01 07 00 E8 0C 00 00 00 00 00 FF 0F 09 [21:13:19]process_action close_receipt done [21:13:19]requested_data is exist [21:13:19]produce_requested_data [21:13:19]requested_item fm.sn is exist - process it [21:13:19]wFMCommunicate request_size=4 [21:13:19]MH_SAM_APDU [21:13:19]CAPDU: 80 11 00 00 [21:13:19]Write to MH i2c: E2 08 00 E9 0C 80 11 00 00 00 00 00 00 6F [21:13:19]Write i2c OK [21:13:19]MH_I2C_Read... [21:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:19]Read from MH i2c: E2 [21:13:19]MH_I2C_Read... [21:13:19]Read from MH i2c: E2 17 00 [21:13:20]MH_I2C_Read... [21:13:20]Read from MH i2c: E2 17 00 E9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BD [21:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:13:20]wFMCommunicate OK [21:13:20]requested_item fd.num is exist - process it [21:13:20]SAM_PROTO_GetFieldsCounters [21:13:20]wFMCommunicate request_size=4 [21:13:20]MH_SAM_APDU [21:13:20]CAPDU: 80 13 00 00 [21:13:20]Write to MH i2c: E2 08 00 EA 0C 80 13 00 00 00 00 00 00 72 [21:13:20]Write i2c OK [21:13:20]MH_I2C_Read... [21:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:20]Read from MH i2c: E2 [21:13:20]MH_I2C_Read... [21:13:20]Read from MH i2c: E2 62 00 [21:13:20]MH_I2C_Read... [21:13:20]Read from MH i2c: E2 62 00 EA 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3E C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 6D [21:13:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3E C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:13:20]wFMCommunicate OK [21:13:20]SAM_PROTO_GetFieldsCounters done [21:13:20]requested_item shift.num is exist - process it [21:13:20]requested_item shift.opened is exist - process it [21:13:20]req_shift_opened [21:13:20]FM_GetShiftState [21:13:20]SAM_PROTO_GetShiftState [21:13:20]wFMCommunicate request_size=4 [21:13:20]MH_SAM_APDU [21:13:20]CAPDU: 80 13 01 00 [21:13:20]Write to MH i2c: E2 08 00 EB 0C 80 13 01 00 00 00 00 00 74 [21:13:20]Write i2c OK [21:13:20]MH_I2C_Read... [21:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:20]Read from MH i2c: E2 [21:13:20]MH_I2C_Read... [21:13:20]Read from MH i2c: E2 0E 00 [21:13:20]MH_I2C_Read... [21:13:20]Read from MH i2c: E2 0E 00 EB 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B5 [21:13:20]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [21:13:20]wFMCommunicate OK [21:13:20]SAM_PROTO_GetShiftState done [21:13:20]FM_GetShiftState done [21:13:20]req_shift_opened done [21:13:20]requested_item shift.open_date is exist - process it [21:13:20]req_shift_open_date [21:13:20]req_shift_open_date done [21:13:20]produce_requested_data done [21:13:20]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115774,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [21:13:20]process_action_free close_receipt [21:13:20]json_value_free [21:13:20]json_value_free done [21:13:20]process_json_proto returns [21:13:20]Send response to host [21:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115774,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [21:13:20]free response buf [21:13:20]execute_script done [21:13:20]execute_script returns [21:13:20]free content buf [21:13:20]Sock 8.Close socket [21:13:20]Sock 8.Thread stoped [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]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:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]accept exits with 9 [21:40:37]New connection [21:40:37]New thread 3066867044 created [21:40:37]Thread 3067010404 joined [21:40:37]Waiting for new connection... [21:40:37] Sock 9.Parse request [21:40:37]Sock 9.Check first char [21:40:37]Sock 9.First char is OK [21:40:37]request: POST /json_proto HTTP/1.0 [21:40:37]Method: POST [21:40:37]URL: /json_proto [21:40:37]Method is POST - this is cgi request [21:40:37]url: /json_proto [21:40:37]query_string will be loaded in cgi processing [21:40:37]execute_cgi json_proto POST (null) [21:40:37]execute_cgi path=json_proto method=POST [21:40:37]POST find Content-Length [21:40:37]Host: 172.17.41.136:8080 [21:40:37]Content-Length: 681 [21:40:37]Content-Type: application/json [21:40:37] [21:40:37]POST finish read [21:40:37]Found Content-Length = 681 [21:40:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24618052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:37]execute_script... [21: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)24618052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 35", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:37]POST & json_proto [21:40:37]process_json_proto [21:40:37]json parsed OK: [21:40:37]protocol is kg_v1.0 [21:40:37]action value=close_receipt [21:40:37]process_action close_receipt [21:40:37]cmd_close_receipt [21:40:37]MH_GetDate [21:40:37]Write to MH i2c: F0 00 00 EC 0C E7 [21:40:37]Write i2c OK [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: F0 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: F0 09 00 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: F0 09 00 EC 0C 00 57 E0 F1 66 1B D0 5A 64 27 [21:40:37]GetLastDocTimeStamp 1727125997 [21:40:37]current date 1727127639 [21:40:37]FM_GetShiftState [21:40:37]SAM_PROTO_GetShiftState [21:40:37]wFMCommunicate request_size=4 [21:40:37]MH_SAM_APDU [21:40:37]CAPDU: 80 13 01 00 [21:40:37]Write to MH i2c: E2 08 00 ED 0C 80 13 01 00 00 00 00 00 76 [21:40:37]Write i2c OK [21:40:37]MH_I2C_Read... [21:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:37]Read from MH i2c: E2 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 0E 00 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 0E 00 ED 0C 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B7 [21:40:37]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [21:40:37]wFMCommunicate OK [21:40:37]SAM_PROTO_GetShiftState done [21:40:37]FM_GetShiftState done [21:40:37]opened in 1727052070 [21:40:37]opened+sec_in_day 1727138470 [21:40:37]quantity*price = 500024 [21:40:37]sum+1 = 500025 [21:40:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 258 23.09.2024 21:40 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115775 ФПД: 27087433718640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T214039&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115775&fm=27087433718640&tin=02508201610067®Number=0000000000091831&sum=500000 [21:40:38]StoreToDocumentArchive [21:40:38]shift 472 fd 115775 [21:40:38]save to /storage/0472/doc_00115775 [21:40:38]save last doc name /storage/0472/doc_00115775 to /storage/kkm_last_doc_name [21:40:38]save OK [21:40:38]Clear old archive folders... [21:40:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:40:38]tlvbuf is 01155DF0 [21:40:38]SAM_PROTO_ClearQueue [21:40:38]wFMCommunicate request_size=4 [21:40:38]MH_SAM_APDU [21:40:38]CAPDU: 80 09 00 00 [21:40:38]Write to MH i2c: E2 08 00 FA 0C 80 09 00 00 00 00 00 00 78 [21:40:38]Write i2c OK [21:40:38]MH_I2C_Read... [21:40:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:38]Read from MH i2c: E2 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: E2 03 00 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [21:40:38]RAPDU: 90 00 [21:40:38]wFMCommunicate OK [21:40:38]SAM_PROTO_ClearQueue done [21:40:38]KKMCreateOFDPacket [21:40:38]OFDProtocolAddRootSTLVToBuf [21:40:38]FM_MakeSignedData [21:40:38]FM_MakeSignedData [21:40:38]SAM_PROTO_SignData [21:40:38]wFMCommunicate request_size=4 [21:40:38]MH_SAM_APDU [21:40:38]CAPDU: 80 0D 01 02 [21:40:38]Write to MH i2c: E2 08 00 FB 0C 80 0D 01 02 00 00 00 00 80 [21:40:38]Write i2c OK [21:40:38]MH_I2C_Read... [21:40:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:38]Read from MH i2c: E2 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: E2 03 00 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: E2 03 00 FB 0C 00 90 00 7B [21:40:38]RAPDU: 90 00 [21:40:38]wFMCommunicate OK [21:40:38]wFMCommunicate request_size=255 [21:40:38]MH_SAM_APDU [21:40:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 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 6C 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 02 01 00 00 F4 03 04 00 57 E0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3F C4 01 00 35 04 06 00 18 A2 C8 DD [21:40:38]Write to MH i2c: E2 02 01 FC 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 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 6C 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 02 01 00 00 F4 03 04 00 57 E0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3F C4 01 00 35 04 06 00 18 A2 C8 DD 00 00 DD [21:40:38]Write i2c OK [21:40:38]MH_I2C_Read... [21:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:38]Read from MH i2c: E2 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: E2 03 00 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: E2 03 00 FC 0C 00 90 00 7C [21:40:38]RAPDU: 90 00 [21:40:38]wFMCommunicate OK [21:40:38]wFMCommunicate request_size=7 [21:40:38]MH_SAM_APDU [21:40:38]CAPDU: 80 0D 02 02 02 5B 70 [21:40:38]Write to MH i2c: E2 0A 00 FD 0C 80 0D 02 02 02 00 5B 70 00 00 52 [21:40:38]Write i2c OK [21:40:38]MH_I2C_Read... [21:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:38]Read from MH i2c: E2 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: E2 03 00 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: E2 03 00 FD 0C 00 90 00 7D [21:40:38]RAPDU: 90 00 [21:40:38]wFMCommunicate OK [21:40:38]wFMCommunicate request_size=4 [21:40:38]MH_SAM_APDU [21:40:38]CAPDU: 80 0D 03 02 [21:40:38]Write to MH i2c: E2 08 00 FE 0C 80 0D 03 02 00 00 00 00 85 [21:40:38]Write i2c OK [21:40:38]MH_I2C_Read... [21:40:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:38]Read from MH i2c: E2 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: E2 0B 00 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: E2 0B 00 FE 0C 00 28 38 7B AF 58 FC EA 2C 90 00 7A [21:40:38]RAPDU: 28 38 7B AF 58 FC EA 2C 90 00 [21:40:38]wFMCommunicate OK [21:40:38]SAM_PROTO_SignData done [21:40:38]FM_MakeSignedData done [21:40:38]CreateOFDProtocolMessage [21:40:38]wFMCommunicate request_size=4 [21:40:38]MH_SAM_APDU [21:40:38]CAPDU: 80 11 00 00 [21:40:38]Write to MH i2c: E2 08 00 FF 0C 80 11 00 00 00 00 00 00 85 [21:40:38]Write i2c OK [21:40:38]MH_I2C_Read... [21:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:38]Read from MH i2c: E2 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: E2 17 00 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: E2 17 00 FF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D3 [21:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:40:38]wFMCommunicate OK [21:40:38]CreateOFDProtocolMessage done [21:40:38]OFDSenderStorePacket 115775 [21:40:38]StoreOFDPacket docnum=115775 [21:40:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 4A 37 04 01 30 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 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 6C 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 02 01 00 00 F4 03 04 00 57 E0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3F C4 01 00 35 04 06 00 18 A2 C8 DD 5B 70 28 38 7B AF 58 FC EA 2C [21:40:38]CheckFolder [21:40:38]dirname=/storage/ofd_packets [21:40:38]CheckFolder done [21:40:38]ProducePacketName [21:40:38]name=ofd_packets/00115775 [21:40:38]NVStorageSaveData ofd_packets/00115775 [21:40:38]File name is /storage/ofd_packets/00115775 [21:40:38]Write 298 bytes [21:40:38]NVStorageSaveData done [21:40:38]OFDSenderStorePacket done [21:40:38]KKMCreateOFDPacket done [21:40:38]NVStorageSaveData kkm_last_timestamp [21:40:38]File name is /storage/kkm_last_timestamp [21:40:38]Write 4 bytes [21:40:38]NVStorageSaveData done [21:40:39]ExternCall_PrintAddStr [21:40:39]wPrintStart [21:40:39]Write to MH i2c: 01 00 00 00 0D 0D [21:40:39]Write i2c OK [21:40:39]MH_I2C_Read... [21:40:39]Read from MH i2c: 01 [21:40:39]MH_I2C_Read... [21:40:39]Read from MH i2c: 01 07 00 [21:40:39]MH_I2C_Read... [21:40:39]Read from MH i2c: 01 07 00 00 0D 00 00 00 00 00 FF 0F 22 [21:40:39]RasterBufferAndPrint [21:40:39]line Счет N : (1)24618052 [21:40:39]line ИНН: 02508201610067 [21:40:39]line Контрольно-Кассовый Чек [21:40:39]line ПРОДАЖА [21:40:39]line ТРК (МРК, ГНК) : 35 [21:40:39]line Товар: 2710194210 [21:40:39]line ДТ-К-5 [21:40:39]line 65.620 * 76.20 [21:40:39]line = 5000.24 [21:40:39]line НДС 12% НСП 1% [21:40:39]line > о реализуемом товаре [21:40:39]line ОКРУГЛЕНИЕ: -0.24 [21:40:39]line ИТОГО: 5000.00 [21:40:39]line Внесено: 5000.00 [21:40:39]line СДАЧА: 0.00 [21:40:39]line НСП 1% : 44.25 [21:40:39]line НДС 12% : 531.00 [21:40:39]line Наличными: 5000.00 [21:40:39]line Безнал.: 0.00 [21:40:39]line Место: АЗС № 90 "Партнер Нефть" [21:40:39]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [21:40:39]line СНО: Общий режим [21:40:39]line Чек 258 23.09.2024 21:40 [21:40:39]line Смена: 472 ФФД: 1.0 [21:40:39]line ЗНМ: 0300000120 [21:40:39]line РНМ: 0000000000091831 [21:40:39]line Версия ККМ: 001 [21:40:39]line ФМ: 0000000000871830 [21:40:39]line ФД: 115775 [21:40:39]line ФПД: 27087433718640 [21:40:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T214039&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115775&fm=27087433718640&tin=02508201610067®Number=0000000000091831&sum=500000 [21:40:39]OFD Sender: Processing packet 115775 [packets to send 482, broken 481] [21:40:39]ProducePacketName [21:40:39]name=ofd_packets/00115775 [21:40:39]OFD Sender: To server: pG, [21:40:39]CommunicateWithHost lk.salyk.kg:30040 [21:40:39]ConnectInit lk.salyk.kg [21:40:39]written 0, free lines is 4095 [21:40:39]Connected sock=10 [21: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 38 33 30 0C 01 00 00 4A 37 04 01 30 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 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 6C 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 02 01 00 00 F4 03 04 00 57 E0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3F C4 01 00 35 04 06 00 18 A2 C8 DD 5B 70 28 38 7B AF 58 FC EA 2C [21:40:39]Write to MH i2c: 01 00 00 2A 0D 37 [21:40:39]Write i2c OK [21:40:39]MH_I2C_Read... [21:40:39]Read from MH i2c: 01 [21:40:39]MH_I2C_Read... [21:40:39]Read from MH i2c: 01 07 00 [21:40:39]MH_I2C_Read... [21:40:39]Read from MH i2c: 01 07 00 2A 0D 00 00 00 00 00 42 0C 8C [21:40:39]RasterBufferAndPrint [21:40:39]line [21:40:39]line [21:40:39]line [21:40:39]line [21:40:39]line [21:40:39]written 0, free lines is 3143 [21:40:39]MH_Cut [21:40:39]Write to MH i2c: D1 01 00 31 0D 01 10 [21:40:39]Write i2c OK [21:40:39]MH_I2C_Read... [21:40:39]Read from MH i2c: D1 [21:40:39]MH_I2C_Read... [21:40:39]Read from MH i2c: D1 01 00 [21:40:39]MH_I2C_Read... [21:40:39]Read from MH i2c: D1 01 00 31 0D 00 0F [21:40:39]Write to MH i2c: 01 00 00 32 0D 3F [21:40:39]Write i2c OK [21:40:39]MH_I2C_Read... [21: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 38 33 30 4F 00 00 00 2B 6A 47 00 E6 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 3F C4 01 00 F4 03 04 00 98 85 F1 66 B6 04 01 00 00 54 C6 80 A2 59 90 F4 D3 [21:40:39]CommunicateWithHost err = 0 [21:40:39]CheckOFDResponse [21:40:39]1017 (14) - 77093643461234 [21:40:39]1041 (16) - 0000000000871830 [21:40:39]1040 (4) - 115775 [21:40:39]1012 (4) - 23.09.2024 15:13 [21:40:39]1206 (1) - 0 [21:40:39]OFD Sender: Remove packet 115775 [21:40:39]ProducePacketName [21:40:39]name=ofd_packets/00115775 [21:40:39]NVStorageDeleteData [21:40:40]OFD Sender: No OFD packet to send [21:40:41]*** Cut start [21:40:41]*** Partial cut [21:40:41]*** CUTSNS_PIN = 1 [21:40:41]*** CUTSNS_PIN = 0 [21:40:41]*** Brake cut motor [21:40:41]Read from MH i2c: 01 [21:40:41]MH_I2C_Read... [21:40:41]*** Stop cut motor [21:40:41]*** Cut end [21:40:41]Read from MH i2c: 01 07 00 [21:40:41]MH_I2C_Read... [21:40:41]Read from MH i2c: 01 07 00 32 0D 00 00 00 00 00 FF 0F 54 [21:40:41]process_action close_receipt done [21:40:41]requested_data is exist [21:40:41]produce_requested_data [21:40:41]requested_item fm.sn is exist - process it [21:40:41]wFMCommunicate request_size=4 [21:40:41]MH_SAM_APDU [21:40:41]CAPDU: 80 11 00 00 [21:40:41]Write to MH i2c: E2 08 00 33 0D 80 11 00 00 00 00 00 00 BA [21:40:41]Write i2c OK [21:40:41]MH_I2C_Read... [21:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:41]Read from MH i2c: E2 [21:40:41]MH_I2C_Read... [21:40:41]Read from MH i2c: E2 17 00 [21:40:41]MH_I2C_Read... [21:40:41]Read from MH i2c: E2 17 00 33 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 08 [21:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:40:41]wFMCommunicate OK [21:40:41]requested_item fd.num is exist - process it [21:40:41]SAM_PROTO_GetFieldsCounters [21:40:41]wFMCommunicate request_size=4 [21:40:41]MH_SAM_APDU [21:40:41]CAPDU: 80 13 00 00 [21:40:41]Write to MH i2c: E2 08 00 34 0D 80 13 00 00 00 00 00 00 BD [21:40:41]Write i2c OK [21:40:41]MH_I2C_Read... [21:40:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:42]Read from MH i2c: E2 [21:40:42]MH_I2C_Read... [21:40:42]Read from MH i2c: E2 62 00 [21:40:42]MH_I2C_Read... [21:40:42]Read from MH i2c: E2 62 00 34 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3F C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 BC [21:40: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 3F C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:40:42]wFMCommunicate OK [21:40:42]SAM_PROTO_GetFieldsCounters done [21:40:42]requested_item shift.num is exist - process it [21:40:42]requested_item shift.opened is exist - process it [21:40:42]req_shift_opened [21:40:42]FM_GetShiftState [21:40:42]SAM_PROTO_GetShiftState [21:40:42]wFMCommunicate request_size=4 [21:40:42]MH_SAM_APDU [21:40:42]CAPDU: 80 13 01 00 [21:40:42]Write to MH i2c: E2 08 00 35 0D 80 13 01 00 00 00 00 00 BF [21:40:42]Write i2c OK [21:40:42]MH_I2C_Read... [21:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:42]Read from MH i2c: E2 [21:40:42]MH_I2C_Read... [21:40:42]Read from MH i2c: E2 0E 00 [21:40:42]MH_I2C_Read... [21:40:42]Read from MH i2c: E2 0E 00 35 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 00 [21:40:42]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [21:40:42]wFMCommunicate OK [21:40:42]SAM_PROTO_GetShiftState done [21:40:42]FM_GetShiftState done [21:40:42]req_shift_opened done [21:40:42]requested_item shift.open_date is exist - process it [21:40:42]req_shift_open_date [21:40:42]req_shift_open_date done [21:40:42]produce_requested_data done [21:40:42]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115775,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [21:40:42]process_action_free close_receipt [21:40:42]json_value_free [21:40:42]json_value_free done [21:40:42]process_json_proto returns [21:40:42]Send response to host [21:40:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115775,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [21:40:42]free response buf [21:40:42]execute_script done [21:40:42]execute_script returns [21:40:42]free content buf [21:40:42]Sock 9.Close socket [21:40:42]Sock 9.Thread stoped [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44: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:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:47:59]accept exits with 8 [21:47:59]New connection [21:47:59]New thread 3067010404 created [21:47:59]Thread 3066867044 joined [21:47:59]Waiting for new connection... [21:47:59] Sock 8.Parse request [21:47:59]Sock 8.Check first char [21:47:59]Sock 8.First char is OK [21:47:59]request: POST /json_proto HTTP/1.0 [21:47:59]Method: POST [21:47:59]URL: /json_proto [21:47:59]Method is POST - this is cgi request [21:47:59]url: /json_proto [21:47:59]query_string will be loaded in cgi processing [21:47:59]execute_cgi json_proto POST (null) [21:47:59]execute_cgi path=json_proto method=POST [21:47:59]POST find Content-Length [21:47:59]Host: 172.17.41.136:8080 [21:47:59]Content-Length: 1286 [21:47:59]Content-Type: application/json [21:47:59] [21:47:59]POST finish read [21:47:59]Found Content-Length = 1286 [21:47:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344090", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 3.000, "sum" : 345.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 520.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:59]execute_script... [21:47:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344090", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 3.000, "sum" : 345.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 520.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:59]POST & json_proto [21:47:59]process_json_proto [21:47:59]json parsed OK: [21:47:59]protocol is kg_v1.0 [21:47:59]action value=close_receipt [21:47:59]process_action close_receipt [21:47:59]cmd_close_receipt [21:47:59]MH_GetDate [21:47:59]Write to MH i2c: F0 00 00 36 0D 32 [21:47:59]Write i2c OK [21:47:59]MH_I2C_Read... [21:47:59]Read from MH i2c: F0 [21:47:59]MH_I2C_Read... [21:47:59]Read from MH i2c: F0 09 00 [21:47:59]MH_I2C_Read... [21:47:59]Read from MH i2c: F0 09 00 36 0D 00 11 E2 F1 66 1B D0 5A 64 2E [21:47:59]GetLastDocTimeStamp 1727127639 [21:47:59]current date 1727128081 [21:47:59]FM_GetShiftState [21:47:59]SAM_PROTO_GetShiftState [21:47:59]wFMCommunicate request_size=4 [21:47:59]MH_SAM_APDU [21:47:59]CAPDU: 80 13 01 00 [21:47:59]Write to MH i2c: E2 08 00 37 0D 80 13 01 00 00 00 00 00 C1 [21:47:59]Write i2c OK [21:47:59]MH_I2C_Read... [21:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:59]Read from MH i2c: E2 [21:47:59]MH_I2C_Read... [21:47:59]Read from MH i2c: E2 0E 00 [21:47:59]MH_I2C_Read... [21:47:59]Read from MH i2c: E2 0E 00 37 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 02 [21:47:59]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [21:47:59]wFMCommunicate OK [21:47:59]SAM_PROTO_GetShiftState done [21:47:59]FM_GetShiftState done [21:47:59]opened in 1727052070 [21:47:59]opened+sec_in_day 1727138470 [21:47:59]quantity*price = 9000 [21:47:59]sum+1 = 9001 [21:47:59]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 3.000 * 115.00 = 345.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 520.00 НСП 1% : 4.60 НДС 12% : 55.23 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 259 23.09.2024 21:48 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115776 ФПД: 115543541947385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T214801&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115776&fm=115543541947385&tin=02508201610067®Number=0000000000091831&sum=52000 0 [21:48:00]StoreToDocumentArchive [21:48:00]shift 472 fd 115776 [21:48:00]save to /storage/0472/doc_00115776 [21:48:00]save last doc name /storage/0472/doc_00115776 to /storage/kkm_last_doc_name [21:48:00]save OK [21:48:00]Clear old archive folders... [21:48:00]ProcessDocumentItem done err = 0, tmpTLVsize=538 [21:48:00]tlvbuf is 01195430 [21:48:00]SAM_PROTO_ClearQueue [21:48:00]wFMCommunicate request_size=4 [21:48:00]MH_SAM_APDU [21:48:00]CAPDU: 80 09 00 00 [21:48:00]Write to MH i2c: E2 08 00 44 0D 80 09 00 00 00 00 00 00 C3 [21:48:00]Write i2c OK [21:48:00]MH_I2C_Read... [21:48:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:00]Read from MH i2c: E2 [21:48:00]MH_I2C_Read... [21:48:00]Read from MH i2c: E2 03 00 [21:48:00]MH_I2C_Read... [21:48:00]Read from MH i2c: E2 03 00 44 0D 00 90 00 C5 [21:48:00]RAPDU: 90 00 [21:48:00]wFMCommunicate OK [21:48:00]SAM_PROTO_ClearQueue done [21:48:00]KKMCreateOFDPacket [21:48:00]OFDProtocolAddRootSTLVToBuf [21:48:00]FM_MakeSignedData [21:48:00]FM_MakeSignedData [21:48:00]SAM_PROTO_SignData [21:48:00]wFMCommunicate request_size=4 [21:48:00]MH_SAM_APDU [21:48:00]CAPDU: 80 0D 01 02 [21:48:00]Write to MH i2c: E2 08 00 45 0D 80 0D 01 02 00 00 00 00 CB [21:48:00]Write i2c OK [21:48:00]MH_I2C_Read... [21:48:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:01]Read from MH i2c: E2 [21:48:01]MH_I2C_Read... [21:48:01]Read from MH i2c: E2 03 00 [21:48:01]MH_I2C_Read... [21:48:01]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [21:48:01]RAPDU: 90 00 [21:48:01]wFMCommunicate OK [21:48:01]wFMCommunicate request_size=255 [21:48:01]MH_SAM_APDU [21:48:01]CAPDU: 80 0D 02 02 FA 03 00 1A 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 [21:48:01]Write to MH i2c: E2 02 01 46 0D 80 0D 02 02 FA 00 03 00 1A 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 00 00 20 [21:48:01]Write i2c OK [21:48:01]MH_I2C_Read... [21:48:01]OFD Sender: No OFD packet to send [21:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:01]Read from MH i2c: E2 [21:48:01]MH_I2C_Read... [21:48:01]Read from MH i2c: E2 03 00 [21:48:01]MH_I2C_Read... [21:48:01]Read from MH i2c: E2 03 00 46 0D 00 90 00 C7 [21:48:01]RAPDU: 90 00 [21:48:01]wFMCommunicate OK [21:48:01]wFMCommunicate request_size=255 [21:48:01]MH_SAM_APDU [21:48:01]CAPDU: 80 0D 02 02 FA 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 11 E2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [21:48:01]Write to MH i2c: E2 02 01 47 0D 80 0D 02 02 FA 00 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 11 E2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 50 [21:48:01]Write i2c OK [21:48:01]MH_I2C_Read... [21:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:01]Read from MH i2c: E2 [21:48:01]MH_I2C_Read... [21:48:01]Read from MH i2c: E2 03 00 [21:48:01]MH_I2C_Read... [21:48:01]Read from MH i2c: E2 03 00 47 0D 00 90 00 C8 [21:48:01]RAPDU: 90 00 [21:48:01]wFMCommunicate OK [21:48:01]wFMCommunicate request_size=47 [21:48:01]MH_SAM_APDU [21:48:01]CAPDU: 80 0D 02 02 2A 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 40 C4 01 00 35 04 06 00 69 16 13 C6 1B F9 [21:48:01]Write to MH i2c: E2 32 00 48 0D 80 0D 02 02 2A 00 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 40 C4 01 00 35 04 06 00 69 16 13 C6 1B F9 00 00 F8 [21:48:01]Write i2c OK [21:48:01]MH_I2C_Read... [21:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:01]Read from MH i2c: E2 [21:48:01]MH_I2C_Read... [21:48:01]Read from MH i2c: E2 03 00 [21:48:01]MH_I2C_Read... [21:48:01]Read from MH i2c: E2 03 00 48 0D 00 90 00 C9 [21:48:01]RAPDU: 90 00 [21:48:01]wFMCommunicate OK [21:48:01]wFMCommunicate request_size=4 [21:48:01]MH_SAM_APDU [21:48:01]CAPDU: 80 0D 03 02 [21:48:01]Write to MH i2c: E2 08 00 49 0D 80 0D 03 02 00 00 00 00 D1 [21:48:01]Write i2c OK [21:48:01]MH_I2C_Read... [21:48:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:02]Read from MH i2c: E2 [21:48:02]MH_I2C_Read... [21:48:02]Read from MH i2c: E2 0B 00 [21:48:02]MH_I2C_Read... [21:48:02]Read from MH i2c: E2 0B 00 49 0D 00 0D D7 10 8A F3 EF 40 CE 90 00 40 [21:48:02]RAPDU: 0D D7 10 8A F3 EF 40 CE 90 00 [21:48:02]wFMCommunicate OK [21:48:02]SAM_PROTO_SignData done [21:48:02]FM_MakeSignedData done [21:48:02]CreateOFDProtocolMessage [21:48:02]wFMCommunicate request_size=4 [21:48:02]MH_SAM_APDU [21:48:02]CAPDU: 80 11 00 00 [21:48:02]Write to MH i2c: E2 08 00 4A 0D 80 11 00 00 00 00 00 00 D1 [21:48:02]Write i2c OK [21:48:02]MH_I2C_Read... [21:48:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:02]Read from MH i2c: E2 [21:48:02]MH_I2C_Read... [21:48:02]Read from MH i2c: E2 17 00 [21:48:02]MH_I2C_Read... [21:48:02]Read from MH i2c: E2 17 00 4A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1F [21:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:48:02]wFMCommunicate OK [21:48:02]CreateOFDProtocolMessage done [21:48:02]OFDSenderStorePacket 115776 [21:48:02]StoreOFDPacket docnum=115776 [21:48:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 02 00 00 45 67 26 02 DC 04 5A 03 01 00 03 00 1A 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 11 E2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 40 C4 01 00 35 04 06 00 69 16 13 C6 1B F9 0D D7 10 8A F3 EF 40 CE [21:48:02]CheckFolder [21:48:02]dirname=/storage/ofd_packets [21:48:02]CheckFolder done [21:48:02]ProducePacketName [21:48:02]name=ofd_packets/00115776 [21:48:02]NVStorageSaveData ofd_packets/00115776 [21:48:02]File name is /storage/ofd_packets/00115776 [21:48:02]Write 588 bytes [21:48:02]NVStorageSaveData done [21:48:02]OFDSenderStorePacket done [21:48:02]KKMCreateOFDPacket done [21:48:02]NVStorageSaveData kkm_last_timestamp [21:48:02]File name is /storage/kkm_last_timestamp [21:48:02]Write 4 bytes [21:48:02]NVStorageSaveData done [21:48:02]ExternCall_PrintAddStr [21:48:02]wPrintStart [21:48:02]Write to MH i2c: 01 00 00 4B 0D 58 [21:48:02]Write i2c OK [21:48:02]MH_I2C_Read... [21:48:02]Read from MH i2c: 01 [21:48:02]MH_I2C_Read... [21:48:02]Read from MH i2c: 01 07 00 [21:48:02]MH_I2C_Read... [21:48:02]Read from MH i2c: 01 07 00 4B 0D 00 00 00 00 00 FF 0F 6D [21:48:02]RasterBufferAndPrint [21:48:02]line Счет N : (3)344090 [21:48:02]line ИНН: 02508201610067 [21:48:02]line Контрольно-Кассовый Чек [21:48:02]line ПРОДАЖА [21:48:02]line Товар: 4870002325113 [21:48:02]line Напиток PEPSI газированный ст 0,25л [21:48:02]line 1.000 * 90.00 [21:48:02]line = 90.00 [21:48:02]line НДС 12% НСП 1% [21:48:02]line > о реализуемом товаре [21:48:02]line Товар: 2000036210013 [21:48:02]line Кофе Капучино (GABB TRADE) [21:48:02]line 3.000 * 115.00 [21:48:02]line = 345.00 [21:48:02]line НДС 12% НСП 1% [21:48:02]line > о реализуемом товаре [21:48:02]line Товар: 4660085515163 [21:48:02]line Шок Батончик Сникерс супер 95/80г [21:48:02]line 1.000 * 85.00 [21:48:02]line = 85.00 [21:48:02]line НДС 12% НСП 1% [21:48:02]line > о реализуемом товаре [21:48:02]line ИТОГО: 520.00 [21:48:02]line НСП 1% : 4.60 [21:48:02]line НДС 12% : 55.23 [21:48:02]line Наличными: 520.00 [21:48:02]line Безнал.: 0.00 [21:48:02]line Место: АЗС № 90 "Партнер Нефть" [21:48:02]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [21:48:02]line СНО: Общий режим [21:48:02]line Чек 259 23.09.2024 21:48 [21:48:02]line Смена: 472 ФФД: 1.0 [21:48:02]line ЗНМ: 0300000120 [21:48:02]line РНМ: 0000000000091831 [21:48:02]line Версия ККМ: 001 [21:48:02]line ФМ: 0000000000871830 [21:48:02]line ФД: 115776 [21:48:02]line ФПД: 115543541947385 [21:48:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T214801&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115776&fm=115543541947385&tin=02508201610067®Number=0000000000091831&sum=52000 [21:48:02]OFD Sender: Processing packet 115776 [packets to send 482, broken 481] [21:48:02]ProducePacketName [21:48:02]name=ofd_packets/00115776 [21:48:02]OFD Sender: To server: pG, [21:48:02]CommunicateWithHost lk.salyk.kg:30040 [21:48:02]ConnectInit lk.salyk.kg [21:48:02]line 0 [21:48:02]written 0, free lines is 4095 [21:48:02]Connected sock=10 [21: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 38 33 30 2E 02 00 00 45 67 26 02 DC 04 5A 03 01 00 03 00 1A 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 11 E2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 40 C4 01 00 35 04 06 00 69 16 13 C6 1B F9 0D D7 10 8A F3 EF 40 CE [21:48:02]Write to MH i2c: 01 00 00 80 0D 8D [21:48:02]Write i2c OK [21:48:02]MH_I2C_Read... [21:48:02]Read from MH i2c: 01 [21:48:02]MH_I2C_Read... [21:48:02]Read from MH i2c: 01 07 00 [21:48:03]MH_I2C_Read... [21:48:03]Read from MH i2c: 01 07 00 80 0D 00 00 00 00 00 51 0B F0 [21:48:03]RasterBufferAndPrint [21:48:03]line [21:48:03]line [21:48:03]line [21:48:03]line [21:48:03]line [21:48:03]written 0, free lines is 2900 [21:48:03]MH_Cut [21:48:03]Write to MH i2c: D1 01 00 87 0D 01 66 [21:48:03]Write i2c OK [21:48:03]MH_I2C_Read... [21:48:03]Read from MH i2c: D1 [21:48:03]MH_I2C_Read... [21:48:03]Read from MH i2c: D1 01 00 [21:48:03]MH_I2C_Read... [21:48:03]Read from MH i2c: D1 01 00 87 0D 00 65 [21:48:03]Write to MH i2c: 01 00 00 88 0D 95 [21:48:03]Write i2c OK [21:48:03]MH_I2C_Read... [21: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 38 33 30 4F 00 00 00 33 36 47 00 83 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 38 33 30 10 04 04 00 40 C4 01 00 F4 03 04 00 53 87 F1 66 B6 04 01 00 00 C2 40 5E 7A 99 BE 19 48 [21:48:03]CommunicateWithHost err = 0 [21:48:03]CheckOFDResponse [21:48:03]1017 (14) - 77093643461234 [21:48:03]1041 (16) - 0000000000871830 [21:48:03]1040 (4) - 115776 [21:48:03]1012 (4) - 23.09.2024 15:20 [21:48:03]1206 (1) - 0 [21:48:03]OFD Sender: Remove packet 115776 [21:48:03]ProducePacketName [21:48:03]name=ofd_packets/00115776 [21:48:03]NVStorageDeleteData [21:48:03]OFD Sender: No OFD packet to send [21:48:04]*** Cut start [21:48:04]*** Partial cut [21:48:04]*** CUTSNS_PIN = 1 [21:48:04]*** CUTSNS_PIN = 0 [21:48:05]*** Brake cut motor [21:48:05]Read from MH i2c: 01 [21:48:05]MH_I2C_Read... [21:48:05]*** Stop cut motor [21:48:05]*** Cut end [21:48:05]Read from MH i2c: 01 07 00 [21:48:05]MH_I2C_Read... [21:48:05]Read from MH i2c: 01 07 00 88 0D 00 00 00 00 00 FF 0F AA [21:48:05]process_action close_receipt done [21:48:05]requested_data is exist [21:48:05]produce_requested_data [21:48:05]requested_item fm.sn is exist - process it [21:48:05]wFMCommunicate request_size=4 [21:48:05]MH_SAM_APDU [21:48:05]CAPDU: 80 11 00 00 [21:48:05]Write to MH i2c: E2 08 00 89 0D 80 11 00 00 00 00 00 00 10 [21:48:05]Write i2c OK [21:48:05]MH_I2C_Read... [21:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:05]Read from MH i2c: E2 [21:48:05]MH_I2C_Read... [21:48:05]Read from MH i2c: E2 17 00 [21:48:05]MH_I2C_Read... [21:48:05]Read from MH i2c: E2 17 00 89 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5E [21:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:48:05]wFMCommunicate OK [21:48:05]requested_item fd.num is exist - process it [21:48:05]SAM_PROTO_GetFieldsCounters [21:48:05]wFMCommunicate request_size=4 [21:48:05]MH_SAM_APDU [21:48:05]CAPDU: 80 13 00 00 [21:48:05]Write to MH i2c: E2 08 00 8A 0D 80 13 00 00 00 00 00 00 13 [21:48:05]Write i2c OK [21:48:05]MH_I2C_Read... [21:48:05]Read from MH i2c: E2 [21:48:05]MH_I2C_Read... [21:48:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:05]Read from MH i2c: E2 62 00 [21:48:05]MH_I2C_Read... [21:48:05]Read from MH i2c: E2 62 00 8A 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 40 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [21:48:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 40 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:48:05]wFMCommunicate OK [21:48:05]SAM_PROTO_GetFieldsCounters done [21:48:05]requested_item shift.num is exist - process it [21:48:05]requested_item shift.opened is exist - process it [21:48:05]req_shift_opened [21:48:05]FM_GetShiftState [21:48:05]SAM_PROTO_GetShiftState [21:48:05]wFMCommunicate request_size=4 [21:48:05]MH_SAM_APDU [21:48:05]CAPDU: 80 13 01 00 [21:48:05]Write to MH i2c: E2 08 00 8B 0D 80 13 01 00 00 00 00 00 15 [21:48:05]Write i2c OK [21:48:05]MH_I2C_Read... [21:48:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:05]Read from MH i2c: E2 [21:48:05]MH_I2C_Read... [21:48:05]Read from MH i2c: E2 0E 00 [21:48:05]MH_I2C_Read... [21:48:05]Read from MH i2c: E2 0E 00 8B 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 56 [21:48:05]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [21:48:05]wFMCommunicate OK [21:48:05]SAM_PROTO_GetShiftState done [21:48:05]FM_GetShiftState done [21:48:05]req_shift_opened done [21:48:05]requested_item shift.open_date is exist - process it [21:48:05]req_shift_open_date [21:48:05]req_shift_open_date done [21:48:05]produce_requested_data done [21:48:05]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115776,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [21:48:05]process_action_free close_receipt [21:48:05]json_value_free [21:48:05]json_value_free done [21:48:05]process_json_proto returns [21:48:05]Send response to host [21:48:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115776,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [21:48:05]free response buf [21:48:05]execute_script done [21:48:05]execute_script returns [21:48:05]free content buf [21:48:05]Sock 8.Close socket [21:48:05]Sock 8.Thread stoped [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:03]accept exits with 9 [21:57:03]New connection [21:57:03]New thread 3066867044 created [21:57:03]Thread 3067010404 joined [21:57:03]Waiting for new connection... [21:57:03] Sock 9.Parse request [21:57:03]Sock 9.Check first char [21:57:03]Sock 9.First char is OK [21:57:03]request: POST /json_proto HTTP/1.0 [21:57:03]Method: POST [21:57:03]URL: /json_proto [21:57:03]Method is POST - this is cgi request [21:57:03]url: /json_proto [21:57:03]query_string will be loaded in cgi processing [21:57:03]execute_cgi json_proto POST (null) [21:57:03]execute_cgi path=json_proto method=POST [21:57:03]POST find Content-Length [21:57:03]Host: 172.17.41.136:8080 [21:57:03]Content-Length: 684 [21:57:03]Content-Type: application/json [21:57:03] [21:57:03]POST finish read [21:57:03]Found Content-Length = 684 [21:57:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24618065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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" ] } } [21:57:03]execute_script... [21: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)24618065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "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" ] } } [21:57:03]POST & json_proto [21:57:03]process_json_proto [21:57:03]json parsed OK: [21:57:03]protocol is kg_v1.0 [21:57:03]action value=close_receipt [21:57:03]process_action close_receipt [21:57:03]cmd_close_receipt [21:57:03]MH_GetDate [21:57:03]Write to MH i2c: F0 00 00 8C 0D 88 [21:57:03]Write i2c OK [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: F0 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: F0 09 00 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: F0 09 00 8C 0D 00 31 E4 F1 66 1B D0 5A 64 A6 [21:57:03]GetLastDocTimeStamp 1727128081 [21:57:03]current date 1727128625 [21:57:03]FM_GetShiftState [21:57:03]SAM_PROTO_GetShiftState [21:57:03]wFMCommunicate request_size=4 [21:57:03]MH_SAM_APDU [21:57:03]CAPDU: 80 13 01 00 [21:57:03]Write to MH i2c: E2 08 00 8D 0D 80 13 01 00 00 00 00 00 17 [21:57:03]Write i2c OK [21:57:03]MH_I2C_Read... [21:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:03]Read from MH i2c: E2 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: E2 0E 00 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: E2 0E 00 8D 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 58 [21:57:03]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [21:57:03]wFMCommunicate OK [21:57:03]SAM_PROTO_GetShiftState done [21:57:03]FM_GetShiftState done [21:57:03]opened in 1727052070 [21:57:03]opened+sec_in_day 1727138470 [21:57:03]quantity*price = 200043 [21:57:03]sum+1 = 200044 [21:57:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 260 23.09.2024 21:57 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115777 ФПД: 92643018540047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T215705&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115777&fm=92643018540047&tin=02508201610067®Number=0000000000091831&sum=200000 [21:57:05]StoreToDocumentArchive [21:57:05]shift 472 fd 115777 [21:57:05]save to /storage/0472/doc_00115777 [21:57:05]save last doc name /storage/0472/doc_00115777 to /storage/kkm_last_doc_name [21:57:05]save OK [21:57:05]Clear old archive folders... [21:57:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:57:05]tlvbuf is 01195070 [21:57:05]SAM_PROTO_ClearQueue [21:57:05]wFMCommunicate request_size=4 [21:57:05]MH_SAM_APDU [21:57:05]CAPDU: 80 09 00 00 [21:57:05]Write to MH i2c: E2 08 00 9A 0D 80 09 00 00 00 00 00 00 19 [21:57:05]Write i2c OK [21:57:05]MH_I2C_Read... [21:57:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:05]Read from MH i2c: E2 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 03 00 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 03 00 9A 0D 00 90 00 1B [21:57:05]RAPDU: 90 00 [21:57:05]wFMCommunicate OK [21:57:05]SAM_PROTO_ClearQueue done [21:57:05]KKMCreateOFDPacket [21:57:05]OFDProtocolAddRootSTLVToBuf [21:57:05]FM_MakeSignedData [21:57:05]FM_MakeSignedData [21:57:05]SAM_PROTO_SignData [21:57:05]wFMCommunicate request_size=4 [21:57:05]MH_SAM_APDU [21:57:05]CAPDU: 80 0D 01 02 [21:57:05]Write to MH i2c: E2 08 00 9B 0D 80 0D 01 02 00 00 00 00 21 [21:57:05]Write i2c OK [21:57:05]MH_I2C_Read... [21:57:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:05]Read from MH i2c: E2 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 03 00 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 03 00 9B 0D 00 90 00 1C [21:57:05]RAPDU: 90 00 [21:57:05]wFMCommunicate OK [21:57:05]wFMCommunicate request_size=255 [21:57:05]MH_SAM_APDU [21:57:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 04 01 00 00 F4 03 04 00 31 E4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 41 C4 01 00 35 04 06 00 54 [21:57:05]Write to MH i2c: E2 02 01 9C 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 35 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 04 01 00 00 F4 03 04 00 31 E4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 41 C4 01 00 35 04 06 00 54 00 00 F4 [21:57:05]Write i2c OK [21:57:05]MH_I2C_Read... [21:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:05]Read from MH i2c: E2 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 03 00 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 03 00 9C 0D 00 90 00 1D [21:57:05]RAPDU: 90 00 [21:57:05]wFMCommunicate OK [21:57:05]wFMCommunicate request_size=10 [21:57:05]MH_SAM_APDU [21:57:05]CAPDU: 80 0D 02 02 05 42 22 36 04 0F [21:57:05]Write to MH i2c: E2 0D 00 9D 0D 80 0D 02 02 05 00 42 22 36 04 0F 00 00 DB [21:57:05]Write i2c OK [21:57:05]MH_I2C_Read... [21:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:05]Read from MH i2c: E2 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 03 00 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 03 00 9D 0D 00 90 00 1E [21:57:05]RAPDU: 90 00 [21:57:05]wFMCommunicate OK [21:57:05]wFMCommunicate request_size=4 [21:57:05]MH_SAM_APDU [21:57:05]CAPDU: 80 0D 03 02 [21:57:05]Write to MH i2c: E2 08 00 9E 0D 80 0D 03 02 00 00 00 00 26 [21:57:05]Write i2c OK [21:57:05]MH_I2C_Read... [21:57:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:05]Read from MH i2c: E2 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 0B 00 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 0B 00 9E 0D 00 6E AB CC 6E 50 23 14 ED 90 00 EE [21:57:05]RAPDU: 6E AB CC 6E 50 23 14 ED 90 00 [21:57:05]wFMCommunicate OK [21:57:05]SAM_PROTO_SignData done [21:57:05]FM_MakeSignedData done [21:57:05]CreateOFDProtocolMessage [21:57:05]wFMCommunicate request_size=4 [21:57:05]MH_SAM_APDU [21:57:05]CAPDU: 80 11 00 00 [21:57:05]Write to MH i2c: E2 08 00 9F 0D 80 11 00 00 00 00 00 00 26 [21:57:05]Write i2c OK [21:57:05]MH_I2C_Read... [21:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:05]Read from MH i2c: E2 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 17 00 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 17 00 9F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 74 [21:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:57:05]wFMCommunicate OK [21:57:05]CreateOFDProtocolMessage done [21:57:05]OFDSenderStorePacket 115777 [21:57:05]StoreOFDPacket docnum=115777 [21:57:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 5C 03 07 01 3D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 04 01 00 00 F4 03 04 00 31 E4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 41 C4 01 00 35 04 06 00 54 42 22 36 04 0F 6E AB CC 6E 50 23 14 ED [21:57:05]CheckFolder [21:57:05]dirname=/storage/ofd_packets [21:57:05]CheckFolder done [21:57:05]ProducePacketName [21:57:05]name=ofd_packets/00115777 [21:57:05]NVStorageSaveData ofd_packets/00115777 [21:57:05]File name is /storage/ofd_packets/00115777 [21:57:05]Write 301 bytes [21:57:05]NVStorageSaveData done [21:57:05]OFDSenderStorePacket done [21:57:05]KKMCreateOFDPacket done [21:57:05]NVStorageSaveData kkm_last_timestamp [21:57:05]File name is /storage/kkm_last_timestamp [21:57:05]Write 4 bytes [21:57:05]NVStorageSaveData done [21:57:05]ExternCall_PrintAddStr [21:57:05]wPrintStart [21:57:05]Write to MH i2c: 01 00 00 A0 0D AD [21:57:05]Write i2c OK [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: 01 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: 01 07 00 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: 01 07 00 A0 0D 00 00 00 00 00 FF 0F C2 [21:57:05]RasterBufferAndPrint [21:57:05]line Счет N : (1)24618065 [21:57:05]line ИНН: 02508201610067 [21:57:05]line Контрольно-Кассовый Чек [21:57:05]line ПРОДАЖА [21:57:05]line ТРК (МРК, ГНК) : 42 [21:57:05]line Товар: 2710124500 [21:57:05]line Аи-95-К-5 [21:57:05]line 26.960 * 74.20 [21:57:05]line = 2000.43 [21:57:05]line НДС 12% НСП 1% [21:57:05]line > о реализуемом товаре [21:57:05]line ОКРУГЛЕНИЕ: -0.43 [21:57:05]line ИТОГО: 2000.00 [21:57:05]line Внесено: 2000.00 [21:57:05]line СДАЧА: 0.00 [21:57:05]line НСП 1% : 17.70 [21:57:05]line НДС 12% : 212.43 [21:57:05]line Наличными: 2000.00 [21:57:05]line Безнал.: 0.00 [21:57:05]line Место: АЗС № 90 "Партнер Нефть" [21:57:05]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [21:57:05]line СНО: Общий режим [21:57:05]line Чек 260 23.09.2024 21:57 [21:57:05]line Смена: 472 ФФД: 1.0 [21:57:05]line ЗНМ: 0300000120 [21:57:05]line РНМ: 0000000000091831 [21:57:05]line Версия ККМ: 001 [21:57:05]line ФМ: 0000000000871830 [21:57:05]line ФД: 115777 [21:57:05]line ФПД: 92643018540047 [21:57:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T215705&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115777&fm=92643018540047&tin=02508201610067®Number=0000000000091831&sum=200000 [21:57:05]written 0, free lines is 4095 [21:57:05]OFD Sender: Processing packet 115777 [packets to send 482, broken 481] [21:57:05]ProducePacketName [21:57:05]name=ofd_packets/00115777 [21:57:05]OFD Sender: To server: pG, [21:57:05]CommunicateWithHost lk.salyk.kg:30040 [21:57:05]ConnectInit lk.salyk.kg [21:57:05]Connected sock=10 [21: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 38 33 30 0F 01 00 00 5C 03 07 01 3D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 04 01 00 00 F4 03 04 00 31 E4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 41 C4 01 00 35 04 06 00 54 42 22 36 04 0F 6E AB CC 6E 50 23 14 ED [21:57:06]Write to MH i2c: 01 00 00 CA 0D D7 [21:57:06]Write i2c OK [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: 01 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: 01 07 00 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: 01 07 00 CA 0D 00 00 00 00 00 50 0C 3A [21:57:06]RasterBufferAndPrint [21:57:06]line [21:57:06]line [21:57:06]line [21:57:06]line [21:57:06]line [21:57:06]written 0, free lines is 3158 [21:57:06]MH_Cut [21:57:06]Write to MH i2c: D1 01 00 D1 0D 01 B0 [21:57:06]Write i2c OK [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: D1 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: D1 01 00 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: D1 01 00 D1 0D 00 AF [21:57:06]Write to MH i2c: 01 00 00 D2 0D DF [21:57:06]Write i2c OK [21:57:06]MH_I2C_Read... [21: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 38 33 30 4F 00 00 00 D4 8B 47 00 38 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 38 33 30 10 04 04 00 41 C4 01 00 F4 03 04 00 73 89 F1 66 B6 04 01 00 00 E7 33 44 93 7E 8B B7 3C [21:57:06]CommunicateWithHost err = 0 [21:57:06]CheckOFDResponse [21:57:06]1017 (14) - 77093643461234 [21:57:06]1041 (16) - 0000000000871830 [21:57:06]1040 (4) - 115777 [21:57:06]1012 (4) - 23.09.2024 15:29 [21:57:06]1206 (1) - 0 [21:57:06]OFD Sender: Remove packet 115777 [21:57:06]ProducePacketName [21:57:06]name=ofd_packets/00115777 [21:57:06]NVStorageDeleteData [21:57:06]OFD Sender: No OFD packet to send [21:57:07]*** Cut start [21:57:07]*** Partial cut [21:57:07]*** CUTSNS_PIN = 1 [21:57:07]*** CUTSNS_PIN = 0 [21:57:07]*** Brake cut motor [21:57:08]Read from MH i2c: 01 [21:57:08]MH_I2C_Read... [21:57:08]*** Stop cut motor [21:57:08]*** Cut end [21:57:08]Read from MH i2c: 01 07 00 [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: 01 07 00 D2 0D 00 00 00 00 00 FF 0F F4 [21:57:08]process_action close_receipt done [21:57:08]requested_data is exist [21:57:08]produce_requested_data [21:57:08]requested_item fm.sn is exist - process it [21:57:08]wFMCommunicate request_size=4 [21:57:08]MH_SAM_APDU [21:57:08]CAPDU: 80 11 00 00 [21:57:08]Write to MH i2c: E2 08 00 D3 0D 80 11 00 00 00 00 00 00 5A [21:57:08]Write i2c OK [21:57:08]MH_I2C_Read... [21:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:08]Read from MH i2c: E2 [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: E2 17 00 [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: E2 17 00 D3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A8 [21:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [21:57:08]wFMCommunicate OK [21:57:08]requested_item fd.num is exist - process it [21:57:08]SAM_PROTO_GetFieldsCounters [21:57:08]wFMCommunicate request_size=4 [21:57:08]MH_SAM_APDU [21:57:08]CAPDU: 80 13 00 00 [21:57:08]Write to MH i2c: E2 08 00 D4 0D 80 13 00 00 00 00 00 00 5D [21:57:08]Write i2c OK [21:57:08]MH_I2C_Read... [21:57:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:08]Read from MH i2c: E2 [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: E2 62 00 [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: E2 62 00 D4 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 41 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [21:57:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 41 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:08]wFMCommunicate OK [21:57:08]SAM_PROTO_GetFieldsCounters done [21:57:08]requested_item shift.num is exist - process it [21:57:08]requested_item shift.opened is exist - process it [21:57:08]req_shift_opened [21:57:08]FM_GetShiftState [21:57:08]SAM_PROTO_GetShiftState [21:57:08]wFMCommunicate request_size=4 [21:57:08]MH_SAM_APDU [21:57:08]CAPDU: 80 13 01 00 [21:57:08]Write to MH i2c: E2 08 00 D5 0D 80 13 01 00 00 00 00 00 5F [21:57:08]Write i2c OK [21:57:08]MH_I2C_Read... [21:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:08]Read from MH i2c: E2 [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: E2 0E 00 [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: E2 0E 00 D5 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A0 [21:57:08]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [21:57:08]wFMCommunicate OK [21:57:08]SAM_PROTO_GetShiftState done [21:57:08]FM_GetShiftState done [21:57:08]req_shift_opened done [21:57:08]requested_item shift.open_date is exist - process it [21:57:08]req_shift_open_date [21:57:08]req_shift_open_date done [21:57:08]produce_requested_data done [21:57:08]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115777,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [21:57:08]process_action_free close_receipt [21:57:08]json_value_free [21:57:08]json_value_free done [21:57:08]process_json_proto returns [21:57:08]Send response to host [21:57:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115777,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [21:57:08]free response buf [21:57:08]execute_script done [21:57:08]execute_script returns [21:57:08]free content buf [21:57:08]Sock 9.Close socket [21:57:08]Sock 9.Thread stoped [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:48]accept exits with 8 [22:01:48]New connection [22:01:48]New thread 3067010404 created [22:01:48]Thread 3066867044 joined [22:01:48]Waiting for new connection... [22:01:48] Sock 8.Parse request [22:01:48]Sock 8.Check first char [22:01:48]Sock 8.First char is OK [22:01:48]request: POST /json_proto HTTP/1.0 [22:01:48]Method: POST [22:01:48]URL: /json_proto [22:01:48]Method is POST - this is cgi request [22:01:48]url: /json_proto [22:01:48]query_string will be loaded in cgi processing [22:01:48]execute_cgi json_proto POST (null) [22:01:48]execute_cgi path=json_proto method=POST [22:01:48]POST find Content-Length [22:01:48]Host: 172.17.41.136:8080 [22:01:48]Content-Length: 753 [22:01:48]Content-Type: application/json [22:01:48] [22:01:48]POST finish read [22:01:48]Found Content-Length = 753 [22:01:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24618067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 55", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116687", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:48]execute_script... [22:01:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24618067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 55", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116687", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:48]POST & json_proto [22:01:48]process_json_proto [22:01:48]json parsed OK: [22:01:48]protocol is kg_v1.0 [22:01:48]action value=close_receipt [22:01:48]process_action close_receipt [22:01:48]cmd_close_receipt [22:01:48]MH_GetDate [22:01:48]Write to MH i2c: F0 00 00 D6 0D D2 [22:01:48]Write i2c OK [22:01:48]MH_I2C_Read... [22:01:48]Read from MH i2c: F0 [22:01:48]MH_I2C_Read... [22:01:48]Read from MH i2c: F0 09 00 [22:01:48]MH_I2C_Read... [22:01:48]Read from MH i2c: F0 09 00 D6 0D 00 4E E5 F1 66 1B D0 5A 64 0E [22:01:48]GetLastDocTimeStamp 1727128625 [22:01:48]current date 1727128910 [22:01:48]FM_GetShiftState [22:01:48]SAM_PROTO_GetShiftState [22:01:48]wFMCommunicate request_size=4 [22:01:48]MH_SAM_APDU [22:01:48]CAPDU: 80 13 01 00 [22:01:48]Write to MH i2c: E2 08 00 D7 0D 80 13 01 00 00 00 00 00 61 [22:01:48]Write i2c OK [22:01:48]MH_I2C_Read... [22:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:48]Read from MH i2c: E2 [22:01:48]MH_I2C_Read... [22:01:48]Read from MH i2c: E2 0E 00 [22:01:48]MH_I2C_Read... [22:01:48]Read from MH i2c: E2 0E 00 D7 0D 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A2 [22:01:48]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:01:48]wFMCommunicate OK [22:01:48]SAM_PROTO_GetShiftState done [22:01:48]FM_GetShiftState done [22:01:48]opened in 1727052070 [22:01:48]opened+sec_in_day 1727138470 [22:01:48]quantity*price = 0 [22:01:48]sum+1 = 1 [22:01:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 261 23.09.2024 22:01 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116687 ФМ: 0000000000871830 ФД: 115778 ФПД: 73575906535422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T220150&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115778&fm=73575906535422&tin=02508201610067®Number=0000000000091831&sum=0 [22:01:49]StoreToDocumentArchive [22:01:49]shift 472 fd 115778 [22:01:49]save to /storage/0472/doc_00115778 [22:01:49]save last doc name /storage/0472/doc_00115778 to /storage/kkm_last_doc_name [22:01:49]save OK [22:01:49]Clear old archive folders... [22:01:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:01:49]tlvbuf is 01121160 [22:01:49]SAM_PROTO_ClearQueue [22:01:49]wFMCommunicate request_size=4 [22:01:49]MH_SAM_APDU [22:01:49]CAPDU: 80 09 00 00 [22:01:49]Write to MH i2c: E2 08 00 E4 0D 80 09 00 00 00 00 00 00 63 [22:01:49]Write i2c OK [22:01:49]MH_I2C_Read... [22:01:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:49]Read from MH i2c: E2 [22:01:49]MH_I2C_Read... [22:01:49]Read from MH i2c: E2 03 00 [22:01:49]MH_I2C_Read... [22:01:49]Read from MH i2c: E2 03 00 E4 0D 00 90 00 65 [22:01:49]RAPDU: 90 00 [22:01:49]wFMCommunicate OK [22:01:49]SAM_PROTO_ClearQueue done [22:01:49]KKMCreateOFDPacket [22:01:49]OFDProtocolAddRootSTLVToBuf [22:01:49]FM_MakeSignedData [22:01:49]FM_MakeSignedData [22:01:49]SAM_PROTO_SignData [22:01:49]wFMCommunicate request_size=4 [22:01:49]MH_SAM_APDU [22:01:49]CAPDU: 80 0D 01 02 [22:01:49]Write to MH i2c: E2 08 00 E5 0D 80 0D 01 02 00 00 00 00 6B [22:01:49]Write i2c OK [22:01:49]MH_I2C_Read... [22:01:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:49]Read from MH i2c: E2 [22:01:49]MH_I2C_Read... [22:01:49]Read from MH i2c: E2 03 00 [22:01:49]MH_I2C_Read... [22:01:49]Read from MH i2c: E2 03 00 E5 0D 00 90 00 66 [22:01:49]RAPDU: 90 00 [22:01:49]wFMCommunicate OK [22:01:49]wFMCommunicate request_size=255 [22:01:49]MH_SAM_APDU [22:01:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 05 01 00 00 F4 03 04 00 4E E5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 42 C4 01 00 35 04 06 00 42 EA B9 C5 [22:01:49]Write to MH i2c: E2 02 01 E6 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 4E E5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 42 C4 01 00 35 04 06 00 42 EA B9 C5 00 00 48 [22:01:49]Write i2c OK [22:01:49]MH_I2C_Read... [22:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:49]Read from MH i2c: E2 [22:01:49]MH_I2C_Read... [22:01:49]Read from MH i2c: E2 03 00 [22:01:49]MH_I2C_Read... [22:01:49]Read from MH i2c: E2 03 00 E6 0D 00 90 00 67 [22:01:49]RAPDU: 90 00 [22:01:49]wFMCommunicate OK [22:01:49]wFMCommunicate request_size=7 [22:01:49]MH_SAM_APDU [22:01:49]CAPDU: 80 0D 02 02 02 E7 FE [22:01:49]Write to MH i2c: E2 0A 00 E7 0D 80 0D 02 02 02 00 E7 FE 00 00 57 [22:01:49]Write i2c OK [22:01:49]MH_I2C_Read... [22:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:49]Read from MH i2c: E2 [22:01:49]MH_I2C_Read... [22:01:49]Read from MH i2c: E2 03 00 [22:01:49]MH_I2C_Read... [22:01:49]Read from MH i2c: E2 03 00 E7 0D 00 90 00 68 [22:01:49]RAPDU: 90 00 [22:01:49]wFMCommunicate OK [22:01:49]wFMCommunicate request_size=4 [22:01:49]MH_SAM_APDU [22:01:49]CAPDU: 80 0D 03 02 [22:01:49]Write to MH i2c: E2 08 00 E8 0D 80 0D 03 02 00 00 00 00 70 [22:01:49]Write i2c OK [22:01:49]MH_I2C_Read... [22:01:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:50]Read from MH i2c: E2 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: E2 0B 00 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: E2 0B 00 E8 0D 00 5F 47 C8 A1 B7 10 BB 87 90 00 89 [22:01:50]RAPDU: 5F 47 C8 A1 B7 10 BB 87 90 00 [22:01:50]wFMCommunicate OK [22:01:50]SAM_PROTO_SignData done [22:01:50]FM_MakeSignedData done [22:01:50]CreateOFDProtocolMessage [22:01:50]wFMCommunicate request_size=4 [22:01:50]MH_SAM_APDU [22:01:50]CAPDU: 80 11 00 00 [22:01:50]Write to MH i2c: E2 08 00 E9 0D 80 11 00 00 00 00 00 00 70 [22:01:50]Write i2c OK [22:01:50]MH_I2C_Read... [22:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:50]Read from MH i2c: E2 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: E2 17 00 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: E2 17 00 E9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BE [22:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:01:50]wFMCommunicate OK [22:01:50]CreateOFDProtocolMessage done [22:01:50]OFDSenderStorePacket 115778 [22:01:50]StoreOFDPacket docnum=115778 [22:01:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 AC 3C 04 01 98 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 4E E5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 42 C4 01 00 35 04 06 00 42 EA B9 C5 E7 FE 5F 47 C8 A1 B7 10 BB 87 [22:01:50]CheckFolder [22:01:50]dirname=/storage/ofd_packets [22:01:50]CheckFolder done [22:01:50]ProducePacketName [22:01:50]name=ofd_packets/00115778 [22:01:50]NVStorageSaveData ofd_packets/00115778 [22:01:50]File name is /storage/ofd_packets/00115778 [22:01:50]Write 298 bytes [22:01:50]NVStorageSaveData done [22:01:50]OFDSenderStorePacket done [22:01:50]KKMCreateOFDPacket done [22:01:50]NVStorageSaveData kkm_last_timestamp [22:01:50]File name is /storage/kkm_last_timestamp [22:01:50]Write 4 bytes [22:01:50]NVStorageSaveData done [22:01:50]ExternCall_PrintAddStr [22:01:50]wPrintStart [22:01:50]Write to MH i2c: 01 00 00 EA 0D F7 [22:01:50]Write i2c OK [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: 01 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: 01 07 00 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: 01 07 00 EA 0D 00 00 00 00 00 FF 0F 0C [22:01:50]RasterBufferAndPrint [22:01:50]line Счет N : (1)24618067 [22:01:50]line ИНН: 02508201610067 [22:01:50]line Контрольно-Кассовый Чек [22:01:50]line ПРОДАЖА [22:01:50]line ТРК (МРК, ГНК) : 55 [22:01:50]line Товар: 2710194210 [22:01:50]line ДТ-К-5 [22:01:50]line 20.000 * 0.00 [22:01:50]line = 0.00 [22:01:50]line НДС 12% НСП 1% [22:01:50]line > о реализуемом товаре [22:01:50]line ИТОГО: 0.00 [22:01:50]line НСП 1% : 0.00 [22:01:50]line НДС 12% : 0.00 [22:01:50]line Наличными: 0.00 [22:01:50]line Безнал.: 0.00 [22:01:50]line Место: АЗС № 90 "Партнер Нефть" [22:01:50]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:01:50]line СНО: Общий режим [22:01:50]line Чек 261 23.09.2024 22:01 [22:01:50]line Смена: 472 ФФД: 1.0 [22:01:50]line ЗНМ: 0300000120 [22:01:50]line РНМ: 0000000000091831 [22:01:50]line Версия ККМ: 001 [22:01:50]line Талоны: ТК ГПНА Online [22:01:50]line 30116687 [22:01:50]line ФМ: 0000000000871830 [22:01:50]line ФД: 115778 [22:01:50]line ФПД: 73575906535422 [22:01:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T220150&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115778&fm=73575906535422&tin=02508201610067®Number=0000000000091831&sum=0 [22:01:50]written 0, free lines is 4095 [22:01:50]OFD Sender: Processing packet 115778 [packets to send 482, broken 481] [22:01:50]ProducePacketName [22:01:50]name=ofd_packets/00115778 [22:01:50]OFD Sender: To server: pG, [22:01:50]CommunicateWithHost lk.salyk.kg:30040 [22:01:50]ConnectInit lk.salyk.kg [22:01:50]Connected sock=10 [22:01:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 AC 3C 04 01 98 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 4E E5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 42 C4 01 00 35 04 06 00 42 EA B9 C5 E7 FE 5F 47 C8 A1 B7 10 BB 87 [22:01:50]Write to MH i2c: 01 00 00 13 0E 21 [22:01:50]Write i2c OK [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: 01 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: 01 07 00 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: 01 07 00 13 0E 00 00 00 00 00 55 0C 89 [22:01:50]RasterBufferAndPrint [22:01:50]line [22:01:50]line [22:01:50]line [22:01:50]line [22:01:50]line [22:01:50]written 0, free lines is 3162 [22:01:50]MH_Cut [22:01:50]Write to MH i2c: D1 01 00 1A 0E 01 FA [22:01:50]Write i2c OK [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: D1 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: D1 01 00 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: D1 01 00 1A 0E 00 F9 [22:01:50]Write to MH i2c: 01 00 00 1B 0E 29 [22:01:50]Write i2c OK [22:01:50]MH_I2C_Read... [22:01:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 33 7E 47 00 22 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 42 C4 01 00 F4 03 04 00 8F 8A F1 66 B6 04 01 00 00 1F 10 60 07 51 11 3C 1E [22:01:50]CommunicateWithHost err = 0 [22:01:50]CheckOFDResponse [22:01:50]1017 (14) - 77093643461234 [22:01:50]1041 (16) - 0000000000871830 [22:01:50]1040 (4) - 115778 [22:01:50]1012 (4) - 23.09.2024 15:34 [22:01:50]1206 (1) - 0 [22:01:50]OFD Sender: Remove packet 115778 [22:01:50]ProducePacketName [22:01:50]name=ofd_packets/00115778 [22:01:50]NVStorageDeleteData [22:01:51]OFD Sender: No OFD packet to send [22:01:51]*** Cut start [22:01:51]*** Partial cut [22:01:51]*** CUTSNS_PIN = 1 [22:01:51]*** CUTSNS_PIN = 0 [22:01:52]*** Brake cut motor [22:01:52]Read from MH i2c: 01 [22:01:52]MH_I2C_Read... [22:01:52]*** Stop cut motor [22:01:52]*** Cut end [22:01:52]Read from MH i2c: 01 07 00 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: 01 07 00 1B 0E 00 00 00 00 00 FF 0F 3E [22:01:52]process_action close_receipt done [22:01:52]requested_data is exist [22:01:52]produce_requested_data [22:01:52]requested_item fm.sn is exist - process it [22:01:52]wFMCommunicate request_size=4 [22:01:52]MH_SAM_APDU [22:01:52]CAPDU: 80 11 00 00 [22:01:52]Write to MH i2c: E2 08 00 1C 0E 80 11 00 00 00 00 00 00 A4 [22:01:52]Write i2c OK [22:01:52]MH_I2C_Read... [22:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:52]Read from MH i2c: E2 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 17 00 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 17 00 1C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F2 [22:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:01:52]wFMCommunicate OK [22:01:52]requested_item fd.num is exist - process it [22:01:52]SAM_PROTO_GetFieldsCounters [22:01:52]wFMCommunicate request_size=4 [22:01:52]MH_SAM_APDU [22:01:52]CAPDU: 80 13 00 00 [22:01:52]Write to MH i2c: E2 08 00 1D 0E 80 13 00 00 00 00 00 00 A7 [22:01:52]Write i2c OK [22:01:52]MH_I2C_Read... [22:01:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:52]Read from MH i2c: E2 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 62 00 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 62 00 1D 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 42 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [22:01:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 42 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:52]wFMCommunicate OK [22:01:52]SAM_PROTO_GetFieldsCounters done [22:01:52]requested_item shift.num is exist - process it [22:01:52]requested_item shift.opened is exist - process it [22:01:52]req_shift_opened [22:01:52]FM_GetShiftState [22:01:52]SAM_PROTO_GetShiftState [22:01:52]wFMCommunicate request_size=4 [22:01:52]MH_SAM_APDU [22:01:52]CAPDU: 80 13 01 00 [22:01:52]Write to MH i2c: E2 08 00 1E 0E 80 13 01 00 00 00 00 00 A9 [22:01:52]Write i2c OK [22:01:52]MH_I2C_Read... [22:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:52]Read from MH i2c: E2 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 0E 00 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 0E 00 1E 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 EA [22:01:52]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:01:52]wFMCommunicate OK [22:01:52]SAM_PROTO_GetShiftState done [22:01:52]FM_GetShiftState done [22:01:52]req_shift_opened done [22:01:52]requested_item shift.open_date is exist - process it [22:01:52]req_shift_open_date [22:01:52]req_shift_open_date done [22:01:52]produce_requested_data done [22:01:52]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115778,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [22:01:52]process_action_free close_receipt [22:01:52]json_value_free [22:01:52]json_value_free done [22:01:52]process_json_proto returns [22:01:52]Send response to host [22:01:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115778,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [22:01:52]free response buf [22:01:52]execute_script done [22:01:52]execute_script returns [22:01:52]free content buf [22:01:52]Sock 8.Close socket [22:01:52]Sock 8.Thread stoped [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:10]accept exits with 9 [22:02:10]New connection [22:02:10]New thread 3066867044 created [22:02:10]Thread 3067010404 joined [22:02:10]Waiting for new connection... [22:02:10] Sock 9.Parse request [22:02:10]Sock 9.Check first char [22:02:10]Sock 9.First char is OK [22:02:10]request: POST /json_proto HTTP/1.0 [22:02:10]Method: POST [22:02:10]URL: /json_proto [22:02:10]Method is POST - this is cgi request [22:02:10]url: /json_proto [22:02:10]query_string will be loaded in cgi processing [22:02:10]execute_cgi json_proto POST (null) [22:02:10]execute_cgi path=json_proto method=POST [22:02:10]POST find Content-Length [22:02:10]Host: 172.17.41.136:8080 [22:02:10]Content-Length: 1189 [22:02:10]Content-Type: application/json [22:02:10] [22:02:10]POST finish read [22:02:10]Found Content-Length = 1189 [22:02:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344092", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 439.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:10]execute_script... [22:02:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344092", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 439.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:10]POST & json_proto [22:02:10]process_json_proto [22:02:10]json parsed OK: [22:02:10]protocol is kg_v1.0 [22:02:10]action value=close_receipt [22:02:10]process_action close_receipt [22:02:10]cmd_close_receipt [22:02:10]MH_GetDate [22:02:10]Write to MH i2c: F0 00 00 1F 0E 1C [22:02:10]Write i2c OK [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: F0 [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: F0 09 00 [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: F0 09 00 1F 0E 00 64 E5 F1 66 1B D0 5A 64 6E [22:02:10]GetLastDocTimeStamp 1727128910 [22:02:10]current date 1727128932 [22:02:10]FM_GetShiftState [22:02:10]SAM_PROTO_GetShiftState [22:02:10]wFMCommunicate request_size=4 [22:02:10]MH_SAM_APDU [22:02:10]CAPDU: 80 13 01 00 [22:02:10]Write to MH i2c: E2 08 00 20 0E 80 13 01 00 00 00 00 00 AB [22:02:10]Write i2c OK [22:02:10]MH_I2C_Read... [22:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:10]Read from MH i2c: E2 [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: E2 0E 00 [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: E2 0E 00 20 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 EC [22:02:10]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:02:10]wFMCommunicate OK [22:02:10]SAM_PROTO_GetShiftState done [22:02:10]FM_GetShiftState done [22:02:10]opened in 1727052070 [22:02:10]opened+sec_in_day 1727138470 [22:02:10]quantity*price = 23000 [22:02:10]sum+1 = 23001 [22:02:10]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310258 Напиток Лимонад Келечек 1л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4780014240406 Сигареты Sovereign Blue 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 439.00 НСП 1% : 3.88 НДС 12% : 46.61 Наличными: 439.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 262 23.09.2024 22:02 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115779 ФПД: 158435326339291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T220212&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115779&fm=158435326339291&tin=02508201610067®Number=0000000000091831&sum=43900 0 [22:02:11]StoreToDocumentArchive [22:02:11]shift 472 fd 115779 [22:02:11]save to /storage/0472/doc_00115779 [22:02:11]save last doc name /storage/0472/doc_00115779 to /storage/kkm_last_doc_name [22:02:11]save OK [22:02:11]Clear old archive folders... [22:02:11]ProcessDocumentItem done err = 0, tmpTLVsize=503 [22:02:11]tlvbuf is 01185630 [22:02:11]SAM_PROTO_ClearQueue [22:02:11]wFMCommunicate request_size=4 [22:02:11]MH_SAM_APDU [22:02:11]CAPDU: 80 09 00 00 [22:02:11]Write to MH i2c: E2 08 00 2D 0E 80 09 00 00 00 00 00 00 AD [22:02:11]Write i2c OK [22:02:11]MH_I2C_Read... [22:02:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:11]Read from MH i2c: E2 [22:02:11]MH_I2C_Read... [22:02:11]Read from MH i2c: E2 03 00 [22:02:11]MH_I2C_Read... [22:02:11]Read from MH i2c: E2 03 00 2D 0E 00 90 00 AF [22:02:11]RAPDU: 90 00 [22:02:11]wFMCommunicate OK [22:02:11]SAM_PROTO_ClearQueue done [22:02:11]KKMCreateOFDPacket [22:02:11]OFDProtocolAddRootSTLVToBuf [22:02:11]FM_MakeSignedData [22:02:11]FM_MakeSignedData [22:02:11]SAM_PROTO_SignData [22:02:11]wFMCommunicate request_size=4 [22:02:11]MH_SAM_APDU [22:02:11]CAPDU: 80 0D 01 02 [22:02:11]Write to MH i2c: E2 08 00 2E 0E 80 0D 01 02 00 00 00 00 B5 [22:02:11]Write i2c OK [22:02:11]MH_I2C_Read... [22:02:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:11]Read from MH i2c: E2 [22:02:11]MH_I2C_Read... [22:02:11]Read from MH i2c: E2 03 00 [22:02:11]MH_I2C_Read... [22:02:11]Read from MH i2c: E2 03 00 2E 0E 00 90 00 B0 [22:02:11]RAPDU: 90 00 [22:02:11]wFMCommunicate OK [22:02:11]wFMCommunicate request_size=255 [22:02:11]MH_SAM_APDU [22:02:11]CAPDU: 80 0D 02 02 FA 03 00 F7 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 [22:02:11]Write to MH i2c: E2 02 01 2F 0E 80 0D 02 02 FA 00 03 00 F7 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 00 00 E0 [22:02:12]Write i2c OK [22:02:12]MH_I2C_Read... [22:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:12]Read from MH i2c: E2 [22:02:12]MH_I2C_Read... [22:02:12]Read from MH i2c: E2 03 00 [22:02:12]MH_I2C_Read... [22:02:12]Read from MH i2c: E2 03 00 2F 0E 00 90 00 B1 [22:02:12]RAPDU: 90 00 [22:02:12]wFMCommunicate OK [22:02:12]wFMCommunicate request_size=255 [22:02:12]MH_SAM_APDU [22:02:12]CAPDU: 80 0D 02 02 FA 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 12 00 00 00 00 07 04 06 00 7C AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 64 E5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 43 C4 01 00 35 04 06 [22:02:12]Write to MH i2c: E2 02 01 30 0E 80 0D 02 02 FA 00 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 12 00 00 00 00 07 04 06 00 7C AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 64 E5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 43 C4 01 00 35 04 06 00 00 C4 [22:02:12]Write i2c OK [22:02:12]MH_I2C_Read... [22:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:12]Read from MH i2c: E2 [22:02:12]MH_I2C_Read... [22:02:12]Read from MH i2c: E2 03 00 [22:02:12]MH_I2C_Read... [22:02:12]Read from MH i2c: E2 03 00 30 0E 00 90 00 B2 [22:02:12]RAPDU: 90 00 [22:02:12]wFMCommunicate OK [22:02:12]wFMCommunicate request_size=12 [22:02:12]MH_SAM_APDU [22:02:12]CAPDU: 80 0D 02 02 07 00 90 18 99 58 A8 DB [22:02:12]Write to MH i2c: E2 0F 00 31 0E 80 0D 02 02 07 00 00 90 18 99 58 A8 DB 00 00 E3 [22:02:12]Write i2c OK [22:02:12]MH_I2C_Read... [22:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:12]Read from MH i2c: E2 [22:02:12]MH_I2C_Read... [22:02:12]Read from MH i2c: E2 03 00 [22:02:12]MH_I2C_Read... [22:02:12]Read from MH i2c: E2 03 00 31 0E 00 90 00 B3 [22:02:12]RAPDU: 90 00 [22:02:12]wFMCommunicate OK [22:02:12]wFMCommunicate request_size=4 [22:02:12]MH_SAM_APDU [22:02:12]CAPDU: 80 0D 03 02 [22:02:12]Write to MH i2c: E2 08 00 32 0E 80 0D 03 02 00 00 00 00 BB [22:02:12]Write i2c OK [22:02:12]MH_I2C_Read... [22:02:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:12]Read from MH i2c: E2 [22:02:12]MH_I2C_Read... [22:02:12]Read from MH i2c: E2 0B 00 [22:02:12]MH_I2C_Read... [22:02:12]Read from MH i2c: E2 0B 00 32 0E 00 BE DE 79 99 79 37 66 C2 90 00 42 [22:02:12]RAPDU: BE DE 79 99 79 37 66 C2 90 00 [22:02:12]wFMCommunicate OK [22:02:12]SAM_PROTO_SignData done [22:02:12]FM_MakeSignedData done [22:02:12]CreateOFDProtocolMessage [22:02:12]wFMCommunicate request_size=4 [22:02:12]MH_SAM_APDU [22:02:12]CAPDU: 80 11 00 00 [22:02:12]Write to MH i2c: E2 08 00 33 0E 80 11 00 00 00 00 00 00 BB [22:02:12]Write i2c OK [22:02:12]MH_I2C_Read... [22:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:12]Read from MH i2c: E2 [22:02:12]MH_I2C_Read... [22:02:12]Read from MH i2c: E2 17 00 [22:02:12]MH_I2C_Read... [22:02:12]Read from MH i2c: E2 17 00 33 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 09 [22:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:02:12]wFMCommunicate OK [22:02:12]CreateOFDProtocolMessage done [22:02:12]OFDSenderStorePacket 115779 [22:02:12]StoreOFDPacket docnum=115779 [22:02:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0B 02 00 00 BA AF 03 02 94 92 5A 03 01 00 03 00 F7 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 12 00 00 00 00 07 04 06 00 7C AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 64 E5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 43 C4 01 00 35 04 06 00 90 18 99 58 A8 DB BE DE 79 99 79 37 66 C2 [22:02:12]CheckFolder [22:02:12]dirname=/storage/ofd_packets [22:02:12]CheckFolder done [22:02:12]ProducePacketName [22:02:12]name=ofd_packets/00115779 [22:02:12]NVStorageSaveData ofd_packets/00115779 [22:02:12]File name is /storage/ofd_packets/00115779 [22:02:12]Write 553 bytes [22:02:12]NVStorageSaveData done [22:02:12]OFDSenderStorePacket done [22:02:12]KKMCreateOFDPacket done [22:02:12]NVStorageSaveData kkm_last_timestamp [22:02:12]File name is /storage/kkm_last_timestamp [22:02:12]Write 4 bytes [22:02:12]NVStorageSaveData done [22:02:13]ExternCall_PrintAddStr [22:02:13]wPrintStart [22:02:13]Write to MH i2c: 01 00 00 34 0E 42 [22:02:13]Write i2c OK [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: 01 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: 01 07 00 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: 01 07 00 34 0E 00 00 00 00 00 FF 0F 57 [22:02:13]RasterBufferAndPrint [22:02:13]line Счет N : (3)344092 [22:02:13]line ИНН: 02508201610067 [22:02:13]line Контрольно-Кассовый Чек [22:02:13]line ПРОДАЖА [22:02:13]line Товар: 2000036210013 [22:02:13]line Кофе Капучино (GABB TRADE) [22:02:13]line 2.000 * 115.00 [22:02:13]line = 230.00 [22:02:13]line НДС 12% НСП 1% [22:02:13]line > о реализуемом товаре [22:02:13]line Товар: 4700000310258 [22:02:13]line Напиток Лимонад Келечек 1л [22:02:13]line 1.000 * 75.00 [22:02:13]line = 75.00 [22:02:13]line НДС 12% НСП 1% [22:02:13]line > о реализуемом товаре [22:02:13]line Товар: 4780014240406 [22:02:13]line Сигареты Sovereign Blue [22:02:13]line 1.000 * 134.00 [22:02:13]line = 134.00 [22:02:13]line НДС 12% НСП 1% [22:02:13]line > о реализуемом товаре [22:02:13]line ИТОГО: 439.00 [22:02:13]line НСП 1% : 3.88 [22:02:13]line НДС 12% : 46.61 [22:02:13]line Наличными: 439.00 [22:02:13]line Безнал.: 0.00 [22:02:13]line Место: АЗС № 90 "Партнер Нефть" [22:02:13]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:02:13]line СНО: Общий режим [22:02:13]line Чек 262 23.09.2024 22:02 [22:02:13]line Смена: 472 ФФД: 1.0 [22:02:13]line ЗНМ: 0300000120 [22:02:13]line РНМ: 0000000000091831 [22:02:13]line Версия ККМ: 001 [22:02:13]line ФМ: 0000000000871830 [22:02:13]line ФД: 115779 [22:02:13]line ФПД: 158435326339291 [22:02:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T220212&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115779&fm=158435326339291&tin=02508201610067®Number=0000000000091831&sum=43900 [22:02:13]line 0 [22:02:13]written 0, free lines is 4095 [22:02:13]OFD Sender: Processing packet 115779 [packets to send 482, broken 481] [22:02:13]ProducePacketName [22:02:13]name=ofd_packets/00115779 [22:02:13]OFD Sender: To server: pG, [22:02:13]CommunicateWithHost lk.salyk.kg:30040 [22:02:13]ConnectInit lk.salyk.kg [22:02:13]Connected sock=10 [22:02: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 38 33 30 0B 02 00 00 BA AF 03 02 94 92 5A 03 01 00 03 00 F7 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 12 00 00 00 00 07 04 06 00 7C AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 64 E5 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 43 C4 01 00 35 04 06 00 90 18 99 58 A8 DB BE DE 79 99 79 37 66 C2 [22:02:13]Write to MH i2c: 01 00 00 67 0E 75 [22:02:13]Write i2c OK [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: 01 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: 01 07 00 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: 01 07 00 67 0E 00 00 00 00 00 7C 0B 03 [22:02:13]RasterBufferAndPrint [22:02:13]line [22:02:13]line [22:02:13]line [22:02:13]line [22:02:13]line [22:02:13]written 0, free lines is 2943 [22:02:13]MH_Cut [22:02:13]Write to MH i2c: D1 01 00 6E 0E 01 4E [22:02:13]Write i2c OK [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: D1 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: D1 01 00 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: D1 01 00 6E 0E 00 4D [22:02:13]Write to MH i2c: 01 00 00 6F 0E 7D [22:02:13]Write i2c OK [22:02:13]MH_I2C_Read... [22:02:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 3B 68 47 00 D3 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 38 33 30 10 04 04 00 43 C4 01 00 F4 03 04 00 A6 8A F1 66 B6 04 01 00 00 89 09 CC B3 C0 3C 3C C0 [22:02:13]CommunicateWithHost err = 0 [22:02:13]CheckOFDResponse [22:02:13]1017 (14) - 77093643461234 [22:02:13]1041 (16) - 0000000000871830 [22:02:13]1040 (4) - 115779 [22:02:13]1012 (4) - 23.09.2024 15:35 [22:02:13]1206 (1) - 0 [22:02:13]OFD Sender: Remove packet 115779 [22:02:13]ProducePacketName [22:02:13]name=ofd_packets/00115779 [22:02:13]NVStorageDeleteData [22:02:14]OFD Sender: No OFD packet to send [22:02:15]*** Cut start [22:02:15]*** Partial cut [22:02:15]*** CUTSNS_PIN = 1 [22:02:15]*** CUTSNS_PIN = 0 [22:02:15]*** Brake cut motor [22:02:15]Read from MH i2c: 01 [22:02:15]MH_I2C_Read... [22:02:15]*** Stop cut motor [22:02:15]*** Cut end [22:02:15]Read from MH i2c: 01 07 00 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: 01 07 00 6F 0E 00 00 00 00 00 FF 0F 92 [22:02:15]process_action close_receipt done [22:02:15]requested_data is exist [22:02:15]produce_requested_data [22:02:15]requested_item fm.sn is exist - process it [22:02:15]wFMCommunicate request_size=4 [22:02:15]MH_SAM_APDU [22:02:15]CAPDU: 80 11 00 00 [22:02:15]Write to MH i2c: E2 08 00 70 0E 80 11 00 00 00 00 00 00 F8 [22:02:15]Write i2c OK [22:02:15]MH_I2C_Read... [22:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:15]Read from MH i2c: E2 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 17 00 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 17 00 70 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 46 [22:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:02:15]wFMCommunicate OK [22:02:15]requested_item fd.num is exist - process it [22:02:15]SAM_PROTO_GetFieldsCounters [22:02:15]wFMCommunicate request_size=4 [22:02:15]MH_SAM_APDU [22:02:15]CAPDU: 80 13 00 00 [22:02:15]Write to MH i2c: E2 08 00 71 0E 80 13 00 00 00 00 00 00 FB [22:02:15]Write i2c OK [22:02:15]MH_I2C_Read... [22:02:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:16]Read from MH i2c: E2 [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: E2 62 00 [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: E2 62 00 71 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 43 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [22:02:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 43 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:02:16]wFMCommunicate OK [22:02:16]SAM_PROTO_GetFieldsCounters done [22:02:16]requested_item shift.num is exist - process it [22:02:16]requested_item shift.opened is exist - process it [22:02:16]req_shift_opened [22:02:16]FM_GetShiftState [22:02:16]SAM_PROTO_GetShiftState [22:02:16]wFMCommunicate request_size=4 [22:02:16]MH_SAM_APDU [22:02:16]CAPDU: 80 13 01 00 [22:02:16]Write to MH i2c: E2 08 00 72 0E 80 13 01 00 00 00 00 00 FD [22:02:16]Write i2c OK [22:02:16]MH_I2C_Read... [22:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:16]Read from MH i2c: E2 [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: E2 0E 00 [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: E2 0E 00 72 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 3E [22:02:16]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:02:16]wFMCommunicate OK [22:02:16]SAM_PROTO_GetShiftState done [22:02:16]FM_GetShiftState done [22:02:16]req_shift_opened done [22:02:16]requested_item shift.open_date is exist - process it [22:02:16]req_shift_open_date [22:02:16]req_shift_open_date done [22:02:16]produce_requested_data done [22:02:16]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115779,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [22:02:16]process_action_free close_receipt [22:02:16]json_value_free [22:02:16]json_value_free done [22:02:16]process_json_proto returns [22:02:16]Send response to host [22:02:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115779,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [22:02:16]free response buf [22:02:16]execute_script done [22:02:16]execute_script returns [22:02:16]free content buf [22:02:16]Sock 9.Close socket [22:02:16]Sock 9.Thread stoped [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:31]accept exits with 8 [22:10:31]New connection [22:10:31]New thread 3067010404 created [22:10:31]Thread 3066867044 joined [22:10:31]Waiting for new connection... [22:10:31] Sock 8.Parse request [22:10:31]Sock 8.Check first char [22:10:31]Sock 8.First char is OK [22:10:31]request: POST /json_proto HTTP/1.0 [22:10:31]Method: POST [22:10:31]URL: /json_proto [22:10:31]Method is POST - this is cgi request [22:10:31]url: /json_proto [22:10:31]query_string will be loaded in cgi processing [22:10:31]execute_cgi json_proto POST (null) [22:10:31]execute_cgi path=json_proto method=POST [22:10:31]POST find Content-Length [22:10:31]Host: 172.17.41.136:8080 [22:10:31]Content-Length: 906 [22:10:31]Content-Type: application/json [22:10:31] [22:10:31]POST finish read [22:10:31]Found Content-Length = 906 [22:10:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344093", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 2.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 606.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:31]execute_script... [22:10:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344093", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 2.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 606.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:31]POST & json_proto [22:10:31]process_json_proto [22:10:31]json parsed OK: [22:10:31]protocol is kg_v1.0 [22:10:31]action value=close_receipt [22:10:31]process_action close_receipt [22:10:31]cmd_close_receipt [22:10:31]MH_GetDate [22:10:31]Write to MH i2c: F0 00 00 73 0E 70 [22:10:31]Write i2c OK [22:10:31]MH_I2C_Read... [22:10:31]Read from MH i2c: F0 [22:10:31]MH_I2C_Read... [22:10:31]Read from MH i2c: F0 09 00 [22:10:31]MH_I2C_Read... [22:10:31]Read from MH i2c: F0 09 00 73 0E 00 59 E7 F1 66 1B D0 5A 64 B9 [22:10:31]GetLastDocTimeStamp 1727128932 [22:10:31]current date 1727129433 [22:10:31]FM_GetShiftState [22:10:31]SAM_PROTO_GetShiftState [22:10:31]wFMCommunicate request_size=4 [22:10:31]MH_SAM_APDU [22:10:31]CAPDU: 80 13 01 00 [22:10:31]Write to MH i2c: E2 08 00 74 0E 80 13 01 00 00 00 00 00 FF [22:10:31]Write i2c OK [22:10:31]MH_I2C_Read... [22:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:31]Read from MH i2c: E2 [22:10:31]MH_I2C_Read... [22:10:31]Read from MH i2c: E2 0E 00 [22:10:31]MH_I2C_Read... [22:10:31]Read from MH i2c: E2 0E 00 74 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 40 [22:10:31]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:10:31]wFMCommunicate OK [22:10:31]SAM_PROTO_GetShiftState done [22:10:31]FM_GetShiftState done [22:10:31]opened in 1727052070 [22:10:31]opened+sec_in_day 1727138470 [22:10:31]quantity*price = 45000 [22:10:31]sum+1 = 45001 [22:10:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 156.00 = 156.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 606.00 НСП 1% : 5.36 НДС 12% : 64.36 Наличными: 606.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 263 23.09.2024 22:10 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115780 ФПД: 26885733472986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T221033&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115780&fm=26885733472986&tin=02508201610067®Number=0000000000091831&sum=60600 0 [22:10:32]StoreToDocumentArchive [22:10:32]shift 472 fd 115780 [22:10:32]save to /storage/0472/doc_00115780 [22:10:32]save last doc name /storage/0472/doc_00115780 to /storage/kkm_last_doc_name [22:10:32]save OK [22:10:32]Clear old archive folders... [22:10:32]ProcessDocumentItem done err = 0, tmpTLVsize=400 [22:10:32]tlvbuf is 01195B40 [22:10:32]SAM_PROTO_ClearQueue [22:10:32]wFMCommunicate request_size=4 [22:10:32]MH_SAM_APDU [22:10:32]CAPDU: 80 09 00 00 [22:10:32]Write to MH i2c: E2 08 00 81 0E 80 09 00 00 00 00 00 00 01 [22:10:32]Write i2c OK [22:10:32]MH_I2C_Read... [22:10:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:10:32]Read from MH i2c: E2 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 03 00 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 03 00 81 0E 00 90 00 03 [22:10:32]RAPDU: 90 00 [22:10:32]wFMCommunicate OK [22:10:32]SAM_PROTO_ClearQueue done [22:10:32]KKMCreateOFDPacket [22:10:32]OFDProtocolAddRootSTLVToBuf [22:10:32]FM_MakeSignedData [22:10:32]FM_MakeSignedData [22:10:32]SAM_PROTO_SignData [22:10:32]wFMCommunicate request_size=4 [22:10:32]MH_SAM_APDU [22:10:32]CAPDU: 80 0D 01 02 [22:10:32]Write to MH i2c: E2 08 00 82 0E 80 0D 01 02 00 00 00 00 09 [22:10:32]Write i2c OK [22:10:32]MH_I2C_Read... [22:10:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:10:32]Read from MH i2c: E2 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 03 00 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 03 00 82 0E 00 90 00 04 [22:10:32]RAPDU: 90 00 [22:10:32]wFMCommunicate OK [22:10:32]wFMCommunicate request_size=255 [22:10:32]MH_SAM_APDU [22:10:32]CAPDU: 80 0D 02 02 FA 03 00 90 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 EC 00 00 00 00 EB [22:10:32]Write to MH i2c: E2 02 01 83 0E 80 0D 02 02 FA 00 03 00 90 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 EC 00 00 00 00 EB 00 00 24 [22:10:32]Write i2c OK [22:10:32]MH_I2C_Read... [22:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:33]Read from MH i2c: E2 [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: E2 03 00 [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: E2 03 00 83 0E 00 90 00 05 [22:10:33]RAPDU: 90 00 [22:10:33]wFMCommunicate OK [22:10:33]wFMCommunicate request_size=159 [22:10:33]MH_SAM_APDU [22:10:33]CAPDU: 80 0D 02 02 9A 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 19 00 00 00 00 07 04 06 00 B8 EC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 59 E7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 44 C4 01 00 35 04 06 00 18 73 D2 97 DA DA [22:10:33]Write to MH i2c: E2 A2 00 84 0E 80 0D 02 02 9A 00 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 19 00 00 00 00 07 04 06 00 B8 EC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 59 E7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 44 C4 01 00 35 04 06 00 18 73 D2 97 DA DA 00 00 AE [22:10:33]Write i2c OK [22:10:33]MH_I2C_Read... [22:10:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:33]Read from MH i2c: E2 [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: E2 03 00 [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: E2 03 00 84 0E 00 90 00 06 [22:10:33]RAPDU: 90 00 [22:10:33]wFMCommunicate OK [22:10:33]wFMCommunicate request_size=4 [22:10:33]MH_SAM_APDU [22:10:33]CAPDU: 80 0D 03 02 [22:10:33]Write to MH i2c: E2 08 00 85 0E 80 0D 03 02 00 00 00 00 0E [22:10:33]Write i2c OK [22:10:33]MH_I2C_Read... [22:10:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:10:33]Read from MH i2c: E2 [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: E2 0B 00 [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: E2 0B 00 85 0E 00 6B 82 17 18 89 24 84 BA 90 00 16 [22:10:33]RAPDU: 6B 82 17 18 89 24 84 BA 90 00 [22:10:33]wFMCommunicate OK [22:10:33]SAM_PROTO_SignData done [22:10:33]FM_MakeSignedData done [22:10:33]CreateOFDProtocolMessage [22:10:33]wFMCommunicate request_size=4 [22:10:33]MH_SAM_APDU [22:10:33]CAPDU: 80 11 00 00 [22:10:33]Write to MH i2c: E2 08 00 86 0E 80 11 00 00 00 00 00 00 0E [22:10:33]Write i2c OK [22:10:33]MH_I2C_Read... [22:10:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:33]Read from MH i2c: E2 [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: E2 17 00 [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: E2 17 00 86 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5C [22:10:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:10:33]wFMCommunicate OK [22:10:33]CreateOFDProtocolMessage done [22:10:33]OFDSenderStorePacket 115780 [22:10:33]StoreOFDPacket docnum=115780 [22:10:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A4 01 00 00 C0 4C 9C 01 4E AE 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 EC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 19 00 00 00 00 07 04 06 00 B8 EC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 59 E7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 44 C4 01 00 35 04 06 00 18 73 D2 97 DA DA 6B 82 17 18 89 24 84 BA [22:10:33]CheckFolder [22:10:33]dirname=/storage/ofd_packets [22:10:33]CheckFolder done [22:10:33]ProducePacketName [22:10:33]name=ofd_packets/00115780 [22:10:33]NVStorageSaveData ofd_packets/00115780 [22:10:33]File name is /storage/ofd_packets/00115780 [22:10:33]Write 450 bytes [22:10:33]NVStorageSaveData done [22:10:33]OFDSenderStorePacket done [22:10:33]KKMCreateOFDPacket done [22:10:33]NVStorageSaveData kkm_last_timestamp [22:10:33]File name is /storage/kkm_last_timestamp [22:10:33]Write 4 bytes [22:10:33]NVStorageSaveData done [22:10:33]ExternCall_PrintAddStr [22:10:33]wPrintStart [22:10:33]Write to MH i2c: 01 00 00 87 0E 95 [22:10:33]Write i2c OK [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: 01 [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: 01 07 00 [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: 01 07 00 87 0E 00 00 00 00 00 FF 0F AA [22:10:33]RasterBufferAndPrint [22:10:33]line Счет N : (3)344093 [22:10:33]line ИНН: 02508201610067 [22:10:33]line Контрольно-Кассовый Чек [22:10:33]line ПРОДАЖА [22:10:33]line Товар: 4670003190013 [22:10:33]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [22:10:33]line 2.000 * 225.00 [22:10:33]line = 450.00 [22:10:33]line НДС 12% НСП 1% [22:10:33]line > о реализуемом товаре [22:10:33]line Товар: 48741958 [22:10:33]line Сигареты Parliament Aqua Blue [22:10:33]line 1.000 * 156.00 [22:10:33]line = 156.00 [22:10:33]line НДС 12% НСП 1% [22:10:33]line > о реализуемом товаре [22:10:33]line ИТОГО: 606.00 [22:10:33]line НСП 1% : 5.36 [22:10:33]line НДС 12% : 64.36 [22:10:33]line Наличными: 606.00 [22:10:33]line Безнал.: 0.00 [22:10:33]line Место: АЗС № 90 "Партнер Нефть" [22:10:33]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:10:33]line СНО: Общий режим [22:10:33]line Чек 263 23.09.2024 22:10 [22:10:33]line Смена: 472 ФФД: 1.0 [22:10:33]line ЗНМ: 0300000120 [22:10:33]line РНМ: 0000000000091831 [22:10:33]line Версия ККМ: 001 [22:10:33]line ФМ: 0000000000871830 [22:10:33]line ФД: 115780 [22:10:33]line ФПД: 26885733472986 [22:10:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T221033&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115780&fm=26885733472986&tin=02508201610067®Number=0000000000091831&sum=60600 [22:10:33]line 0 [22:10:33]OFD Sender: Processing packet 115780 [packets to send 482, broken 481] [22:10:33]ProducePacketName [22:10:33]name=ofd_packets/00115780 [22:10:33]OFD Sender: To server: pG, [22:10:33]CommunicateWithHost lk.salyk.kg:30040 [22:10:33]ConnectInit lk.salyk.kg [22:10:33]written 0, free lines is 4095 [22:10:33]Connected sock=10 [22:10: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 38 33 30 A4 01 00 00 C0 4C 9C 01 4E AE 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 EC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 19 00 00 00 00 07 04 06 00 B8 EC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 59 E7 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 44 C4 01 00 35 04 06 00 18 73 D2 97 DA DA 6B 82 17 18 89 24 84 BA [22:10:34]Write to MH i2c: 01 00 00 B6 0E C4 [22:10:34]Write i2c OK [22:10:34]MH_I2C_Read... [22:10:34]Read from MH i2c: 01 [22:10:34]MH_I2C_Read... [22:10:34]Read from MH i2c: 01 07 00 [22:10:34]MH_I2C_Read... [22:10:34]Read from MH i2c: 01 07 00 B6 0E 00 00 00 00 00 DB 0B B1 [22:10:34]RasterBufferAndPrint [22:10:34]line [22:10:34]line [22:10:34]line [22:10:34]line [22:10:34]line [22:10:34]written 0, free lines is 3040 [22:10:34]MH_Cut [22:10:34]Write to MH i2c: D1 01 00 BD 0E 01 9D [22:10:34]Write i2c OK [22:10:34]MH_I2C_Read... [22:10:34]Read from MH i2c: D1 [22:10:34]MH_I2C_Read... [22:10:34]Read from MH i2c: D1 01 00 [22:10:34]MH_I2C_Read... [22:10:34]Read from MH i2c: D1 01 00 BD 0E 00 9C [22:10:34]Write to MH i2c: 01 00 00 BE 0E CC [22:10:34]Write i2c OK [22:10:34]MH_I2C_Read... [22:10:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E8 F3 47 00 7C 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 38 33 30 10 04 04 00 44 C4 01 00 F4 03 04 00 9B 8C F1 66 B6 04 01 00 00 84 28 DF E6 1C 61 85 63 [22:10:34]CommunicateWithHost err = 0 [22:10:34]CheckOFDResponse [22:10:34]1017 (14) - 77093643461234 [22:10:34]1041 (16) - 0000000000871830 [22:10:34]1040 (4) - 115780 [22:10:34]1012 (4) - 23.09.2024 15:43 [22:10:34]1206 (1) - 0 [22:10:34]OFD Sender: Remove packet 115780 [22:10:34]ProducePacketName [22:10:34]name=ofd_packets/00115780 [22:10:34]NVStorageDeleteData [22:10:34]OFD Sender: No OFD packet to send [22:10:35]*** Cut start [22:10:35]*** Partial cut [22:10:35]*** CUTSNS_PIN = 1 [22:10:35]*** CUTSNS_PIN = 0 [22:10:35]*** Brake cut motor [22:10:36]Read from MH i2c: 01 [22:10:36]MH_I2C_Read... [22:10:36]*** Stop cut motor [22:10:36]*** Cut end [22:10:36]Read from MH i2c: 01 07 00 [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: 01 07 00 BE 0E 00 00 00 00 00 FF 0F E1 [22:10:36]process_action close_receipt done [22:10:36]requested_data is exist [22:10:36]produce_requested_data [22:10:36]requested_item fm.sn is exist - process it [22:10:36]wFMCommunicate request_size=4 [22:10:36]MH_SAM_APDU [22:10:36]CAPDU: 80 11 00 00 [22:10:36]Write to MH i2c: E2 08 00 BF 0E 80 11 00 00 00 00 00 00 47 [22:10:36]Write i2c OK [22:10:36]MH_I2C_Read... [22:10:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:36]Read from MH i2c: E2 [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: E2 17 00 [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: E2 17 00 BF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 95 [22:10:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:10:36]wFMCommunicate OK [22:10:36]requested_item fd.num is exist - process it [22:10:36]SAM_PROTO_GetFieldsCounters [22:10:36]wFMCommunicate request_size=4 [22:10:36]MH_SAM_APDU [22:10:36]CAPDU: 80 13 00 00 [22:10:36]Write to MH i2c: E2 08 00 C0 0E 80 13 00 00 00 00 00 00 4A [22:10:36]Write i2c OK [22:10:36]MH_I2C_Read... [22:10:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:10:36]Read from MH i2c: E2 [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: E2 62 00 [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: E2 62 00 C0 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 44 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [22:10: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 44 C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:10:36]wFMCommunicate OK [22:10:36]SAM_PROTO_GetFieldsCounters done [22:10:36]requested_item shift.num is exist - process it [22:10:36]requested_item shift.opened is exist - process it [22:10:36]req_shift_opened [22:10:36]FM_GetShiftState [22:10:36]SAM_PROTO_GetShiftState [22:10:36]wFMCommunicate request_size=4 [22:10:36]MH_SAM_APDU [22:10:36]CAPDU: 80 13 01 00 [22:10:36]Write to MH i2c: E2 08 00 C1 0E 80 13 01 00 00 00 00 00 4C [22:10:36]Write i2c OK [22:10:36]MH_I2C_Read... [22:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:36]Read from MH i2c: E2 [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: E2 0E 00 [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: E2 0E 00 C1 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 8D [22:10:36]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:10:36]wFMCommunicate OK [22:10:36]SAM_PROTO_GetShiftState done [22:10:36]FM_GetShiftState done [22:10:36]req_shift_opened done [22:10:36]requested_item shift.open_date is exist - process it [22:10:36]req_shift_open_date [22:10:36]req_shift_open_date done [22:10:36]produce_requested_data done [22:10:36]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115780,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [22:10:36]process_action_free close_receipt [22:10:36]json_value_free [22:10:36]json_value_free done [22:10:36]process_json_proto returns [22:10:36]Send response to host [22:10:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115780,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [22:10:36]free response buf [22:10:36]execute_script done [22:10:36]execute_script returns [22:10:36]free content buf [22:10:36]Sock 8.Close socket [22:10:36]Sock 8.Thread stoped [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:15]OFD Sender: No OFD packet to send [22:13:20]OFD Sender: No OFD packet to send [22:13:22]accept exits with 9 [22:13:22]New connection [22:13:22]New thread 3066867044 created [22:13:22]Thread 3067010404 joined [22:13:22]Waiting for new connection... [22:13:22] Sock 9.Parse request [22:13:22]Sock 9.Check first char [22:13:22]Sock 9.First char is OK [22:13:22]request: POST /json_proto HTTP/1.0 [22:13:22]Method: POST [22:13:22]URL: /json_proto [22:13:22]Method is POST - this is cgi request [22:13:22]url: /json_proto [22:13:22]query_string will be loaded in cgi processing [22:13:22]execute_cgi json_proto POST (null) [22:13:22]execute_cgi path=json_proto method=POST [22:13:22]POST find Content-Length [22:13:22]Host: 172.17.41.136:8080 [22:13:22]Content-Length: 591 [22:13:22]Content-Type: application/json [22:13:22] [22:13:22]POST finish read [22:13:22]Found Content-Length = 591 [22:13:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344094", "tax_sys" : 0, "items" : [ { "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:22]execute_script... [22:13:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344094", "tax_sys" : 0, "items" : [ { "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:22]POST & json_proto [22:13:22]process_json_proto [22:13:22]json parsed OK: [22:13:22]protocol is kg_v1.0 [22:13:22]action value=close_receipt [22:13:22]process_action close_receipt [22:13:22]cmd_close_receipt [22:13:22]MH_GetDate [22:13:22]Write to MH i2c: F0 00 00 C2 0E BF [22:13:22]Write i2c OK [22:13:22]MH_I2C_Read... [22:13:22]Read from MH i2c: F0 [22:13:22]MH_I2C_Read... [22:13:22]Read from MH i2c: F0 09 00 [22:13:22]MH_I2C_Read... [22:13:22]Read from MH i2c: F0 09 00 C2 0E 00 04 E8 F1 66 1B D0 5A 64 B4 [22:13:22]GetLastDocTimeStamp 1727129433 [22:13:22]current date 1727129604 [22:13:22]FM_GetShiftState [22:13:22]SAM_PROTO_GetShiftState [22:13:22]wFMCommunicate request_size=4 [22:13:22]MH_SAM_APDU [22:13:22]CAPDU: 80 13 01 00 [22:13:22]Write to MH i2c: E2 08 00 C3 0E 80 13 01 00 00 00 00 00 4E [22:13:22]Write i2c OK [22:13:22]MH_I2C_Read... [22:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:22]Read from MH i2c: E2 [22:13:22]MH_I2C_Read... [22:13:22]Read from MH i2c: E2 0E 00 [22:13:22]MH_I2C_Read... [22:13:22]Read from MH i2c: E2 0E 00 C3 0E 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 8F [22:13:22]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:13:22]wFMCommunicate OK [22:13:22]SAM_PROTO_GetShiftState done [22:13:22]FM_GetShiftState done [22:13:22]opened in 1727052070 [22:13:22]opened+sec_in_day 1727138470 [22:13:22]quantity*price = 4500 [22:13:22]sum+1 = 4501 [22:13:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 264 23.09.2024 22:13 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115781 ФПД: 60516651301342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T221324&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115781&fm=60516651301342&tin=02508201610067®Number=0000000000091831&sum=4500 0 [22:13:23]StoreToDocumentArchive [22:13:23]shift 472 fd 115781 [22:13:23]save to /storage/0472/doc_00115781 [22:13:23]save last doc name /storage/0472/doc_00115781 to /storage/kkm_last_doc_name [22:13:23]save OK [22:13:23]Clear old archive folders... [22:13:23]ProcessDocumentItem done err = 0, tmpTLVsize=266 [22:13:23]tlvbuf is 01194FD0 [22:13:23]SAM_PROTO_ClearQueue [22:13:23]wFMCommunicate request_size=4 [22:13:23]MH_SAM_APDU [22:13:23]CAPDU: 80 09 00 00 [22:13:23]Write to MH i2c: E2 08 00 D0 0E 80 09 00 00 00 00 00 00 50 [22:13:23]Write i2c OK [22:13:23]MH_I2C_Read... [22:13:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:23]Read from MH i2c: E2 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 03 00 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 03 00 D0 0E 00 90 00 52 [22:13:23]RAPDU: 90 00 [22:13:23]wFMCommunicate OK [22:13:23]SAM_PROTO_ClearQueue done [22:13:23]KKMCreateOFDPacket [22:13:23]OFDProtocolAddRootSTLVToBuf [22:13:23]FM_MakeSignedData [22:13:23]FM_MakeSignedData [22:13:23]SAM_PROTO_SignData [22:13:23]wFMCommunicate request_size=4 [22:13:23]MH_SAM_APDU [22:13:23]CAPDU: 80 0D 01 02 [22:13:23]Write to MH i2c: E2 08 00 D1 0E 80 0D 01 02 00 00 00 00 58 [22:13:23]Write i2c OK [22:13:23]MH_I2C_Read... [22:13:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:23]Read from MH i2c: E2 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 03 00 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 03 00 D1 0E 00 90 00 53 [22:13:23]RAPDU: 90 00 [22:13:23]wFMCommunicate OK [22:13:23]wFMCommunicate request_size=255 [22:13:23]MH_SAM_APDU [22:13:23]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 04 E8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [22:13:23]Write to MH i2c: E2 02 01 D2 0E 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 04 E8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 7D [22:13:23]Write i2c OK [22:13:23]MH_I2C_Read... [22:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:23]Read from MH i2c: E2 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 03 00 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 03 00 D2 0E 00 90 00 54 [22:13:23]RAPDU: 90 00 [22:13:23]wFMCommunicate OK [22:13:23]wFMCommunicate request_size=25 [22:13:23]MH_SAM_APDU [22:13:23]CAPDU: 80 0D 02 02 14 33 30 10 04 04 00 45 C4 01 00 35 04 06 00 37 0A 21 80 F9 DE [22:13:23]Write to MH i2c: E2 1C 00 D3 0E 80 0D 02 02 14 00 33 30 10 04 04 00 45 C4 01 00 35 04 06 00 37 0A 21 80 F9 DE 00 00 00 [22:13:23]Write i2c OK [22:13:23]MH_I2C_Read... [22:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:23]Read from MH i2c: E2 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 03 00 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 03 00 D3 0E 00 90 00 55 [22:13:23]RAPDU: 90 00 [22:13:23]wFMCommunicate OK [22:13:23]wFMCommunicate request_size=4 [22:13:23]MH_SAM_APDU [22:13:23]CAPDU: 80 0D 03 02 [22:13:23]Write to MH i2c: E2 08 00 D4 0E 80 0D 03 02 00 00 00 00 5D [22:13:23]Write i2c OK [22:13:23]MH_I2C_Read... [22:13:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:23]Read from MH i2c: E2 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 0B 00 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 0B 00 D4 0E 00 2F 64 C2 A1 40 4F D4 81 90 00 38 [22:13:23]RAPDU: 2F 64 C2 A1 40 4F D4 81 90 00 [22:13:23]wFMCommunicate OK [22:13:23]SAM_PROTO_SignData done [22:13:23]FM_MakeSignedData done [22:13:23]CreateOFDProtocolMessage [22:13:23]wFMCommunicate request_size=4 [22:13:23]MH_SAM_APDU [22:13:23]CAPDU: 80 11 00 00 [22:13:23]Write to MH i2c: E2 08 00 D5 0E 80 11 00 00 00 00 00 00 5D [22:13:23]Write i2c OK [22:13:23]MH_I2C_Read... [22:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:23]Read from MH i2c: E2 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 17 00 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 17 00 D5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AB [22:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:13:23]wFMCommunicate OK [22:13:23]CreateOFDProtocolMessage done [22:13:23]OFDSenderStorePacket 115781 [22:13:23]StoreOFDPacket docnum=115781 [22:13:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 FF 69 16 01 7A 8B 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 04 E8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 45 C4 01 00 35 04 06 00 37 0A 21 80 F9 DE 2F 64 C2 A1 40 4F D4 81 [22:13:23]CheckFolder [22:13:23]dirname=/storage/ofd_packets [22:13:23]CheckFolder done [22:13:23]ProducePacketName [22:13:23]name=ofd_packets/00115781 [22:13:23]NVStorageSaveData ofd_packets/00115781 [22:13:23]File name is /storage/ofd_packets/00115781 [22:13:23]Write 316 bytes [22:13:23]NVStorageSaveData done [22:13:23]OFDSenderStorePacket done [22:13:23]KKMCreateOFDPacket done [22:13:23]NVStorageSaveData kkm_last_timestamp [22:13:23]File name is /storage/kkm_last_timestamp [22:13:23]Write 4 bytes [22:13:23]NVStorageSaveData done [22:13:23]ExternCall_PrintAddStr [22:13:23]wPrintStart [22:13:23]Write to MH i2c: 01 00 00 D6 0E E4 [22:13:23]OFD Sender: Processing packet 115781 [packets to send 482, broken 481] [22:13:23]ProducePacketName [22:13:23]name=ofd_packets/00115781 [22:13:23]OFD Sender: To server: pG, [22:13:23]CommunicateWithHost lk.salyk.kg:30040 [22:13:23]ConnectInit lk.salyk.kg [22:13:23]Write i2c OK [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: 01 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: 01 07 00 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: 01 07 00 D6 0E 00 00 00 00 00 FF 0F F9 [22:13:23]RasterBufferAndPrint [22:13:23]line Счет N : (3)344094 [22:13:23]line ИНН: 02508201610067 [22:13:23]line Контрольно-Кассовый Чек [22:13:23]line ПРОДАЖА [22:13:23]line Товар: 46141538 [22:13:23]line Р/ж Orbit Bubblemint 13,6г [22:13:23]line 1.000 * 45.00 [22:13:23]line = 45.00 [22:13:23]line НДС 12% НСП 1% [22:13:23]line > о реализуемом товаре [22:13:23]line ИТОГО: 45.00 [22:13:23]line НСП 1% : 0.40 [22:13:23]line НДС 12% : 4.78 [22:13:23]line Наличными: 45.00 [22:13:23]line Безнал.: 0.00 [22:13:23]line Место: АЗС № 90 "Партнер Нефть" [22:13:23]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:13:23]line СНО: Общий режим [22:13:23]line Чек 264 23.09.2024 22:13 [22:13:23]line Смена: 472 ФФД: 1.0 [22:13:23]line ЗНМ: 0300000120 [22:13:23]line РНМ: 0000000000091831 [22:13:23]line Версия ККМ: 001 [22:13:23]line ФМ: 0000000000871830 [22:13:23]line ФД: 115781 [22:13:23]line ФПД: 60516651301342 [22:13:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T221324&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115781&fm=60516651301342&tin=02508201610067®Number=0000000000091831&sum=4500 [22:13:24]Connected sock=8 [22:13:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 FF 69 16 01 7A 8B 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 04 E8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 45 C4 01 00 35 04 06 00 37 0A 21 80 F9 DE 2F 64 C2 A1 40 4F D4 81 [22:13:24]line 0 [22:13:24]written 0, free lines is 4095 [22:13:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F7 5D 47 00 0F 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 45 C4 01 00 F4 03 04 00 45 8D F1 66 B6 04 01 00 00 09 90 87 58 73 9D 86 BC [22:13:24]CommunicateWithHost err = 0 [22:13:24]CheckOFDResponse [22:13:24]1017 (14) - 77093643461234 [22:13:24]1041 (16) - 0000000000871830 [22:13:24]1040 (4) - 115781 [22:13:24]1012 (4) - 23.09.2024 15:46 [22:13:24]1206 (1) - 0 [22:13:24]OFD Sender: Remove packet 115781 [22:13:24]ProducePacketName [22:13:24]name=ofd_packets/00115781 [22:13:24]NVStorageDeleteData [22:13:24]Write to MH i2c: 01 00 00 FD 0E 0B [22:13:24]Write i2c OK [22:13:24]MH_I2C_Read... [22:13:24]Read from MH i2c: 01 [22:13:24]MH_I2C_Read... [22:13:24]Read from MH i2c: 01 07 00 [22:13:24]MH_I2C_Read... [22:13:24]Read from MH i2c: 01 07 00 FD 0E 00 00 00 00 00 81 0C 9F [22:13:24]RasterBufferAndPrint [22:13:24]line [22:13:24]line [22:13:24]line [22:13:24]line [22:13:24]line [22:13:24]written 0, free lines is 3207 [22:13:24]MH_Cut [22:13:24]Write to MH i2c: D1 01 00 04 0F 01 E5 [22:13:24]Write i2c OK [22:13:24]MH_I2C_Read... [22:13:24]Read from MH i2c: D1 [22:13:24]MH_I2C_Read... [22:13:24]Read from MH i2c: D1 01 00 [22:13:24]MH_I2C_Read... [22:13:24]Read from MH i2c: D1 01 00 04 0F 00 E4 [22:13:24]Write to MH i2c: 01 00 00 05 0F 14 [22:13:24]Write i2c OK [22:13:24]MH_I2C_Read... [22:13:25]OFD Sender: No OFD packet to send [22:13:25]*** Cut start [22:13:25]*** Partial cut [22:13:25]*** CUTSNS_PIN = 1 [22:13:26]*** CUTSNS_PIN = 0 [22:13:26]*** Brake cut motor [22:13:26]Read from MH i2c: 01 [22:13:26]MH_I2C_Read... [22:13:26]*** Stop cut motor [22:13:26]*** Cut end [22:13:26]Read from MH i2c: 01 07 00 [22:13:26]MH_I2C_Read... [22:13:26]Read from MH i2c: 01 07 00 05 0F 00 00 00 00 00 FF 0F 29 [22:13:26]process_action close_receipt done [22:13:26]requested_data is exist [22:13:26]produce_requested_data [22:13:26]requested_item fm.sn is exist - process it [22:13:26]wFMCommunicate request_size=4 [22:13:26]MH_SAM_APDU [22:13:26]CAPDU: 80 11 00 00 [22:13:26]Write to MH i2c: E2 08 00 06 0F 80 11 00 00 00 00 00 00 8F [22:13:26]Write i2c OK [22:13:26]MH_I2C_Read... [22:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:26]Read from MH i2c: E2 [22:13:26]MH_I2C_Read... [22:13:26]Read from MH i2c: E2 17 00 [22:13:26]MH_I2C_Read... [22:13:26]Read from MH i2c: E2 17 00 06 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 DD [22:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:13:26]wFMCommunicate OK [22:13:26]requested_item fd.num is exist - process it [22:13:26]SAM_PROTO_GetFieldsCounters [22:13:26]wFMCommunicate request_size=4 [22:13:26]MH_SAM_APDU [22:13:26]CAPDU: 80 13 00 00 [22:13:26]Write to MH i2c: E2 08 00 07 0F 80 13 00 00 00 00 00 00 92 [22:13:26]Write i2c OK [22:13:26]MH_I2C_Read... [22:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:26]Read from MH i2c: E2 [22:13:26]MH_I2C_Read... [22:13:26]Read from MH i2c: E2 62 00 [22:13:26]MH_I2C_Read... [22:13:26]Read from MH i2c: E2 62 00 07 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 45 C4 01 00 0E 04 04 00 D8 01 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 A9 [22:13: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 45 C4 01 00 0E 04 04 00 D8 01 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 [22:13:26]wFMCommunicate OK [22:13:26]SAM_PROTO_GetFieldsCounters done [22:13:26]requested_item shift.num is exist - process it [22:13:26]requested_item shift.opened is exist - process it [22:13:26]req_shift_opened [22:13:26]FM_GetShiftState [22:13:26]SAM_PROTO_GetShiftState [22:13:26]wFMCommunicate request_size=4 [22:13:26]MH_SAM_APDU [22:13:26]CAPDU: 80 13 01 00 [22:13:26]Write to MH i2c: E2 08 00 08 0F 80 13 01 00 00 00 00 00 94 [22:13:26]Write i2c OK [22:13:26]MH_I2C_Read... [22:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:26]Read from MH i2c: E2 [22:13:26]MH_I2C_Read... [22:13:26]Read from MH i2c: E2 0E 00 [22:13:26]MH_I2C_Read... [22:13:26]Read from MH i2c: E2 0E 00 08 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D5 [22:13:26]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:13:26]wFMCommunicate OK [22:13:26]SAM_PROTO_GetShiftState done [22:13:26]FM_GetShiftState done [22:13:26]req_shift_opened done [22:13:26]requested_item shift.open_date is exist - process it [22:13:26]req_shift_open_date [22:13:26]req_shift_open_date done [22:13:26]produce_requested_data done [22:13:26]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115781,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [22:13:26]process_action_free close_receipt [22:13:26]json_value_free [22:13:26]json_value_free done [22:13:26]process_json_proto returns [22:13:26]Send response to host [22:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115781,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [22:13:26]free response buf [22:13:26]execute_script done [22:13:26]execute_script returns [22:13:26]free content buf [22:13:26]Sock 9.Close socket [22:13:26]Sock 9.Thread stoped [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:10]accept exits with 10 [22:15:10]New connection [22:15:10]New thread 3067010404 created [22:15:10]Thread 3066867044 joined [22:15:10]Waiting for new connection... [22:15:10] Sock 10.Parse request [22:15:10]Sock 10.Check first char [22:15:10]Sock 10.First char is OK [22:15:10]request: POST /json_proto HTTP/1.0 [22:15:10]Method: POST [22:15:10]URL: /json_proto [22:15:10]Method is POST - this is cgi request [22:15:10]url: /json_proto [22:15:10]query_string will be loaded in cgi processing [22:15:10]execute_cgi json_proto POST (null) [22:15:10]execute_cgi path=json_proto method=POST [22:15:10]POST find Content-Length [22:15:10]Host: 172.17.41.136:8080 [22:15:10]Content-Length: 679 [22:15:10]Content-Type: application/json [22:15:10] [22:15:10]POST finish read [22:15:10]Found Content-Length = 679 [22:15:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344095", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:10]execute_script... [22:15:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344095", "tax_sys" : 0, "items" : [ { "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:10]POST & json_proto [22:15:10]process_json_proto [22:15:10]json parsed OK: [22:15:10]protocol is kg_v1.0 [22:15:10]action value=close_receipt [22:15:10]process_action close_receipt [22:15:10]cmd_close_receipt [22:15:10]MH_GetDate [22:15:10]Write to MH i2c: F0 00 00 09 0F 07 [22:15:10]Write i2c OK [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: F0 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: F0 09 00 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: F0 09 00 09 0F 00 70 E8 F1 66 1B D0 5A 64 68 [22:15:10]GetLastDocTimeStamp 1727129604 [22:15:10]current date 1727129712 [22:15:10]FM_GetShiftState [22:15:10]SAM_PROTO_GetShiftState [22:15:10]wFMCommunicate request_size=4 [22:15:10]MH_SAM_APDU [22:15:10]CAPDU: 80 13 01 00 [22:15:10]Write to MH i2c: E2 08 00 0A 0F 80 13 01 00 00 00 00 00 96 [22:15:10]Write i2c OK [22:15:10]MH_I2C_Read... [22:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:10]Read from MH i2c: E2 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 0E 00 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 0E 00 0A 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 D7 [22:15:10]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:15:10]wFMCommunicate OK [22:15:10]SAM_PROTO_GetShiftState done [22:15:10]FM_GetShiftState done [22:15:10]opened in 1727052070 [22:15:10]opened+sec_in_day 1727138470 [22:15:10]quantity*price = 15400 [22:15:10]sum+1 = 15401 [22:15:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 265 23.09.2024 22:15 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115782 ФПД: 178178755849880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T221512&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115782&fm=178178755849880&tin=02508201610067®Number=0000000000091831&sum=15400 0 [22:15:11]StoreToDocumentArchive [22:15:11]shift 472 fd 115782 [22:15:11]save to /storage/0472/doc_00115782 [22:15:11]save last doc name /storage/0472/doc_00115782 to /storage/kkm_last_doc_name [22:15:11]save OK [22:15:11]Clear old archive folders... [22:15:11]ProcessDocumentItem done err = 0, tmpTLVsize=284 [22:15:11]tlvbuf is 01186330 [22:15:11]SAM_PROTO_ClearQueue [22:15:11]wFMCommunicate request_size=4 [22:15:11]MH_SAM_APDU [22:15:11]CAPDU: 80 09 00 00 [22:15:11]Write to MH i2c: E2 08 00 17 0F 80 09 00 00 00 00 00 00 98 [22:15:11]Write i2c OK [22:15:11]MH_I2C_Read... [22:15:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:11]Read from MH i2c: E2 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 17 0F 00 90 00 9A [22:15:11]RAPDU: 90 00 [22:15:11]wFMCommunicate OK [22:15:11]SAM_PROTO_ClearQueue done [22:15:11]KKMCreateOFDPacket [22:15:11]OFDProtocolAddRootSTLVToBuf [22:15:11]FM_MakeSignedData [22:15:11]FM_MakeSignedData [22:15:11]SAM_PROTO_SignData [22:15:11]wFMCommunicate request_size=4 [22:15:11]MH_SAM_APDU [22:15:11]CAPDU: 80 0D 01 02 [22:15:11]Write to MH i2c: E2 08 00 18 0F 80 0D 01 02 00 00 00 00 A0 [22:15:11]Write i2c OK [22:15:11]MH_I2C_Read... [22:15:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:11]Read from MH i2c: E2 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 18 0F 00 90 00 9B [22:15:11]RAPDU: 90 00 [22:15:11]wFMCommunicate OK [22:15:11]wFMCommunicate request_size=255 [22:15:11]MH_SAM_APDU [22:15:11]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 70 E8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [22:15:11]Write to MH i2c: E2 02 01 19 0F 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 70 E8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 5E [22:15:11]Write i2c OK [22:15:11]MH_I2C_Read... [22:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:11]Read from MH i2c: E2 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 19 0F 00 90 00 9C [22:15:11]RAPDU: 90 00 [22:15:11]wFMCommunicate OK [22:15:11]wFMCommunicate request_size=43 [22:15:11]MH_SAM_APDU [22:15:11]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 46 C4 01 00 35 04 06 00 A2 0D 79 72 EE 98 [22:15:11]Write to MH i2c: E2 2E 00 1A 0F 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 46 C4 01 00 35 04 06 00 A2 0D 79 72 EE 98 00 00 B1 [22:15:11]Write i2c OK [22:15:11]MH_I2C_Read... [22:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:11]Read from MH i2c: E2 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 1A 0F 00 90 00 9D [22:15:11]RAPDU: 90 00 [22:15:11]wFMCommunicate OK [22:15:11]wFMCommunicate request_size=4 [22:15:11]MH_SAM_APDU [22:15:11]CAPDU: 80 0D 03 02 [22:15:11]Write to MH i2c: E2 08 00 1B 0F 80 0D 03 02 00 00 00 00 A5 [22:15:11]Write i2c OK [22:15:11]MH_I2C_Read... [22:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 0B 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 0B 00 1B 0F 00 99 5A 14 04 6A 09 30 02 90 00 56 [22:15:12]RAPDU: 99 5A 14 04 6A 09 30 02 90 00 [22:15:12]wFMCommunicate OK [22:15:12]SAM_PROTO_SignData done [22:15:12]FM_MakeSignedData done [22:15:12]CreateOFDProtocolMessage [22:15:12]wFMCommunicate request_size=4 [22:15:12]MH_SAM_APDU [22:15:12]CAPDU: 80 11 00 00 [22:15:12]Write to MH i2c: E2 08 00 1C 0F 80 11 00 00 00 00 00 00 A5 [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 17 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 17 00 1C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F3 [22:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:15:12]wFMCommunicate OK [22:15:12]CreateOFDProtocolMessage done [22:15:12]OFDSenderStorePacket 115782 [22:15:12]StoreOFDPacket docnum=115782 [22:15:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 F9 D2 28 01 68 6D 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 70 E8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 46 C4 01 00 35 04 06 00 A2 0D 79 72 EE 98 99 5A 14 04 6A 09 30 02 [22:15:12]CheckFolder [22:15:12]dirname=/storage/ofd_packets [22:15:12]CheckFolder done [22:15:12]ProducePacketName [22:15:12]name=ofd_packets/00115782 [22:15:12]NVStorageSaveData ofd_packets/00115782 [22:15:12]File name is /storage/ofd_packets/00115782 [22:15:12]Write 334 bytes [22:15:12]NVStorageSaveData done [22:15:12]OFDSenderStorePacket done [22:15:12]KKMCreateOFDPacket done [22:15:12]NVStorageSaveData kkm_last_timestamp [22:15:12]File name is /storage/kkm_last_timestamp [22:15:12]Write 4 bytes [22:15:12]NVStorageSaveData done [22:15:12]ExternCall_PrintAddStr [22:15:12]wPrintStart [22:15:12]Write to MH i2c: 01 00 00 1D 0F 2C [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 07 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 07 00 1D 0F 00 00 00 00 00 FF 0F 41 [22:15:12]RasterBufferAndPrint [22:15:12]line Счет N : (3)344095 [22:15:12]line ИНН: 02508201610067 [22:15:12]line Контрольно-Кассовый Чек [22:15:12]line ПРОДАЖА [22:15:12]line Товар: 4870233466272 [22:15:12]line Мороженое Пломбир Миша [22:15:12]line 2.000 * 77.00 [22:15:12]line = 154.00 [22:15:12]line НДС 12% НСП 1% [22:15:12]line > о реализуемом товаре [22:15:12]line ИТОГО: 154.00 [22:15:12]line НСП 1% : 1.36 [22:15:12]line НДС 12% : 16.35 [22:15:12]line Наличными: 154.00 [22:15:12]line Безнал.: 0.00 [22:15:12]line Место: АЗС № 90 "Партнер Нефть" [22:15:12]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:15:12]line СНО: Общий режим [22:15:12]line Чек 265 23.09.2024 22:15 [22:15:12]line Смена: 472 ФФД: 1.0 [22:15:12]line ЗНМ: 0300000120 [22:15:12]line РНМ: 0000000000091831 [22:15:12]line Версия ККМ: 001 [22:15:12]line ФМ: 0000000000871830 [22:15:12]line ФД: 115782 [22:15:12]line ФПД: 178178755849880 [22:15:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T221512&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115782&fm=178178755849880&tin=02508201610067®Number=0000000000091831&sum=15400 [22:15:12]line 0 [22:15:12]OFD Sender: Processing packet 115782 [packets to send 482, broken 481] [22:15:12]ProducePacketName [22:15:12]name=ofd_packets/00115782 [22:15:12]OFD Sender: To server: pG, [22:15:12]CommunicateWithHost lk.salyk.kg:30040 [22:15:12]ConnectInit lk.salyk.kg [22:15:12]written 0, free lines is 4095 [22:15:12]Connected sock=9 [22:15: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 38 33 30 30 01 00 00 F9 D2 28 01 68 6D 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 70 E8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 46 C4 01 00 35 04 06 00 A2 0D 79 72 EE 98 99 5A 14 04 6A 09 30 02 [22:15:12]Write to MH i2c: 01 00 00 44 0F 53 [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 07 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 07 00 44 0F 00 00 00 00 00 6C 0C D2 [22:15:12]RasterBufferAndPrint [22:15:12]line [22:15:12]line [22:15:12]line [22:15:12]line [22:15:12]line [22:15:12]written 0, free lines is 3183 [22:15:12]MH_Cut [22:15:12]Write to MH i2c: D1 01 00 4B 0F 01 2C [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: D1 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: D1 01 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: D1 01 00 4B 0F 00 2B [22:15:12]Write to MH i2c: 01 00 00 4C 0F 5B [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 24 33 47 00 60 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 38 33 30 10 04 04 00 46 C4 01 00 F4 03 04 00 B1 8D F1 66 B6 04 01 00 00 CA D5 D8 F3 18 1D 1E 72 [22:15:13]CommunicateWithHost err = 0 [22:15:13]CheckOFDResponse [22:15:13]1017 (14) - 77093643461234 [22:15:13]1041 (16) - 0000000000871830 [22:15:13]1040 (4) - 115782 [22:15:13]1012 (4) - 23.09.2024 15:48 [22:15:13]1206 (1) - 0 [22:15:13]OFD Sender: Remove packet 115782 [22:15:13]ProducePacketName [22:15:13]name=ofd_packets/00115782 [22:15:13]NVStorageDeleteData [22:15:13]OFD Sender: No OFD packet to send [22:15:14]*** Cut start [22:15:14]*** Partial cut [22:15:14]*** CUTSNS_PIN = 1 [22:15:14]*** CUTSNS_PIN = 0 [22:15:14]*** Brake cut motor [22:15:14]Read from MH i2c: 01 [22:15:14]MH_I2C_Read... [22:15:14]*** Stop cut motor [22:15:14]*** Cut end [22:15:14]Read from MH i2c: 01 07 00 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: 01 07 00 4C 0F 00 00 00 00 00 FF 0F 70 [22:15:14]process_action close_receipt done [22:15:14]requested_data is exist [22:15:14]produce_requested_data [22:15:14]requested_item fm.sn is exist - process it [22:15:14]wFMCommunicate request_size=4 [22:15:14]MH_SAM_APDU [22:15:14]CAPDU: 80 11 00 00 [22:15:14]Write to MH i2c: E2 08 00 4D 0F 80 11 00 00 00 00 00 00 D6 [22:15:14]Write i2c OK [22:15:14]MH_I2C_Read... [22:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:14]Read from MH i2c: E2 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 17 00 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 17 00 4D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 24 [22:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:15:14]wFMCommunicate OK [22:15:14]requested_item fd.num is exist - process it [22:15:14]SAM_PROTO_GetFieldsCounters [22:15:14]wFMCommunicate request_size=4 [22:15:14]MH_SAM_APDU [22:15:14]CAPDU: 80 13 00 00 [22:15:14]Write to MH i2c: E2 08 00 4E 0F 80 13 00 00 00 00 00 00 D9 [22:15:14]Write i2c OK [22:15:14]MH_I2C_Read... [22:15:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:14]Read from MH i2c: E2 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 62 00 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 62 00 4E 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 46 C4 01 00 0E 04 04 00 D8 01 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 F4 [22:15: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 46 C4 01 00 0E 04 04 00 D8 01 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 [22:15:14]wFMCommunicate OK [22:15:14]SAM_PROTO_GetFieldsCounters done [22:15:14]requested_item shift.num is exist - process it [22:15:14]requested_item shift.opened is exist - process it [22:15:14]req_shift_opened [22:15:14]FM_GetShiftState [22:15:14]SAM_PROTO_GetShiftState [22:15:14]wFMCommunicate request_size=4 [22:15:14]MH_SAM_APDU [22:15:14]CAPDU: 80 13 01 00 [22:15:14]Write to MH i2c: E2 08 00 4F 0F 80 13 01 00 00 00 00 00 DB [22:15:14]Write i2c OK [22:15:14]MH_I2C_Read... [22:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:15]Read from MH i2c: E2 [22:15:15]MH_I2C_Read... [22:15:15]Read from MH i2c: E2 0E 00 [22:15:15]MH_I2C_Read... [22:15:15]Read from MH i2c: E2 0E 00 4F 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1C [22:15:15]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:15:15]wFMCommunicate OK [22:15:15]SAM_PROTO_GetShiftState done [22:15:15]FM_GetShiftState done [22:15:15]req_shift_opened done [22:15:15]requested_item shift.open_date is exist - process it [22:15:15]req_shift_open_date [22:15:15]req_shift_open_date done [22:15:15]produce_requested_data done [22:15:15]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115782,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [22:15:15]process_action_free close_receipt [22:15:15]json_value_free [22:15:15]json_value_free done [22:15:15]process_json_proto returns [22:15:15]Send response to host [22:15:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115782,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [22:15:15]free response buf [22:15:15]execute_script done [22:15:15]execute_script returns [22:15:15]free content buf [22:15:15]Sock 10.Close socket [22:15:15]Sock 10.Thread stoped [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:57]accept exits with 8 [22:16:57]New connection [22:16:57]New thread 3066867044 created [22:16:57]Thread 3067010404 joined [22:16:57]Waiting for new connection... [22:16:57] Sock 8.Parse request [22:16:57]Sock 8.Check first char [22:16:57]Sock 8.First char is OK [22:16:57]request: POST /json_proto HTTP/1.0 [22:16:57]Method: POST [22:16:57]URL: /json_proto [22:16:57]Method is POST - this is cgi request [22:16:57]url: /json_proto [22:16:57]query_string will be loaded in cgi processing [22:16:57]execute_cgi json_proto POST (null) [22:16:57]execute_cgi path=json_proto method=POST [22:16:57]POST find Content-Length [22:16:57]Host: 172.17.41.136:8080 [22:16:57]Content-Length: 838 [22:16:57]Content-Type: application/json [22:16:57] [22:16:57]POST finish read [22:16:57]Found Content-Length = 838 [22:16:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344096", "tax_sys" : 0, "items" : [ { "code": "4870233466357", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041C\u0438\u0448\u0430 \u0422\u0440\u0438\u043E", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:57]execute_script... [22:16:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344096", "tax_sys" : 0, "items" : [ { "code": "4870233466357", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041C\u0438\u0448\u0430 \u0422\u0440\u0438\u043E", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:57]POST & json_proto [22:16:57]process_json_proto [22:16:57]json parsed OK: [22:16:57]protocol is kg_v1.0 [22:16:57]action value=close_receipt [22:16:57]process_action close_receipt [22:16:57]cmd_close_receipt [22:16:57]MH_GetDate [22:16:57]Write to MH i2c: F0 00 00 50 0F 4E [22:16:57]Write i2c OK [22:16:57]MH_I2C_Read... [22:16:57]Read from MH i2c: F0 [22:16:57]MH_I2C_Read... [22:16:57]Read from MH i2c: F0 09 00 [22:16:57]MH_I2C_Read... [22:16:57]Read from MH i2c: F0 09 00 50 0F 00 DB E8 F1 66 1B D0 5A 64 1A [22:16:57]GetLastDocTimeStamp 1727129712 [22:16:57]current date 1727129819 [22:16:57]FM_GetShiftState [22:16:57]SAM_PROTO_GetShiftState [22:16:57]wFMCommunicate request_size=4 [22:16:57]MH_SAM_APDU [22:16:57]CAPDU: 80 13 01 00 [22:16:57]Write to MH i2c: E2 08 00 51 0F 80 13 01 00 00 00 00 00 DD [22:16:57]Write i2c OK [22:16:57]MH_I2C_Read... [22:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:57]Read from MH i2c: E2 [22:16:57]MH_I2C_Read... [22:16:57]Read from MH i2c: E2 0E 00 [22:16:57]MH_I2C_Read... [22:16:57]Read from MH i2c: E2 0E 00 51 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1E [22:16:57]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:16:57]wFMCommunicate OK [22:16:57]SAM_PROTO_GetShiftState done [22:16:57]FM_GetShiftState done [22:16:57]opened in 1727052070 [22:16:57]opened+sec_in_day 1727138470 [22:16:57]quantity*price = 15000 [22:16:57]sum+1 = 15001 [22:16:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 266 23.09.2024 22:16 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115783 ФПД: 175284671546185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T221659&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115783&fm=175284671546185&tin=02508201610067®Number=0000000000091831&sum=15000 0 [22:16:58]StoreToDocumentArchive [22:16:58]shift 472 fd 115783 [22:16:58]save to /storage/0472/doc_00115783 [22:16:58]save last doc name /storage/0472/doc_00115783 to /storage/kkm_last_doc_name [22:16:58]save OK [22:16:58]Clear old archive folders... [22:16:58]ProcessDocumentItem done err = 0, tmpTLVsize=278 [22:16:58]tlvbuf is 0119BE40 [22:16:58]SAM_PROTO_ClearQueue [22:16:58]wFMCommunicate request_size=4 [22:16:58]MH_SAM_APDU [22:16:58]CAPDU: 80 09 00 00 [22:16:58]Write to MH i2c: E2 08 00 5E 0F 80 09 00 00 00 00 00 00 DF [22:16:58]Write i2c OK [22:16:58]MH_I2C_Read... [22:16:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:58]Read from MH i2c: E2 [22:16:58]MH_I2C_Read... [22:16:58]Read from MH i2c: E2 03 00 [22:16:58]MH_I2C_Read... [22:16:58]Read from MH i2c: E2 03 00 5E 0F 00 90 00 E1 [22:16:58]RAPDU: 90 00 [22:16:58]wFMCommunicate OK [22:16:58]SAM_PROTO_ClearQueue done [22:16:58]KKMCreateOFDPacket [22:16:58]OFDProtocolAddRootSTLVToBuf [22:16:58]FM_MakeSignedData [22:16:58]FM_MakeSignedData [22:16:58]SAM_PROTO_SignData [22:16:58]wFMCommunicate request_size=4 [22:16:58]MH_SAM_APDU [22:16:58]CAPDU: 80 0D 01 02 [22:16:58]Write to MH i2c: E2 08 00 5F 0F 80 0D 01 02 00 00 00 00 E7 [22:16:58]Write i2c OK [22:16:58]MH_I2C_Read... [22:16:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:58]Read from MH i2c: E2 [22:16:58]MH_I2C_Read... [22:16:58]Read from MH i2c: E2 03 00 [22:16:58]MH_I2C_Read... [22:16:58]Read from MH i2c: E2 03 00 5F 0F 00 90 00 E2 [22:16:58]RAPDU: 90 00 [22:16:58]wFMCommunicate OK [22:16:58]wFMCommunicate request_size=255 [22:16:58]MH_SAM_APDU [22:16:58]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 33 35 37 06 04 24 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9C D0 B8 D1 88 D0 B0 20 D0 A2 D1 80 D0 B8 D0 BE FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 DB E8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 [22:16:58]Write to MH i2c: E2 02 01 60 0F 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 33 35 37 06 04 24 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9C D0 B8 D1 88 D0 B0 20 D0 A2 D1 80 D0 B8 D0 BE FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 DB E8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 00 00 47 [22:16:58]Write i2c OK [22:16:58]MH_I2C_Read... [22:16:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:58]Read from MH i2c: E2 [22:16:58]MH_I2C_Read... [22:16:58]Read from MH i2c: E2 03 00 [22:16:58]MH_I2C_Read... [22:16:58]Read from MH i2c: E2 03 00 60 0F 00 90 00 E3 [22:16:58]RAPDU: 90 00 [22:16:58]wFMCommunicate OK [22:16:58]wFMCommunicate request_size=37 [22:16:58]MH_SAM_APDU [22:16:58]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 47 C4 01 00 35 04 06 00 9F 6B A4 95 03 49 [22:16:58]Write to MH i2c: E2 28 00 61 0F 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 47 C4 01 00 35 04 06 00 9F 6B A4 95 03 49 00 00 D7 [22:16:58]OFD Sender: No OFD packet to send [22:16:58]Write i2c OK [22:16:58]MH_I2C_Read... [22:16:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:58]Read from MH i2c: E2 [22:16:58]MH_I2C_Read... [22:16:58]Read from MH i2c: E2 03 00 [22:16:58]MH_I2C_Read... [22:16:58]Read from MH i2c: E2 03 00 61 0F 00 90 00 E4 [22:16:58]RAPDU: 90 00 [22:16:58]wFMCommunicate OK [22:16:58]wFMCommunicate request_size=4 [22:16:58]MH_SAM_APDU [22:16:58]CAPDU: 80 0D 03 02 [22:16:58]Write to MH i2c: E2 08 00 62 0F 80 0D 03 02 00 00 00 00 EC [22:16:58]Write i2c OK [22:16:58]MH_I2C_Read... [22:16:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:58]Read from MH i2c: E2 [22:16:58]MH_I2C_Read... [22:16:58]Read from MH i2c: E2 0B 00 [22:16:58]MH_I2C_Read... [22:16:58]Read from MH i2c: E2 0B 00 62 0F 00 BB 9E C3 86 55 48 B3 26 90 00 05 [22:16:58]RAPDU: BB 9E C3 86 55 48 B3 26 90 00 [22:16:58]wFMCommunicate OK [22:16:58]SAM_PROTO_SignData done [22:16:58]FM_MakeSignedData done [22:16:58]CreateOFDProtocolMessage [22:16:58]wFMCommunicate request_size=4 [22:16:58]MH_SAM_APDU [22:16:58]CAPDU: 80 11 00 00 [22:16:58]Write to MH i2c: E2 08 00 63 0F 80 11 00 00 00 00 00 00 EC [22:16:58]Write i2c OK [22:16:58]MH_I2C_Read... [22:16:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:58]Read from MH i2c: E2 [22:16:58]MH_I2C_Read... [22:16:58]Read from MH i2c: E2 17 00 [22:16:58]MH_I2C_Read... [22:16:58]Read from MH i2c: E2 17 00 63 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3A [22:16:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:16:58]wFMCommunicate OK [22:16:58]CreateOFDProtocolMessage done [22:16:58]OFDSenderStorePacket 115783 [22:16:58]StoreOFDPacket docnum=115783 [22:16:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2A 01 00 00 2E 16 22 01 A5 F5 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 33 35 37 06 04 24 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9C D0 B8 D1 88 D0 B0 20 D0 A2 D1 80 D0 B8 D0 BE FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 DB E8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 47 C4 01 00 35 04 06 00 9F 6B A4 95 03 49 BB 9E C3 86 55 48 B3 26 [22:16:58]CheckFolder [22:16:58]dirname=/storage/ofd_packets [22:16:58]CheckFolder done [22:16:58]ProducePacketName [22:16:58]name=ofd_packets/00115783 [22:16:58]NVStorageSaveData ofd_packets/00115783 [22:16:58]File name is /storage/ofd_packets/00115783 [22:16:58]Write 328 bytes [22:16:58]NVStorageSaveData done [22:16:58]OFDSenderStorePacket done [22:16:58]KKMCreateOFDPacket done [22:16:58]NVStorageSaveData kkm_last_timestamp [22:16:58]File name is /storage/kkm_last_timestamp [22:16:58]Write 4 bytes [22:16:58]NVStorageSaveData done [22:16:58]ExternCall_PrintAddStr [22:16:58]wPrintStart [22:16:58]Write to MH i2c: 01 00 00 64 0F 73 [22:16:58]Write i2c OK [22:16:58]MH_I2C_Read... [22:16:58]Read from MH i2c: 01 [22:16:58]MH_I2C_Read... [22:16:58]Read from MH i2c: 01 07 00 [22:16:58]MH_I2C_Read... [22:16:58]Read from MH i2c: 01 07 00 64 0F 00 00 00 00 00 FF 0F 88 [22:16:58]RasterBufferAndPrint [22:16:58]line Счет N : (3)344096 [22:16:58]line ИНН: 02508201610067 [22:16:58]line Контрольно-Кассовый Чек [22:16:58]line ПРОДАЖА [22:16:58]line Товар: 4870233466357 [22:16:58]line Мороженое Миша Трио [22:16:58]line 2.000 * 75.00 [22:16:58]line = 150.00 [22:16:58]line НДС 12% НСП 1% [22:16:58]line > о реализуемом товаре [22:16:58]line ИТОГО: 150.00 [22:16:58]line НСП 1% : 1.33 [22:16:58]line НДС 12% : 15.93 [22:16:58]line Наличными: 0.00 [22:16:58]line Безнал.: 150.00 [22:16:58]line Место: АЗС № 90 "Партнер Нефть" [22:16:58]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:16:58]line СНО: Общий режим [22:16:58]line Чек 266 23.09.2024 22:16 [22:16:58]line Смена: 472 ФФД: 1.0 [22:16:58]line ЗНМ: 0300000120 [22:16:58]line РНМ: 0000000000091831 [22:16:58]line Версия ККМ: 001 [22:16:58]line Платежная система: Бакай Банк [22:16:58]line ФМ: 0000000000871830 [22:16:58]line ФД: 115783 [22:16:58]line ФПД: 175284671546185 [22:16:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T221659&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115783&fm=175284671546185&tin=02508201610067®Number=0000000000091831&sum=15000 [22:16:58]line 0 [22:16:58]written 0, free lines is 4095 [22:16:59]OFD Sender: Processing packet 115783 [packets to send 482, broken 481] [22:16:59]ProducePacketName [22:16:59]name=ofd_packets/00115783 [22:16:59]OFD Sender: To server: pG, [22:16:59]CommunicateWithHost lk.salyk.kg:30040 [22:16:59]ConnectInit lk.salyk.kg [22:16:59]Connected sock=10 [22:16: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 38 33 30 2A 01 00 00 2E 16 22 01 A5 F5 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 33 35 37 06 04 24 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9C D0 B8 D1 88 D0 B0 20 D0 A2 D1 80 D0 B8 D0 BE FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 DB E8 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 47 C4 01 00 35 04 06 00 9F 6B A4 95 03 49 BB 9E C3 86 55 48 B3 26 [22:16:59]Write to MH i2c: 01 00 00 8D 0F 9C [22:16:59]Write i2c OK [22:16:59]MH_I2C_Read... [22:16:59]Read from MH i2c: 01 [22:16:59]MH_I2C_Read... [22:16:59]Read from MH i2c: 01 07 00 [22:16:59]MH_I2C_Read... [22:16:59]Read from MH i2c: 01 07 00 8D 0F 00 00 00 00 00 59 0C 08 [22:16:59]RasterBufferAndPrint [22:16:59]line [22:16:59]line [22:16:59]line [22:16:59]line [22:16:59]line [22:16:59]written 0, free lines is 3166 [22:16:59]MH_Cut [22:16:59]Write to MH i2c: D1 01 00 94 0F 01 75 [22:16:59]Write i2c OK [22:16:59]MH_I2C_Read... [22:16:59]Read from MH i2c: D1 [22:16:59]MH_I2C_Read... [22:16:59]Read from MH i2c: D1 01 00 [22:16:59]MH_I2C_Read... [22:16:59]Read from MH i2c: D1 01 00 94 0F 00 74 [22:16:59]Write to MH i2c: 01 00 00 95 0F A4 [22:16:59]Write i2c OK [22:16:59]MH_I2C_Read... [22:16:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 27 F6 47 00 4B 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 47 C4 01 00 F4 03 04 00 1C 8E F1 66 B6 04 01 00 00 76 42 66 5C 8A 57 B1 57 [22:16:59]CommunicateWithHost err = 0 [22:16:59]CheckOFDResponse [22:16:59]1017 (14) - 77093643461234 [22:16:59]1041 (16) - 0000000000871830 [22:16:59]1040 (4) - 115783 [22:16:59]1012 (4) - 23.09.2024 15:49 [22:16:59]1206 (1) - 0 [22:16:59]OFD Sender: Remove packet 115783 [22:16:59]ProducePacketName [22:16:59]name=ofd_packets/00115783 [22:16:59]NVStorageDeleteData [22:17:00]OFD Sender: No OFD packet to send [22:17:00]*** Cut start [22:17:00]*** Partial cut [22:17:00]*** CUTSNS_PIN = 1 [22:17:00]*** CUTSNS_PIN = 0 [22:17:01]*** Brake cut motor [22:17:01]Read from MH i2c: 01 [22:17:01]MH_I2C_Read... [22:17:01]*** Stop cut motor [22:17:01]*** Cut end [22:17:01]Read from MH i2c: 01 07 00 [22:17:01]MH_I2C_Read... [22:17:01]Read from MH i2c: 01 07 00 95 0F 00 00 00 00 00 FF 0F B9 [22:17:01]process_action close_receipt done [22:17:01]requested_data is exist [22:17:01]produce_requested_data [22:17:01]requested_item fm.sn is exist - process it [22:17:01]wFMCommunicate request_size=4 [22:17:01]MH_SAM_APDU [22:17:01]CAPDU: 80 11 00 00 [22:17:01]Write to MH i2c: E2 08 00 96 0F 80 11 00 00 00 00 00 00 1F [22:17:01]Write i2c OK [22:17:01]MH_I2C_Read... [22:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:01]Read from MH i2c: E2 [22:17:01]MH_I2C_Read... [22:17:01]Read from MH i2c: E2 17 00 [22:17:01]MH_I2C_Read... [22:17:01]Read from MH i2c: E2 17 00 96 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6D [22:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:17:01]wFMCommunicate OK [22:17:01]requested_item fd.num is exist - process it [22:17:01]SAM_PROTO_GetFieldsCounters [22:17:01]wFMCommunicate request_size=4 [22:17:01]MH_SAM_APDU [22:17:01]CAPDU: 80 13 00 00 [22:17:01]Write to MH i2c: E2 08 00 97 0F 80 13 00 00 00 00 00 00 22 [22:17:01]Write i2c OK [22:17:01]MH_I2C_Read... [22:17:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:01]Read from MH i2c: E2 [22:17:01]MH_I2C_Read... [22:17:01]Read from MH i2c: E2 62 00 [22:17:01]MH_I2C_Read... [22:17:01]Read from MH i2c: E2 62 00 97 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 47 C4 01 00 0E 04 04 00 D8 01 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 41 [22:17:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 47 C4 01 00 0E 04 04 00 D8 01 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 [22:17:01]wFMCommunicate OK [22:17:01]SAM_PROTO_GetFieldsCounters done [22:17:01]requested_item shift.num is exist - process it [22:17:01]requested_item shift.opened is exist - process it [22:17:01]req_shift_opened [22:17:01]FM_GetShiftState [22:17:01]SAM_PROTO_GetShiftState [22:17:01]wFMCommunicate request_size=4 [22:17:01]MH_SAM_APDU [22:17:01]CAPDU: 80 13 01 00 [22:17:01]Write to MH i2c: E2 08 00 98 0F 80 13 01 00 00 00 00 00 24 [22:17:01]Write i2c OK [22:17:01]MH_I2C_Read... [22:17:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:01]Read from MH i2c: E2 [22:17:01]MH_I2C_Read... [22:17:01]Read from MH i2c: E2 0E 00 [22:17:01]MH_I2C_Read... [22:17:01]Read from MH i2c: E2 0E 00 98 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 65 [22:17:01]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:17:01]wFMCommunicate OK [22:17:01]SAM_PROTO_GetShiftState done [22:17:01]FM_GetShiftState done [22:17:01]req_shift_opened done [22:17:01]requested_item shift.open_date is exist - process it [22:17:01]req_shift_open_date [22:17:01]req_shift_open_date done [22:17:01]produce_requested_data done [22:17:01]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115783,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [22:17:01]process_action_free close_receipt [22:17:01]json_value_free [22:17:01]json_value_free done [22:17:01]process_json_proto returns [22:17:01]Send response to host [22:17:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115783,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [22:17:01]free response buf [22:17:01]execute_script done [22:17:01]execute_script returns [22:17:01]free content buf [22:17:01]Sock 8.Close socket [22:17:01]Sock 8.Thread stoped [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:43]accept exits with 9 [22:17:43]New connection [22:17:43]New thread 3067010404 created [22:17:43]Thread 3066867044 joined [22:17:43]Waiting for new connection... [22:17:43] Sock 9.Parse request [22:17:43]Sock 9.Check first char [22:17:43]Sock 9.First char is OK [22:17:43]request: POST /json_proto HTTP/1.0 [22:17:43]Method: POST [22:17:43]URL: /json_proto [22:17:43]Method is POST - this is cgi request [22:17:43]url: /json_proto [22:17:43]query_string will be loaded in cgi processing [22:17:43]execute_cgi json_proto POST (null) [22:17:43]execute_cgi path=json_proto method=POST [22:17:43]POST find Content-Length [22:17:43]Host: 172.17.41.136:8080 [22:17:43]Content-Length: 972 [22:17:43]Content-Type: application/json [22:17:43] [22:17:43]POST finish read [22:17:43]Found Content-Length = 972 [22:17:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344097", "tax_sys" : 0, "items" : [ { "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 370.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:43]execute_script... [22:17:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344097", "tax_sys" : 0, "items" : [ { "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 370.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:43]POST & json_proto [22:17:43]process_json_proto [22:17:43]json parsed OK: [22:17:43]protocol is kg_v1.0 [22:17:43]action value=close_receipt [22:17:43]process_action close_receipt [22:17:43]cmd_close_receipt [22:17:43]MH_GetDate [22:17:43]Write to MH i2c: F0 00 00 99 0F 97 [22:17:43]Write i2c OK [22:17:43]MH_I2C_Read... [22:17:43]Read from MH i2c: F0 [22:17:43]MH_I2C_Read... [22:17:43]Read from MH i2c: F0 09 00 [22:17:43]MH_I2C_Read... [22:17:43]Read from MH i2c: F0 09 00 99 0F 00 09 E9 F1 66 1B D0 5A 64 92 [22:17:43]GetLastDocTimeStamp 1727129819 [22:17:43]current date 1727129865 [22:17:43]FM_GetShiftState [22:17:43]SAM_PROTO_GetShiftState [22:17:43]wFMCommunicate request_size=4 [22:17:43]MH_SAM_APDU [22:17:43]CAPDU: 80 13 01 00 [22:17:43]Write to MH i2c: E2 08 00 9A 0F 80 13 01 00 00 00 00 00 26 [22:17:43]Write i2c OK [22:17:43]MH_I2C_Read... [22:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:43]Read from MH i2c: E2 [22:17:43]MH_I2C_Read... [22:17:43]Read from MH i2c: E2 0E 00 [22:17:43]MH_I2C_Read... [22:17:43]Read from MH i2c: E2 0E 00 9A 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 67 [22:17:43]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:17:43]wFMCommunicate OK [22:17:43]SAM_PROTO_GetShiftState done [22:17:43]FM_GetShiftState done [22:17:43]opened in 1727052070 [22:17:43]opened+sec_in_day 1727138470 [22:17:43]quantity*price = 13000 [22:17:43]sum+1 = 13001 [22:17:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000034250011 Горячий шоколад (GABB trade) 2.000 * 120.00 = 240.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 370.00 НСП 1% : 3.27 НДС 12% : 39.29 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 267 23.09.2024 22:17 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115784 ФПД: 188905342539782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T221745&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115784&fm=188905342539782&tin=02508201610067®Number=0000000000091831&sum=37000 0 [22:17:44]StoreToDocumentArchive [22:17:44]shift 472 fd 115784 [22:17:44]save to /storage/0472/doc_00115784 [22:17:44]save last doc name /storage/0472/doc_00115784 to /storage/kkm_last_doc_name [22:17:44]save OK [22:17:44]Clear old archive folders... [22:17:44]ProcessDocumentItem done err = 0, tmpTLVsize=410 [22:17:44]tlvbuf is 01151BC0 [22:17:44]SAM_PROTO_ClearQueue [22:17:44]wFMCommunicate request_size=4 [22:17:44]MH_SAM_APDU [22:17:44]CAPDU: 80 09 00 00 [22:17:44]Write to MH i2c: E2 08 00 A7 0F 80 09 00 00 00 00 00 00 28 [22:17:44]Write i2c OK [22:17:44]MH_I2C_Read... [22:17:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:44]Read from MH i2c: E2 [22:17:44]MH_I2C_Read... [22:17:44]Read from MH i2c: E2 03 00 [22:17:44]MH_I2C_Read... [22:17:44]Read from MH i2c: E2 03 00 A7 0F 00 90 00 2A [22:17:44]RAPDU: 90 00 [22:17:44]wFMCommunicate OK [22:17:44]SAM_PROTO_ClearQueue done [22:17:44]KKMCreateOFDPacket [22:17:44]OFDProtocolAddRootSTLVToBuf [22:17:44]FM_MakeSignedData [22:17:44]FM_MakeSignedData [22:17:44]SAM_PROTO_SignData [22:17:44]wFMCommunicate request_size=4 [22:17:44]MH_SAM_APDU [22:17:44]CAPDU: 80 0D 01 02 [22:17:44]Write to MH i2c: E2 08 00 A8 0F 80 0D 01 02 00 00 00 00 30 [22:17:44]Write i2c OK [22:17:44]MH_I2C_Read... [22:17:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:44]Read from MH i2c: E2 [22:17:44]MH_I2C_Read... [22:17:44]Read from MH i2c: E2 03 00 [22:17:44]MH_I2C_Read... [22:17:44]Read from MH i2c: E2 03 00 A8 0F 00 90 00 2B [22:17:44]RAPDU: 90 00 [22:17:44]wFMCommunicate OK [22:17:44]wFMCommunicate request_size=255 [22:17:44]MH_SAM_APDU [22:17:44]CAPDU: 80 0D 02 02 FA 03 00 9A 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [22:17:44]Write to MH i2c: E2 02 01 A9 0F 80 0D 02 02 FA 00 03 00 9A 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 63 [22:17:44]Write i2c OK [22:17:44]MH_I2C_Read... [22:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:44]Read from MH i2c: E2 [22:17:44]MH_I2C_Read... [22:17:44]Read from MH i2c: E2 03 00 [22:17:44]MH_I2C_Read... [22:17:44]Read from MH i2c: E2 03 00 A9 0F 00 90 00 2C [22:17:44]RAPDU: 90 00 [22:17:44]wFMCommunicate OK [22:17:44]wFMCommunicate request_size=169 [22:17:44]MH_SAM_APDU [22:17:44]CAPDU: 80 0D 02 02 A4 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 09 E9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 48 C4 01 00 35 04 06 00 AB CE F3 D6 98 06 [22:17:44]Write to MH i2c: E2 AC 00 AA 0F 80 0D 02 02 A4 00 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 09 E9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 48 C4 01 00 35 04 06 00 AB CE F3 D6 98 06 00 00 B4 [22:17:44]Write i2c OK [22:17:44]MH_I2C_Read... [22:17:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:45]Read from MH i2c: E2 [22:17:45]MH_I2C_Read... [22:17:45]Read from MH i2c: E2 03 00 [22:17:45]MH_I2C_Read... [22:17:45]Read from MH i2c: E2 03 00 AA 0F 00 90 00 2D [22:17:45]RAPDU: 90 00 [22:17:45]wFMCommunicate OK [22:17:45]wFMCommunicate request_size=4 [22:17:45]MH_SAM_APDU [22:17:45]CAPDU: 80 0D 03 02 [22:17:45]Write to MH i2c: E2 08 00 AB 0F 80 0D 03 02 00 00 00 00 35 [22:17:45]Write i2c OK [22:17:45]MH_I2C_Read... [22:17:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:45]Read from MH i2c: E2 [22:17:45]MH_I2C_Read... [22:17:45]Read from MH i2c: E2 0B 00 [22:17:45]MH_I2C_Read... [22:17:45]Read from MH i2c: E2 0B 00 AB 0F 00 2B 2E 0A 6F 24 B1 1B 16 90 00 0E [22:17:45]RAPDU: 2B 2E 0A 6F 24 B1 1B 16 90 00 [22:17:45]wFMCommunicate OK [22:17:45]SAM_PROTO_SignData done [22:17:45]FM_MakeSignedData done [22:17:45]CreateOFDProtocolMessage [22:17:45]wFMCommunicate request_size=4 [22:17:45]MH_SAM_APDU [22:17:45]CAPDU: 80 11 00 00 [22:17:45]Write to MH i2c: E2 08 00 AC 0F 80 11 00 00 00 00 00 00 35 [22:17:45]Write i2c OK [22:17:45]MH_I2C_Read... [22:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:45]Read from MH i2c: E2 [22:17:45]MH_I2C_Read... [22:17:45]Read from MH i2c: E2 17 00 [22:17:45]MH_I2C_Read... [22:17:45]Read from MH i2c: E2 17 00 AC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 83 [22:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:17:45]wFMCommunicate OK [22:17:45]CreateOFDProtocolMessage done [22:17:45]OFDSenderStorePacket 115784 [22:17:45]StoreOFDPacket docnum=115784 [22:17:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 AE 01 00 00 08 B4 A6 01 80 D3 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 09 E9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 48 C4 01 00 35 04 06 00 AB CE F3 D6 98 06 2B 2E 0A 6F 24 B1 1B 16 [22:17:45]CheckFolder [22:17:45]dirname=/storage/ofd_packets [22:17:45]CheckFolder done [22:17:45]ProducePacketName [22:17:45]name=ofd_packets/00115784 [22:17:45]NVStorageSaveData ofd_packets/00115784 [22:17:45]File name is /storage/ofd_packets/00115784 [22:17:45]Write 460 bytes [22:17:45]NVStorageSaveData done [22:17:45]OFDSenderStorePacket done [22:17:45]KKMCreateOFDPacket done [22:17:45]NVStorageSaveData kkm_last_timestamp [22:17:45]File name is /storage/kkm_last_timestamp [22:17:45]Write 4 bytes [22:17:45]NVStorageSaveData done [22:17:45]ExternCall_PrintAddStr [22:17:45]wPrintStart [22:17:45]Write to MH i2c: 01 00 00 AD 0F BC [22:17:45]Write i2c OK [22:17:45]MH_I2C_Read... [22:17:45]Read from MH i2c: 01 [22:17:45]MH_I2C_Read... [22:17:45]Read from MH i2c: 01 07 00 [22:17:45]MH_I2C_Read... [22:17:45]OFD Sender: Processing packet 115784 [packets to send 482, broken 481] [22:17:45]ProducePacketName [22:17:45]name=ofd_packets/00115784 [22:17:45]OFD Sender: To server: pG, [22:17:45]CommunicateWithHost lk.salyk.kg:30040 [22:17:45]ConnectInit lk.salyk.kg [22:17:45]Read from MH i2c: 01 07 00 AD 0F 00 00 00 00 00 FF 0F D1 [22:17:45]RasterBufferAndPrint [22:17:45]line Счет N : (3)344097 [22:17:45]line ИНН: 02508201610067 [22:17:45]line Контрольно-Кассовый Чек [22:17:45]line ПРОДАЖА [22:17:45]line Товар: 4700321005024 [22:17:45]line Миндаль Mike жареный соленый 50г [22:17:45]line 1.000 * 130.00 [22:17:45]line = 130.00 [22:17:45]line НДС 12% НСП 1% [22:17:45]line > о реализуемом товаре [22:17:45]line Товар: 2000034250011 [22:17:45]line Горячий шоколад (GABB trade) [22:17:45]line 2.000 * 120.00 [22:17:45]line = 240.00 [22:17:45]line НДС 12% НСП 1% [22:17:45]line > о реализуемом товаре [22:17:45]line ИТОГО: 370.00 [22:17:45]line НСП 1% : 3.27 [22:17:45]line НДС 12% : 39.29 [22:17:45]line Наличными: 370.00 [22:17:45]line Безнал.: 0.00 [22:17:45]line Место: АЗС № 90 "Партнер Нефть" [22:17:45]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:17:45]line СНО: Общий режим [22:17:45]line Чек 267 23.09.2024 22:17 [22:17:45]line Смена: 472 ФФД: 1.0 [22:17:45]line ЗНМ: 0300000120 [22:17:45]line РНМ: 0000000000091831 [22:17:45]line Версия ККМ: 001 [22:17:45]line ФМ: 0000000000871830 [22:17:45]line ФД: 115784 [22:17:45]line ФПД: 188905342539782 [22:17:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T221745&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115784&fm=188905342539782&tin=02508201610067®Number=0000000000091831&sum=37000 [22:17:45]line 0 [22:17:45]written 0, free lines is 4095 [22:17:45]Connected sock=10 [22:17: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 38 33 30 AE 01 00 00 08 B4 A6 01 80 D3 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 09 E9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 48 C4 01 00 35 04 06 00 AB CE F3 D6 98 06 2B 2E 0A 6F 24 B1 1B 16 [22:17:46]Write to MH i2c: 01 00 00 DC 0F EB [22:17:46]Write i2c OK [22:17:46]MH_I2C_Read... [22:17:46]Read from MH i2c: 01 [22:17:46]MH_I2C_Read... [22:17:46]Read from MH i2c: 01 07 00 [22:17:46]MH_I2C_Read... [22:17:46]Read from MH i2c: 01 07 00 DC 0F 00 00 00 00 00 D5 0B D2 [22:17:46]RasterBufferAndPrint [22:17:46]line [22:17:46]line [22:17:46]line [22:17:46]line [22:17:46]line [22:17:46]written 0, free lines is 3033 [22:17:46]MH_Cut [22:17:46]Write to MH i2c: D1 01 00 E3 0F 01 C4 [22:17:46]Write i2c OK [22:17:46]MH_I2C_Read... [22:17:46]Read from MH i2c: D1 [22:17:46]MH_I2C_Read... [22:17:46]Read from MH i2c: D1 01 00 [22:17:46]MH_I2C_Read... [22:17:46]Read from MH i2c: D1 01 00 E3 0F 00 C3 [22:17:46]Write to MH i2c: 01 00 00 E4 0F F3 [22:17:46]Write i2c OK [22:17:46]MH_I2C_Read... [22:17:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0D 57 47 00 23 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 38 33 30 10 04 04 00 48 C4 01 00 F4 03 04 00 4B 8E F1 66 B6 04 01 00 00 F6 53 E2 BE 12 6D DF 53 [22:17:46]CommunicateWithHost err = 0 [22:17:46]CheckOFDResponse [22:17:46]1017 (14) - 77093643461234 [22:17:46]1041 (16) - 0000000000871830 [22:17:46]1040 (4) - 115784 [22:17:46]1012 (4) - 23.09.2024 15:50 [22:17:46]1206 (1) - 0 [22:17:46]OFD Sender: Remove packet 115784 [22:17:46]ProducePacketName [22:17:46]name=ofd_packets/00115784 [22:17:46]NVStorageDeleteData [22:17:46]OFD Sender: No OFD packet to send [22:17:47]*** Cut start [22:17:47]*** Partial cut [22:17:47]*** CUTSNS_PIN = 1 [22:17:47]*** CUTSNS_PIN = 0 [22:17:47]*** Brake cut motor [22:17:48]Read from MH i2c: 01 [22:17:48]MH_I2C_Read... [22:17:48]*** Stop cut motor [22:17:48]*** Cut end [22:17:48]Read from MH i2c: 01 07 00 [22:17:48]MH_I2C_Read... [22:17:48]Read from MH i2c: 01 07 00 E4 0F 00 00 00 00 00 FF 0F 08 [22:17:48]process_action close_receipt done [22:17:48]requested_data is exist [22:17:48]produce_requested_data [22:17:48]requested_item fm.sn is exist - process it [22:17:48]wFMCommunicate request_size=4 [22:17:48]MH_SAM_APDU [22:17:48]CAPDU: 80 11 00 00 [22:17:48]Write to MH i2c: E2 08 00 E5 0F 80 11 00 00 00 00 00 00 6E [22:17:48]Write i2c OK [22:17:48]MH_I2C_Read... [22:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:48]Read from MH i2c: E2 [22:17:48]MH_I2C_Read... [22:17:48]Read from MH i2c: E2 17 00 [22:17:48]MH_I2C_Read... [22:17:48]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 38 33 30 90 00 BC [22:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:17:48]wFMCommunicate OK [22:17:48]requested_item fd.num is exist - process it [22:17:48]SAM_PROTO_GetFieldsCounters [22:17:48]wFMCommunicate request_size=4 [22:17:48]MH_SAM_APDU [22:17:48]CAPDU: 80 13 00 00 [22:17:48]Write to MH i2c: E2 08 00 E6 0F 80 13 00 00 00 00 00 00 71 [22:17:48]Write i2c OK [22:17:48]MH_I2C_Read... [22:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:48]Read from MH i2c: E2 [22:17:48]MH_I2C_Read... [22:17:48]Read from MH i2c: E2 62 00 [22:17:48]MH_I2C_Read... [22:17:48]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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 48 C4 01 00 0E 04 04 00 D8 01 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 94 [22:17: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 48 C4 01 00 0E 04 04 00 D8 01 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 [22:17:48]wFMCommunicate OK [22:17:48]SAM_PROTO_GetFieldsCounters done [22:17:48]requested_item shift.num is exist - process it [22:17:48]requested_item shift.opened is exist - process it [22:17:48]req_shift_opened [22:17:48]FM_GetShiftState [22:17:48]SAM_PROTO_GetShiftState [22:17:48]wFMCommunicate request_size=4 [22:17:48]MH_SAM_APDU [22:17:48]CAPDU: 80 13 01 00 [22:17:48]Write to MH i2c: E2 08 00 E7 0F 80 13 01 00 00 00 00 00 73 [22:17:48]Write i2c OK [22:17:48]MH_I2C_Read... [22:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:48]Read from MH i2c: E2 [22:17:48]MH_I2C_Read... [22:17:48]Read from MH i2c: E2 0E 00 [22:17:48]MH_I2C_Read... [22:17:48]Read from MH i2c: E2 0E 00 E7 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B4 [22:17:48]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:17:48]wFMCommunicate OK [22:17:48]SAM_PROTO_GetShiftState done [22:17:48]FM_GetShiftState done [22:17:48]req_shift_opened done [22:17:48]requested_item shift.open_date is exist - process it [22:17:48]req_shift_open_date [22:17:48]req_shift_open_date done [22:17:48]produce_requested_data done [22:17:48]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115784,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [22:17:48]process_action_free close_receipt [22:17:48]json_value_free [22:17:48]json_value_free done [22:17:48]process_json_proto returns [22:17:48]Send response to host [22:17:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115784,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [22:17:48]free response buf [22:17:48]execute_script done [22:17:48]execute_script returns [22:17:48]free content buf [22:17:48]Sock 9.Close socket [22:17:48]Sock 9.Thread stoped [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:23]accept exits with 8 [22:21:23]New connection [22:21:23]New thread 3066867044 created [22:21:23]Thread 3067010404 joined [22:21:23]Waiting for new connection... [22:21:23] Sock 8.Parse request [22:21:23]Sock 8.Check first char [22:21:23]Sock 8.First char is OK [22:21:23]request: POST /json_proto HTTP/1.0 [22:21:23]Method: POST [22:21:23]URL: /json_proto [22:21:23]Method is POST - this is cgi request [22:21:23]url: /json_proto [22:21:23]query_string will be loaded in cgi processing [22:21:23]execute_cgi json_proto POST (null) [22:21:23]execute_cgi path=json_proto method=POST [22:21:23]POST find Content-Length [22:21:23]Host: 172.17.41.136:8080 [22:21:23]Content-Length: 1789 [22:21:23]Content-Type: application/json [22:21:23] [22:21:23]POST finish read [22:21:23]Found Content-Length = 1789 [22:21:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344098", "tax_sys" : 0, "items" : [ { "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4605664011926", "name": "\u041F\u0438\u0432\u043E \u0412\u0435\u043B\u043A\u043E\u043F\u043E\u043F\u043E\u0432\u0438\u0446\u043A\u0438\u0439 \u043A\u043E\u0437\u0435\u043B 0,5\u043B \u0441\u0442", "price" : 135.00, "quantity" : 2.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 640.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:23]execute_script... [22:21:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344098", "tax_sys" : 0, "items" : [ { "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4605664011926", "name": "\u041F\u0438\u0432\u043E \u0412\u0435\u043B\u043A\u043E\u043F\u043E\u043F\u043E\u0432\u0438\u0446\u043A\u0438\u0439 \u043A\u043E\u0437\u0435\u043B 0,5\u043B \u0441\u0442", "price" : 135.00, "quantity" : 2.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 640.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:23]POST & json_proto [22:21:23]process_json_proto [22:21:23]json parsed OK: [22:21:23]protocol is kg_v1.0 [22:21:23]action value=close_receipt [22:21:23]process_action close_receipt [22:21:23]cmd_close_receipt [22:21:23]MH_GetDate [22:21:23]Write to MH i2c: F0 00 00 E8 0F E6 [22:21:23]Write i2c OK [22:21:23]MH_I2C_Read... [22:21:23]Read from MH i2c: F0 [22:21:23]MH_I2C_Read... [22:21:23]Read from MH i2c: F0 09 00 [22:21:23]MH_I2C_Read... [22:21:23]Read from MH i2c: F0 09 00 E8 0F 00 E5 E9 F1 66 1B D0 5A 64 BD [22:21:23]GetLastDocTimeStamp 1727129865 [22:21:23]current date 1727130085 [22:21:23]FM_GetShiftState [22:21:23]SAM_PROTO_GetShiftState [22:21:23]wFMCommunicate request_size=4 [22:21:23]MH_SAM_APDU [22:21:23]CAPDU: 80 13 01 00 [22:21:23]Write to MH i2c: E2 08 00 E9 0F 80 13 01 00 00 00 00 00 75 [22:21:23]Write i2c OK [22:21:23]MH_I2C_Read... [22:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:23]Read from MH i2c: E2 [22:21:23]MH_I2C_Read... [22:21:23]Read from MH i2c: E2 0E 00 [22:21:23]MH_I2C_Read... [22:21:23]Read from MH i2c: E2 0E 00 E9 0F 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B6 [22:21:23]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:21:23]wFMCommunicate OK [22:21:23]SAM_PROTO_GetShiftState done [22:21:23]FM_GetShiftState done [22:21:23]opened in 1727052070 [22:21:23]opened+sec_in_day 1727138470 [22:21:23]quantity*price = 4500 [22:21:23]sum+1 = 4501 [22:21:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47011656 Водка Пшеничная 0,1л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4605664011926 Пиво Велкопоповицкий козел 0,5л ст 2.000 * 135.00 = 270.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700321005024 Миндаль Mike жареный соленый 50г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 640.00 НСП 1% : 5.66 НДС 12% : 67.95 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 268 23.09.2024 22:21 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115785 ФПД: 77639438530121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T222125&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115785&fm=77639438530121&tin=02508201610067®Number=0000000000091831&sum=64000 0 [22:21:24]StoreToDocumentArchive [22:21:24]shift 472 fd 115785 [22:21:24]save to /storage/0472/doc_00115785 [22:21:24]save last doc name /storage/0472/doc_00115785 to /storage/kkm_last_doc_name [22:21:24]save OK [22:21:24]Clear old archive folders... [22:21:24]ProcessDocumentItem done err = 0, tmpTLVsize=733 [22:21:24]tlvbuf is 01169610 [22:21:24]SAM_PROTO_ClearQueue [22:21:24]wFMCommunicate request_size=4 [22:21:24]MH_SAM_APDU [22:21:24]CAPDU: 80 09 00 00 [22:21:24]Write to MH i2c: E2 08 00 F6 0F 80 09 00 00 00 00 00 00 77 [22:21:24]Write i2c OK [22:21:24]MH_I2C_Read... [22:21:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:24]Read from MH i2c: E2 [22:21:24]MH_I2C_Read... [22:21:24]Read from MH i2c: E2 03 00 [22:21:24]MH_I2C_Read... [22:21:24]Read from MH i2c: E2 03 00 F6 0F 00 90 00 79 [22:21:24]RAPDU: 90 00 [22:21:24]wFMCommunicate OK [22:21:24]SAM_PROTO_ClearQueue done [22:21:24]KKMCreateOFDPacket [22:21:24]OFDProtocolAddRootSTLVToBuf [22:21:24]FM_MakeSignedData [22:21:24]FM_MakeSignedData [22:21:24]SAM_PROTO_SignData [22:21:24]wFMCommunicate request_size=4 [22:21:24]MH_SAM_APDU [22:21:24]CAPDU: 80 0D 01 02 [22:21:24]Write to MH i2c: E2 08 00 F7 0F 80 0D 01 02 00 00 00 00 7F [22:21:24]Write i2c OK [22:21:24]MH_I2C_Read... [22:21:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:24]Read from MH i2c: E2 [22:21:24]MH_I2C_Read... [22:21:24]Read from MH i2c: E2 03 00 [22:21:24]MH_I2C_Read... [22:21:24]Read from MH i2c: E2 03 00 F7 0F 00 90 00 7A [22:21:24]RAPDU: 90 00 [22:21:24]wFMCommunicate OK [22:21:24]wFMCommunicate request_size=255 [22:21:24]MH_SAM_APDU [22:21:24]CAPDU: 80 0D 02 02 FA 03 00 DD 02 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 31 39 32 36 06 04 3D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 92 D0 B5 D0 BB D0 BA D0 BE D0 BF D0 BE D0 [22:21:24]Write to MH i2c: E2 02 01 F8 0F 80 0D 02 02 FA 00 03 00 DD 02 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 31 39 32 36 06 04 3D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 92 D0 B5 D0 BB D0 BA D0 BE D0 BF D0 BE D0 00 00 27 [22:21:24]Write i2c OK [22:21:24]MH_I2C_Read... [22:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:24]Read from MH i2c: E2 [22:21:24]MH_I2C_Read... [22:21:24]Read from MH i2c: E2 03 00 [22:21:24]MH_I2C_Read... [22:21:24]Read from MH i2c: E2 03 00 F8 0F 00 90 00 7B [22:21:24]RAPDU: 90 00 [22:21:24]wFMCommunicate OK [22:21:24]wFMCommunicate request_size=255 [22:21:24]MH_SAM_APDU [22:21:24]CAPDU: 80 0D 02 02 FA BF D0 BE D0 B2 D0 B8 D1 86 D0 BA D0 B8 D0 B9 20 D0 BA D0 BE D0 B7 D0 B5 D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF [22:21:24]Write to MH i2c: E2 02 01 F9 0F 80 0D 02 02 FA 00 BF D0 BE D0 B2 D0 B8 D1 86 D0 BA D0 B8 D0 B9 20 D0 BA D0 BE D0 B7 D0 B5 D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF 00 00 B5 [22:21:24]Write i2c OK [22:21:24]MH_I2C_Read... [22:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:25]Read from MH i2c: E2 [22:21:25]MH_I2C_Read... [22:21:25]Read from MH i2c: E2 03 00 [22:21:25]MH_I2C_Read... [22:21:25]Read from MH i2c: E2 03 00 F9 0F 00 90 00 7C [22:21:25]RAPDU: 90 00 [22:21:25]wFMCommunicate OK [22:21:25]wFMCommunicate request_size=242 [22:21:25]MH_SAM_APDU [22:21:25]CAPDU: 80 0D 02 02 ED D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 E5 E9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 49 C4 01 00 35 04 06 00 46 9C D7 27 76 49 [22:21:25]Write to MH i2c: E2 F5 00 FA 0F 80 0D 02 02 ED 00 D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 E5 E9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 49 C4 01 00 35 04 06 00 46 9C D7 27 76 49 00 00 1E [22:21:25]Write i2c OK [22:21:25]MH_I2C_Read... [22:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:25]Read from MH i2c: E2 [22:21:25]MH_I2C_Read... [22:21:25]Read from MH i2c: E2 03 00 [22:21:25]MH_I2C_Read... [22:21:25]Read from MH i2c: E2 03 00 FA 0F 00 90 00 7D [22:21:25]RAPDU: 90 00 [22:21:25]wFMCommunicate OK [22:21:25]wFMCommunicate request_size=4 [22:21:25]MH_SAM_APDU [22:21:25]CAPDU: 80 0D 03 02 [22:21:25]Write to MH i2c: E2 08 00 FB 0F 80 0D 03 02 00 00 00 00 85 [22:21:25]Write i2c OK [22:21:25]MH_I2C_Read... [22:21:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:25]Read from MH i2c: E2 [22:21:25]MH_I2C_Read... [22:21:25]Read from MH i2c: E2 0B 00 [22:21:25]MH_I2C_Read... [22:21:25]Read from MH i2c: E2 0B 00 FB 0F 00 64 67 00 0A EC FD 56 FA 90 00 94 [22:21:25]RAPDU: 64 67 00 0A EC FD 56 FA 90 00 [22:21:25]wFMCommunicate OK [22:21:25]SAM_PROTO_SignData done [22:21:25]FM_MakeSignedData done [22:21:25]CreateOFDProtocolMessage [22:21:25]wFMCommunicate request_size=4 [22:21:25]MH_SAM_APDU [22:21:25]CAPDU: 80 11 00 00 [22:21:25]Write to MH i2c: E2 08 00 FC 0F 80 11 00 00 00 00 00 00 85 [22:21:25]Write i2c OK [22:21:25]MH_I2C_Read... [22:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:25]Read from MH i2c: E2 [22:21:25]MH_I2C_Read... [22:21:25]Read from MH i2c: E2 17 00 [22:21:25]MH_I2C_Read... [22:21:25]Read from MH i2c: E2 17 00 FC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D3 [22:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:21:25]wFMCommunicate OK [22:21:25]CreateOFDProtocolMessage done [22:21:25]OFDSenderStorePacket 115785 [22:21:25]StoreOFDPacket docnum=115785 [22:21:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F1 02 00 00 74 97 E9 02 BA 36 5A 03 01 00 03 00 DD 02 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 31 39 32 36 06 04 3D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 92 D0 B5 D0 BB D0 BA D0 BE D0 BF D0 BE D0 BF D0 BE D0 B2 D0 B8 D1 86 D0 BA D0 B8 D0 B9 20 D0 BA D0 BE D0 B7 D0 B5 D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 E5 E9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 49 C4 01 00 35 04 06 00 46 9C D7 27 76 49 64 67 00 0A EC FD 56 FA [22:21:25]CheckFolder [22:21:25]dirname=/storage/ofd_packets [22:21:25]CheckFolder done [22:21:25]ProducePacketName [22:21:25]name=ofd_packets/00115785 [22:21:25]NVStorageSaveData ofd_packets/00115785 [22:21:25]File name is /storage/ofd_packets/00115785 [22:21:25]Write 783 bytes [22:21:25]NVStorageSaveData done [22:21:25]OFDSenderStorePacket done [22:21:25]KKMCreateOFDPacket done [22:21:25]NVStorageSaveData kkm_last_timestamp [22:21:25]File name is /storage/kkm_last_timestamp [22:21:25]Write 4 bytes [22:21:25]NVStorageSaveData done [22:21:25]ExternCall_PrintAddStr [22:21:25]wPrintStart [22:21:25]Write to MH i2c: 01 00 00 FD 0F 0C [22:21:25]Write i2c OK [22:21:25]MH_I2C_Read... [22:21:25]Read from MH i2c: 01 [22:21:25]MH_I2C_Read... [22:21:25]Read from MH i2c: 01 07 00 [22:21:25]MH_I2C_Read... [22:21:25]Read from MH i2c: 01 07 00 FD 0F 00 00 00 00 00 FF 0F 21 [22:21:25]RasterBufferAndPrint [22:21:25]line Счет N : (3)344098 [22:21:25]line ИНН: 02508201610067 [22:21:25]line Контрольно-Кассовый Чек [22:21:25]line ПРОДАЖА [22:21:25]line Товар: 42113270 [22:21:25]line Жев Orbit арбуз [22:21:25]line 1.000 * 45.00 [22:21:25]line = 45.00 [22:21:25]line НДС 12% НСП 1% [22:21:25]line > о реализуемом товаре [22:21:25]line Товар: 47011656 [22:21:25]line Водка Пшеничная 0,1л [22:21:25]line 1.000 * 65.00 [22:21:25]line = 65.00 [22:21:25]line НДС 12% НСП 1% [22:21:25]line > о реализуемом товаре [22:21:25]line Товар: 4605664011926 [22:21:25]line Пиво Велкопоповицкий козел 0,5л ст [22:21:25]line 2.000 * 135.00 [22:21:25]line = 270.00 [22:21:25]line НДС 12% НСП 1% [22:21:25]line > о реализуемом товаре [22:21:25]line Товар: 4700321005024 [22:21:25]line Миндаль Mike жареный соленый 50г [22:21:25]line 1.000 * 130.00 [22:21:25]line = 130.00 [22:21:25]line НДС 12% НСП 1% [22:21:25]line > о реализуемом товаре [22:21:25]line Товар: 2000036220012 [22:21:25]line Кофе Капучино XL(GABB TRADE) [22:21:25]line 1.000 * 130.00 [22:21:25]line = 130.00 [22:21:25]line НДС 12% НСП 1% [22:21:25]line > о реализуемом товаре [22:21:25]line ИТОГО: 640.00 [22:21:25]line НСП 1% : 5.66 [22:21:25]line НДС 12% : 67.95 [22:21:25]line Наличными: 640.00 [22:21:25]line Безнал.: 0.00 [22:21:25]line Место: АЗС № 90 "Партнер Нефть" [22:21:25]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:21:25]line СНО: Общий режим [22:21:25]line Чек 268 23.09.2024 22:21 [22:21:25]line Смена: 472 ФФД: 1.0 [22:21:25]line ЗНМ: 0300000120 [22:21:25]line РНМ: 0000000000091831 [22:21:25]line Версия ККМ: 001 [22:21:25]line ФМ: 0000000000871830 [22:21:25]line ФД: 115785 [22:21:25]line ФПД: 77639438530121 [22:21:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T222125&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115785&fm=77639438530121&tin=02508201610067®Number=0000000000091831&sum=64000 [22:21:25]line 0 [22:21:25]written 0, free lines is 4095 [22:21:25]OFD Sender: Processing packet 115785 [packets to send 482, broken 481] [22:21:25]ProducePacketName [22:21:25]name=ofd_packets/00115785 [22:21:25]OFD Sender: To server: pG, [22:21:25]CommunicateWithHost lk.salyk.kg:30040 [22:21:25]ConnectInit lk.salyk.kg [22:21:26]Connected sock=10 [22:21: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 38 33 30 F1 02 00 00 74 97 E9 02 BA 36 5A 03 01 00 03 00 DD 02 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 31 39 32 36 06 04 3D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 92 D0 B5 D0 BB D0 BA D0 BE D0 BF D0 BE D0 BF D0 BE D0 B2 D0 B8 D1 86 D0 BA D0 B8 D0 B9 20 D0 BA D0 BE D0 B7 D0 B5 D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 E5 E9 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 49 C4 01 00 35 04 06 00 46 9C D7 27 76 49 64 67 00 0A EC FD 56 FA [22:21:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B5 6D 47 00 93 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 38 33 30 10 04 04 00 49 C4 01 00 F4 03 04 00 27 8F F1 66 B6 04 01 00 00 1E 4A 20 C2 8F 81 8B FC [22:21:26]CommunicateWithHost err = 0 [22:21:26]CheckOFDResponse [22:21:26]1017 (14) - 77093643461234 [22:21:26]1041 (16) - 0000000000871830 [22:21:26]1040 (4) - 115785 [22:21:26]1012 (4) - 23.09.2024 15:54 [22:21:26]1206 (1) - 0 [22:21:26]OFD Sender: Remove packet 115785 [22:21:26]ProducePacketName [22:21:26]name=ofd_packets/00115785 [22:21:26]NVStorageDeleteData [22:21:26]Write to MH i2c: 01 00 00 3F 10 4F [22:21:26]Write i2c OK [22:21:26]MH_I2C_Read... [22:21:26]Read from MH i2c: 01 [22:21:26]MH_I2C_Read... [22:21:26]Read from MH i2c: 01 07 00 [22:21:26]MH_I2C_Read... [22:21:26]Read from MH i2c: 01 07 00 3F 10 00 00 00 00 00 57 0A B7 [22:21:26]RasterBufferAndPrint [22:21:26]line [22:21:26]line [22:21:26]line [22:21:26]line [22:21:26]line [22:21:26]written 0, free lines is 2651 [22:21:26]MH_Cut [22:21:26]Write to MH i2c: D1 01 00 46 10 01 28 [22:21:26]Write i2c OK [22:21:26]MH_I2C_Read... [22:21:26]Read from MH i2c: D1 [22:21:26]MH_I2C_Read... [22:21:26]Read from MH i2c: D1 01 00 [22:21:26]MH_I2C_Read... [22:21:26]Read from MH i2c: D1 01 00 46 10 00 27 [22:21:26]Write to MH i2c: 01 00 00 47 10 57 [22:21:26]Write i2c OK [22:21:26]MH_I2C_Read... [22:21:27]OFD Sender: No OFD packet to send [22:21:28]*** Cut start [22:21:28]*** Partial cut [22:21:28]*** CUTSNS_PIN = 1 [22:21:28]*** CUTSNS_PIN = 0 [22:21:28]*** Brake cut motor [22:21:29]Read from MH i2c: 01 [22:21:29]MH_I2C_Read... [22:21:29]*** Stop cut motor [22:21:29]*** Cut end [22:21:29]Read from MH i2c: 01 07 00 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: 01 07 00 47 10 00 00 00 00 00 FF 0F 6C [22:21:29]process_action close_receipt done [22:21:29]requested_data is exist [22:21:29]produce_requested_data [22:21:29]requested_item fm.sn is exist - process it [22:21:29]wFMCommunicate request_size=4 [22:21:29]MH_SAM_APDU [22:21:29]CAPDU: 80 11 00 00 [22:21:29]Write to MH i2c: E2 08 00 48 10 80 11 00 00 00 00 00 00 D2 [22:21:29]Write i2c OK [22:21:29]MH_I2C_Read... [22:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:29]Read from MH i2c: E2 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 17 00 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 17 00 48 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 20 [22:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:21:29]wFMCommunicate OK [22:21:29]requested_item fd.num is exist - process it [22:21:29]SAM_PROTO_GetFieldsCounters [22:21:29]wFMCommunicate request_size=4 [22:21:29]MH_SAM_APDU [22:21:29]CAPDU: 80 13 00 00 [22:21:29]Write to MH i2c: E2 08 00 49 10 80 13 00 00 00 00 00 00 D5 [22:21:29]Write i2c OK [22:21:29]MH_I2C_Read... [22:21:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:29]Read from MH i2c: E2 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 62 00 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 62 00 49 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 49 C4 01 00 0E 04 04 00 D8 01 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 FC [22:21: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 49 C4 01 00 0E 04 04 00 D8 01 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 [22:21:29]wFMCommunicate OK [22:21:29]SAM_PROTO_GetFieldsCounters done [22:21:29]requested_item shift.num is exist - process it [22:21:29]requested_item shift.opened is exist - process it [22:21:29]req_shift_opened [22:21:29]FM_GetShiftState [22:21:29]SAM_PROTO_GetShiftState [22:21:29]wFMCommunicate request_size=4 [22:21:29]MH_SAM_APDU [22:21:29]CAPDU: 80 13 01 00 [22:21:29]Write to MH i2c: E2 08 00 4A 10 80 13 01 00 00 00 00 00 D7 [22:21:29]Write i2c OK [22:21:29]MH_I2C_Read... [22:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:29]Read from MH i2c: E2 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 0E 00 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 0E 00 4A 10 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 18 [22:21:29]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:21:29]wFMCommunicate OK [22:21:29]SAM_PROTO_GetShiftState done [22:21:29]FM_GetShiftState done [22:21:29]req_shift_opened done [22:21:29]requested_item shift.open_date is exist - process it [22:21:29]req_shift_open_date [22:21:29]req_shift_open_date done [22:21:29]produce_requested_data done [22:21:29]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115785,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [22:21:29]process_action_free close_receipt [22:21:29]json_value_free [22:21:29]json_value_free done [22:21:29]process_json_proto returns [22:21:29]Send response to host [22:21:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115785,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [22:21:29]free response buf [22:21:29]execute_script done [22:21:29]execute_script returns [22:21:29]free content buf [22:21:29]Sock 8.Close socket [22:21:29]Sock 8.Thread stoped [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:09]accept exits with 9 [22:40:09]New connection [22:40:09]New thread 3067010404 created [22:40:09]Thread 3066867044 joined [22:40:09]Waiting for new connection... [22:40:09] Sock 9.Parse request [22:40:09]Sock 9.Check first char [22:40:09]Sock 9.First char is OK [22:40:09]request: POST /json_proto HTTP/1.0 [22:40:09]Method: POST [22:40:09]URL: /json_proto [22:40:09]Method is POST - this is cgi request [22:40:09]url: /json_proto [22:40:09]query_string will be loaded in cgi processing [22:40:09]execute_cgi json_proto POST (null) [22:40:09]execute_cgi path=json_proto method=POST [22:40:09]POST find Content-Length [22:40:09]Host: 172.17.41.136:8080 [22:40:09]Content-Length: 1612 [22:40:09]Content-Type: application/json [22:40:09] [22:40:09]POST finish read [22:40:09]Found Content-Length = 1612 [22:40:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344099", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 412.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:09]execute_script... [22:40:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344099", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 412.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:09]POST & json_proto [22:40:09]process_json_proto [22:40:09]json parsed OK: [22:40:09]protocol is kg_v1.0 [22:40:09]action value=close_receipt [22:40:09]process_action close_receipt [22:40:09]cmd_close_receipt [22:40:09]MH_GetDate [22:40:09]Write to MH i2c: F0 00 00 4B 10 4A [22:40:10]Write i2c OK [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: F0 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: F0 09 00 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: F0 09 00 4B 10 00 4C EE F1 66 1B D0 5A 64 8D [22:40:10]GetLastDocTimeStamp 1727130085 [22:40:10]current date 1727131212 [22:40:10]FM_GetShiftState [22:40:10]SAM_PROTO_GetShiftState [22:40:10]wFMCommunicate request_size=4 [22:40:10]MH_SAM_APDU [22:40:10]CAPDU: 80 13 01 00 [22:40:10]Write to MH i2c: E2 08 00 4C 10 80 13 01 00 00 00 00 00 D9 [22:40:10]Write i2c OK [22:40:10]MH_I2C_Read... [22:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:10]Read from MH i2c: E2 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: E2 0E 00 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: E2 0E 00 4C 10 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1A [22:40:10]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:40:10]wFMCommunicate OK [22:40:10]SAM_PROTO_GetShiftState done [22:40:10]FM_GetShiftState done [22:40:10]opened in 1727052070 [22:40:10]opened+sec_in_day 1727138470 [22:40:10]quantity*price = 7700 [22:40:10]sum+1 = 7701 [22:40:10]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870002325441 Вода ASU пит н.газ лимон ПЭТ 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 412.00 НСП 1% : 3.63 НДС 12% : 43.75 Наличными: 0.00 Безнал.: 412.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 269 23.09.2024 22:40 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115786 ФПД: 88687710706825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T224012&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115786&fm=88687710706825&tin=02508201610067®Number=0000000000091831&sum=41200 0 [22:40:11]StoreToDocumentArchive [22:40:11]shift 472 fd 115786 [22:40:11]save to /storage/0472/doc_00115786 [22:40:11]save last doc name /storage/0472/doc_00115786 to /storage/kkm_last_doc_name [22:40:11]save OK [22:40:11]Clear old archive folders... [22:40:11]ProcessDocumentItem done err = 0, tmpTLVsize=623 [22:40:11]tlvbuf is 01195F70 [22:40:11]SAM_PROTO_ClearQueue [22:40:11]wFMCommunicate request_size=4 [22:40:11]MH_SAM_APDU [22:40:11]CAPDU: 80 09 00 00 [22:40:11]Write to MH i2c: E2 08 00 59 10 80 09 00 00 00 00 00 00 DB [22:40:11]Write i2c OK [22:40:11]MH_I2C_Read... [22:40:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:11]Read from MH i2c: E2 [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: E2 03 00 [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: E2 03 00 59 10 00 90 00 DD [22:40:11]RAPDU: 90 00 [22:40:11]wFMCommunicate OK [22:40:11]SAM_PROTO_ClearQueue done [22:40:11]KKMCreateOFDPacket [22:40:11]OFDProtocolAddRootSTLVToBuf [22:40:11]FM_MakeSignedData [22:40:11]FM_MakeSignedData [22:40:11]SAM_PROTO_SignData [22:40:11]wFMCommunicate request_size=4 [22:40:11]MH_SAM_APDU [22:40:11]CAPDU: 80 0D 01 02 [22:40:11]Write to MH i2c: E2 08 00 5A 10 80 0D 01 02 00 00 00 00 E3 [22:40:11]Write i2c OK [22:40:11]MH_I2C_Read... [22:40:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:11]Read from MH i2c: E2 [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: E2 03 00 [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: E2 03 00 5A 10 00 90 00 DE [22:40:11]RAPDU: 90 00 [22:40:11]wFMCommunicate OK [22:40:11]wFMCommunicate request_size=255 [22:40:11]MH_SAM_APDU [22:40:11]CAPDU: 80 0D 02 02 FA 03 00 6F 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 [22:40:11]Write to MH i2c: E2 02 01 5B 10 80 0D 02 02 FA 00 03 00 6F 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 00 00 1F [22:40:11]Write i2c OK [22:40:11]MH_I2C_Read... [22:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:11]Read from MH i2c: E2 [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: E2 03 00 [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: E2 03 00 5B 10 00 90 00 DF [22:40:11]RAPDU: 90 00 [22:40:11]wFMCommunicate OK [22:40:11]wFMCommunicate request_size=255 [22:40:11]MH_SAM_APDU [22:40:11]CAPDU: 80 0D 02 02 FA 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 [22:40:11]Write to MH i2c: E2 02 01 5C 10 80 0D 02 02 FA 00 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 00 00 95 [22:40:11]Write i2c OK [22:40:11]MH_I2C_Read... [22:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:12]Read from MH i2c: E2 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: E2 03 00 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: E2 03 00 5C 10 00 90 00 E0 [22:40:12]RAPDU: 90 00 [22:40:12]wFMCommunicate OK [22:40:12]wFMCommunicate request_size=132 [22:40:12]MH_SAM_APDU [22:40:12]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 17 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 A0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 4C EE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4A C4 01 00 35 04 06 00 50 A9 37 7E 1C 89 [22:40:12]Write to MH i2c: E2 87 00 5D 10 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 17 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 A0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 4C EE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4A C4 01 00 35 04 06 00 50 A9 37 7E 1C 89 00 00 AA [22:40:12]Write i2c OK [22:40:12]MH_I2C_Read... [22:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:12]Read from MH i2c: E2 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: E2 03 00 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: E2 03 00 5D 10 00 90 00 E1 [22:40:12]RAPDU: 90 00 [22:40:12]wFMCommunicate OK [22:40:12]wFMCommunicate request_size=4 [22:40:12]MH_SAM_APDU [22:40:12]CAPDU: 80 0D 03 02 [22:40:12]Write to MH i2c: E2 08 00 5E 10 80 0D 03 02 00 00 00 00 E9 [22:40:12]Write i2c OK [22:40:12]MH_I2C_Read... [22:40:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:12]Read from MH i2c: E2 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: E2 0B 00 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: E2 0B 00 5E 10 00 94 93 28 00 AE 7A 6C 96 90 00 63 [22:40:12]RAPDU: 94 93 28 00 AE 7A 6C 96 90 00 [22:40:12]wFMCommunicate OK [22:40:12]SAM_PROTO_SignData done [22:40:12]FM_MakeSignedData done [22:40:12]CreateOFDProtocolMessage [22:40:12]wFMCommunicate request_size=4 [22:40:12]MH_SAM_APDU [22:40:12]CAPDU: 80 11 00 00 [22:40:12]Write to MH i2c: E2 08 00 5F 10 80 11 00 00 00 00 00 00 E9 [22:40:12]Write i2c OK [22:40:12]MH_I2C_Read... [22:40:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:12]Read from MH i2c: E2 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: E2 17 00 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: E2 17 00 5F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 37 [22:40:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:40:12]wFMCommunicate OK [22:40:12]CreateOFDProtocolMessage done [22:40:12]OFDSenderStorePacket 115786 [22:40:12]StoreOFDPacket docnum=115786 [22:40:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 83 02 00 00 70 21 7B 02 31 71 5A 03 01 00 03 00 6F 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 A0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 4C EE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4A C4 01 00 35 04 06 00 50 A9 37 7E 1C 89 94 93 28 00 AE 7A 6C 96 [22:40:12]CheckFolder [22:40:12]dirname=/storage/ofd_packets [22:40:12]CheckFolder done [22:40:12]ProducePacketName [22:40:12]name=ofd_packets/00115786 [22:40:12]NVStorageSaveData ofd_packets/00115786 [22:40:12]File name is /storage/ofd_packets/00115786 [22:40:12]Write 673 bytes [22:40:12]NVStorageSaveData done [22:40:12]OFDSenderStorePacket done [22:40:12]KKMCreateOFDPacket done [22:40:12]NVStorageSaveData kkm_last_timestamp [22:40:12]File name is /storage/kkm_last_timestamp [22:40:12]Write 4 bytes [22:40:12]NVStorageSaveData done [22:40:12]ExternCall_PrintAddStr [22:40:12]wPrintStart [22:40:12]Write to MH i2c: 01 00 00 60 10 70 [22:40:12]Write i2c OK [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: 01 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: 01 07 00 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: 01 07 00 60 10 00 00 00 00 00 FF 0F 85 [22:40:12]RasterBufferAndPrint [22:40:12]line Счет N : (3)344099 [22:40:12]line ИНН: 02508201610067 [22:40:12]line Контрольно-Кассовый Чек [22:40:12]line ПРОДАЖА [22:40:12]line Товар: 4700000480050 [22:40:12]line Напиток Nitro Energy эн green ж/б 0,45л [22:40:12]line 1.000 * 77.00 [22:40:12]line = 77.00 [22:40:12]line НДС 12% НСП 1% [22:40:12]line > о реализуемом товаре [22:40:12]line Товар: 4700000160211 [22:40:12]line Вода Легенда 0,5л [22:40:12]line 1.000 * 40.00 [22:40:12]line = 40.00 [22:40:12]line НДС 12% НСП 1% [22:40:12]line > о реализуемом товаре [22:40:12]line Товар: 4870002325441 [22:40:12]line Вода ASU пит н.газ лимон ПЭТ 0,5л [22:40:12]line 1.000 * 65.00 [22:40:12]line = 65.00 [22:40:12]line НДС 12% НСП 1% [22:40:12]line > о реализуемом товаре [22:40:12]line Товар: 2000036240010 [22:40:12]line Кофе Латте (GABB TRADE) [22:40:12]line 2.000 * 115.00 [22:40:12]line = 230.00 [22:40:12]line НДС 12% НСП 1% [22:40:12]line > о реализуемом товаре [22:40:12]line ИТОГО: 412.00 [22:40:12]line НСП 1% : 3.63 [22:40:12]line НДС 12% : 43.75 [22:40:12]line Наличными: 0.00 [22:40:12]line Безнал.: 412.00 [22:40:12]line Место: АЗС № 90 "Партнер Нефть" [22:40:12]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:40:12]line СНО: Общий режим [22:40:12]line Чек 269 23.09.2024 22:40 [22:40:12]line Смена: 472 ФФД: 1.0 [22:40:12]line ЗНМ: 0300000120 [22:40:12]line РНМ: 0000000000091831 [22:40:12]line Версия ККМ: 001 [22:40:12]line Платежная система: O! деньги [22:40:12]line ФМ: 0000000000871830 [22:40:12]line ФД: 115786 [22:40:12]line ФПД: 88687710706825 [22:40:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T224012&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115786&fm=88687710706825&tin=02508201610067®Number=0000000000091831&sum=41200 [22:40:12]line 0 [22:40:12]OFD Sender: Processing packet 115786 [packets to send 482, broken 481] [22:40:12]ProducePacketName [22:40:12]name=ofd_packets/00115786 [22:40:12]OFD Sender: To server: pG, [22:40:12]CommunicateWithHost lk.salyk.kg:30040 [22:40:12]ConnectInit lk.salyk.kg [22:40:12]written 0, free lines is 4095 [22:40:12]Connected sock=10 [22:40: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 38 33 30 83 02 00 00 70 21 7B 02 31 71 5A 03 01 00 03 00 6F 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 A0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 4C EE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4A C4 01 00 35 04 06 00 50 A9 37 7E 1C 89 94 93 28 00 AE 7A 6C 96 [22:40:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F5 1B 47 00 D5 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 38 33 30 10 04 04 00 4A C4 01 00 F4 03 04 00 8E 93 F1 66 B6 04 01 00 00 D5 B3 2C A5 88 17 6C F3 [22:40:13]CommunicateWithHost err = 0 [22:40:13]CheckOFDResponse [22:40:13]1017 (14) - 77093643461234 [22:40:13]1041 (16) - 0000000000871830 [22:40:13]1040 (4) - 115786 [22:40:13]1012 (4) - 23.09.2024 16:13 [22:40:13]1206 (1) - 0 [22:40:13]OFD Sender: Remove packet 115786 [22:40:13]ProducePacketName [22:40:13]name=ofd_packets/00115786 [22:40:13]NVStorageDeleteData [22:40:13]Write to MH i2c: 01 00 00 9D 10 AD [22:40:13]Write i2c OK [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: 01 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: 01 07 00 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: 01 07 00 9D 10 00 00 00 00 00 9E 0A 5C [22:40:13]RasterBufferAndPrint [22:40:13]line [22:40:13]line [22:40:13]line [22:40:13]line [22:40:13]line [22:40:13]written 0, free lines is 2722 [22:40:13]MH_Cut [22:40:13]Write to MH i2c: D1 01 00 A4 10 01 86 [22:40:13]Write i2c OK [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: D1 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: D1 01 00 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: D1 01 00 A4 10 00 85 [22:40:13]Write to MH i2c: 01 00 00 A5 10 B5 [22:40:13]Write i2c OK [22:40:13]MH_I2C_Read... [22:40:13]OFD Sender: No OFD packet to send [22:40:15]*** Cut start [22:40:15]*** Partial cut [22:40:15]*** CUTSNS_PIN = 1 [22:40:15]*** CUTSNS_PIN = 0 [22:40:15]*** Brake cut motor [22:40:15]Read from MH i2c: 01 [22:40:15]MH_I2C_Read... [22:40:15]*** Stop cut motor [22:40:15]*** Cut end [22:40:15]Read from MH i2c: 01 07 00 [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: 01 07 00 A5 10 00 00 00 00 00 FF 0F CA [22:40:15]process_action close_receipt done [22:40:15]requested_data is exist [22:40:15]produce_requested_data [22:40:15]requested_item fm.sn is exist - process it [22:40:15]wFMCommunicate request_size=4 [22:40:15]MH_SAM_APDU [22:40:15]CAPDU: 80 11 00 00 [22:40:15]Write to MH i2c: E2 08 00 A6 10 80 11 00 00 00 00 00 00 30 [22:40:15]Write i2c OK [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: E2 [22:40:15]MH_I2C_Read... [22:40:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:15]Read from MH i2c: E2 17 00 [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: E2 17 00 A6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7E [22:40:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:40:15]wFMCommunicate OK [22:40:15]requested_item fd.num is exist - process it [22:40:15]SAM_PROTO_GetFieldsCounters [22:40:15]wFMCommunicate request_size=4 [22:40:15]MH_SAM_APDU [22:40:15]CAPDU: 80 13 00 00 [22:40:15]Write to MH i2c: E2 08 00 A7 10 80 13 00 00 00 00 00 00 33 [22:40:15]Write i2c OK [22:40:15]MH_I2C_Read... [22:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:16]Read from MH i2c: E2 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 62 00 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 62 00 A7 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4A C4 01 00 0E 04 04 00 D8 01 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 5E [22:40:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4A C4 01 00 0E 04 04 00 D8 01 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 [22:40:16]wFMCommunicate OK [22:40:16]SAM_PROTO_GetFieldsCounters done [22:40:16]requested_item shift.num is exist - process it [22:40:16]requested_item shift.opened is exist - process it [22:40:16]req_shift_opened [22:40:16]FM_GetShiftState [22:40:16]SAM_PROTO_GetShiftState [22:40:16]wFMCommunicate request_size=4 [22:40:16]MH_SAM_APDU [22:40:16]CAPDU: 80 13 01 00 [22:40:16]Write to MH i2c: E2 08 00 A8 10 80 13 01 00 00 00 00 00 35 [22:40:16]Write i2c OK [22:40:16]MH_I2C_Read... [22:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:16]Read from MH i2c: E2 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 0E 00 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 0E 00 A8 10 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 76 [22:40:16]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:40:16]wFMCommunicate OK [22:40:16]SAM_PROTO_GetShiftState done [22:40:16]FM_GetShiftState done [22:40:16]req_shift_opened done [22:40:16]requested_item shift.open_date is exist - process it [22:40:16]req_shift_open_date [22:40:16]req_shift_open_date done [22:40:16]produce_requested_data done [22:40:16]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115786,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [22:40:16]process_action_free close_receipt [22:40:16]json_value_free [22:40:16]json_value_free done [22:40:16]process_json_proto returns [22:40:16]Send response to host [22:40:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115786,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [22:40:16]free response buf [22:40:16]execute_script done [22:40:16]execute_script returns [22:40:16]free content buf [22:40:16]Sock 9.Close socket [22:40:16]Sock 9.Thread stoped [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:47]accept exits with 8 [22:40:47]New connection [22:40:47]New thread 3066867044 created [22:40:47]Thread 3067010404 joined [22:40:47]Waiting for new connection... [22:40:47] Sock 8.Parse request [22:40:47]Sock 8.Check first char [22:40:47]Sock 8.First char is OK [22:40:47]request: POST /json_proto HTTP/1.0 [22:40:47]Method: POST [22:40:47]URL: /json_proto [22:40:47]Method is POST - this is cgi request [22:40:47]url: /json_proto [22:40:47]query_string will be loaded in cgi processing [22:40:47]execute_cgi json_proto POST (null) [22:40:47]execute_cgi path=json_proto method=POST [22:40:47]POST find Content-Length [22:40:47]Host: 172.17.41.136:8080 [22:40:47]Content-Length: 973 [22:40:47]Content-Type: application/json [22:40:47] [22:40:47]POST finish read [22:40:47]Found Content-Length = 973 [22:40:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344100", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:47]execute_script... [22:40:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344100", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:47]POST & json_proto [22:40:47]process_json_proto [22:40:47]json parsed OK: [22:40:47]protocol is kg_v1.0 [22:40:47]action value=close_receipt [22:40:47]process_action close_receipt [22:40:47]cmd_close_receipt [22:40:47]MH_GetDate [22:40:47]Write to MH i2c: F0 00 00 A9 10 A8 [22:40:47]Write i2c OK [22:40:47]MH_I2C_Read... [22:40:47]Read from MH i2c: F0 [22:40:47]MH_I2C_Read... [22:40:47]Read from MH i2c: F0 09 00 [22:40:47]MH_I2C_Read... [22:40:47]Read from MH i2c: F0 09 00 A9 10 00 71 EE F1 66 1B D0 5A 64 10 [22:40:47]GetLastDocTimeStamp 1727131212 [22:40:47]current date 1727131249 [22:40:47]FM_GetShiftState [22:40:47]SAM_PROTO_GetShiftState [22:40:47]wFMCommunicate request_size=4 [22:40:47]MH_SAM_APDU [22:40:47]CAPDU: 80 13 01 00 [22:40:47]Write to MH i2c: E2 08 00 AA 10 80 13 01 00 00 00 00 00 37 [22:40:47]Write i2c OK [22:40:47]MH_I2C_Read... [22:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:47]Read from MH i2c: E2 [22:40:47]MH_I2C_Read... [22:40:47]Read from MH i2c: E2 0E 00 [22:40:47]MH_I2C_Read... [22:40:47]Read from MH i2c: E2 0E 00 AA 10 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 78 [22:40:47]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:40:47]wFMCommunicate OK [22:40:47]SAM_PROTO_GetShiftState done [22:40:47]FM_GetShiftState done [22:40:47]opened in 1727052070 [22:40:47]opened+sec_in_day 1727138470 [22:40:47]quantity*price = 12500 [22:40:47]sum+1 = 12501 [22:40:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.07 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 270 23.09.2024 22:40 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115787 ФПД: 89732253377103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T224049&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115787&fm=89732253377103&tin=02508201610067®Number=0000000000091831&sum=25500 0 [22:40:48]StoreToDocumentArchive [22:40:48]shift 472 fd 115787 [22:40:48]save to /storage/0472/doc_00115787 [22:40:48]save last doc name /storage/0472/doc_00115787 to /storage/kkm_last_doc_name [22:40:48]save OK [22:40:48]Clear old archive folders... [22:40:48]ProcessDocumentItem done err = 0, tmpTLVsize=415 [22:40:48]tlvbuf is 011915C0 [22:40:48]SAM_PROTO_ClearQueue [22:40:48]wFMCommunicate request_size=4 [22:40:48]MH_SAM_APDU [22:40:48]CAPDU: 80 09 00 00 [22:40:48]Write to MH i2c: E2 08 00 B7 10 80 09 00 00 00 00 00 00 39 [22:40:48]Write i2c OK [22:40:48]MH_I2C_Read... [22:40:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:48]Read from MH i2c: E2 [22:40:48]MH_I2C_Read... [22:40:48]Read from MH i2c: E2 03 00 [22:40:48]MH_I2C_Read... [22:40:48]Read from MH i2c: E2 03 00 B7 10 00 90 00 3B [22:40:48]RAPDU: 90 00 [22:40:48]wFMCommunicate OK [22:40:48]SAM_PROTO_ClearQueue done [22:40:48]KKMCreateOFDPacket [22:40:48]OFDProtocolAddRootSTLVToBuf [22:40:48]FM_MakeSignedData [22:40:48]FM_MakeSignedData [22:40:48]SAM_PROTO_SignData [22:40:48]wFMCommunicate request_size=4 [22:40:48]MH_SAM_APDU [22:40:48]CAPDU: 80 0D 01 02 [22:40:48]Write to MH i2c: E2 08 00 B8 10 80 0D 01 02 00 00 00 00 41 [22:40:48]Write i2c OK [22:40:48]MH_I2C_Read... [22:40:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:48]Read from MH i2c: E2 [22:40:48]MH_I2C_Read... [22:40:48]Read from MH i2c: E2 03 00 [22:40:48]MH_I2C_Read... [22:40:48]Read from MH i2c: E2 03 00 B8 10 00 90 00 3C [22:40:48]RAPDU: 90 00 [22:40:48]wFMCommunicate OK [22:40:48]wFMCommunicate request_size=255 [22:40:48]MH_SAM_APDU [22:40:48]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [22:40:48]Write to MH i2c: E2 02 01 B9 10 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 F8 [22:40:48]Write i2c OK [22:40:48]MH_I2C_Read... [22:40:48]OFD Sender: No OFD packet to send [22:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:48]Read from MH i2c: E2 [22:40:48]MH_I2C_Read... [22:40:48]Read from MH i2c: E2 03 00 [22:40:48]MH_I2C_Read... [22:40:48]Read from MH i2c: E2 03 00 B9 10 00 90 00 3D [22:40:48]RAPDU: 90 00 [22:40:48]wFMCommunicate OK [22:40:48]wFMCommunicate request_size=174 [22:40:48]MH_SAM_APDU [22:40:48]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 71 EE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4B C4 01 00 35 04 06 00 51 9C 6B 16 62 4F [22:40:48]Write to MH i2c: E2 B1 00 BA 10 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 71 EE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4B C4 01 00 35 04 06 00 51 9C 6B 16 62 4F 00 00 20 [22:40:48]Write i2c OK [22:40:48]MH_I2C_Read... [22:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:49]Read from MH i2c: E2 [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: E2 03 00 [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: E2 03 00 BA 10 00 90 00 3E [22:40:49]RAPDU: 90 00 [22:40:49]wFMCommunicate OK [22:40:49]wFMCommunicate request_size=4 [22:40:49]MH_SAM_APDU [22:40:49]CAPDU: 80 0D 03 02 [22:40:49]Write to MH i2c: E2 08 00 BB 10 80 0D 03 02 00 00 00 00 46 [22:40:49]Write i2c OK [22:40:49]MH_I2C_Read... [22:40:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:49]Read from MH i2c: E2 [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: E2 0B 00 [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: E2 0B 00 BB 10 00 7F 27 43 90 A4 CB E0 2E 90 00 3D [22:40:49]RAPDU: 7F 27 43 90 A4 CB E0 2E 90 00 [22:40:49]wFMCommunicate OK [22:40:49]SAM_PROTO_SignData done [22:40:49]FM_MakeSignedData done [22:40:49]CreateOFDProtocolMessage [22:40:49]wFMCommunicate request_size=4 [22:40:49]MH_SAM_APDU [22:40:49]CAPDU: 80 11 00 00 [22:40:49]Write to MH i2c: E2 08 00 BC 10 80 11 00 00 00 00 00 00 46 [22:40:49]Write i2c OK [22:40:49]MH_I2C_Read... [22:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:49]Read from MH i2c: E2 [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: E2 17 00 [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: E2 17 00 BC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 94 [22:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:40:49]wFMCommunicate OK [22:40:49]CreateOFDProtocolMessage done [22:40:49]OFDSenderStorePacket 115787 [22:40:49]StoreOFDPacket docnum=115787 [22:40:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B3 01 00 00 20 88 AB 01 7B B1 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 71 EE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4B C4 01 00 35 04 06 00 51 9C 6B 16 62 4F 7F 27 43 90 A4 CB E0 2E [22:40:49]CheckFolder [22:40:49]dirname=/storage/ofd_packets [22:40:49]CheckFolder done [22:40:49]ProducePacketName [22:40:49]name=ofd_packets/00115787 [22:40:49]NVStorageSaveData ofd_packets/00115787 [22:40:49]File name is /storage/ofd_packets/00115787 [22:40:49]Write 465 bytes [22:40:49]NVStorageSaveData done [22:40:49]OFDSenderStorePacket done [22:40:49]KKMCreateOFDPacket done [22:40:49]NVStorageSaveData kkm_last_timestamp [22:40:49]File name is /storage/kkm_last_timestamp [22:40:49]Write 4 bytes [22:40:49]NVStorageSaveData done [22:40:49]ExternCall_PrintAddStr [22:40:49]wPrintStart [22:40:49]Write to MH i2c: 01 00 00 BD 10 CD [22:40:49]Write i2c OK [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: 01 [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: 01 07 00 [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: 01 07 00 BD 10 00 00 00 00 00 FF 0F E2 [22:40:49]RasterBufferAndPrint [22:40:49]line Счет N : (3)344100 [22:40:49]line ИНН: 02508201610067 [22:40:49]line Контрольно-Кассовый Чек [22:40:49]line ПРОДАЖА [22:40:49]line Товар: 4870202521216 [22:40:49]line Напиток MAXI чай 1,2 зел.лимон (новый) [22:40:49]line 1.000 * 125.00 [22:40:49]line = 125.00 [22:40:49]line НДС 12% НСП 1% [22:40:49]line > о реализуемом товаре [22:40:49]line Товар: 2000036220012 [22:40:49]line Кофе Капучино XL(GABB TRADE) [22:40:49]line 1.000 * 130.00 [22:40:49]line = 130.00 [22:40:49]line НДС 12% НСП 1% [22:40:49]line > о реализуемом товаре [22:40:49]line ИТОГО: 255.00 [22:40:49]line НСП 1% : 2.26 [22:40:49]line НДС 12% : 27.07 [22:40:49]line Наличными: 255.00 [22:40:49]line Безнал.: 0.00 [22:40:49]line Место: АЗС № 90 "Партнер Нефть" [22:40:49]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:40:49]line СНО: Общий режим [22:40:49]line Чек 270 23.09.2024 22:40 [22:40:49]line Смена: 472 ФФД: 1.0 [22:40:49]line ЗНМ: 0300000120 [22:40:49]line РНМ: 0000000000091831 [22:40:49]line Версия ККМ: 001 [22:40:49]line ФМ: 0000000000871830 [22:40:49]line ФД: 115787 [22:40:49]line ФПД: 89732253377103 [22:40:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T224049&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115787&fm=89732253377103&tin=02508201610067®Number=0000000000091831&sum=25500 [22:40:49]line 0 [22:40:49]OFD Sender: Processing packet 115787 [packets to send 482, broken 481] [22:40:49]ProducePacketName [22:40:49]name=ofd_packets/00115787 [22:40:49]OFD Sender: To server: pG, [22:40:49]CommunicateWithHost lk.salyk.kg:30040 [22:40:49]ConnectInit lk.salyk.kg [22:40:49]written 0, free lines is 4095 [22:40:49]Connected sock=10 [22:40: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 38 33 30 B3 01 00 00 20 88 AB 01 7B B1 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 71 EE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4B C4 01 00 35 04 06 00 51 9C 6B 16 62 4F 7F 27 43 90 A4 CB E0 2E [22:40:50]Write to MH i2c: 01 00 00 EC 10 FC [22:40:50]Write i2c OK [22:40:50]MH_I2C_Read... [22:40:50]Read from MH i2c: 01 [22:40:50]MH_I2C_Read... [22:40:50]Read from MH i2c: 01 07 00 [22:40:50]MH_I2C_Read... [22:40:50]Read from MH i2c: 01 07 00 EC 10 00 00 00 00 00 DA 0B E8 [22:40:50]RasterBufferAndPrint [22:40:50]line [22:40:50]line [22:40:50]line [22:40:50]line [22:40:50]line [22:40:50]written 0, free lines is 3039 [22:40:50]MH_Cut [22:40:50]Write to MH i2c: D1 01 00 F3 10 01 D5 [22:40:50]Write i2c OK [22:40:50]MH_I2C_Read... [22:40:50]Read from MH i2c: D1 [22:40:50]MH_I2C_Read... [22:40:50]Read from MH i2c: D1 01 00 [22:40:50]MH_I2C_Read... [22:40:50]Read from MH i2c: D1 01 00 F3 10 00 D4 [22:40:50]Write to MH i2c: 01 00 00 F4 10 04 [22:40:50]Write i2c OK [22:40:50]MH_I2C_Read... [22:40:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A3 9C 47 00 C6 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 38 33 30 10 04 04 00 4B C4 01 00 F4 03 04 00 B3 93 F1 66 B6 04 01 00 00 FB 2F CD 69 29 3A 27 1B [22:40:50]CommunicateWithHost err = 0 [22:40:50]CheckOFDResponse [22:40:50]1017 (14) - 77093643461234 [22:40:50]1041 (16) - 0000000000871830 [22:40:50]1040 (4) - 115787 [22:40:50]1012 (4) - 23.09.2024 16:13 [22:40:50]1206 (1) - 0 [22:40:50]OFD Sender: Remove packet 115787 [22:40:50]ProducePacketName [22:40:50]name=ofd_packets/00115787 [22:40:50]NVStorageDeleteData [22:40:50]OFD Sender: No OFD packet to send [22:40:51]*** Cut start [22:40:51]*** Partial cut [22:40:51]*** CUTSNS_PIN = 1 [22:40:51]*** CUTSNS_PIN = 0 [22:40:51]*** Brake cut motor [22:40:52]Read from MH i2c: 01 [22:40:52]MH_I2C_Read... [22:40:52]*** Stop cut motor [22:40:52]*** Cut end [22:40:52]Read from MH i2c: 01 07 00 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: 01 07 00 F4 10 00 00 00 00 00 FF 0F 19 [22:40:52]process_action close_receipt done [22:40:52]requested_data is exist [22:40:52]produce_requested_data [22:40:52]requested_item fm.sn is exist - process it [22:40:52]wFMCommunicate request_size=4 [22:40:52]MH_SAM_APDU [22:40:52]CAPDU: 80 11 00 00 [22:40:52]Write to MH i2c: E2 08 00 F5 10 80 11 00 00 00 00 00 00 7F [22:40:52]Write i2c OK [22:40:52]MH_I2C_Read... [22:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:52]Read from MH i2c: E2 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: E2 17 00 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: E2 17 00 F5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CD [22:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:40:52]wFMCommunicate OK [22:40:52]requested_item fd.num is exist - process it [22:40:52]SAM_PROTO_GetFieldsCounters [22:40:52]wFMCommunicate request_size=4 [22:40:52]MH_SAM_APDU [22:40:52]CAPDU: 80 13 00 00 [22:40:52]Write to MH i2c: E2 08 00 F6 10 80 13 00 00 00 00 00 00 82 [22:40:52]Write i2c OK [22:40:52]MH_I2C_Read... [22:40:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:52]Read from MH i2c: E2 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: E2 62 00 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: E2 62 00 F6 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4B C4 01 00 0E 04 04 00 D8 01 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 B1 [22:40: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4B C4 01 00 0E 04 04 00 D8 01 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 [22:40:52]wFMCommunicate OK [22:40:52]SAM_PROTO_GetFieldsCounters done [22:40:52]requested_item shift.num is exist - process it [22:40:52]requested_item shift.opened is exist - process it [22:40:52]req_shift_opened [22:40:52]FM_GetShiftState [22:40:52]SAM_PROTO_GetShiftState [22:40:52]wFMCommunicate request_size=4 [22:40:52]MH_SAM_APDU [22:40:52]CAPDU: 80 13 01 00 [22:40:52]Write to MH i2c: E2 08 00 F7 10 80 13 01 00 00 00 00 00 84 [22:40:52]Write i2c OK [22:40:52]MH_I2C_Read... [22:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:52]Read from MH i2c: E2 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: E2 0E 00 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: E2 0E 00 F7 10 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C5 [22:40:52]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:40:52]wFMCommunicate OK [22:40:52]SAM_PROTO_GetShiftState done [22:40:52]FM_GetShiftState done [22:40:52]req_shift_opened done [22:40:52]requested_item shift.open_date is exist - process it [22:40:52]req_shift_open_date [22:40:52]req_shift_open_date done [22:40:52]produce_requested_data done [22:40:52]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115787,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [22:40:52]process_action_free close_receipt [22:40:52]json_value_free [22:40:52]json_value_free done [22:40:52]process_json_proto returns [22:40:52]Send response to host [22:40:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115787,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [22:40:52]free response buf [22:40:52]execute_script done [22:40:52]execute_script returns [22:40:52]free content buf [22:40:52]Sock 8.Close socket [22:40:52]Sock 8.Thread stoped [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]accept exits with 9 [22:42:05]New connection [22:42:05]New thread 3067010404 created [22:42:05]Thread 3066867044 joined [22:42:05]Waiting for new connection... [22:42:05] Sock 9.Parse request [22:42:05]Sock 9.Check first char [22:42:05]Sock 9.First char is OK [22:42:05]request: POST /json_proto HTTP/1.0 [22:42:05]Method: POST [22:42:05]URL: /json_proto [22:42:05]Method is POST - this is cgi request [22:42:05]url: /json_proto [22:42:05]query_string will be loaded in cgi processing [22:42:05]execute_cgi json_proto POST (null) [22:42:05]execute_cgi path=json_proto method=POST [22:42:05]POST find Content-Length [22:42:05]Host: 172.17.41.136:8080 [22:42:05]Content-Length: 1114 [22:42:05]Content-Type: application/json [22:42:05] [22:42:05]POST finish read [22:42:05]Found Content-Length = 1114 [22:42:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344101", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 399.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:05]execute_script... [22:42:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344101", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 399.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:05]POST & json_proto [22:42:05]process_json_proto [22:42:05]json parsed OK: [22:42:05]protocol is kg_v1.0 [22:42:05]action value=close_receipt [22:42:05]process_action close_receipt [22:42:05]cmd_close_receipt [22:42:05]MH_GetDate [22:42:05]Write to MH i2c: F0 00 00 F8 10 F7 [22:42:05]Write i2c OK [22:42:05]MH_I2C_Read... [22:42:05]Read from MH i2c: F0 [22:42:05]MH_I2C_Read... [22:42:05]Read from MH i2c: F0 09 00 [22:42:05]MH_I2C_Read... [22:42:05]Read from MH i2c: F0 09 00 F8 10 00 BF EE F1 66 1B D0 5A 64 AD [22:42:05]GetLastDocTimeStamp 1727131249 [22:42:05]current date 1727131327 [22:42:05]FM_GetShiftState [22:42:05]SAM_PROTO_GetShiftState [22:42:05]wFMCommunicate request_size=4 [22:42:05]MH_SAM_APDU [22:42:05]CAPDU: 80 13 01 00 [22:42:05]Write to MH i2c: E2 08 00 F9 10 80 13 01 00 00 00 00 00 86 [22:42:05]Write i2c OK [22:42:05]MH_I2C_Read... [22:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:05]Read from MH i2c: E2 [22:42:05]MH_I2C_Read... [22:42:05]Read from MH i2c: E2 0E 00 [22:42:05]MH_I2C_Read... [22:42:05]Read from MH i2c: E2 0E 00 F9 10 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C7 [22:42:05]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:42:05]wFMCommunicate OK [22:42:05]SAM_PROTO_GetShiftState done [22:42:05]FM_GetShiftState done [22:42:05]opened in 1727052070 [22:42:05]opened+sec_in_day 1727138470 [22:42:05]quantity*price = 22000 [22:42:05]sum+1 = 22001 [22:42:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310326 Вода Адыгене 1л б/г 1.000 * 35.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 399.00 НСП 1% : 3.53 НДС 12% : 42.37 Наличными: 399.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 271 23.09.2024 22:42 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115788 ФПД: 92640093848108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T224207&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115788&fm=92640093848108&tin=02508201610067®Number=0000000000091831&sum=39900 0 [22:42:06]StoreToDocumentArchive [22:42:06]shift 472 fd 115788 [22:42:06]save to /storage/0472/doc_00115788 [22:42:06]save last doc name /storage/0472/doc_00115788 to /storage/kkm_last_doc_name [22:42:06]save OK [22:42:06]Clear old archive folders... [22:42:06]ProcessDocumentItem done err = 0, tmpTLVsize=476 [22:42:06]tlvbuf is 01155F00 [22:42:06]SAM_PROTO_ClearQueue [22:42:06]wFMCommunicate request_size=4 [22:42:06]MH_SAM_APDU [22:42:06]CAPDU: 80 09 00 00 [22:42:06]Write to MH i2c: E2 08 00 06 11 80 09 00 00 00 00 00 00 89 [22:42:06]Write i2c OK [22:42:06]MH_I2C_Read... [22:42:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:06]Read from MH i2c: E2 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 03 00 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 03 00 06 11 00 90 00 8B [22:42:06]RAPDU: 90 00 [22:42:06]wFMCommunicate OK [22:42:06]SAM_PROTO_ClearQueue done [22:42:06]KKMCreateOFDPacket [22:42:06]OFDProtocolAddRootSTLVToBuf [22:42:06]FM_MakeSignedData [22:42:06]FM_MakeSignedData [22:42:06]SAM_PROTO_SignData [22:42:06]wFMCommunicate request_size=4 [22:42:06]MH_SAM_APDU [22:42:06]CAPDU: 80 0D 01 02 [22:42:06]Write to MH i2c: E2 08 00 07 11 80 0D 01 02 00 00 00 00 91 [22:42:06]Write i2c OK [22:42:06]MH_I2C_Read... [22:42:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:06]Read from MH i2c: E2 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 03 00 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 03 00 07 11 00 90 00 8C [22:42:06]RAPDU: 90 00 [22:42:06]wFMCommunicate OK [22:42:06]wFMCommunicate request_size=255 [22:42:06]MH_SAM_APDU [22:42:06]CAPDU: 80 0D 02 02 FA 03 00 DC 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E [22:42:06]Write to MH i2c: E2 02 01 08 11 80 0D 02 02 FA 00 03 00 DC 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 00 00 F1 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 08 11 00 90 00 8D [22:42:07]RAPDU: 90 00 [22:42:07]wFMCommunicate OK [22:42:07]wFMCommunicate request_size=235 [22:42:07]MH_SAM_APDU [22:42:07]CAPDU: 80 0D 02 02 E6 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 BF EE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4C C4 01 00 35 04 06 00 54 41 73 E2 C2 2C [22:42:07]Write to MH i2c: E2 EE 00 09 11 80 0D 02 02 E6 00 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 BF EE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4C C4 01 00 35 04 06 00 54 41 73 E2 C2 2C 00 00 39 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 09 11 00 90 00 8E [22:42:07]RAPDU: 90 00 [22:42:07]wFMCommunicate OK [22:42:07]wFMCommunicate request_size=4 [22:42:07]MH_SAM_APDU [22:42:07]CAPDU: 80 0D 03 02 [22:42:07]Write to MH i2c: E2 08 00 0A 11 80 0D 03 02 00 00 00 00 96 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 0B 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 0B 00 0A 11 00 39 07 08 83 16 BC 40 87 90 00 FB [22:42:07]RAPDU: 39 07 08 83 16 BC 40 87 90 00 [22:42:07]wFMCommunicate OK [22:42:07]SAM_PROTO_SignData done [22:42:07]FM_MakeSignedData done [22:42:07]CreateOFDProtocolMessage [22:42:07]wFMCommunicate request_size=4 [22:42:07]MH_SAM_APDU [22:42:07]CAPDU: 80 11 00 00 [22:42:07]Write to MH i2c: E2 08 00 0B 11 80 11 00 00 00 00 00 00 96 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 17 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 17 00 0B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E4 [22:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:42:07]wFMCommunicate OK [22:42:07]CreateOFDProtocolMessage done [22:42:07]OFDSenderStorePacket 115788 [22:42:07]StoreOFDPacket docnum=115788 [22:42:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F0 01 00 00 C3 C5 E8 01 3B C5 5A 03 01 00 03 00 DC 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 BF EE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4C C4 01 00 35 04 06 00 54 41 73 E2 C2 2C 39 07 08 83 16 BC 40 87 [22:42:07]CheckFolder [22:42:07]dirname=/storage/ofd_packets [22:42:07]CheckFolder done [22:42:07]ProducePacketName [22:42:07]name=ofd_packets/00115788 [22:42:07]NVStorageSaveData ofd_packets/00115788 [22:42:07]File name is /storage/ofd_packets/00115788 [22:42:07]Write 526 bytes [22:42:07]NVStorageSaveData done [22:42:07]OFDSenderStorePacket done [22:42:07]KKMCreateOFDPacket done [22:42:07]NVStorageSaveData kkm_last_timestamp [22:42:07]File name is /storage/kkm_last_timestamp [22:42:07]Write 4 bytes [22:42:07]NVStorageSaveData done [22:42:07]ExternCall_PrintAddStr [22:42:07]wPrintStart [22:42:07]Write to MH i2c: 01 00 00 0C 11 1D [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: 01 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: 01 07 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: 01 07 00 0C 11 00 00 00 00 00 FF 0F 32 [22:42:07]RasterBufferAndPrint [22:42:07]line Счет N : (3)344101 [22:42:07]line ИНН: 02508201610067 [22:42:07]line Контрольно-Кассовый Чек [22:42:07]line ПРОДАЖА [22:42:07]line Товар: 4870001570071 [22:42:07]line Напиток Pepsi 1л [22:42:07]line 2.000 * 110.00 [22:42:07]line = 220.00 [22:42:07]line НДС 12% НСП 1% [22:42:07]line > о реализуемом товаре [22:42:07]line Товар: 4700000310326 [22:42:07]line Вода Адыгене 1л б/г [22:42:07]line 1.000 * 35.00 [22:42:07]line = 35.00 [22:42:07]line НДС 12% НСП 1% [22:42:07]line > о реализуемом товаре [22:42:07]line Товар: 48743587 [22:42:07]line Сигареты Winston XStyle Silver [22:42:07]line 1.000 * 144.00 [22:42:07]line = 144.00 [22:42:07]line НДС 12% НСП 1% [22:42:07]line > о реализуемом товаре [22:42:07]line ИТОГО: 399.00 [22:42:07]line НСП 1% : 3.53 [22:42:07]line НДС 12% : 42.37 [22:42:07]line Наличными: 399.00 [22:42:07]line Безнал.: 0.00 [22:42:07]line Место: АЗС № 90 "Партнер Нефть" [22:42:07]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:42:07]line СНО: Общий режим [22:42:07]line Чек 271 23.09.2024 22:42 [22:42:07]line Смена: 472 ФФД: 1.0 [22:42:07]line ЗНМ: 0300000120 [22:42:07]line РНМ: 0000000000091831 [22:42:07]line Версия ККМ: 001 [22:42:07]line ФМ: 0000000000871830 [22:42:07]line ФД: 115788 [22:42:07]line ФПД: 92640093848108 [22:42:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T224207&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115788&fm=92640093848108&tin=02508201610067®Number=0000000000091831&sum=39900 [22:42:07]line 0 [22:42:07]written 0, free lines is 4095 [22:42:07]OFD Sender: Processing packet 115788 [packets to send 482, broken 481] [22:42:07]ProducePacketName [22:42:07]name=ofd_packets/00115788 [22:42:07]OFD Sender: To server: pG, [22:42:07]CommunicateWithHost lk.salyk.kg:30040 [22:42:07]ConnectInit lk.salyk.kg [22:42:08]Connected sock=10 [22:42:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F0 01 00 00 C3 C5 E8 01 3B C5 5A 03 01 00 03 00 DC 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 BF EE F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4C C4 01 00 35 04 06 00 54 41 73 E2 C2 2C 39 07 08 83 16 BC 40 87 [22:42:08]Write to MH i2c: 01 00 00 40 11 51 [22:42:08]Write i2c OK [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: 01 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: 01 07 00 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: 01 07 00 40 11 00 00 00 00 00 6E 0B D1 [22:42:08]RasterBufferAndPrint [22:42:08]line [22:42:08]line [22:42:08]line [22:42:08]line [22:42:08]line [22:42:08]written 0, free lines is 2929 [22:42:08]MH_Cut [22:42:08]Write to MH i2c: D1 01 00 47 11 01 2A [22:42:08]Write i2c OK [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: D1 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: D1 01 00 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: D1 01 00 47 11 00 29 [22:42:08]Write to MH i2c: 01 00 00 48 11 59 [22:42:08]Write i2c OK [22:42:08]MH_I2C_Read... [22:42:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 07 2C 47 00 C3 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 38 33 30 10 04 04 00 4C C4 01 00 F4 03 04 00 01 94 F1 66 B6 04 01 00 00 31 B5 A5 DA B7 04 EE D5 [22:42:08]CommunicateWithHost err = 0 [22:42:08]CheckOFDResponse [22:42:08]1017 (14) - 77093643461234 [22:42:08]1041 (16) - 0000000000871830 [22:42:08]1040 (4) - 115788 [22:42:08]1012 (4) - 23.09.2024 16:14 [22:42:08]1206 (1) - 0 [22:42:08]OFD Sender: Remove packet 115788 [22:42:08]ProducePacketName [22:42:08]name=ofd_packets/00115788 [22:42:08]NVStorageDeleteData [22:42:08]OFD Sender: No OFD packet to send [22:42:10]*** Cut start [22:42:10]*** Partial cut [22:42:10]*** CUTSNS_PIN = 1 [22:42:10]*** CUTSNS_PIN = 0 [22:42:10]*** Brake cut motor [22:42:10]Read from MH i2c: 01 [22:42:10]MH_I2C_Read... [22:42:10]*** Stop cut motor [22:42:10]*** Cut end [22:42:10]Read from MH i2c: 01 07 00 [22:42:10]MH_I2C_Read... [22:42:10]Read from MH i2c: 01 07 00 48 11 00 00 00 00 00 FF 0F 6E [22:42:10]process_action close_receipt done [22:42:10]requested_data is exist [22:42:10]produce_requested_data [22:42:10]requested_item fm.sn is exist - process it [22:42:10]wFMCommunicate request_size=4 [22:42:10]MH_SAM_APDU [22:42:10]CAPDU: 80 11 00 00 [22:42:10]Write to MH i2c: E2 08 00 49 11 80 11 00 00 00 00 00 00 D4 [22:42:10]Write i2c OK [22:42:10]MH_I2C_Read... [22:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:10]Read from MH i2c: E2 [22:42:10]MH_I2C_Read... [22:42:10]Read from MH i2c: E2 17 00 [22:42:10]MH_I2C_Read... [22:42:10]Read from MH i2c: E2 17 00 49 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 22 [22:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:42:10]wFMCommunicate OK [22:42:10]requested_item fd.num is exist - process it [22:42:10]SAM_PROTO_GetFieldsCounters [22:42:10]wFMCommunicate request_size=4 [22:42:10]MH_SAM_APDU [22:42:10]CAPDU: 80 13 00 00 [22:42:10]Write to MH i2c: E2 08 00 4A 11 80 13 00 00 00 00 00 00 D7 [22:42:10]Write i2c OK [22:42:10]MH_I2C_Read... [22:42:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:10]Read from MH i2c: E2 [22:42:10]MH_I2C_Read... [22:42:10]Read from MH i2c: E2 62 00 [22:42:10]MH_I2C_Read... [22:42:10]Read from MH i2c: E2 62 00 4A 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4C C4 01 00 0E 04 04 00 D8 01 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 0A [22:42: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4C C4 01 00 0E 04 04 00 D8 01 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 [22:42:10]wFMCommunicate OK [22:42:10]SAM_PROTO_GetFieldsCounters done [22:42:10]requested_item shift.num is exist - process it [22:42:10]requested_item shift.opened is exist - process it [22:42:10]req_shift_opened [22:42:10]FM_GetShiftState [22:42:10]SAM_PROTO_GetShiftState [22:42:10]wFMCommunicate request_size=4 [22:42:10]MH_SAM_APDU [22:42:10]CAPDU: 80 13 01 00 [22:42:10]Write to MH i2c: E2 08 00 4B 11 80 13 01 00 00 00 00 00 D9 [22:42:10]Write i2c OK [22:42:10]MH_I2C_Read... [22:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:10]Read from MH i2c: E2 [22:42:10]MH_I2C_Read... [22:42:10]Read from MH i2c: E2 0E 00 [22:42:10]MH_I2C_Read... [22:42:10]Read from MH i2c: E2 0E 00 4B 11 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1A [22:42:10]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:42:10]wFMCommunicate OK [22:42:10]SAM_PROTO_GetShiftState done [22:42:10]FM_GetShiftState done [22:42:10]req_shift_opened done [22:42:10]requested_item shift.open_date is exist - process it [22:42:10]req_shift_open_date [22:42:10]req_shift_open_date done [22:42:10]produce_requested_data done [22:42:10]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115788,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [22:42:10]process_action_free close_receipt [22:42:10]json_value_free [22:42:10]json_value_free done [22:42:10]process_json_proto returns [22:42:10]Send response to host [22:42:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115788,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [22:42:10]free response buf [22:42:10]execute_script done [22:42:10]execute_script returns [22:42:10]free content buf [22:42:10]Sock 9.Close socket [22:42:10]Sock 9.Thread stoped [22:42:13]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:27]accept exits with 8 [22:48:27]New connection [22:48:27]New thread 3066867044 created [22:48:27]Thread 3067010404 joined [22:48:27]Waiting for new connection... [22:48:27] Sock 8.Parse request [22:48:27]Sock 8.Check first char [22:48:27]Sock 8.First char is OK [22:48:27]request: POST /json_proto HTTP/1.0 [22:48:27]Method: POST [22:48:27]URL: /json_proto [22:48:27]Method is POST - this is cgi request [22:48:27]url: /json_proto [22:48:27]query_string will be loaded in cgi processing [22:48:27]execute_cgi json_proto POST (null) [22:48:27]execute_cgi path=json_proto method=POST [22:48:27]POST find Content-Length [22:48:27]Host: 172.17.41.136:8080 [22:48:27]Content-Length: 1878 [22:48:27]Content-Type: application/json [22:48:27] [22:48:27]POST finish read [22:48:27]Found Content-Length = 1878 [22:48:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344102", "tax_sys" : 0, "items" : [ { "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 3.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 589.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:27]execute_script... [22:48:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344102", "tax_sys" : 0, "items" : [ { "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 3.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 589.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:28]POST & json_proto [22:48:28]process_json_proto [22:48:28]json parsed OK: [22:48:28]protocol is kg_v1.0 [22:48:28]action value=close_receipt [22:48:28]process_action close_receipt [22:48:28]cmd_close_receipt [22:48:28]MH_GetDate [22:48:28]Write to MH i2c: F0 00 00 4C 11 4C [22:48:28]Write i2c OK [22:48:28]MH_I2C_Read... [22:48:28]Read from MH i2c: F0 [22:48:28]MH_I2C_Read... [22:48:28]Read from MH i2c: F0 09 00 [22:48:28]MH_I2C_Read... [22:48:28]Read from MH i2c: F0 09 00 4C 11 00 3E F0 F1 66 1B D0 5A 64 83 [22:48:28]GetLastDocTimeStamp 1727131327 [22:48:28]current date 1727131710 [22:48:28]FM_GetShiftState [22:48:28]SAM_PROTO_GetShiftState [22:48:28]wFMCommunicate request_size=4 [22:48:28]MH_SAM_APDU [22:48:28]CAPDU: 80 13 01 00 [22:48:28]Write to MH i2c: E2 08 00 4D 11 80 13 01 00 00 00 00 00 DB [22:48:28]Write i2c OK [22:48:28]MH_I2C_Read... [22:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:28]Read from MH i2c: E2 [22:48:28]MH_I2C_Read... [22:48:28]Read from MH i2c: E2 0E 00 [22:48:28]MH_I2C_Read... [22:48:28]Read from MH i2c: E2 0E 00 4D 11 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 1C [22:48:28]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:48:28]wFMCommunicate OK [22:48:28]SAM_PROTO_GetShiftState done [22:48:28]FM_GetShiftState done [22:48:28]opened in 1727052070 [22:48:28]opened+sec_in_day 1727138470 [22:48:28]quantity*price = 9000 [22:48:28]sum+1 = 9001 [22:48:28]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010087 Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032760017 Слойка DC треугольная мясо110г 3.000 * 65.00 = 195.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 589.00 НСП 1% : 5.21 НДС 12% : 62.55 Наличными: 589.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 272 23.09.2024 22:48 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115789 ФПД: 119845255438451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T224830&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115789&fm=119845255438451&tin=02508201610067®Number=0000000000091831&sum=58900 0 [22:48:29]StoreToDocumentArchive [22:48:29]shift 472 fd 115789 [22:48:29]save to /storage/0472/doc_00115789 [22:48:29]save last doc name /storage/0472/doc_00115789 to /storage/kkm_last_doc_name [22:48:29]save OK [22:48:29]Clear old archive folders... [22:48:29]ProcessDocumentItem done err = 0, tmpTLVsize=781 [22:48:29]tlvbuf is 01139D60 [22:48:29]SAM_PROTO_ClearQueue [22:48:29]wFMCommunicate request_size=4 [22:48:29]MH_SAM_APDU [22:48:29]CAPDU: 80 09 00 00 [22:48:29]Write to MH i2c: E2 08 00 5A 11 80 09 00 00 00 00 00 00 DD [22:48:29]Write i2c OK [22:48:29]MH_I2C_Read... [22:48:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:29]Read from MH i2c: E2 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: E2 03 00 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: E2 03 00 5A 11 00 90 00 DF [22:48:29]RAPDU: 90 00 [22:48:29]wFMCommunicate OK [22:48:29]SAM_PROTO_ClearQueue done [22:48:29]KKMCreateOFDPacket [22:48:29]OFDProtocolAddRootSTLVToBuf [22:48:29]FM_MakeSignedData [22:48:29]FM_MakeSignedData [22:48:29]SAM_PROTO_SignData [22:48:29]wFMCommunicate request_size=4 [22:48:29]MH_SAM_APDU [22:48:29]CAPDU: 80 0D 01 02 [22:48:29]Write to MH i2c: E2 08 00 5B 11 80 0D 01 02 00 00 00 00 E5 [22:48:29]Write i2c OK [22:48:29]MH_I2C_Read... [22:48:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:29]Read from MH i2c: E2 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: E2 03 00 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: E2 03 00 5B 11 00 90 00 E0 [22:48:29]RAPDU: 90 00 [22:48:29]wFMCommunicate OK [22:48:29]wFMCommunicate request_size=255 [22:48:29]MH_SAM_APDU [22:48:29]CAPDU: 80 0D 02 02 FA 03 00 0D 03 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 [22:48:29]Write to MH i2c: E2 02 01 5C 11 80 0D 02 02 FA 00 03 00 0D 03 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 B1 [22:48:29]Write i2c OK [22:48:29]MH_I2C_Read... [22:48:29]OFD Sender: No OFD packet to send [22:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:30]Read from MH i2c: E2 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 5C 11 00 90 00 E1 [22:48:30]RAPDU: 90 00 [22:48:30]wFMCommunicate OK [22:48:30]wFMCommunicate request_size=255 [22:48:30]MH_SAM_APDU [22:48:30]CAPDU: 80 0D 02 02 FA 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 [22:48:30]Write to MH i2c: E2 02 01 5D 11 80 0D 02 02 FA 00 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 A2 [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:30]Read from MH i2c: E2 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 5D 11 00 90 00 E2 [22:48:30]RAPDU: 90 00 [22:48:30]wFMCommunicate OK [22:48:30]wFMCommunicate request_size=255 [22:48:30]MH_SAM_APDU [22:48:30]CAPDU: 80 0D 02 02 FA 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 18 00 00 00 00 07 04 06 00 14 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 3E F0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 [22:48:30]Write to MH i2c: E2 02 01 5E 11 80 0D 02 02 FA 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 18 00 00 00 00 07 04 06 00 14 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 3E F0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 00 01 [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:30]Read from MH i2c: E2 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 5E 11 00 90 00 E3 [22:48:30]RAPDU: 90 00 [22:48:30]wFMCommunicate OK [22:48:30]wFMCommunicate request_size=40 [22:48:30]MH_SAM_APDU [22:48:30]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4D C4 01 00 35 04 06 00 6C FF A5 E0 E0 73 [22:48:30]Write to MH i2c: E2 2B 00 5F 11 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4D C4 01 00 35 04 06 00 6C FF A5 E0 E0 73 00 00 F7 [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:30]Read from MH i2c: E2 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 5F 11 00 90 00 E4 [22:48:30]RAPDU: 90 00 [22:48:30]wFMCommunicate OK [22:48:30]wFMCommunicate request_size=4 [22:48:30]MH_SAM_APDU [22:48:30]CAPDU: 80 0D 03 02 [22:48:30]Write to MH i2c: E2 08 00 60 11 80 0D 03 02 00 00 00 00 EC [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:30]Read from MH i2c: E2 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 0B 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 0B 00 60 11 00 D3 21 3E 6F AC 77 A3 A2 90 00 F6 [22:48:30]RAPDU: D3 21 3E 6F AC 77 A3 A2 90 00 [22:48:30]wFMCommunicate OK [22:48:30]SAM_PROTO_SignData done [22:48:30]FM_MakeSignedData done [22:48:30]CreateOFDProtocolMessage [22:48:30]wFMCommunicate request_size=4 [22:48:30]MH_SAM_APDU [22:48:30]CAPDU: 80 11 00 00 [22:48:30]Write to MH i2c: E2 08 00 61 11 80 11 00 00 00 00 00 00 EC [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:30]Read from MH i2c: E2 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 17 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 17 00 61 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3A [22:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:48:30]wFMCommunicate OK [22:48:30]CreateOFDProtocolMessage done [22:48:30]OFDSenderStorePacket 115789 [22:48:30]StoreOFDPacket docnum=115789 [22:48:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 21 03 00 00 61 6F 19 03 FA EE 5A 03 01 00 03 00 0D 03 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 18 00 00 00 00 07 04 06 00 14 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 3E F0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4D C4 01 00 35 04 06 00 6C FF A5 E0 E0 73 D3 21 3E 6F AC 77 A3 A2 [22:48:30]CheckFolder [22:48:30]dirname=/storage/ofd_packets [22:48:30]CheckFolder done [22:48:30]ProducePacketName [22:48:30]name=ofd_packets/00115789 [22:48:30]NVStorageSaveData ofd_packets/00115789 [22:48:30]File name is /storage/ofd_packets/00115789 [22:48:30]Write 831 bytes [22:48:30]NVStorageSaveData done [22:48:30]OFDSenderStorePacket done [22:48:30]KKMCreateOFDPacket done [22:48:30]NVStorageSaveData kkm_last_timestamp [22:48:30]File name is /storage/kkm_last_timestamp [22:48:30]Write 4 bytes [22:48:30]NVStorageSaveData done [22:48:30]ExternCall_PrintAddStr [22:48:30]wPrintStart [22:48:30]Write to MH i2c: 01 00 00 62 11 73 [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: 01 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: 01 07 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: 01 07 00 62 11 00 00 00 00 00 FF 0F 88 [22:48:30]RasterBufferAndPrint [22:48:30]line Счет N : (3)344102 [22:48:30]line ИНН: 02508201610067 [22:48:30]line Контрольно-Кассовый Чек [22:48:30]line ПРОДАЖА [22:48:30]line Товар: 4870235681062 [22:48:30]line Grizzly волнистые Колбаски с горчицей 55 [22:48:30]line 1.000 * 90.00 [22:48:30]line = 90.00 [22:48:30]line НДС 12% НСП 1% [22:48:30]line > о реализуемом товаре [22:48:30]line Товар: 4700003010087 [22:48:30]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [22:48:30]line 1.000 * 95.00 [22:48:30]line = 95.00 [22:48:30]line НДС 12% НСП 1% [22:48:30]line > о реализуемом товаре [22:48:30]line Товар: 2000032760017 [22:48:30]line Слойка DC треугольная мясо110г [22:48:30]line 3.000 * 65.00 [22:48:30]line = 195.00 [22:48:30]line НДС 12% НСП 1% [22:48:30]line > о реализуемом товаре [22:48:30]line Товар: 4700040114137 [22:48:30]line Султан чай 1л. зел лимон [22:48:30]line 1.000 * 65.00 [22:48:30]line = 65.00 [22:48:30]line НДС 12% НСП 1% [22:48:31]line > о реализуемом товаре [22:48:31]line Товар: 48743570 [22:48:31]line Сигареты Winston XStyle Blue [22:48:31]line 1.000 * 144.00 [22:48:31]line = 144.00 [22:48:31]line НДС 12% НСП 1% [22:48:31]line > о реализуемом товаре [22:48:31]line ИТОГО: 589.00 [22:48:31]line НСП 1% : 5.21 [22:48:31]line НДС 12% : 62.55 [22:48:31]line Наличными: 589.00 [22:48:31]line Безнал.: 0.00 [22:48:31]line Место: АЗС № 90 "Партнер Нефть" [22:48:31]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:48:31]line СНО: Общий режим [22:48:31]line Чек 272 23.09.2024 22:48 [22:48:31]line Смена: 472 ФФД: 1.0 [22:48:31]line ЗНМ: 0300000120 [22:48:31]line РНМ: 0000000000091831 [22:48:31]line Версия ККМ: 001 [22:48:31]line ФМ: 0000000000871830 [22:48:31]line ФД: 115789 [22:48:31]line ФПД: 119845255438451 [22:48:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T224830&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115789&fm=119845255438451&tin=02508201610067®Number=0000000000091831&sum=58900 [22:48:31]line 0 [22:48:31]OFD Sender: Processing packet 115789 [packets to send 482, broken 481] [22:48:31]ProducePacketName [22:48:31]name=ofd_packets/00115789 [22:48:31]OFD Sender: To server: pG, [22:48:31]CommunicateWithHost lk.salyk.kg:30040 [22:48:31]ConnectInit lk.salyk.kg [22:48:31]written 0, free lines is 4095 [22:48:31]Connected sock=10 [22:48: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 38 33 30 21 03 00 00 61 6F 19 03 FA EE 5A 03 01 00 03 00 0D 03 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 18 00 00 00 00 07 04 06 00 14 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 3E F0 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4D C4 01 00 35 04 06 00 6C FF A5 E0 E0 73 D3 21 3E 6F AC 77 A3 A2 [22:48:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 29 0B 47 00 89 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 38 33 30 10 04 04 00 4D C4 01 00 F4 03 04 00 80 95 F1 66 B6 04 01 00 00 C7 09 42 47 58 93 28 8F [22:48:31]CommunicateWithHost err = 0 [22:48:31]CheckOFDResponse [22:48:31]1017 (14) - 77093643461234 [22:48:31]1041 (16) - 0000000000871830 [22:48:31]1040 (4) - 115789 [22:48:31]1012 (4) - 23.09.2024 16:21 [22:48:31]1206 (1) - 0 [22:48:31]OFD Sender: Remove packet 115789 [22:48:31]ProducePacketName [22:48:31]name=ofd_packets/00115789 [22:48:31]NVStorageDeleteData [22:48:31]Write to MH i2c: 01 00 00 A4 11 B5 [22:48:31]Write i2c OK [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: 01 [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: 01 07 00 [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: 01 07 00 A4 11 00 00 00 00 00 30 0A F6 [22:48:31]RasterBufferAndPrint [22:48:31]line [22:48:31]line [22:48:31]line [22:48:31]line [22:48:31]line [22:48:31]written 0, free lines is 2615 [22:48:31]MH_Cut [22:48:31]Write to MH i2c: D1 01 00 AB 11 01 8E [22:48:31]Write i2c OK [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: D1 [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: D1 01 00 [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: D1 01 00 AB 11 00 8D [22:48:31]Write to MH i2c: 01 00 00 AC 11 BD [22:48:31]Write i2c OK [22:48:31]MH_I2C_Read... [22:48:32]OFD Sender: No OFD packet to send [22:48:34]*** Cut start [22:48:34]*** Partial cut [22:48:34]*** CUTSNS_PIN = 1 [22:48:34]*** CUTSNS_PIN = 0 [22:48:34]*** Brake cut motor [22:48:34]Read from MH i2c: 01 [22:48:34]MH_I2C_Read... [22:48:34]*** Stop cut motor [22:48:34]*** Cut end [22:48:34]Read from MH i2c: 01 07 00 [22:48:34]MH_I2C_Read... [22:48:34]Read from MH i2c: 01 07 00 AC 11 00 00 00 00 00 FF 0F D2 [22:48:34]process_action close_receipt done [22:48:34]requested_data is exist [22:48:34]produce_requested_data [22:48:34]requested_item fm.sn is exist - process it [22:48:34]wFMCommunicate request_size=4 [22:48:34]MH_SAM_APDU [22:48:34]CAPDU: 80 11 00 00 [22:48:34]Write to MH i2c: E2 08 00 AD 11 80 11 00 00 00 00 00 00 38 [22:48:34]Write i2c OK [22:48:34]MH_I2C_Read... [22:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:34]Read from MH i2c: E2 [22:48:34]MH_I2C_Read... [22:48:34]Read from MH i2c: E2 17 00 [22:48:34]MH_I2C_Read... [22:48:34]Read from MH i2c: E2 17 00 AD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 86 [22:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:48:34]wFMCommunicate OK [22:48:34]requested_item fd.num is exist - process it [22:48:34]SAM_PROTO_GetFieldsCounters [22:48:34]wFMCommunicate request_size=4 [22:48:34]MH_SAM_APDU [22:48:34]CAPDU: 80 13 00 00 [22:48:34]Write to MH i2c: E2 08 00 AE 11 80 13 00 00 00 00 00 00 3B [22:48:34]Write i2c OK [22:48:34]MH_I2C_Read... [22:48:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:34]Read from MH i2c: E2 [22:48:34]MH_I2C_Read... [22:48:34]Read from MH i2c: E2 62 00 [22:48:34]MH_I2C_Read... [22:48:34]Read from MH i2c: E2 62 00 AE 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4D C4 01 00 0E 04 04 00 D8 01 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 72 [22:48: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4D C4 01 00 0E 04 04 00 D8 01 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 [22:48:34]wFMCommunicate OK [22:48:34]SAM_PROTO_GetFieldsCounters done [22:48:34]requested_item shift.num is exist - process it [22:48:34]requested_item shift.opened is exist - process it [22:48:34]req_shift_opened [22:48:34]FM_GetShiftState [22:48:34]SAM_PROTO_GetShiftState [22:48:34]wFMCommunicate request_size=4 [22:48:34]MH_SAM_APDU [22:48:34]CAPDU: 80 13 01 00 [22:48:34]Write to MH i2c: E2 08 00 AF 11 80 13 01 00 00 00 00 00 3D [22:48:34]Write i2c OK [22:48:34]MH_I2C_Read... [22:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:34]Read from MH i2c: E2 [22:48:34]MH_I2C_Read... [22:48:34]Read from MH i2c: E2 0E 00 [22:48:34]MH_I2C_Read... [22:48:34]Read from MH i2c: E2 0E 00 AF 11 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 7E [22:48:34]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:48:34]wFMCommunicate OK [22:48:34]SAM_PROTO_GetShiftState done [22:48:34]FM_GetShiftState done [22:48:34]req_shift_opened done [22:48:34]requested_item shift.open_date is exist - process it [22:48:34]req_shift_open_date [22:48:34]req_shift_open_date done [22:48:34]produce_requested_data done [22:48:34]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115789,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [22:48:34]process_action_free close_receipt [22:48:34]json_value_free [22:48:34]json_value_free done [22:48:34]process_json_proto returns [22:48:34]Send response to host [22:48:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115789,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [22:48:34]free response buf [22:48:34]execute_script done [22:48:34]execute_script returns [22:48:34]free content buf [22:48:34]Sock 8.Close socket [22:48:34]Sock 8.Thread stoped [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:45]accept exits with 9 [22:51:45]New connection [22:51:45]New thread 3067010404 created [22:51:45]Thread 3066867044 joined [22:51:45]Waiting for new connection... [22:51:45] Sock 9.Parse request [22:51:45]Sock 9.Check first char [22:51:45]Sock 9.First char is OK [22:51:45]request: POST /json_proto HTTP/1.0 [22:51:45]Method: POST [22:51:45]URL: /json_proto [22:51:45]Method is POST - this is cgi request [22:51:45]url: /json_proto [22:51:45]query_string will be loaded in cgi processing [22:51:45]execute_cgi json_proto POST (null) [22:51:45]execute_cgi path=json_proto method=POST [22:51:45]POST find Content-Length [22:51:45]Host: 172.17.41.136:8080 [22:51:45]Content-Length: 700 [22:51:45]Content-Type: application/json [22:51:45] [22:51:45]POST finish read [22:51:45]Found Content-Length = 700 [22:51:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344103", "tax_sys" : 0, "items" : [ { "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:45]execute_script... [22:51: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 : (3)344103", "tax_sys" : 0, "items" : [ { "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:45]POST & json_proto [22:51:45]process_json_proto [22:51:45]json parsed OK: [22:51:45]protocol is kg_v1.0 [22:51:45]action value=close_receipt [22:51:45]process_action close_receipt [22:51:45]cmd_close_receipt [22:51:45]MH_GetDate [22:51:45]Write to MH i2c: F0 00 00 B0 11 B0 [22:51:45]Write i2c OK [22:51:45]MH_I2C_Read... [22:51:45]Read from MH i2c: F0 [22:51:45]MH_I2C_Read... [22:51:45]Read from MH i2c: F0 09 00 [22:51:45]MH_I2C_Read... [22:51:45]Read from MH i2c: F0 09 00 B0 11 00 03 F1 F1 66 1B D0 5A 64 AD [22:51:45]GetLastDocTimeStamp 1727131710 [22:51:45]current date 1727131907 [22:51:45]FM_GetShiftState [22:51:45]SAM_PROTO_GetShiftState [22:51:45]wFMCommunicate request_size=4 [22:51:45]MH_SAM_APDU [22:51:45]CAPDU: 80 13 01 00 [22:51:45]Write to MH i2c: E2 08 00 B1 11 80 13 01 00 00 00 00 00 3F [22:51:45]Write i2c OK [22:51:45]MH_I2C_Read... [22:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:45]Read from MH i2c: E2 [22:51:45]MH_I2C_Read... [22:51:45]Read from MH i2c: E2 0E 00 [22:51:45]MH_I2C_Read... [22:51:45]Read from MH i2c: E2 0E 00 B1 11 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 80 [22:51:45]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:51:45]wFMCommunicate OK [22:51:45]SAM_PROTO_GetShiftState done [22:51:45]FM_GetShiftState done [22:51:45]opened in 1727052070 [22:51:45]opened+sec_in_day 1727138470 [22:51:45]quantity*price = 13000 [22:51:45]sum+1 = 13001 [22:51:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 273 23.09.2024 22:51 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115790 ФПД: 244406332991810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T225147&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115790&fm=244406332991810&tin=02508201610067®Number=0000000000091831&sum=13000 0 [22:51:46]StoreToDocumentArchive [22:51:46]shift 472 fd 115790 [22:51:46]save to /storage/0472/doc_00115790 [22:51:46]save last doc name /storage/0472/doc_00115790 to /storage/kkm_last_doc_name [22:51:46]save OK [22:51:46]Clear old archive folders... [22:51:46]ProcessDocumentItem done err = 0, tmpTLVsize=296 [22:51:46]tlvbuf is B6ECF140 [22:51:46]SAM_PROTO_ClearQueue [22:51:46]wFMCommunicate request_size=4 [22:51:46]MH_SAM_APDU [22:51:46]CAPDU: 80 09 00 00 [22:51:46]Write to MH i2c: E2 08 00 BE 11 80 09 00 00 00 00 00 00 41 [22:51:46]Write i2c OK [22:51:46]MH_I2C_Read... [22:51:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:51:46]Read from MH i2c: E2 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 BE 11 00 90 00 43 [22:51:46]RAPDU: 90 00 [22:51:46]wFMCommunicate OK [22:51:46]SAM_PROTO_ClearQueue done [22:51:46]KKMCreateOFDPacket [22:51:46]OFDProtocolAddRootSTLVToBuf [22:51:46]FM_MakeSignedData [22:51:46]FM_MakeSignedData [22:51:46]SAM_PROTO_SignData [22:51:46]wFMCommunicate request_size=4 [22:51:46]MH_SAM_APDU [22:51:46]CAPDU: 80 0D 01 02 [22:51:46]Write to MH i2c: E2 08 00 BF 11 80 0D 01 02 00 00 00 00 49 [22:51:46]Write i2c OK [22:51:46]MH_I2C_Read... [22:51:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:51:46]Read from MH i2c: E2 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 BF 11 00 90 00 44 [22:51:46]RAPDU: 90 00 [22:51:46]wFMCommunicate OK [22:51:46]wFMCommunicate request_size=255 [22:51:46]MH_SAM_APDU [22:51:46]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 03 F1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [22:51:46]Write to MH i2c: E2 02 01 C0 11 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 03 F1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 F4 [22:51:46]Write i2c OK [22:51:46]MH_I2C_Read... [22:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:46]Read from MH i2c: E2 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 C0 11 00 90 00 45 [22:51:46]RAPDU: 90 00 [22:51:46]wFMCommunicate OK [22:51:46]wFMCommunicate request_size=55 [22:51:46]MH_SAM_APDU [22:51:46]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4E C4 01 00 35 04 06 00 DE 49 48 A8 A9 42 [22:51:46]Write to MH i2c: E2 3A 00 C1 11 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4E C4 01 00 35 04 06 00 DE 49 48 A8 A9 42 00 00 B2 [22:51:46]Write i2c OK [22:51:46]MH_I2C_Read... [22:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:46]Read from MH i2c: E2 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 C1 11 00 90 00 46 [22:51:46]RAPDU: 90 00 [22:51:46]wFMCommunicate OK [22:51:46]wFMCommunicate request_size=4 [22:51:46]MH_SAM_APDU [22:51:46]CAPDU: 80 0D 03 02 [22:51:46]Write to MH i2c: E2 08 00 C2 11 80 0D 03 02 00 00 00 00 4E [22:51:46]Write i2c OK [22:51:46]MH_I2C_Read... [22:51:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:51:46]Read from MH i2c: E2 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 0B 00 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 0B 00 C2 11 00 00 C3 0E 2C 1F F8 AB E3 90 00 F1 [22:51:46]RAPDU: 00 C3 0E 2C 1F F8 AB E3 90 00 [22:51:46]wFMCommunicate OK [22:51:46]SAM_PROTO_SignData done [22:51:46]FM_MakeSignedData done [22:51:46]CreateOFDProtocolMessage [22:51:46]wFMCommunicate request_size=4 [22:51:46]MH_SAM_APDU [22:51:46]CAPDU: 80 11 00 00 [22:51:46]Write to MH i2c: E2 08 00 C3 11 80 11 00 00 00 00 00 00 4E [22:51:46]Write i2c OK [22:51:46]MH_I2C_Read... [22:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:46]Read from MH i2c: E2 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 17 00 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 17 00 C3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9C [22:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:51:46]wFMCommunicate OK [22:51:46]CreateOFDProtocolMessage done [22:51:46]OFDSenderStorePacket 115790 [22:51:46]StoreOFDPacket docnum=115790 [22:51:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3C 01 00 00 64 68 34 01 86 8F 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 03 F1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4E C4 01 00 35 04 06 00 DE 49 48 A8 A9 42 00 C3 0E 2C 1F F8 AB E3 [22:51:46]CheckFolder [22:51:46]dirname=/storage/ofd_packets [22:51:46]CheckFolder done [22:51:46]ProducePacketName [22:51:46]name=ofd_packets/00115790 [22:51:46]NVStorageSaveData ofd_packets/00115790 [22:51:46]File name is /storage/ofd_packets/00115790 [22:51:46]Write 346 bytes [22:51:46]NVStorageSaveData done [22:51:46]OFDSenderStorePacket done [22:51:46]KKMCreateOFDPacket done [22:51:46]NVStorageSaveData kkm_last_timestamp [22:51:46]File name is /storage/kkm_last_timestamp [22:51:46]Write 4 bytes [22:51:46]NVStorageSaveData done [22:51:46]ExternCall_PrintAddStr [22:51:46]wPrintStart [22:51:46]Write to MH i2c: 01 00 00 C4 11 D5 [22:51:46]Write i2c OK [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: 01 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: 01 07 00 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: 01 07 00 C4 11 00 00 00 00 00 FF 0F EA [22:51:46]RasterBufferAndPrint [22:51:46]line Счет N : (3)344103 [22:51:46]line ИНН: 02508201610067 [22:51:46]line Контрольно-Кассовый Чек [22:51:46]line ПРОДАЖА [22:51:46]line Товар: 4700321005024 [22:51:46]line Миндаль Mike жареный соленый 50г [22:51:46]line 1.000 * 130.00 [22:51:46]line = 130.00 [22:51:46]line НДС 12% НСП 1% [22:51:46]line > о реализуемом товаре [22:51:46]line ИТОГО: 130.00 [22:51:46]line НСП 1% : 1.15 [22:51:46]line НДС 12% : 13.80 [22:51:46]line Наличными: 130.00 [22:51:46]line Безнал.: 0.00 [22:51:46]line Место: АЗС № 90 "Партнер Нефть" [22:51:46]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:51:46]line СНО: Общий режим [22:51:46]line Чек 273 23.09.2024 22:51 [22:51:46]line Смена: 472 ФФД: 1.0 [22:51:46]line ЗНМ: 0300000120 [22:51:46]line РНМ: 0000000000091831 [22:51:46]line Версия ККМ: 001 [22:51:46]line ФМ: 0000000000871830 [22:51:46]line ФД: 115790 [22:51:46]line ФПД: 244406332991810 [22:51:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T225147&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115790&fm=244406332991810&tin=02508201610067®Number=0000000000091831&sum=13000 [22:51:47]line 0 [22:51:47]OFD Sender: Processing packet 115790 [packets to send 482, broken 481] [22:51:47]ProducePacketName [22:51:47]name=ofd_packets/00115790 [22:51:47]OFD Sender: To server: pG, [22:51:47]CommunicateWithHost lk.salyk.kg:30040 [22:51:47]ConnectInit lk.salyk.kg [22:51:47]written 0, free lines is 4095 [22:51:47]Connected sock=10 [22:51: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 38 33 30 3C 01 00 00 64 68 34 01 86 8F 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 03 F1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4E C4 01 00 35 04 06 00 DE 49 48 A8 A9 42 00 C3 0E 2C 1F F8 AB E3 [22:51:47]Write to MH i2c: 01 00 00 EC 11 FD [22:51:47]Write i2c OK [22:51:47]MH_I2C_Read... [22:51:47]Read from MH i2c: 01 [22:51:47]MH_I2C_Read... [22:51:47]Read from MH i2c: 01 07 00 [22:51:47]MH_I2C_Read... [22:51:47]Read from MH i2c: 01 07 00 EC 11 00 00 00 00 00 5B 0C 6B [22:51:47]RasterBufferAndPrint [22:51:47]line [22:51:47]line [22:51:47]line [22:51:47]line [22:51:47]line [22:51:47]written 0, free lines is 3166 [22:51:47]MH_Cut [22:51:47]Write to MH i2c: D1 01 00 F3 11 01 D6 [22:51:47]Write i2c OK [22:51:47]MH_I2C_Read... [22:51:47]Read from MH i2c: D1 [22:51:47]MH_I2C_Read... [22:51:47]Read from MH i2c: D1 01 00 [22:51:47]MH_I2C_Read... [22:51:47]Read from MH i2c: D1 01 00 F3 11 00 D5 [22:51:47]Write to MH i2c: 01 00 00 F4 11 05 [22:51:47]Write i2c OK [22:51:47]MH_I2C_Read... [22:51:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 52 51 47 00 78 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4E C4 01 00 F4 03 04 00 44 96 F1 66 B6 04 01 00 00 70 8F 16 62 99 2D A9 E5 [22:51:47]CommunicateWithHost err = 0 [22:51:47]CheckOFDResponse [22:51:47]1017 (14) - 77093643461234 [22:51:47]1041 (16) - 0000000000871830 [22:51:47]1040 (4) - 115790 [22:51:47]1012 (4) - 23.09.2024 16:24 [22:51:47]1206 (1) - 0 [22:51:47]OFD Sender: Remove packet 115790 [22:51:47]ProducePacketName [22:51:47]name=ofd_packets/00115790 [22:51:47]NVStorageDeleteData [22:51:48]OFD Sender: No OFD packet to send [22:51:49]*** Cut start [22:51:49]*** Partial cut [22:51:49]*** CUTSNS_PIN = 1 [22:51:49]*** CUTSNS_PIN = 0 [22:51:49]*** Brake cut motor [22:51:49]Read from MH i2c: 01 [22:51:49]MH_I2C_Read... [22:51:49]*** Stop cut motor [22:51:49]*** Cut end [22:51:49]Read from MH i2c: 01 07 00 [22:51:49]MH_I2C_Read... [22:51:49]Read from MH i2c: 01 07 00 F4 11 00 00 00 00 00 FF 0F 1A [22:51:49]process_action close_receipt done [22:51:49]requested_data is exist [22:51:49]produce_requested_data [22:51:49]requested_item fm.sn is exist - process it [22:51:49]wFMCommunicate request_size=4 [22:51:49]MH_SAM_APDU [22:51:49]CAPDU: 80 11 00 00 [22:51:49]Write to MH i2c: E2 08 00 F5 11 80 11 00 00 00 00 00 00 80 [22:51:49]Write i2c OK [22:51:49]MH_I2C_Read... [22:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:49]Read from MH i2c: E2 [22:51:49]MH_I2C_Read... [22:51:49]Read from MH i2c: E2 17 00 [22:51:49]MH_I2C_Read... [22:51:49]Read from MH i2c: E2 17 00 F5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CE [22:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:51:49]wFMCommunicate OK [22:51:49]requested_item fd.num is exist - process it [22:51:49]SAM_PROTO_GetFieldsCounters [22:51:49]wFMCommunicate request_size=4 [22:51:49]MH_SAM_APDU [22:51:49]CAPDU: 80 13 00 00 [22:51:49]Write to MH i2c: E2 08 00 F6 11 80 13 00 00 00 00 00 00 83 [22:51:49]Write i2c OK [22:51:49]MH_I2C_Read... [22:51:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:51:49]Read from MH i2c: E2 [22:51:49]MH_I2C_Read... [22:51:49]Read from MH i2c: E2 62 00 [22:51:49]MH_I2C_Read... [22:51:49]Read from MH i2c: E2 62 00 F6 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4E C4 01 00 0E 04 04 00 D8 01 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 BE [22:51: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4E C4 01 00 0E 04 04 00 D8 01 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 [22:51:49]wFMCommunicate OK [22:51:49]SAM_PROTO_GetFieldsCounters done [22:51:49]requested_item shift.num is exist - process it [22:51:49]requested_item shift.opened is exist - process it [22:51:49]req_shift_opened [22:51:49]FM_GetShiftState [22:51:49]SAM_PROTO_GetShiftState [22:51:49]wFMCommunicate request_size=4 [22:51:49]MH_SAM_APDU [22:51:49]CAPDU: 80 13 01 00 [22:51:49]Write to MH i2c: E2 08 00 F7 11 80 13 01 00 00 00 00 00 85 [22:51:49]Write i2c OK [22:51:49]MH_I2C_Read... [22:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:49]Read from MH i2c: E2 [22:51:49]MH_I2C_Read... [22:51:49]Read from MH i2c: E2 0E 00 [22:51:49]MH_I2C_Read... [22:51:49]Read from MH i2c: E2 0E 00 F7 11 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C6 [22:51:49]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:51:49]wFMCommunicate OK [22:51:49]SAM_PROTO_GetShiftState done [22:51:49]FM_GetShiftState done [22:51:49]req_shift_opened done [22:51:49]requested_item shift.open_date is exist - process it [22:51:49]req_shift_open_date [22:51:49]req_shift_open_date done [22:51:49]produce_requested_data done [22:51:49]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115790,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [22:51:49]process_action_free close_receipt [22:51:49]json_value_free [22:51:49]json_value_free done [22:51:49]process_json_proto returns [22:51:49]Send response to host [22:51:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115790,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [22:51:49]free response buf [22:51:49]execute_script done [22:51:49]execute_script returns [22:51:49]free content buf [22:51:49]Sock 9.Close socket [22:51:49]Sock 9.Thread stoped [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:04]accept exits with 8 [22:53:04]New connection [22:53:04]New thread 3066867044 created [22:53:04]Thread 3067010404 joined [22:53:04]Waiting for new connection... [22:53:04] Sock 8.Parse request [22:53:04]Sock 8.Check first char [22:53:04]Sock 8.First char is OK [22:53:04]request: POST /json_proto HTTP/1.0 [22:53:04]Method: POST [22:53:04]URL: /json_proto [22:53:04]Method is POST - this is cgi request [22:53:04]url: /json_proto [22:53:04]query_string will be loaded in cgi processing [22:53:04]execute_cgi json_proto POST (null) [22:53:04]execute_cgi path=json_proto method=POST [22:53:04]POST find Content-Length [22:53:04]Host: 172.17.41.136:8080 [22:53:04]Content-Length: 889 [22:53:04]Content-Type: application/json [22:53:04] [22:53:04]POST finish read [22:53:04]Found Content-Length = 889 [22:53:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344104", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 274.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:04]execute_script... [22:53:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344104", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 274.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:04]POST & json_proto [22:53:04]process_json_proto [22:53:04]json parsed OK: [22:53:04]protocol is kg_v1.0 [22:53:04]action value=close_receipt [22:53:04]process_action close_receipt [22:53:04]cmd_close_receipt [22:53:04]MH_GetDate [22:53:04]Write to MH i2c: F0 00 00 F8 11 F8 [22:53:04]Write i2c OK [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: F0 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: F0 09 00 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: F0 09 00 F8 11 00 52 F1 F1 66 1B D0 5A 64 44 [22:53:04]GetLastDocTimeStamp 1727131907 [22:53:04]current date 1727131986 [22:53:04]FM_GetShiftState [22:53:04]SAM_PROTO_GetShiftState [22:53:04]wFMCommunicate request_size=4 [22:53:04]MH_SAM_APDU [22:53:04]CAPDU: 80 13 01 00 [22:53:04]Write to MH i2c: E2 08 00 F9 11 80 13 01 00 00 00 00 00 87 [22:53:04]Write i2c OK [22:53:04]MH_I2C_Read... [22:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:04]Read from MH i2c: E2 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 0E 00 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 0E 00 F9 11 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C8 [22:53:04]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:53:04]wFMCommunicate OK [22:53:04]SAM_PROTO_GetShiftState done [22:53:04]FM_GetShiftState done [22:53:04]opened in 1727052070 [22:53:04]opened+sec_in_day 1727138470 [22:53:04]quantity*price = 14900 [22:53:04]sum+1 = 14901 [22:53:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 274.00 НСП 1% : 2.43 НДС 12% : 29.09 Наличными: 274.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 274 23.09.2024 22:53 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115791 ФПД: 153785755456077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T225306&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115791&fm=153785755456077&tin=02508201610067®Number=0000000000091831&sum=27400 0 [22:53:05]StoreToDocumentArchive [22:53:05]shift 472 fd 115791 [22:53:05]save to /storage/0472/doc_00115791 [22:53:05]save last doc name /storage/0472/doc_00115791 to /storage/kkm_last_doc_name [22:53:05]save OK [22:53:05]Clear old archive folders... [22:53:05]ProcessDocumentItem done err = 0, tmpTLVsize=387 [22:53:05]tlvbuf is B6EB65D0 [22:53:05]SAM_PROTO_ClearQueue [22:53:05]wFMCommunicate request_size=4 [22:53:05]MH_SAM_APDU [22:53:05]CAPDU: 80 09 00 00 [22:53:05]Write to MH i2c: E2 08 00 06 12 80 09 00 00 00 00 00 00 8A [22:53:05]Write i2c OK [22:53:05]MH_I2C_Read... [22:53:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:05]Read from MH i2c: E2 [22:53:05]MH_I2C_Read... [22:53:05]Read from MH i2c: E2 03 00 [22:53:05]MH_I2C_Read... [22:53:05]Read from MH i2c: E2 03 00 06 12 00 90 00 8C [22:53:05]RAPDU: 90 00 [22:53:05]wFMCommunicate OK [22:53:05]SAM_PROTO_ClearQueue done [22:53:05]KKMCreateOFDPacket [22:53:05]OFDProtocolAddRootSTLVToBuf [22:53:05]FM_MakeSignedData [22:53:05]FM_MakeSignedData [22:53:05]SAM_PROTO_SignData [22:53:05]wFMCommunicate request_size=4 [22:53:05]MH_SAM_APDU [22:53:05]CAPDU: 80 0D 01 02 [22:53:05]Write to MH i2c: E2 08 00 07 12 80 0D 01 02 00 00 00 00 92 [22:53:05]Write i2c OK [22:53:05]MH_I2C_Read... [22:53:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:05]Read from MH i2c: E2 [22:53:05]MH_I2C_Read... [22:53:05]Read from MH i2c: E2 03 00 [22:53:05]MH_I2C_Read... [22:53:05]Read from MH i2c: E2 03 00 07 12 00 90 00 8D [22:53:05]RAPDU: 90 00 [22:53:05]wFMCommunicate OK [22:53:05]wFMCommunicate request_size=255 [22:53:05]MH_SAM_APDU [22:53:05]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [22:53:05]Write to MH i2c: E2 02 01 08 12 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 85 [22:53:05]Write i2c OK [22:53:05]MH_I2C_Read... [22:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:06]Read from MH i2c: E2 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: E2 03 00 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: E2 03 00 08 12 00 90 00 8E [22:53:06]RAPDU: 90 00 [22:53:06]wFMCommunicate OK [22:53:06]wFMCommunicate request_size=146 [22:53:06]MH_SAM_APDU [22:53:06]CAPDU: 80 0D 02 02 8D 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 52 F1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4F C4 01 00 35 04 06 00 8B DE 09 53 52 4D [22:53:06]Write to MH i2c: E2 95 00 09 12 80 0D 02 02 8D 00 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 52 F1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4F C4 01 00 35 04 06 00 8B DE 09 53 52 4D 00 00 A9 [22:53:06]Write i2c OK [22:53:06]MH_I2C_Read... [22:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:06]Read from MH i2c: E2 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: E2 03 00 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: E2 03 00 09 12 00 90 00 8F [22:53:06]RAPDU: 90 00 [22:53:06]wFMCommunicate OK [22:53:06]wFMCommunicate request_size=4 [22:53:06]MH_SAM_APDU [22:53:06]CAPDU: 80 0D 03 02 [22:53:06]Write to MH i2c: E2 08 00 0A 12 80 0D 03 02 00 00 00 00 97 [22:53:06]Write i2c OK [22:53:06]MH_I2C_Read... [22:53:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:06]Read from MH i2c: E2 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: E2 0B 00 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: E2 0B 00 0A 12 00 F4 CE 4C 71 C7 FE 2B 5A 90 00 61 [22:53:06]RAPDU: F4 CE 4C 71 C7 FE 2B 5A 90 00 [22:53:06]wFMCommunicate OK [22:53:06]SAM_PROTO_SignData done [22:53:06]FM_MakeSignedData done [22:53:06]CreateOFDProtocolMessage [22:53:06]wFMCommunicate request_size=4 [22:53:06]MH_SAM_APDU [22:53:06]CAPDU: 80 11 00 00 [22:53:06]Write to MH i2c: E2 08 00 0B 12 80 11 00 00 00 00 00 00 97 [22:53:06]Write i2c OK [22:53:06]MH_I2C_Read... [22:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:06]Read from MH i2c: E2 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: E2 17 00 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: E2 17 00 0B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E5 [22:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:53:06]wFMCommunicate OK [22:53:06]CreateOFDProtocolMessage done [22:53:06]OFDSenderStorePacket 115791 [22:53:06]StoreOFDPacket docnum=115791 [22:53:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 97 01 00 00 B7 58 8F 01 1B 20 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 52 F1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4F C4 01 00 35 04 06 00 8B DE 09 53 52 4D F4 CE 4C 71 C7 FE 2B 5A [22:53:06]CheckFolder [22:53:06]dirname=/storage/ofd_packets [22:53:06]CheckFolder done [22:53:06]ProducePacketName [22:53:06]name=ofd_packets/00115791 [22:53:06]NVStorageSaveData ofd_packets/00115791 [22:53:06]File name is /storage/ofd_packets/00115791 [22:53:06]Write 437 bytes [22:53:06]NVStorageSaveData done [22:53:06]OFDSenderStorePacket done [22:53:06]KKMCreateOFDPacket done [22:53:06]NVStorageSaveData kkm_last_timestamp [22:53:06]File name is /storage/kkm_last_timestamp [22:53:06]Write 4 bytes [22:53:06]NVStorageSaveData done [22:53:06]ExternCall_PrintAddStr [22:53:06]wPrintStart [22:53:06]Write to MH i2c: 01 00 00 0C 12 1E [22:53:06]Write i2c OK [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: 01 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: 01 07 00 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: 01 07 00 0C 12 00 00 00 00 00 FF 0F 33 [22:53:06]RasterBufferAndPrint [22:53:06]line Счет N : (3)344104 [22:53:06]line ИНН: 02508201610067 [22:53:06]line Контрольно-Кассовый Чек [22:53:06]line ПРОДАЖА [22:53:06]line Товар: 48744119 [22:53:06]line Сигареты Winston Xstyle Dual [22:53:06]line 1.000 * 149.00 [22:53:06]line = 149.00 [22:53:06]line НДС 12% НСП 1% [22:53:06]line > о реализуемом товаре [22:53:06]line Товар: 2000036190018 [22:53:06]line Кофе Американо XL(GABB TRADE) [22:53:06]line 1.000 * 125.00 [22:53:06]line = 125.00 [22:53:06]line НДС 12% НСП 1% [22:53:06]line > о реализуемом товаре [22:53:06]line ИТОГО: 274.00 [22:53:06]line НСП 1% : 2.43 [22:53:06]line НДС 12% : 29.09 [22:53:06]line Наличными: 274.00 [22:53:06]line Безнал.: 0.00 [22:53:06]line Место: АЗС № 90 "Партнер Нефть" [22:53:06]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:53:06]line СНО: Общий режим [22:53:06]line Чек 274 23.09.2024 22:53 [22:53:06]line Смена: 472 ФФД: 1.0 [22:53:06]line ЗНМ: 0300000120 [22:53:06]line РНМ: 0000000000091831 [22:53:06]line Версия ККМ: 001 [22:53:06]line ФМ: 0000000000871830 [22:53:06]line ФД: 115791 [22:53:06]line ФПД: 153785755456077 [22:53:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T225306&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115791&fm=153785755456077&tin=02508201610067®Number=0000000000091831&sum=27400 [22:53:06]line 0 [22:53:06]OFD Sender: Processing packet 115791 [packets to send 482, broken 481] [22:53:06]ProducePacketName [22:53:06]name=ofd_packets/00115791 [22:53:06]OFD Sender: To server: pG, [22:53:06]CommunicateWithHost lk.salyk.kg:30040 [22:53:06]ConnectInit lk.salyk.kg [22:53:06]written 0, free lines is 4095 [22:53:06]Connected sock=10 [22:53: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 38 33 30 97 01 00 00 B7 58 8F 01 1B 20 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 52 F1 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4F C4 01 00 35 04 06 00 8B DE 09 53 52 4D F4 CE 4C 71 C7 FE 2B 5A [22:53:07]Write to MH i2c: 01 00 00 3A 12 4C [22:53:07]Write i2c OK [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: 01 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: 01 07 00 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: 01 07 00 3A 12 00 00 00 00 00 F8 0B 56 [22:53:07]RasterBufferAndPrint [22:53:07]line [22:53:07]line [22:53:07]line [22:53:07]line [22:53:07]line [22:53:07]written 0, free lines is 3067 [22:53:07]MH_Cut [22:53:07]Write to MH i2c: D1 01 00 41 12 01 25 [22:53:07]Write i2c OK [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: D1 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: D1 01 00 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: D1 01 00 41 12 00 24 [22:53:07]Write to MH i2c: 01 00 00 42 12 54 [22:53:07]Write i2c OK [22:53:07]MH_I2C_Read... [22:53:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 12 B1 47 00 D2 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 4F C4 01 00 F4 03 04 00 94 96 F1 66 B6 04 01 00 00 6D F8 F5 2F C2 60 23 A6 [22:53:07]CommunicateWithHost err = 0 [22:53:07]CheckOFDResponse [22:53:07]1017 (14) - 77093643461234 [22:53:07]1041 (16) - 0000000000871830 [22:53:07]1040 (4) - 115791 [22:53:07]1012 (4) - 23.09.2024 16:25 [22:53:07]1206 (1) - 0 [22:53:07]OFD Sender: Remove packet 115791 [22:53:07]ProducePacketName [22:53:07]name=ofd_packets/00115791 [22:53:07]NVStorageDeleteData [22:53:07]OFD Sender: No OFD packet to send [22:53:08]*** Cut start [22:53:08]*** Partial cut [22:53:08]*** CUTSNS_PIN = 1 [22:53:08]*** CUTSNS_PIN = 0 [22:53:08]*** Brake cut motor [22:53:09]Read from MH i2c: 01 [22:53:09]MH_I2C_Read... [22:53:09]*** Stop cut motor [22:53:09]*** Cut end [22:53:09]Read from MH i2c: 01 07 00 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: 01 07 00 42 12 00 00 00 00 00 FF 0F 69 [22:53:09]process_action close_receipt done [22:53:09]requested_data is exist [22:53:09]produce_requested_data [22:53:09]requested_item fm.sn is exist - process it [22:53:09]wFMCommunicate request_size=4 [22:53:09]MH_SAM_APDU [22:53:09]CAPDU: 80 11 00 00 [22:53:09]Write to MH i2c: E2 08 00 43 12 80 11 00 00 00 00 00 00 CF [22:53:09]Write i2c OK [22:53:09]MH_I2C_Read... [22:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:09]Read from MH i2c: E2 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 17 00 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 17 00 43 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1D [22:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:53:09]wFMCommunicate OK [22:53:09]requested_item fd.num is exist - process it [22:53:09]SAM_PROTO_GetFieldsCounters [22:53:09]wFMCommunicate request_size=4 [22:53:09]MH_SAM_APDU [22:53:09]CAPDU: 80 13 00 00 [22:53:09]Write to MH i2c: E2 08 00 44 12 80 13 00 00 00 00 00 00 D2 [22:53:09]Write i2c OK [22:53:09]MH_I2C_Read... [22:53:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:09]Read from MH i2c: E2 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 62 00 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 62 00 44 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4F C4 01 00 0E 04 04 00 D8 01 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 11 [22: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 4F C4 01 00 0E 04 04 00 D8 01 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 [22:53:09]wFMCommunicate OK [22:53:09]SAM_PROTO_GetFieldsCounters done [22:53:09]requested_item shift.num is exist - process it [22:53:09]requested_item shift.opened is exist - process it [22:53:09]req_shift_opened [22:53:09]FM_GetShiftState [22:53:09]SAM_PROTO_GetShiftState [22:53:09]wFMCommunicate request_size=4 [22:53:09]MH_SAM_APDU [22:53:09]CAPDU: 80 13 01 00 [22:53:09]Write to MH i2c: E2 08 00 45 12 80 13 01 00 00 00 00 00 D4 [22:53:09]Write i2c OK [22:53:09]MH_I2C_Read... [22:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:09]Read from MH i2c: E2 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 0E 00 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 0E 00 45 12 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 15 [22:53:09]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:53:09]wFMCommunicate OK [22:53:09]SAM_PROTO_GetShiftState done [22:53:09]FM_GetShiftState done [22:53:09]req_shift_opened done [22:53:09]requested_item shift.open_date is exist - process it [22:53:09]req_shift_open_date [22:53:09]req_shift_open_date done [22:53:09]produce_requested_data done [22:53:09]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115791,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [22:53:09]process_action_free close_receipt [22:53:09]json_value_free [22:53:09]json_value_free done [22:53:09]process_json_proto returns [22:53:09]Send response to host [22:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115791,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [22:53:09]free response buf [22:53:09]execute_script done [22:53:09]execute_script returns [22:53:09]free content buf [22:53:09]Sock 8.Close socket [22:53:09]Sock 8.Thread stoped [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:22]accept exits with 9 [22:58:22]New connection [22:58:22]New thread 3067010404 created [22:58:22]Thread 3066867044 joined [22:58:22]Waiting for new connection... [22:58:22] Sock 9.Parse request [22:58:22]Sock 9.Check first char [22:58:22]Sock 9.First char is OK [22:58:22]request: POST /json_proto HTTP/1.0 [22:58:22]Method: POST [22:58:22]URL: /json_proto [22:58:22]Method is POST - this is cgi request [22:58:22]url: /json_proto [22:58:22]query_string will be loaded in cgi processing [22:58:22]execute_cgi json_proto POST (null) [22:58:22]execute_cgi path=json_proto method=POST [22:58:22]POST find Content-Length [22:58:22]Host: 172.17.41.136:8080 [22:58:22]Content-Length: 614 [22:58:22]Content-Type: application/json [22:58:22] [22:58:22]POST finish read [22:58:22]Found Content-Length = 614 [22:58:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344105", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:22]execute_script... [22:58:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344105", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:22]POST & json_proto [22:58:22]process_json_proto [22:58:22]json parsed OK: [22:58:22]protocol is kg_v1.0 [22:58:22]action value=close_receipt [22:58:22]process_action close_receipt [22:58:22]cmd_close_receipt [22:58:22]MH_GetDate [22:58:22]Write to MH i2c: F0 00 00 46 12 47 [22:58:22]Write i2c OK [22:58:22]MH_I2C_Read... [22:58:22]Read from MH i2c: F0 [22:58:22]MH_I2C_Read... [22:58:22]Read from MH i2c: F0 09 00 [22:58:22]MH_I2C_Read... [22:58:22]Read from MH i2c: F0 09 00 46 12 00 90 F2 F1 66 1B D0 5A 64 D2 [22:58:22]GetLastDocTimeStamp 1727131986 [22:58:22]current date 1727132304 [22:58:22]FM_GetShiftState [22:58:22]SAM_PROTO_GetShiftState [22:58:22]wFMCommunicate request_size=4 [22:58:22]MH_SAM_APDU [22:58:22]CAPDU: 80 13 01 00 [22:58:22]Write to MH i2c: E2 08 00 47 12 80 13 01 00 00 00 00 00 D6 [22:58:22]Write i2c OK [22:58:22]MH_I2C_Read... [22:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:22]Read from MH i2c: E2 [22:58:22]MH_I2C_Read... [22:58:22]Read from MH i2c: E2 0E 00 [22:58:22]MH_I2C_Read... [22:58:22]Read from MH i2c: E2 0E 00 47 12 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 17 [22:58:22]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:58:22]wFMCommunicate OK [22:58:22]SAM_PROTO_GetShiftState done [22:58:22]FM_GetShiftState done [22:58:22]opened in 1727052070 [22:58:22]opened+sec_in_day 1727138470 [22:58:22]quantity*price = 11000 [22:58:22]sum+1 = 11001 [22:58:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 275 23.09.2024 22:58 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115792 ФПД: 177952264027192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T225824&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115792&fm=177952264027192&tin=02508201610067®Number=0000000000091831&sum=11000 0 [22:58:23]StoreToDocumentArchive [22:58:23]shift 472 fd 115792 [22:58:23]save to /storage/0472/doc_00115792 [22:58:23]save last doc name /storage/0472/doc_00115792 to /storage/kkm_last_doc_name [22:58:23]save OK [22:58:23]Clear old archive folders... [22:58:23]ProcessDocumentItem done err = 0, tmpTLVsize=266 [22:58:23]tlvbuf is 01174D00 [22:58:23]SAM_PROTO_ClearQueue [22:58:23]wFMCommunicate request_size=4 [22:58:23]MH_SAM_APDU [22:58:23]CAPDU: 80 09 00 00 [22:58:23]Write to MH i2c: E2 08 00 54 12 80 09 00 00 00 00 00 00 D8 [22:58:23]Write i2c OK [22:58:23]MH_I2C_Read... [22:58:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:58:23]Read from MH i2c: E2 [22:58:23]MH_I2C_Read... [22:58:23]Read from MH i2c: E2 03 00 [22:58:23]MH_I2C_Read... [22:58:23]Read from MH i2c: E2 03 00 54 12 00 90 00 DA [22:58:23]RAPDU: 90 00 [22:58:23]wFMCommunicate OK [22:58:23]SAM_PROTO_ClearQueue done [22:58:23]KKMCreateOFDPacket [22:58:23]OFDProtocolAddRootSTLVToBuf [22:58:23]FM_MakeSignedData [22:58:23]FM_MakeSignedData [22:58:23]SAM_PROTO_SignData [22:58:23]wFMCommunicate request_size=4 [22:58:23]MH_SAM_APDU [22:58:23]CAPDU: 80 0D 01 02 [22:58:23]Write to MH i2c: E2 08 00 55 12 80 0D 01 02 00 00 00 00 E0 [22:58:23]Write i2c OK [22:58:23]MH_I2C_Read... [22:58:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:58:23]Read from MH i2c: E2 [22:58:23]MH_I2C_Read... [22:58:23]Read from MH i2c: E2 03 00 [22:58:23]MH_I2C_Read... [22:58:23]Read from MH i2c: E2 03 00 55 12 00 90 00 DB [22:58:23]RAPDU: 90 00 [22:58:23]wFMCommunicate OK [22:58:23]wFMCommunicate request_size=255 [22:58:23]MH_SAM_APDU [22:58:23]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 90 F2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [22:58:23]Write to MH i2c: E2 02 01 56 12 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 90 F2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 1A [22:58:23]Write i2c OK [22:58:23]MH_I2C_Read... [22:58:23]OFD Sender: No OFD packet to send [22:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:23]Read from MH i2c: E2 [22:58:23]MH_I2C_Read... [22:58:23]Read from MH i2c: E2 03 00 [22:58:23]MH_I2C_Read... [22:58:23]Read from MH i2c: E2 03 00 56 12 00 90 00 DC [22:58:23]RAPDU: 90 00 [22:58:23]wFMCommunicate OK [22:58:23]wFMCommunicate request_size=25 [22:58:23]MH_SAM_APDU [22:58:23]CAPDU: 80 0D 02 02 14 33 30 10 04 04 00 50 C4 01 00 35 04 06 00 A1 D8 BD 7B FC 38 [22:58:23]Write to MH i2c: E2 1C 00 57 12 80 0D 02 02 14 00 33 30 10 04 04 00 50 C4 01 00 35 04 06 00 A1 D8 BD 7B FC 38 00 00 BF [22:58:23]Write i2c OK [22:58:23]MH_I2C_Read... [22:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:23]Read from MH i2c: E2 [22:58:23]MH_I2C_Read... [22:58:23]Read from MH i2c: E2 03 00 [22:58:23]MH_I2C_Read... [22:58:23]Read from MH i2c: E2 03 00 57 12 00 90 00 DD [22:58:23]RAPDU: 90 00 [22:58:23]wFMCommunicate OK [22:58:23]wFMCommunicate request_size=4 [22:58:23]MH_SAM_APDU [22:58:23]CAPDU: 80 0D 03 02 [22:58:23]Write to MH i2c: E2 08 00 58 12 80 0D 03 02 00 00 00 00 E5 [22:58:23]Write i2c OK [22:58:23]MH_I2C_Read... [22:58:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:58:23]Read from MH i2c: E2 [22:58:23]MH_I2C_Read... [22:58:23]Read from MH i2c: E2 0B 00 [22:58:23]MH_I2C_Read... [22:58:23]Read from MH i2c: E2 0B 00 58 12 00 6F 07 2A 6E 40 A3 73 F0 90 00 3A [22:58:23]RAPDU: 6F 07 2A 6E 40 A3 73 F0 90 00 [22:58:23]wFMCommunicate OK [22:58:23]SAM_PROTO_SignData done [22:58:23]FM_MakeSignedData done [22:58:23]CreateOFDProtocolMessage [22:58:23]wFMCommunicate request_size=4 [22:58:23]MH_SAM_APDU [22:58:23]CAPDU: 80 11 00 00 [22:58:23]Write to MH i2c: E2 08 00 59 12 80 11 00 00 00 00 00 00 E5 [22:58:23]Write i2c OK [22:58:23]MH_I2C_Read... [22:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:23]Read from MH i2c: E2 [22:58:23]MH_I2C_Read... [22:58:23]Read from MH i2c: E2 17 00 [22:58:23]MH_I2C_Read... [22:58:23]Read from MH i2c: E2 17 00 59 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 33 [22:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:58:23]wFMCommunicate OK [22:58:23]CreateOFDProtocolMessage done [22:58:23]OFDSenderStorePacket 115792 [22:58:23]StoreOFDPacket docnum=115792 [22:58:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 30 03 16 01 FF AF 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 90 F2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 50 C4 01 00 35 04 06 00 A1 D8 BD 7B FC 38 6F 07 2A 6E 40 A3 73 F0 [22:58:23]CheckFolder [22:58:23]dirname=/storage/ofd_packets [22:58:23]CheckFolder done [22:58:23]ProducePacketName [22:58:23]name=ofd_packets/00115792 [22:58:23]NVStorageSaveData ofd_packets/00115792 [22:58:23]File name is /storage/ofd_packets/00115792 [22:58:23]Write 316 bytes [22:58:23]NVStorageSaveData done [22:58:23]OFDSenderStorePacket done [22:58:23]KKMCreateOFDPacket done [22:58:23]NVStorageSaveData kkm_last_timestamp [22:58:23]File name is /storage/kkm_last_timestamp [22:58:23]Write 4 bytes [22:58:23]NVStorageSaveData done [22:58:23]ExternCall_PrintAddStr [22:58:23]wPrintStart [22:58:23]Write to MH i2c: 01 00 00 5A 12 6C [22:58:23]Write i2c OK [22:58:23]MH_I2C_Read... [22:58:23]Read from MH i2c: 01 [22:58:23]MH_I2C_Read... [22:58:23]Read from MH i2c: 01 07 00 [22:58:23]MH_I2C_Read... [22:58:23]Read from MH i2c: 01 07 00 5A 12 00 00 00 00 00 FF 0F 81 [22:58:23]RasterBufferAndPrint [22:58:23]line Счет N : (3)344105 [22:58:23]line ИНН: 02508201610067 [22:58:23]line Контрольно-Кассовый Чек [22:58:23]line ПРОДАЖА [22:58:23]line Товар: 4870001570071 [22:58:23]line Напиток Pepsi 1л [22:58:23]line 1.000 * 110.00 [22:58:23]line = 110.00 [22:58:23]line НДС 12% НСП 1% [22:58:23]line > о реализуемом товаре [22:58:23]line ИТОГО: 110.00 [22:58:23]line НСП 1% : 0.97 [22:58:23]line НДС 12% : 11.68 [22:58:23]line Наличными: 110.00 [22:58:23]line Безнал.: 0.00 [22:58:23]line Место: АЗС № 90 "Партнер Нефть" [22:58:23]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [22:58:23]line СНО: Общий режим [22:58:23]line Чек 275 23.09.2024 22:58 [22:58:23]line Смена: 472 ФФД: 1.0 [22:58:23]line ЗНМ: 0300000120 [22:58:23]line РНМ: 0000000000091831 [22:58:23]line Версия ККМ: 001 [22:58:23]line ФМ: 0000000000871830 [22:58:23]line ФД: 115792 [22:58:23]line ФПД: 177952264027192 [22:58:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T225824&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115792&fm=177952264027192&tin=02508201610067®Number=0000000000091831&sum=11000 [22:58:23]line 0 [22:58:23]written 0, free lines is 4095 [22:58:23]OFD Sender: Processing packet 115792 [packets to send 482, broken 481] [22:58:23]ProducePacketName [22:58:23]name=ofd_packets/00115792 [22:58:23]OFD Sender: To server: pG, [22:58:23]CommunicateWithHost lk.salyk.kg:30040 [22:58:23]ConnectInit lk.salyk.kg [22:58:24]Write to MH i2c: 01 00 00 81 12 93 [22:58:24]Write i2c OK [22:58:24]MH_I2C_Read... [22:58:24]Read from MH i2c: 01 [22:58:24]MH_I2C_Read... [22:58:24]Read from MH i2c: 01 07 00 [22:58:24]MH_I2C_Read... [22:58:24]Read from MH i2c: 01 07 00 81 12 00 00 00 00 00 87 0C 2D [22:58:24]RasterBufferAndPrint [22:58:24]line [22:58:24]line [22:58:24]line [22:58:24]line [22:58:24]line [22:58:24]written 0, free lines is 3211 [22:58:24]MH_Cut [22:58:24]Write to MH i2c: D1 01 00 88 12 01 6C [22:58:24]Write i2c OK [22:58:24]MH_I2C_Read... [22:58:24]Read from MH i2c: D1 [22:58:24]MH_I2C_Read... [22:58:24]Read from MH i2c: D1 01 00 [22:58:24]MH_I2C_Read... [22:58:24]Read from MH i2c: D1 01 00 88 12 00 6B [22:58:24]Write to MH i2c: 01 00 00 89 12 9B [22:58:24]Write i2c OK [22:58:24]MH_I2C_Read... [22:58:25]*** Cut start [22:58:25]*** Partial cut [22:58:25]*** CUTSNS_PIN = 1 [22:58:25]*** CUTSNS_PIN = 0 [22:58:25]*** Brake cut motor [22:58:26]Read from MH i2c: 01 [22:58:26]MH_I2C_Read... [22:58:26]*** Stop cut motor [22:58:26]*** Cut end [22:58:26]Read from MH i2c: 01 07 00 [22:58:26]MH_I2C_Read... [22:58:26]Read from MH i2c: 01 07 00 89 12 00 00 00 00 00 FF 0F B0 [22:58:26]process_action close_receipt done [22:58:26]requested_data is exist [22:58:26]produce_requested_data [22:58:26]requested_item fm.sn is exist - process it [22:58:26]wFMCommunicate request_size=4 [22:58:26]MH_SAM_APDU [22:58:26]CAPDU: 80 11 00 00 [22:58:26]Write to MH i2c: E2 08 00 8A 12 80 11 00 00 00 00 00 00 16 [22:58:26]Write i2c OK [22:58:26]MH_I2C_Read... [22:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:26]Read from MH i2c: E2 [22:58:26]MH_I2C_Read... [22:58:26]Read from MH i2c: E2 17 00 [22:58:26]MH_I2C_Read... [22:58:26]Read from MH i2c: E2 17 00 8A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 64 [22:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [22:58:26]wFMCommunicate OK [22:58:26]requested_item fd.num is exist - process it [22:58:26]SAM_PROTO_GetFieldsCounters [22:58:26]wFMCommunicate request_size=4 [22:58:26]MH_SAM_APDU [22:58:26]CAPDU: 80 13 00 00 [22:58:26]Write to MH i2c: E2 08 00 8B 12 80 13 00 00 00 00 00 00 19 [22:58:26]Write i2c OK [22:58:26]MH_I2C_Read... [22:58:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:58:26]Read from MH i2c: E2 [22:58:26]MH_I2C_Read... [22:58:26]Read from MH i2c: E2 62 00 [22:58:26]MH_I2C_Read... [22:58:26]Read from MH i2c: E2 62 00 8B 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 50 C4 01 00 0E 04 04 00 D8 01 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 5C [22:58: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 50 C4 01 00 0E 04 04 00 D8 01 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 [22:58:26]wFMCommunicate OK [22:58:26]SAM_PROTO_GetFieldsCounters done [22:58:26]requested_item shift.num is exist - process it [22:58:26]requested_item shift.opened is exist - process it [22:58:26]req_shift_opened [22:58:26]FM_GetShiftState [22:58:26]SAM_PROTO_GetShiftState [22:58:26]wFMCommunicate request_size=4 [22:58:26]MH_SAM_APDU [22:58:26]CAPDU: 80 13 01 00 [22:58:26]Write to MH i2c: E2 08 00 8C 12 80 13 01 00 00 00 00 00 1B [22:58:26]Write i2c OK [22:58:26]MH_I2C_Read... [22:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:26]Read from MH i2c: E2 [22:58:26]MH_I2C_Read... [22:58:26]Read from MH i2c: E2 0E 00 [22:58:26]MH_I2C_Read... [22:58:26]Read from MH i2c: E2 0E 00 8C 12 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5C [22:58:26]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [22:58:26]wFMCommunicate OK [22:58:26]SAM_PROTO_GetShiftState done [22:58:26]FM_GetShiftState done [22:58:26]req_shift_opened done [22:58:26]requested_item shift.open_date is exist - process it [22:58:26]req_shift_open_date [22:58:26]req_shift_open_date done [22:58:26]produce_requested_data done [22:58:26]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115792,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [22:58:26]process_action_free close_receipt [22:58:26]json_value_free [22:58:26]json_value_free done [22:58:26]process_json_proto returns [22:58:26]Send response to host [22:58:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115792,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [22:58:26]free response buf [22:58:26]execute_script done [22:58:26]execute_script returns [22:58:26]free content buf [22:58:26]Sock 9.Close socket [22:58:26]Sock 9.Thread stoped [22:58:28]ConnectInit Can't take IP for lk.salyk.kg [22:58:28]CommunicateWithHost connect error [22:58:28]CommunicateWithHost err = -1 [22:58:28]OFD Sender: Server communicate error [22:58:33]OFD Sender: Processing packet 115792 [packets to send 482, broken 481] [22:58:33]ProducePacketName [22:58:33]name=ofd_packets/00115792 [22:58:33]OFD Sender: To server: pG, [22:58:33]CommunicateWithHost lk.salyk.kg:30040 [22:58:33]ConnectInit lk.salyk.kg [22:58:34]Connected sock=8 [22:58: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 38 33 30 1E 01 00 00 30 03 16 01 FF AF 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 90 F2 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 50 C4 01 00 35 04 06 00 A1 D8 BD 7B FC 38 6F 07 2A 6E 40 A3 73 F0 [22:58:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 2A 20 47 00 A0 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 38 33 30 10 04 04 00 50 C4 01 00 F4 03 04 00 DB 97 F1 66 B6 04 01 00 00 87 F9 53 B9 94 1E 14 88 [22:58:34]CommunicateWithHost err = 0 [22:58:34]CheckOFDResponse [22:58:34]1017 (14) - 77093643461234 [22:58:34]1041 (16) - 0000000000871830 [22:58:34]1040 (4) - 115792 [22:58:34]1012 (4) - 23.09.2024 16:31 [22:58:34]1206 (1) - 0 [22:58:34]OFD Sender: Remove packet 115792 [22:58:34]ProducePacketName [22:58:34]name=ofd_packets/00115792 [22:58:34]NVStorageDeleteData [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:03]accept exits with 10 [23:03:03]New connection [23:03:03]New thread 3066867044 created [23:03:03]Thread 3067010404 joined [23:03:03]Waiting for new connection... [23:03:03] Sock 10.Parse request [23:03:03]Sock 10.Check first char [23:03:03]Sock 10.First char is OK [23:03:03]request: POST /json_proto HTTP/1.0 [23:03:03]Method: POST [23:03:03]URL: /json_proto [23:03:03]Method is POST - this is cgi request [23:03:03]url: /json_proto [23:03:03]query_string will be loaded in cgi processing [23:03:03]execute_cgi json_proto POST (null) [23:03:03]execute_cgi path=json_proto method=POST [23:03:03]POST find Content-Length [23:03:03]Host: 172.17.41.136:8080 [23:03:03]Content-Length: 1401 [23:03:03]Content-Type: application/json [23:03:03] [23:03:03]POST finish read [23:03:03]Found Content-Length = 1401 [23:03:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344106", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 3.000, "sum" : 231.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233466357", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041C\u0438\u0448\u0430 \u0422\u0440\u0438\u043E", "price" : 75.00, "quantity" : 3.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 581.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:03]execute_script... [23:03:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344106", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 3.000, "sum" : 231.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233466357", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041C\u0438\u0448\u0430 \u0422\u0440\u0438\u043E", "price" : 75.00, "quantity" : 3.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 581.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:03]POST & json_proto [23:03:03]process_json_proto [23:03:03]json parsed OK: [23:03:03]protocol is kg_v1.0 [23:03:03]action value=close_receipt [23:03:03]process_action close_receipt [23:03:03]cmd_close_receipt [23:03:03]MH_GetDate [23:03:03]Write to MH i2c: F0 00 00 8D 12 8E [23:03:03]Write i2c OK [23:03:03]MH_I2C_Read... [23:03:03]Read from MH i2c: F0 [23:03:03]MH_I2C_Read... [23:03:03]Read from MH i2c: F0 09 00 [23:03:03]MH_I2C_Read... [23:03:03]Read from MH i2c: F0 09 00 8D 12 00 A9 F3 F1 66 1B D0 5A 64 33 [23:03:03]GetLastDocTimeStamp 1727132304 [23:03:03]current date 1727132585 [23:03:03]FM_GetShiftState [23:03:03]SAM_PROTO_GetShiftState [23:03:03]wFMCommunicate request_size=4 [23:03:03]MH_SAM_APDU [23:03:03]CAPDU: 80 13 01 00 [23:03:03]Write to MH i2c: E2 08 00 8E 12 80 13 01 00 00 00 00 00 1D [23:03:03]Write i2c OK [23:03:03]MH_I2C_Read... [23:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:03]Read from MH i2c: E2 [23:03:03]MH_I2C_Read... [23:03:03]Read from MH i2c: E2 0E 00 [23:03:03]MH_I2C_Read... [23:03:03]Read from MH i2c: E2 0E 00 8E 12 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 5E [23:03:03]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [23:03:03]wFMCommunicate OK [23:03:03]SAM_PROTO_GetShiftState done [23:03:03]FM_GetShiftState done [23:03:03]opened in 1727052070 [23:03:03]opened+sec_in_day 1727138470 [23:03:03]quantity*price = 12500 [23:03:03]sum+1 = 12501 [23:03:03]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870233466272 Мороженое Пломбир Миша 3.000 * 77.00 = 231.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870233466357 Мороженое Миша Трио 3.000 * 75.00 = 225.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 581.00 НСП 1% : 5.14 НДС 12% : 61.69 Наличными: 0.00 Безнал.: 581.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 276 23.09.2024 23:03 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115793 ФПД: 248778582061422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T230306&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115793&fm=248778582061422&tin=02508201610067®Number=0000000000091831&sum=58100 0 [23:03:05]StoreToDocumentArchive [23:03:05]shift 472 fd 115793 [23:03:05]save to /storage/0472/doc_00115793 [23:03:05]save last doc name /storage/0472/doc_00115793 to /storage/kkm_last_doc_name [23:03:05]save OK [23:03:05]Clear old archive folders... [23:03:05]ProcessDocumentItem done err = 0, tmpTLVsize=506 [23:03:05]tlvbuf is 0113A810 [23:03:05]SAM_PROTO_ClearQueue [23:03:05]wFMCommunicate request_size=4 [23:03:05]MH_SAM_APDU [23:03:05]CAPDU: 80 09 00 00 [23:03:05]Write to MH i2c: E2 08 00 9B 12 80 09 00 00 00 00 00 00 1F [23:03:05]Write i2c OK [23:03:05]MH_I2C_Read... [23:03:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:03:05]Read from MH i2c: E2 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: E2 03 00 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: E2 03 00 9B 12 00 90 00 21 [23:03:05]RAPDU: 90 00 [23:03:05]wFMCommunicate OK [23:03:05]SAM_PROTO_ClearQueue done [23:03:05]KKMCreateOFDPacket [23:03:05]OFDProtocolAddRootSTLVToBuf [23:03:05]FM_MakeSignedData [23:03:05]FM_MakeSignedData [23:03:05]SAM_PROTO_SignData [23:03:05]wFMCommunicate request_size=4 [23:03:05]MH_SAM_APDU [23:03:05]CAPDU: 80 0D 01 02 [23:03:05]Write to MH i2c: E2 08 00 9C 12 80 0D 01 02 00 00 00 00 27 [23:03:05]Write i2c OK [23:03:05]MH_I2C_Read... [23:03:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:03:05]Read from MH i2c: E2 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: E2 03 00 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: E2 03 00 9C 12 00 90 00 22 [23:03:05]RAPDU: 90 00 [23:03:05]wFMCommunicate OK [23:03:05]wFMCommunicate request_size=255 [23:03:05]MH_SAM_APDU [23:03:05]CAPDU: 80 0D 02 02 FA 03 00 FA 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 3C 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 32 [23:03:05]Write to MH i2c: E2 02 01 9D 12 80 0D 02 02 FA 00 03 00 FA 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 3C 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 32 00 00 38 [23:03:05]Write i2c OK [23:03:05]MH_I2C_Read... [23:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:05]Read from MH i2c: E2 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: E2 03 00 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: E2 03 00 9D 12 00 90 00 23 [23:03:05]RAPDU: 90 00 [23:03:05]wFMCommunicate OK [23:03:05]wFMCommunicate request_size=255 [23:03:05]MH_SAM_APDU [23:03:05]CAPDU: 80 0D 02 02 FA 33 33 34 36 36 33 35 37 06 04 24 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9C D0 B8 D1 88 D0 B0 20 D0 A2 D1 80 D0 B8 D0 BE FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 E2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 AA F3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 51 C4 01 00 [23:03:05]Write to MH i2c: E2 02 01 9E 12 80 0D 02 02 FA 00 33 33 34 36 36 33 35 37 06 04 24 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9C D0 B8 D1 88 D0 B0 20 D0 A2 D1 80 D0 B8 D0 BE FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 E2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 AA F3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 51 C4 01 00 00 00 B6 [23:03:05]Write i2c OK [23:03:05]MH_I2C_Read... [23:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:05]Read from MH i2c: E2 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: E2 03 00 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: E2 03 00 9E 12 00 90 00 24 [23:03:05]RAPDU: 90 00 [23:03:05]wFMCommunicate OK [23:03:05]wFMCommunicate request_size=15 [23:03:05]MH_SAM_APDU [23:03:05]CAPDU: 80 0D 02 02 0A 35 04 06 00 E2 43 47 02 F1 6E [23:03:05]Write to MH i2c: E2 12 00 9F 12 80 0D 02 02 0A 00 35 04 06 00 E2 43 47 02 F1 6E 00 00 4B [23:03:05]Write i2c OK [23:03:05]MH_I2C_Read... [23:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:05]Read from MH i2c: E2 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: E2 03 00 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: E2 03 00 9F 12 00 90 00 25 [23:03:05]RAPDU: 90 00 [23:03:05]wFMCommunicate OK [23:03:05]wFMCommunicate request_size=4 [23:03:05]MH_SAM_APDU [23:03:05]CAPDU: 80 0D 03 02 [23:03:05]Write to MH i2c: E2 08 00 A0 12 80 0D 03 02 00 00 00 00 2D [23:03:05]Write i2c OK [23:03:05]MH_I2C_Read... [23:03:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:03:05]Read from MH i2c: E2 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: E2 0B 00 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: E2 0B 00 A0 12 00 5F 4F 35 D2 51 1B 18 35 90 00 9C [23:03:05]RAPDU: 5F 4F 35 D2 51 1B 18 35 90 00 [23:03:05]wFMCommunicate OK [23:03:05]SAM_PROTO_SignData done [23:03:05]FM_MakeSignedData done [23:03:05]CreateOFDProtocolMessage [23:03:05]wFMCommunicate request_size=4 [23:03:05]MH_SAM_APDU [23:03:05]CAPDU: 80 11 00 00 [23:03:05]Write to MH i2c: E2 08 00 A1 12 80 11 00 00 00 00 00 00 2D [23:03:05]Write i2c OK [23:03:05]MH_I2C_Read... [23:03:05]OFD Sender: No OFD packet to send [23:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:05]Read from MH i2c: E2 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: E2 17 00 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: E2 17 00 A1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7B [23:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:03:05]wFMCommunicate OK [23:03:05]CreateOFDProtocolMessage done [23:03:05]OFDSenderStorePacket 115793 [23:03:05]StoreOFDPacket docnum=115793 [23:03:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0E 02 00 00 10 6A 06 02 0D 42 5A 03 01 00 03 00 FA 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 3C 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 33 35 37 06 04 24 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9C D0 B8 D1 88 D0 B0 20 D0 A2 D1 80 D0 B8 D0 BE FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 E2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 AA F3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 51 C4 01 00 35 04 06 00 E2 43 47 02 F1 6E 5F 4F 35 D2 51 1B 18 35 [23:03:05]CheckFolder [23:03:05]dirname=/storage/ofd_packets [23:03:05]CheckFolder done [23:03:05]ProducePacketName [23:03:05]name=ofd_packets/00115793 [23:03:05]NVStorageSaveData ofd_packets/00115793 [23:03:05]File name is /storage/ofd_packets/00115793 [23:03:05]Write 556 bytes [23:03:05]NVStorageSaveData done [23:03:05]OFDSenderStorePacket done [23:03:05]KKMCreateOFDPacket done [23:03:05]NVStorageSaveData kkm_last_timestamp [23:03:05]File name is /storage/kkm_last_timestamp [23:03:05]Write 4 bytes [23:03:05]NVStorageSaveData done [23:03:05]ExternCall_PrintAddStr [23:03:05]wPrintStart [23:03:05]Write to MH i2c: 01 00 00 A2 12 B4 [23:03:05]Write i2c OK [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: 01 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: 01 07 00 [23:03:05]MH_I2C_Read... [23:03:05]Read from MH i2c: 01 07 00 A2 12 00 00 00 00 00 FF 0F C9 [23:03:05]RasterBufferAndPrint [23:03:05]line Счет N : (3)344106 [23:03:05]line ИНН: 02508201610067 [23:03:05]line Контрольно-Кассовый Чек [23:03:05]line ПРОДАЖА [23:03:05]line Товар: 2000036190018 [23:03:05]line Кофе Американо XL(GABB TRADE) [23:03:05]line 1.000 * 125.00 [23:03:05]line = 125.00 [23:03:05]line НДС 12% НСП 1% [23:03:05]line > о реализуемом товаре [23:03:05]line Товар: 4870233466272 [23:03:05]line Мороженое Пломбир Миша [23:03:05]line 3.000 * 77.00 [23:03:05]line = 231.00 [23:03:05]line НДС 12% НСП 1% [23:03:05]line > о реализуемом товаре [23:03:05]line Товар: 4870233466357 [23:03:05]line Мороженое Миша Трио [23:03:05]line 3.000 * 75.00 [23:03:05]line = 225.00 [23:03:05]line НДС 12% НСП 1% [23:03:05]line > о реализуемом товаре [23:03:05]line ИТОГО: 581.00 [23:03:05]line НСП 1% : 5.14 [23:03:05]line НДС 12% : 61.69 [23:03:05]line Наличными: 0.00 [23:03:05]line Безнал.: 581.00 [23:03:06]line Место: АЗС № 90 "Партнер Нефть" [23:03:06]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [23:03:06]line СНО: Общий режим [23:03:06]line Чек 276 23.09.2024 23:03 [23:03:06]line Смена: 472 ФФД: 1.0 [23:03:06]line ЗНМ: 0300000120 [23:03:06]line РНМ: 0000000000091831 [23:03:06]line Версия ККМ: 001 [23:03:06]line Платежная система: Бакай Банк [23:03:06]line ФМ: 0000000000871830 [23:03:06]line ФД: 115793 [23:03:06]line ФПД: 248778582061422 [23:03:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T230306&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115793&fm=248778582061422&tin=02508201610067®Number=0000000000091831&sum=58100 [23:03:06]line 0 [23:03:06]OFD Sender: Processing packet 115793 [packets to send 482, broken 481] [23:03:06]ProducePacketName [23:03:06]name=ofd_packets/00115793 [23:03:06]OFD Sender: To server: pG, [23:03:06]CommunicateWithHost lk.salyk.kg:30040 [23:03:06]ConnectInit lk.salyk.kg [23:03:06]written 0, free lines is 4095 [23:03:06]Connected sock=11 [23:03: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 38 33 30 0E 02 00 00 10 6A 06 02 0D 42 5A 03 01 00 03 00 FA 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 3C 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 33 35 37 06 04 24 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9C D0 B8 D1 88 D0 B0 20 D0 A2 D1 80 D0 B8 D0 BE FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 E2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 AA F3 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 51 C4 01 00 35 04 06 00 E2 43 47 02 F1 6E 5F 4F 35 D2 51 1B 18 35 [23:03:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 AD E0 47 00 54 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 38 33 30 10 04 04 00 51 C4 01 00 F4 03 04 00 EB 98 F1 66 B6 04 01 00 00 0F 60 44 70 2F 44 51 9C [23:03:06]CommunicateWithHost err = 0 [23:03:06]CheckOFDResponse [23:03:06]1017 (14) - 77093643461234 [23:03:06]1041 (16) - 0000000000871830 [23:03:06]1040 (4) - 115793 [23:03:06]1012 (4) - 23.09.2024 16:35 [23:03:06]1206 (1) - 0 [23:03:06]OFD Sender: Remove packet 115793 [23:03:06]ProducePacketName [23:03:06]name=ofd_packets/00115793 [23:03:06]NVStorageDeleteData [23:03:06]Write to MH i2c: 01 00 00 D8 12 EA [23:03:06]Write i2c OK [23:03:06]MH_I2C_Read... [23:03:06]Read from MH i2c: 01 [23:03:06]MH_I2C_Read... [23:03:06]Read from MH i2c: 01 07 00 [23:03:06]MH_I2C_Read... [23:03:06]Read from MH i2c: 01 07 00 D8 12 00 00 00 00 00 46 0B 42 [23:03:06]RasterBufferAndPrint [23:03:06]line [23:03:06]line [23:03:06]line [23:03:06]line [23:03:06]line [23:03:06]written 0, free lines is 2890 [23:03:06]MH_Cut [23:03:06]Write to MH i2c: D1 01 00 DF 12 01 C3 [23:03:06]Write i2c OK [23:03:06]MH_I2C_Read... [23:03:06]Read from MH i2c: D1 [23:03:06]MH_I2C_Read... [23:03:06]Read from MH i2c: D1 01 00 [23:03:06]MH_I2C_Read... [23:03:06]Read from MH i2c: D1 01 00 DF 12 00 C2 [23:03:06]Write to MH i2c: 01 00 00 E0 12 F2 [23:03:06]Write i2c OK [23:03:06]MH_I2C_Read... [23:03:07]OFD Sender: No OFD packet to send [23:03:08]*** Cut start [23:03:08]*** Partial cut [23:03:08]*** CUTSNS_PIN = 1 [23:03:08]*** CUTSNS_PIN = 0 [23:03:08]*** Brake cut motor [23:03:09]Read from MH i2c: 01 [23:03:09]MH_I2C_Read... [23:03:09]*** Stop cut motor [23:03:09]*** Cut end [23:03:09]Read from MH i2c: 01 07 00 [23:03:09]MH_I2C_Read... [23:03:09]Read from MH i2c: 01 07 00 E0 12 00 00 00 00 00 FF 0F 07 [23:03:09]process_action close_receipt done [23:03:09]requested_data is exist [23:03:09]produce_requested_data [23:03:09]requested_item fm.sn is exist - process it [23:03:09]wFMCommunicate request_size=4 [23:03:09]MH_SAM_APDU [23:03:09]CAPDU: 80 11 00 00 [23:03:09]Write to MH i2c: E2 08 00 E1 12 80 11 00 00 00 00 00 00 6D [23:03:09]Write i2c OK [23:03:09]MH_I2C_Read... [23:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:09]Read from MH i2c: E2 [23:03:09]MH_I2C_Read... [23:03:09]Read from MH i2c: E2 17 00 [23:03:09]MH_I2C_Read... [23:03:09]Read from MH i2c: E2 17 00 E1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BB [23:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:03:09]wFMCommunicate OK [23:03:09]requested_item fd.num is exist - process it [23:03:09]SAM_PROTO_GetFieldsCounters [23:03:09]wFMCommunicate request_size=4 [23:03:09]MH_SAM_APDU [23:03:09]CAPDU: 80 13 00 00 [23:03:09]Write to MH i2c: E2 08 00 E2 12 80 13 00 00 00 00 00 00 70 [23:03:09]Write i2c OK [23:03:09]MH_I2C_Read... [23:03:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:03:09]Read from MH i2c: E2 [23:03:09]MH_I2C_Read... [23:03:09]Read from MH i2c: E2 62 00 [23:03:09]MH_I2C_Read... [23:03:09]Read from MH i2c: E2 62 00 E2 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 51 C4 01 00 0E 04 04 00 D8 01 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 [23:03: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 51 C4 01 00 0E 04 04 00 D8 01 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 [23:03:09]wFMCommunicate OK [23:03:09]SAM_PROTO_GetFieldsCounters done [23:03:09]requested_item shift.num is exist - process it [23:03:09]requested_item shift.opened is exist - process it [23:03:09]req_shift_opened [23:03:09]FM_GetShiftState [23:03:09]SAM_PROTO_GetShiftState [23:03:09]wFMCommunicate request_size=4 [23:03:09]MH_SAM_APDU [23:03:09]CAPDU: 80 13 01 00 [23:03:09]Write to MH i2c: E2 08 00 E3 12 80 13 01 00 00 00 00 00 72 [23:03:09]Write i2c OK [23:03:09]MH_I2C_Read... [23:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:09]Read from MH i2c: E2 [23:03:09]MH_I2C_Read... [23:03:09]Read from MH i2c: E2 0E 00 [23:03:09]MH_I2C_Read... [23:03:09]Read from MH i2c: E2 0E 00 E3 12 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B3 [23:03:09]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [23:03:09]wFMCommunicate OK [23:03:09]SAM_PROTO_GetShiftState done [23:03:09]FM_GetShiftState done [23:03:09]req_shift_opened done [23:03:09]requested_item shift.open_date is exist - process it [23:03:09]req_shift_open_date [23:03:09]req_shift_open_date done [23:03:09]produce_requested_data done [23:03:09]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115793,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [23:03:09]process_action_free close_receipt [23:03:09]json_value_free [23:03:09]json_value_free done [23:03:09]process_json_proto returns [23:03:09]Send response to host [23:03:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115793,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [23:03:09]free response buf [23:03:09]execute_script done [23:03:09]execute_script returns [23:03:09]free content buf [23:03:09]Sock 10.Close socket [23:03:09]Sock 10.Thread stoped [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:45]accept exits with 8 [23:04:45]New connection [23:04:45]New thread 3067010404 created [23:04:45]Thread 3066867044 joined [23:04:45]Waiting for new connection... [23:04:45] Sock 8.Parse request [23:04:45]Sock 8.Check first char [23:04:45]Sock 8.First char is OK [23:04:45]request: POST /json_proto HTTP/1.0 [23:04:45]Method: POST [23:04:45]URL: /json_proto [23:04:45]Method is POST - this is cgi request [23:04:45]url: /json_proto [23:04:45]query_string will be loaded in cgi processing [23:04:45]execute_cgi json_proto POST (null) [23:04:45]execute_cgi path=json_proto method=POST [23:04:45]POST find Content-Length [23:04:45]Host: 172.17.41.136:8080 [23:04:45]Content-Length: 651 [23:04:45]Content-Type: application/json [23:04:45] [23:04:45]POST finish read [23:04:45]Found Content-Length = 651 [23:04:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344107", "tax_sys" : 0, "items" : [ { "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 87.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:45]execute_script... [23:04:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344107", "tax_sys" : 0, "items" : [ { "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 87.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:45]POST & json_proto [23:04:45]process_json_proto [23:04:45]json parsed OK: [23:04:45]protocol is kg_v1.0 [23:04:45]action value=close_receipt [23:04:45]process_action close_receipt [23:04:45]cmd_close_receipt [23:04:45]MH_GetDate [23:04:45]Write to MH i2c: F0 00 00 E4 12 E5 [23:04:45]Write i2c OK [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: F0 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: F0 09 00 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: F0 09 00 E4 12 00 0F F4 F1 66 1B D0 5A 64 F1 [23:04:45]GetLastDocTimeStamp 1727132586 [23:04:45]current date 1727132687 [23:04:45]FM_GetShiftState [23:04:45]SAM_PROTO_GetShiftState [23:04:45]wFMCommunicate request_size=4 [23:04:45]MH_SAM_APDU [23:04:45]CAPDU: 80 13 01 00 [23:04:45]Write to MH i2c: E2 08 00 E5 12 80 13 01 00 00 00 00 00 74 [23:04:45]Write i2c OK [23:04:45]MH_I2C_Read... [23:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:45]Read from MH i2c: E2 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: E2 0E 00 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: E2 0E 00 E5 12 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 B5 [23:04:45]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [23:04:45]wFMCommunicate OK [23:04:45]SAM_PROTO_GetShiftState done [23:04:45]FM_GetShiftState done [23:04:45]opened in 1727052070 [23:04:45]opened+sec_in_day 1727138470 [23:04:45]quantity*price = 8700 [23:04:45]sum+1 = 8701 [23:04:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 87.00 НСП 1% : 0.77 НДС 12% : 9.24 Наличными: 87.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 277 23.09.2024 23:04 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115794 ФПД: 233971469587600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T230447&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115794&fm=233971469587600&tin=02508201610067®Number=0000000000091831&sum=8700 0 [23:04:46]StoreToDocumentArchive [23:04:46]shift 472 fd 115794 [23:04:46]save to /storage/0472/doc_00115794 [23:04:46]save last doc name /storage/0472/doc_00115794 to /storage/kkm_last_doc_name [23:04:46]save OK [23:04:46]Clear old archive folders... [23:04:46]ProcessDocumentItem done err = 0, tmpTLVsize=278 [23:04:46]tlvbuf is 0114F860 [23:04:46]SAM_PROTO_ClearQueue [23:04:46]wFMCommunicate request_size=4 [23:04:46]MH_SAM_APDU [23:04:46]CAPDU: 80 09 00 00 [23:04:46]Write to MH i2c: E2 08 00 F2 12 80 09 00 00 00 00 00 00 76 [23:04:46]Write i2c OK [23:04:46]MH_I2C_Read... [23:04:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:46]Read from MH i2c: E2 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 F2 12 00 90 00 78 [23:04:46]RAPDU: 90 00 [23:04:46]wFMCommunicate OK [23:04:46]SAM_PROTO_ClearQueue done [23:04:46]KKMCreateOFDPacket [23:04:46]OFDProtocolAddRootSTLVToBuf [23:04:46]FM_MakeSignedData [23:04:46]FM_MakeSignedData [23:04:46]SAM_PROTO_SignData [23:04:46]wFMCommunicate request_size=4 [23:04:46]MH_SAM_APDU [23:04:46]CAPDU: 80 0D 01 02 [23:04:46]Write to MH i2c: E2 08 00 F3 12 80 0D 01 02 00 00 00 00 7E [23:04:46]Write i2c OK [23:04:46]MH_I2C_Read... [23:04:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:46]Read from MH i2c: E2 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 F3 12 00 90 00 79 [23:04:46]RAPDU: 90 00 [23:04:46]wFMCommunicate OK [23:04:46]wFMCommunicate request_size=255 [23:04:46]MH_SAM_APDU [23:04:46]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 0F F4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 [23:04:46]Write to MH i2c: E2 02 01 F4 12 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 0F F4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 00 00 B4 [23:04:46]Write i2c OK [23:04:46]MH_I2C_Read... [23:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:46]Read from MH i2c: E2 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 F4 12 00 90 00 7A [23:04:46]RAPDU: 90 00 [23:04:46]wFMCommunicate OK [23:04:46]wFMCommunicate request_size=37 [23:04:46]MH_SAM_APDU [23:04:46]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 52 C4 01 00 35 04 06 00 D4 CB BA 55 14 90 [23:04:46]Write to MH i2c: E2 28 00 F5 12 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 52 C4 01 00 35 04 06 00 D4 CB BA 55 14 90 00 00 3C [23:04:46]Write i2c OK [23:04:46]MH_I2C_Read... [23:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:46]Read from MH i2c: E2 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 F5 12 00 90 00 7B [23:04:46]RAPDU: 90 00 [23:04:46]wFMCommunicate OK [23:04:46]wFMCommunicate request_size=4 [23:04:46]MH_SAM_APDU [23:04:46]CAPDU: 80 0D 03 02 [23:04:46]Write to MH i2c: E2 08 00 F6 12 80 0D 03 02 00 00 00 00 83 [23:04:46]Write i2c OK [23:04:46]MH_I2C_Read... [23:04:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:46]Read from MH i2c: E2 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 0B 00 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 0B 00 F6 12 00 99 59 1C 69 AA B4 02 DF 90 00 3A [23:04:46]RAPDU: 99 59 1C 69 AA B4 02 DF 90 00 [23:04:46]wFMCommunicate OK [23:04:46]SAM_PROTO_SignData done [23:04:46]FM_MakeSignedData done [23:04:46]CreateOFDProtocolMessage [23:04:46]wFMCommunicate request_size=4 [23:04:46]MH_SAM_APDU [23:04:46]CAPDU: 80 11 00 00 [23:04:46]Write to MH i2c: E2 08 00 F7 12 80 11 00 00 00 00 00 00 83 [23:04:46]Write i2c OK [23:04:46]MH_I2C_Read... [23:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:46]Read from MH i2c: E2 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 17 00 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 17 00 F7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D1 [23:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:04:46]wFMCommunicate OK [23:04:46]CreateOFDProtocolMessage done [23:04:46]OFDSenderStorePacket 115794 [23:04:46]StoreOFDPacket docnum=115794 [23:04:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2A 01 00 00 D4 A1 22 01 FC 3E 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 0F F4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 52 C4 01 00 35 04 06 00 D4 CB BA 55 14 90 99 59 1C 69 AA B4 02 DF [23:04:46]CheckFolder [23:04:46]dirname=/storage/ofd_packets [23:04:46]CheckFolder done [23:04:46]ProducePacketName [23:04:46]name=ofd_packets/00115794 [23:04:46]NVStorageSaveData ofd_packets/00115794 [23:04:46]File name is /storage/ofd_packets/00115794 [23:04:46]Write 328 bytes [23:04:46]NVStorageSaveData done [23:04:46]OFDSenderStorePacket done [23:04:46]KKMCreateOFDPacket done [23:04:46]NVStorageSaveData kkm_last_timestamp [23:04:46]File name is /storage/kkm_last_timestamp [23:04:46]Write 4 bytes [23:04:46]NVStorageSaveData done [23:04:46]ExternCall_PrintAddStr [23:04:46]wPrintStart [23:04:46]Write to MH i2c: 01 00 00 F8 12 0A [23:04:46]Write i2c OK [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: 01 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: 01 07 00 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: 01 07 00 F8 12 00 00 00 00 00 FF 0F 1F [23:04:46]RasterBufferAndPrint [23:04:46]line Счет N : (3)344107 [23:04:46]line ИНН: 02508201610067 [23:04:46]line Контрольно-Кассовый Чек [23:04:46]line ПРОДАЖА [23:04:46]line Товар: 4860019001353 [23:04:46]line Вода Боржоми 0,5л ПЭТ [23:04:46]line 1.000 * 87.00 [23:04:46]line = 87.00 [23:04:46]line НДС 12% НСП 1% [23:04:46]line > о реализуемом товаре [23:04:46]line ИТОГО: 87.00 [23:04:46]line НСП 1% : 0.77 [23:04:46]line НДС 12% : 9.24 [23:04:46]line Наличными: 87.00 [23:04:46]line Безнал.: 0.00 [23:04:46]line Место: АЗС № 90 "Партнер Нефть" [23:04:46]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [23:04:46]line СНО: Общий режим [23:04:46]line Чек 277 23.09.2024 23:04 [23:04:46]line Смена: 472 ФФД: 1.0 [23:04:46]line ЗНМ: 0300000120 [23:04:46]line РНМ: 0000000000091831 [23:04:46]line Версия ККМ: 001 [23:04:46]line ФМ: 0000000000871830 [23:04:46]line ФД: 115794 [23:04:46]line ФПД: 233971469587600 [23:04:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T230447&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115794&fm=233971469587600&tin=02508201610067®Number=0000000000091831&sum=8700 [23:04:47]line 0 [23:04:47]OFD Sender: Processing packet 115794 [packets to send 482, broken 481] [23:04:47]ProducePacketName [23:04:47]name=ofd_packets/00115794 [23:04:47]OFD Sender: To server: pG, [23:04:47]CommunicateWithHost lk.salyk.kg:30040 [23:04:47]ConnectInit lk.salyk.kg [23:04:47]written 0, free lines is 4095 [23:04:47]Connected sock=10 [23:04:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2A 01 00 00 D4 A1 22 01 FC 3E 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 0F F4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 52 C4 01 00 35 04 06 00 D4 CB BA 55 14 90 99 59 1C 69 AA B4 02 DF [23:04:47]Write to MH i2c: 01 00 00 1F 13 32 [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: 01 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: 01 07 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: 01 07 00 1F 13 00 00 00 00 00 81 0C C6 [23:04:47]RasterBufferAndPrint [23:04:47]line [23:04:47]line [23:04:47]line [23:04:47]line [23:04:47]line [23:04:47]written 0, free lines is 3205 [23:04:47]MH_Cut [23:04:47]Write to MH i2c: D1 01 00 26 13 01 0B [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: D1 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: D1 01 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: D1 01 00 26 13 00 0A [23:04:47]Write to MH i2c: 01 00 00 27 13 3A [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 3A 1D 47 00 16 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 38 33 30 10 04 04 00 52 C4 01 00 F4 03 04 00 50 99 F1 66 B6 04 01 00 00 9D 73 62 91 2F 06 68 2E [23:04:47]CommunicateWithHost err = 0 [23:04:47]CheckOFDResponse [23:04:47]1017 (14) - 77093643461234 [23:04:47]1041 (16) - 0000000000871830 [23:04:47]1040 (4) - 115794 [23:04:47]1012 (4) - 23.09.2024 16:37 [23:04:47]1206 (1) - 0 [23:04:47]OFD Sender: Remove packet 115794 [23:04:47]ProducePacketName [23:04:47]name=ofd_packets/00115794 [23:04:47]NVStorageDeleteData [23:04:48]OFD Sender: No OFD packet to send [23:04:48]*** Cut start [23:04:48]*** Partial cut [23:04:48]*** CUTSNS_PIN = 1 [23:04:49]*** CUTSNS_PIN = 0 [23:04:49]*** Brake cut motor [23:04:49]Read from MH i2c: 01 [23:04:49]MH_I2C_Read... [23:04:49]*** Stop cut motor [23:04:49]*** Cut end [23:04:49]Read from MH i2c: 01 07 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: 01 07 00 27 13 00 00 00 00 00 FF 0F 4F [23:04:49]process_action close_receipt done [23:04:49]requested_data is exist [23:04:49]produce_requested_data [23:04:49]requested_item fm.sn is exist - process it [23:04:49]wFMCommunicate request_size=4 [23:04:49]MH_SAM_APDU [23:04:49]CAPDU: 80 11 00 00 [23:04:49]Write to MH i2c: E2 08 00 28 13 80 11 00 00 00 00 00 00 B5 [23:04:49]Write i2c OK [23:04:49]MH_I2C_Read... [23:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:49]Read from MH i2c: E2 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 17 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 17 00 28 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 03 [23:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:04:49]wFMCommunicate OK [23:04:49]requested_item fd.num is exist - process it [23:04:49]SAM_PROTO_GetFieldsCounters [23:04:49]wFMCommunicate request_size=4 [23:04:49]MH_SAM_APDU [23:04:49]CAPDU: 80 13 00 00 [23:04:49]Write to MH i2c: E2 08 00 29 13 80 13 00 00 00 00 00 00 B8 [23:04:49]Write i2c OK [23:04:49]MH_I2C_Read... [23:04:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:49]Read from MH i2c: E2 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 62 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 62 00 29 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 52 C4 01 00 0E 04 04 00 D8 01 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 03 [23:04:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 52 C4 01 00 0E 04 04 00 D8 01 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 [23:04:49]wFMCommunicate OK [23:04:49]SAM_PROTO_GetFieldsCounters done [23:04:49]requested_item shift.num is exist - process it [23:04:49]requested_item shift.opened is exist - process it [23:04:49]req_shift_opened [23:04:49]FM_GetShiftState [23:04:49]SAM_PROTO_GetShiftState [23:04:49]wFMCommunicate request_size=4 [23:04:49]MH_SAM_APDU [23:04:49]CAPDU: 80 13 01 00 [23:04:49]Write to MH i2c: E2 08 00 2A 13 80 13 01 00 00 00 00 00 BA [23:04:49]Write i2c OK [23:04:49]MH_I2C_Read... [23:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:49]Read from MH i2c: E2 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 0E 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 0E 00 2A 13 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 FB [23:04:49]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [23:04:49]wFMCommunicate OK [23:04:49]SAM_PROTO_GetShiftState done [23:04:49]FM_GetShiftState done [23:04:49]req_shift_opened done [23:04:49]requested_item shift.open_date is exist - process it [23:04:49]req_shift_open_date [23:04:49]req_shift_open_date done [23:04:49]produce_requested_data done [23:04:49]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115794,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [23:04:49]process_action_free close_receipt [23:04:49]json_value_free [23:04:49]json_value_free done [23:04:49]process_json_proto returns [23:04:49]Send response to host [23:04:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115794,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [23:04:49]free response buf [23:04:49]execute_script done [23:04:49]execute_script returns [23:04:49]free content buf [23:04:49]Sock 8.Close socket [23:04:49]Sock 8.Thread stoped [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]accept exits with 9 [23:08:08]New connection [23:08:08]New thread 3066867044 created [23:08:08]Thread 3067010404 joined [23:08:08]Waiting for new connection... [23:08:08] Sock 9.Parse request [23:08:08]Sock 9.Check first char [23:08:08]Sock 9.First char is OK [23:08:08]request: POST /json_proto HTTP/1.0 [23:08:08]Method: POST [23:08:08]URL: /json_proto [23:08:08]Method is POST - this is cgi request [23:08:08]url: /json_proto [23:08:08]query_string will be loaded in cgi processing [23:08:08]execute_cgi json_proto POST (null) [23:08:08]execute_cgi path=json_proto method=POST [23:08:08]POST find Content-Length [23:08:08]Host: 172.17.41.136:8080 [23:08:08]Content-Length: 833 [23:08:08]Content-Type: application/json [23:08:08] [23:08:08]POST finish read [23:08:08]Found Content-Length = 833 [23:08:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344108", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:08]execute_script... [23:08:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344108", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:08]POST & json_proto [23:08:08]process_json_proto [23:08:08]json parsed OK: [23:08:08]protocol is kg_v1.0 [23:08:08]action value=close_receipt [23:08:08]process_action close_receipt [23:08:08]cmd_close_receipt [23:08:08]MH_GetDate [23:08:08]Write to MH i2c: F0 00 00 2B 13 2D [23:08:08]Write i2c OK [23:08:08]MH_I2C_Read... [23:08:08]Read from MH i2c: F0 [23:08:08]MH_I2C_Read... [23:08:08]Read from MH i2c: F0 09 00 [23:08:08]MH_I2C_Read... [23:08:08]Read from MH i2c: F0 09 00 2B 13 00 DA F4 F1 66 1B D0 5A 64 04 [23:08:08]GetLastDocTimeStamp 1727132687 [23:08:08]current date 1727132890 [23:08:08]FM_GetShiftState [23:08:08]SAM_PROTO_GetShiftState [23:08:08]wFMCommunicate request_size=4 [23:08:08]MH_SAM_APDU [23:08:08]CAPDU: 80 13 01 00 [23:08:08]Write to MH i2c: E2 08 00 2C 13 80 13 01 00 00 00 00 00 BC [23:08:08]Write i2c OK [23:08:08]MH_I2C_Read... [23:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:08]Read from MH i2c: E2 [23:08:08]MH_I2C_Read... [23:08:08]Read from MH i2c: E2 0E 00 [23:08:08]MH_I2C_Read... [23:08:08]Read from MH i2c: E2 0E 00 2C 13 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 FD [23:08:08]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [23:08:08]wFMCommunicate OK [23:08:08]SAM_PROTO_GetShiftState done [23:08:08]FM_GetShiftState done [23:08:08]opened in 1727052070 [23:08:08]opened+sec_in_day 1727138470 [23:08:08]quantity*price = 24000 [23:08:08]sum+1 = 24001 [23:08:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 0.00 Безнал.: 240.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 278 23.09.2024 23:08 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115795 ФПД: 187328177955924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T230810&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115795&fm=187328177955924&tin=02508201610067®Number=0000000000091831&sum=24000 0 [23:08:09]StoreToDocumentArchive [23:08:09]shift 472 fd 115795 [23:08:09]save to /storage/0472/doc_00115795 [23:08:09]save last doc name /storage/0472/doc_00115795 to /storage/kkm_last_doc_name [23:08:09]save OK [23:08:09]Clear old archive folders... [23:08:09]ProcessDocumentItem done err = 0, tmpTLVsize=284 [23:08:09]tlvbuf is 0115CD80 [23:08:09]SAM_PROTO_ClearQueue [23:08:09]wFMCommunicate request_size=4 [23:08:09]MH_SAM_APDU [23:08:09]CAPDU: 80 09 00 00 [23:08:09]Write to MH i2c: E2 08 00 39 13 80 09 00 00 00 00 00 00 BE [23:08:09]Write i2c OK [23:08:09]MH_I2C_Read... [23:08:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:09]Read from MH i2c: E2 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 03 00 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 03 00 39 13 00 90 00 C0 [23:08:09]RAPDU: 90 00 [23:08:09]wFMCommunicate OK [23:08:09]SAM_PROTO_ClearQueue done [23:08:09]KKMCreateOFDPacket [23:08:09]OFDProtocolAddRootSTLVToBuf [23:08:09]FM_MakeSignedData [23:08:09]FM_MakeSignedData [23:08:09]SAM_PROTO_SignData [23:08:09]wFMCommunicate request_size=4 [23:08:09]MH_SAM_APDU [23:08:09]CAPDU: 80 0D 01 02 [23:08:09]Write to MH i2c: E2 08 00 3A 13 80 0D 01 02 00 00 00 00 C6 [23:08:09]Write i2c OK [23:08:09]MH_I2C_Read... [23:08:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:09]Read from MH i2c: E2 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 03 00 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 03 00 3A 13 00 90 00 C1 [23:08:09]RAPDU: 90 00 [23:08:09]wFMCommunicate OK [23:08:09]wFMCommunicate request_size=255 [23:08:09]MH_SAM_APDU [23:08:09]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 DA F4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [23:08:09]Write to MH i2c: E2 02 01 3B 13 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 DA F4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 32 [23:08:09]Write i2c OK [23:08:09]MH_I2C_Read... [23:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:09]Read from MH i2c: E2 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 03 00 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 03 00 3B 13 00 90 00 C2 [23:08:09]RAPDU: 90 00 [23:08:09]wFMCommunicate OK [23:08:09]wFMCommunicate request_size=43 [23:08:09]MH_SAM_APDU [23:08:09]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 53 C4 01 00 35 04 06 00 AA 5F BD 80 E4 54 [23:08:09]Write to MH i2c: E2 2E 00 3C 13 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 53 C4 01 00 35 04 06 00 AA 5F BD 80 E4 54 00 00 42 [23:08:09]Write i2c OK [23:08:09]MH_I2C_Read... [23:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:09]Read from MH i2c: E2 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 03 00 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 03 00 3C 13 00 90 00 C3 [23:08:09]RAPDU: 90 00 [23:08:09]wFMCommunicate OK [23:08:09]wFMCommunicate request_size=4 [23:08:09]MH_SAM_APDU [23:08:09]CAPDU: 80 0D 03 02 [23:08:09]Write to MH i2c: E2 08 00 3D 13 80 0D 03 02 00 00 00 00 CB [23:08:09]Write i2c OK [23:08:09]MH_I2C_Read... [23:08:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:09]Read from MH i2c: E2 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 0B 00 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 0B 00 3D 13 00 79 52 31 42 21 53 5D 9B 90 00 76 [23:08:09]RAPDU: 79 52 31 42 21 53 5D 9B 90 00 [23:08:09]wFMCommunicate OK [23:08:09]SAM_PROTO_SignData done [23:08:09]FM_MakeSignedData done [23:08:09]CreateOFDProtocolMessage [23:08:09]wFMCommunicate request_size=4 [23:08:09]MH_SAM_APDU [23:08:09]CAPDU: 80 11 00 00 [23:08:09]Write to MH i2c: E2 08 00 3E 13 80 11 00 00 00 00 00 00 CB [23:08:09]Write i2c OK [23:08:09]MH_I2C_Read... [23:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:10]Read from MH i2c: E2 [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: E2 17 00 [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: E2 17 00 3E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 19 [23:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:08:10]wFMCommunicate OK [23:08:10]CreateOFDProtocolMessage done [23:08:10]OFDSenderStorePacket 115795 [23:08:10]StoreOFDPacket docnum=115795 [23:08:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 30 01 00 00 18 D8 28 01 24 2D 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 DA F4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 53 C4 01 00 35 04 06 00 AA 5F BD 80 E4 54 79 52 31 42 21 53 5D 9B [23:08:10]CheckFolder [23:08:10]dirname=/storage/ofd_packets [23:08:10]CheckFolder done [23:08:10]ProducePacketName [23:08:10]name=ofd_packets/00115795 [23:08:10]NVStorageSaveData ofd_packets/00115795 [23:08:10]File name is /storage/ofd_packets/00115795 [23:08:10]Write 334 bytes [23:08:10]NVStorageSaveData done [23:08:10]OFDSenderStorePacket done [23:08:10]KKMCreateOFDPacket done [23:08:10]NVStorageSaveData kkm_last_timestamp [23:08:10]File name is /storage/kkm_last_timestamp [23:08:10]Write 4 bytes [23:08:10]NVStorageSaveData done [23:08:10]ExternCall_PrintAddStr [23:08:10]wPrintStart [23:08:10]Write to MH i2c: 01 00 00 3F 13 52 [23:08:10]Write i2c OK [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: 01 [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: 01 07 00 [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: 01 07 00 3F 13 00 00 00 00 00 FF 0F 67 [23:08:10]RasterBufferAndPrint [23:08:10]line Счет N : (3)344108 [23:08:10]line ИНН: 02508201610067 [23:08:10]line Контрольно-Кассовый Чек [23:08:10]line ПРОДАЖА [23:08:10]line Товар: 2000034250011 [23:08:10]line Горячий шоколад (GABB trade) [23:08:10]line 2.000 * 120.00 [23:08:10]line = 240.00 [23:08:10]line НДС 12% НСП 1% [23:08:10]line > о реализуемом товаре [23:08:10]line ИТОГО: 240.00 [23:08:10]line НСП 1% : 2.12 [23:08:10]line НДС 12% : 25.49 [23:08:10]line Наличными: 0.00 [23:08:10]line Безнал.: 240.00 [23:08:10]line Место: АЗС № 90 "Партнер Нефть" [23:08:10]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [23:08:10]line СНО: Общий режим [23:08:10]line Чек 278 23.09.2024 23:08 [23:08:10]line Смена: 472 ФФД: 1.0 [23:08:10]line ЗНМ: 0300000120 [23:08:10]line РНМ: 0000000000091831 [23:08:10]line Версия ККМ: 001 [23:08:10]line Платежная система: Бакай Банк [23:08:10]line ФМ: 0000000000871830 [23:08:10]line ФД: 115795 [23:08:10]line ФПД: 187328177955924 [23:08:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T230810&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115795&fm=187328177955924&tin=02508201610067®Number=0000000000091831&sum=24000 [23:08:10]line 0 [23:08:10]written 0, free lines is 4095 [23:08:10]OFD Sender: Processing packet 115795 [packets to send 482, broken 481] [23:08:10]ProducePacketName [23:08:10]name=ofd_packets/00115795 [23:08:10]OFD Sender: To server: pG, [23:08:10]CommunicateWithHost lk.salyk.kg:30040 [23:08:10]ConnectInit lk.salyk.kg [23:08:10]Connected sock=10 [23:08: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 38 33 30 30 01 00 00 18 D8 28 01 24 2D 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 DA F4 F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 53 C4 01 00 35 04 06 00 AA 5F BD 80 E4 54 79 52 31 42 21 53 5D 9B [23:08:10]Write to MH i2c: 01 00 00 69 13 7C [23:08:10]Write i2c OK [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: 01 [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: 01 07 00 [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: 01 07 00 69 13 00 00 00 00 00 33 0C C2 [23:08:10]RasterBufferAndPrint [23:08:10]line [23:08:10]line [23:08:10]line [23:08:10]line [23:08:10]line [23:08:10]written 0, free lines is 3129 [23:08:10]MH_Cut [23:08:10]Write to MH i2c: D1 01 00 70 13 01 55 [23:08:10]Write i2c OK [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: D1 [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: D1 01 00 [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: D1 01 00 70 13 00 54 [23:08:10]Write to MH i2c: 01 00 00 71 13 84 [23:08:10]Write i2c OK [23:08:10]MH_I2C_Read... [23:08:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 02 8C 47 00 22 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 53 C4 01 00 F4 03 04 00 1B 9A F1 66 B6 04 01 00 00 AB 07 0E 68 45 3E 07 38 [23:08:10]CommunicateWithHost err = 0 [23:08:10]CheckOFDResponse [23:08:10]1017 (14) - 77093643461234 [23:08:10]1041 (16) - 0000000000871830 [23:08:10]1040 (4) - 115795 [23:08:10]1012 (4) - 23.09.2024 16:40 [23:08:10]1206 (1) - 0 [23:08:10]OFD Sender: Remove packet 115795 [23:08:10]ProducePacketName [23:08:10]name=ofd_packets/00115795 [23:08:10]NVStorageDeleteData [23:08:11]OFD Sender: No OFD packet to send [23:08:12]*** Cut start [23:08:12]*** Partial cut [23:08:12]*** CUTSNS_PIN = 1 [23:08:12]*** CUTSNS_PIN = 0 [23:08:12]*** Brake cut motor [23:08:12]Read from MH i2c: 01 [23:08:12]MH_I2C_Read... [23:08:12]*** Stop cut motor [23:08:12]Read from MH i2c: 01 07 00 [23:08:12]MH_I2C_Read... [23:08:12]*** Cut end [23:08:12]Read from MH i2c: 01 07 00 71 13 00 00 00 00 00 FF 0F 99 [23:08:12]process_action close_receipt done [23:08:12]requested_data is exist [23:08:12]produce_requested_data [23:08:12]requested_item fm.sn is exist - process it [23:08:12]wFMCommunicate request_size=4 [23:08:12]MH_SAM_APDU [23:08:12]CAPDU: 80 11 00 00 [23:08:12]Write to MH i2c: E2 08 00 72 13 80 11 00 00 00 00 00 00 FF [23:08:12]Write i2c OK [23:08:12]MH_I2C_Read... [23:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:12]Read from MH i2c: E2 [23:08:12]MH_I2C_Read... [23:08:12]Read from MH i2c: E2 17 00 [23:08:12]MH_I2C_Read... [23:08:12]Read from MH i2c: E2 17 00 72 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4D [23:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:08:12]wFMCommunicate OK [23:08:12]requested_item fd.num is exist - process it [23:08:12]SAM_PROTO_GetFieldsCounters [23:08:12]wFMCommunicate request_size=4 [23:08:12]MH_SAM_APDU [23:08:12]CAPDU: 80 13 00 00 [23:08:12]Write to MH i2c: E2 08 00 73 13 80 13 00 00 00 00 00 00 02 [23:08:12]Write i2c OK [23:08:12]MH_I2C_Read... [23:08:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:08:13]Read from MH i2c: E2 [23:08:13]MH_I2C_Read... [23:08:13]Read from MH i2c: E2 62 00 [23:08:13]MH_I2C_Read... [23:08:13]Read from MH i2c: E2 62 00 73 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 53 C4 01 00 0E 04 04 00 D8 01 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 51 [23:08:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 53 C4 01 00 0E 04 04 00 D8 01 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 [23:08:13]wFMCommunicate OK [23:08:13]SAM_PROTO_GetFieldsCounters done [23:08:13]requested_item shift.num is exist - process it [23:08:13]requested_item shift.opened is exist - process it [23:08:13]req_shift_opened [23:08:13]FM_GetShiftState [23:08:13]SAM_PROTO_GetShiftState [23:08:13]wFMCommunicate request_size=4 [23:08:13]MH_SAM_APDU [23:08:13]CAPDU: 80 13 01 00 [23:08:13]Write to MH i2c: E2 08 00 74 13 80 13 01 00 00 00 00 00 04 [23:08:13]Write i2c OK [23:08:13]MH_I2C_Read... [23:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:13]Read from MH i2c: E2 [23:08:13]MH_I2C_Read... [23:08:13]Read from MH i2c: E2 0E 00 [23:08:13]MH_I2C_Read... [23:08:13]Read from MH i2c: E2 0E 00 74 13 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 45 [23:08:13]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [23:08:13]wFMCommunicate OK [23:08:13]SAM_PROTO_GetShiftState done [23:08:13]FM_GetShiftState done [23:08:13]req_shift_opened done [23:08:13]requested_item shift.open_date is exist - process it [23:08:13]req_shift_open_date [23:08:13]req_shift_open_date done [23:08:13]produce_requested_data done [23:08:13]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115795,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [23:08:13]process_action_free close_receipt [23:08:13]json_value_free [23:08:13]json_value_free done [23:08:13]process_json_proto returns [23:08:13]Send response to host [23:08:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115795,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [23:08:13]free response buf [23:08:13]execute_script done [23:08:13]execute_script returns [23:08:13]free content buf [23:08:13]Sock 9.Close socket [23:08:13]Sock 9.Thread stoped [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:05]ConnectInit Can't connect to host [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:23]ConnectInit Can't connect to host [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:41]ConnectInit Can't connect to host [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:07]OFD Sender: No OFD packet to send [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:00]ConnectInit Can't connect to host [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:18]ConnectInit Can't connect to host [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:53]accept exits with 9 [23:37:53]New connection [23:37:53]New thread 3067010404 created [23:37:53]Thread 3066867044 joined [23:37:53]Waiting for new connection... [23:37:53] Sock 9.Parse request [23:37:53]Sock 9.Check first char [23:37:53]Sock 9.First char is OK [23:37:53]request: POST /json_proto HTTP/1.0 [23:37:53]Method: POST [23:37:53]URL: /json_proto [23:37:53]Method is POST - this is cgi request [23:37:53]url: /json_proto [23:37:53]query_string will be loaded in cgi processing [23:37:53]execute_cgi json_proto POST (null) [23:37:53]execute_cgi path=json_proto method=POST [23:37:53]POST find Content-Length [23:37:53]Host: 172.17.41.136:8080 [23:37:53]Content-Length: 697 [23:37:53]Content-Type: application/json [23:37:53] [23:37:53]POST finish read [23:37:53]Found Content-Length = 697 [23:37:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344111", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 3.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:53]execute_script... [23:37:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344111", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 3.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:53]POST & json_proto [23:37:53]process_json_proto [23:37:53]json parsed OK: [23:37:53]protocol is kg_v1.0 [23:37:53]action value=close_receipt [23:37:53]process_action close_receipt [23:37:53]cmd_close_receipt [23:37:53]MH_GetDate [23:37:53]Write to MH i2c: F0 00 00 0F 14 12 [23:37:53]Write i2c OK [23:37:53]MH_I2C_Read... [23:37:53]Read from MH i2c: F0 [23:37:53]MH_I2C_Read... [23:37:53]Read from MH i2c: F0 09 00 [23:37:53]MH_I2C_Read... [23:37:53]Read from MH i2c: F0 09 00 0F 14 00 D3 FB F1 66 1B D0 5A 64 E9 [23:37:53]GetLastDocTimeStamp 1727133774 [23:37:53]current date 1727134675 [23:37:53]FM_GetShiftState [23:37:53]SAM_PROTO_GetShiftState [23:37:53]wFMCommunicate request_size=4 [23:37:53]MH_SAM_APDU [23:37:53]CAPDU: 80 13 01 00 [23:37:53]Write to MH i2c: E2 08 00 10 14 80 13 01 00 00 00 00 00 A1 [23:37:53]Write i2c OK [23:37:53]MH_I2C_Read... [23:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:53]Read from MH i2c: E2 [23:37:53]MH_I2C_Read... [23:37:53]Read from MH i2c: E2 0E 00 [23:37:53]MH_I2C_Read... [23:37:53]Read from MH i2c: E2 0E 00 10 14 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 E2 [23:37:53]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [23:37:53]wFMCommunicate OK [23:37:53]SAM_PROTO_GetShiftState done [23:37:53]FM_GetShiftState done [23:37:53]opened in 1727052070 [23:37:53]opened+sec_in_day 1727138470 [23:37:53]quantity*price = 28500 [23:37:53]sum+1 = 28501 [23:37:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 281 23.09.2024 23:37 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115798 ФПД: 150915664546787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T233755&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115798&fm=150915664546787&tin=02508201610067®Number=0000000000091831&sum=28500 0 [23:37:54]StoreToDocumentArchive [23:37:54]shift 472 fd 115798 [23:37:54]save to /storage/0472/doc_00115798 [23:37:54]save last doc name /storage/0472/doc_00115798 to /storage/kkm_last_doc_name [23:37:54]save OK [23:37:54]Clear old archive folders... [23:37:54]ProcessDocumentItem done err = 0, tmpTLVsize=302 [23:37:54]tlvbuf is 0119CCE0 [23:37:54]SAM_PROTO_ClearQueue [23:37:54]wFMCommunicate request_size=4 [23:37:54]MH_SAM_APDU [23:37:54]CAPDU: 80 09 00 00 [23:37:54]Write to MH i2c: E2 08 00 1D 14 80 09 00 00 00 00 00 00 A3 [23:37:54]Write i2c OK [23:37:54]MH_I2C_Read... [23:37:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:54]Read from MH i2c: E2 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 03 00 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 03 00 1D 14 00 90 00 A5 [23:37:54]RAPDU: 90 00 [23:37:54]wFMCommunicate OK [23:37:54]SAM_PROTO_ClearQueue done [23:37:54]KKMCreateOFDPacket [23:37:54]OFDProtocolAddRootSTLVToBuf [23:37:54]FM_MakeSignedData [23:37:54]FM_MakeSignedData [23:37:54]SAM_PROTO_SignData [23:37:54]wFMCommunicate request_size=4 [23:37:54]MH_SAM_APDU [23:37:54]CAPDU: 80 0D 01 02 [23:37:54]Write to MH i2c: E2 08 00 1E 14 80 0D 01 02 00 00 00 00 AB [23:37:54]Write i2c OK [23:37:54]MH_I2C_Read... [23:37:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:54]Read from MH i2c: E2 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 03 00 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 03 00 1E 14 00 90 00 A6 [23:37:54]RAPDU: 90 00 [23:37:54]wFMCommunicate OK [23:37:54]wFMCommunicate request_size=255 [23:37:54]MH_SAM_APDU [23:37:54]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 D3 FB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 [23:37:54]Write to MH i2c: E2 02 01 1F 14 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 D3 FB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 00 00 91 [23:37:54]Write i2c OK [23:37:54]MH_I2C_Read... [23:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:54]Read from MH i2c: E2 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 03 00 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 03 00 1F 14 00 90 00 A7 [23:37:54]RAPDU: 90 00 [23:37:54]wFMCommunicate OK [23:37:54]wFMCommunicate request_size=61 [23:37:54]MH_SAM_APDU [23:37:54]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 56 C4 01 00 35 04 06 00 89 41 CA 93 8B E3 [23:37:54]Write to MH i2c: E2 40 00 20 14 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 56 C4 01 00 35 04 06 00 89 41 CA 93 8B E3 00 00 8B [23:37:54]Write i2c OK [23:37:54]MH_I2C_Read... [23:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:54]Read from MH i2c: E2 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 03 00 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 03 00 20 14 00 90 00 A8 [23:37:54]RAPDU: 90 00 [23:37:54]wFMCommunicate OK [23:37:54]wFMCommunicate request_size=4 [23:37:54]MH_SAM_APDU [23:37:54]CAPDU: 80 0D 03 02 [23:37:54]Write to MH i2c: E2 08 00 21 14 80 0D 03 02 00 00 00 00 B0 [23:37:54]Write i2c OK [23:37:54]MH_I2C_Read... [23:37:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:54]Read from MH i2c: E2 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 0B 00 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 0B 00 21 14 00 91 F5 EA 98 7F 24 9B 76 90 00 6D [23:37:54]RAPDU: 91 F5 EA 98 7F 24 9B 76 90 00 [23:37:54]wFMCommunicate OK [23:37:54]SAM_PROTO_SignData done [23:37:54]FM_MakeSignedData done [23:37:54]CreateOFDProtocolMessage [23:37:54]wFMCommunicate request_size=4 [23:37:54]MH_SAM_APDU [23:37:54]CAPDU: 80 11 00 00 [23:37:54]Write to MH i2c: E2 08 00 22 14 80 11 00 00 00 00 00 00 B0 [23:37:54]Write i2c OK [23:37:54]MH_I2C_Read... [23:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:54]Read from MH i2c: E2 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 17 00 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 17 00 22 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FE [23:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:37:54]wFMCommunicate OK [23:37:54]CreateOFDProtocolMessage done [23:37:54]OFDSenderStorePacket 115798 [23:37:54]StoreOFDPacket docnum=115798 [23:37:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 42 01 00 00 B1 E7 3A 01 D8 05 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 D3 FB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 56 C4 01 00 35 04 06 00 89 41 CA 93 8B E3 91 F5 EA 98 7F 24 9B 76 [23:37:54]CheckFolder [23:37:54]dirname=/storage/ofd_packets [23:37:54]CheckFolder done [23:37:54]ProducePacketName [23:37:54]name=ofd_packets/00115798 [23:37:54]NVStorageSaveData ofd_packets/00115798 [23:37:54]File name is /storage/ofd_packets/00115798 [23:37:54]Write 352 bytes [23:37:54]NVStorageSaveData done [23:37:54]OFDSenderStorePacket done [23:37:54]KKMCreateOFDPacket done [23:37:54]NVStorageSaveData kkm_last_timestamp [23:37:54]File name is /storage/kkm_last_timestamp [23:37:54]Write 4 bytes [23:37:54]NVStorageSaveData done [23:37:54]ExternCall_PrintAddStr [23:37:54]wPrintStart [23:37:54]Write to MH i2c: 01 00 00 23 14 37 [23:37:54]Write i2c OK [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: 01 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: 01 07 00 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: 01 07 00 23 14 00 00 00 00 00 FF 0F 4C [23:37:54]RasterBufferAndPrint [23:37:54]line Счет N : (3)344111 [23:37:54]line ИНН: 02508201610067 [23:37:54]line Контрольно-Кассовый Чек [23:37:54]line ПРОДАЖА [23:37:54]line Товар: 4631162227163 [23:37:54]line Напиток газированный Mojito LEMON LIME ж [23:37:54]line 3.000 * 95.00 [23:37:54]line = 285.00 [23:37:54]line НДС 12% НСП 1% [23:37:54]line > о реализуемом товаре [23:37:54]line ИТОГО: 285.00 [23:37:54]line НСП 1% : 2.52 [23:37:54]line НДС 12% : 30.26 [23:37:54]line Наличными: 285.00 [23:37:54]line Безнал.: 0.00 [23:37:54]line Место: АЗС № 90 "Партнер Нефть" [23:37:54]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [23:37:54]line СНО: Общий режим [23:37:54]line Чек 281 23.09.2024 23:37 [23:37:54]line Смена: 472 ФФД: 1.0 [23:37:54]line ЗНМ: 0300000120 [23:37:54]line РНМ: 0000000000091831 [23:37:54]line Версия ККМ: 001 [23:37:54]line ФМ: 0000000000871830 [23:37:54]line ФД: 115798 [23:37:54]line ФПД: 150915664546787 [23:37:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T233755&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115798&fm=150915664546787&tin=02508201610067®Number=0000000000091831&sum=28500 [23:37:54]line 0 [23:37:55]written 0, free lines is 4095 [23:37:55]OFD Sender: Processing packet 115798 [packets to send 482, broken 481] [23:37:55]ProducePacketName [23:37:55]name=ofd_packets/00115798 [23:37:55]OFD Sender: To server: pG, [23:37:55]CommunicateWithHost lk.salyk.kg:30040 [23:37:55]ConnectInit lk.salyk.kg [23:37:55]Connected sock=11 [23:37:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 42 01 00 00 B1 E7 3A 01 D8 05 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 D3 FB F1 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 56 C4 01 00 35 04 06 00 89 41 CA 93 8B E3 91 F5 EA 98 7F 24 9B 76 [23:37:55]Write to MH i2c: 01 00 00 4B 14 5F [23:37:55]Write i2c OK [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: 01 [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: 01 07 00 [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: 01 07 00 4B 14 00 00 00 00 00 59 0C CB [23:37:55]RasterBufferAndPrint [23:37:55]line [23:37:55]line [23:37:55]line [23:37:55]line [23:37:55]line [23:37:55]written 0, free lines is 3164 [23:37:55]MH_Cut [23:37:55]Write to MH i2c: D1 01 00 52 14 01 38 [23:37:55]Write i2c OK [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: D1 [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: D1 01 00 [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: D1 01 00 52 14 00 37 [23:37:55]Write to MH i2c: 01 00 00 53 14 67 [23:37:55]Write i2c OK [23:37:55]MH_I2C_Read... [23:37:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 5C FC 47 00 2D 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 38 33 30 10 04 04 00 56 C4 01 00 F4 03 04 00 14 A1 F1 66 B6 04 01 00 00 65 E6 9E 61 8E 8C 1B 7E [23:37:55]CommunicateWithHost err = 0 [23:37:55]CheckOFDResponse [23:37:55]1017 (14) - 77093643461234 [23:37:55]1041 (16) - 0000000000871830 [23:37:55]1040 (4) - 115798 [23:37:55]1012 (4) - 23.09.2024 17:10 [23:37:55]1206 (1) - 0 [23:37:55]OFD Sender: Remove packet 115798 [23:37:55]ProducePacketName [23:37:55]name=ofd_packets/00115798 [23:37:55]NVStorageDeleteData [23:37:56]OFD Sender: No OFD packet to send [23:37:57]*** Cut start [23:37:57]*** Partial cut [23:37:57]*** CUTSNS_PIN = 1 [23:37:57]*** CUTSNS_PIN = 0 [23:37:57]*** Brake cut motor [23:37:57]Read from MH i2c: 01 [23:37:57]MH_I2C_Read... [23:37:57]*** Stop cut motor [23:37:57]*** Cut end [23:37:57]Read from MH i2c: 01 07 00 [23:37:57]MH_I2C_Read... [23:37:57]Read from MH i2c: 01 07 00 53 14 00 00 00 00 00 FF 0F 7C [23:37:57]process_action close_receipt done [23:37:57]requested_data is exist [23:37:57]produce_requested_data [23:37:57]requested_item fm.sn is exist - process it [23:37:57]wFMCommunicate request_size=4 [23:37:57]MH_SAM_APDU [23:37:57]CAPDU: 80 11 00 00 [23:37:57]Write to MH i2c: E2 08 00 54 14 80 11 00 00 00 00 00 00 E2 [23:37:57]Write i2c OK [23:37:57]MH_I2C_Read... [23:37:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:57]Read from MH i2c: E2 [23:37:57]MH_I2C_Read... [23:37:57]Read from MH i2c: E2 17 00 [23:37:57]MH_I2C_Read... [23:37:57]Read from MH i2c: E2 17 00 54 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 30 [23:37:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [23:37:57]wFMCommunicate OK [23:37:57]requested_item fd.num is exist - process it [23:37:57]SAM_PROTO_GetFieldsCounters [23:37:57]wFMCommunicate request_size=4 [23:37:57]MH_SAM_APDU [23:37:57]CAPDU: 80 13 00 00 [23:37:57]Write to MH i2c: E2 08 00 55 14 80 13 00 00 00 00 00 00 E5 [23:37:57]Write i2c OK [23:37:57]MH_I2C_Read... [23:37:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:57]Read from MH i2c: E2 [23:37:57]MH_I2C_Read... [23:37:57]Read from MH i2c: E2 62 00 [23:37:57]MH_I2C_Read... [23:37:57]Read from MH i2c: E2 62 00 55 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 56 C4 01 00 0E 04 04 00 D8 01 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 40 [23:37:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 56 C4 01 00 0E 04 04 00 D8 01 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 [23:37:57]wFMCommunicate OK [23:37:57]SAM_PROTO_GetFieldsCounters done [23:37:57]requested_item shift.num is exist - process it [23:37:57]requested_item shift.opened is exist - process it [23:37:57]req_shift_opened [23:37:57]FM_GetShiftState [23:37:57]SAM_PROTO_GetShiftState [23:37:57]wFMCommunicate request_size=4 [23:37:57]MH_SAM_APDU [23:37:57]CAPDU: 80 13 01 00 [23:37:57]Write to MH i2c: E2 08 00 56 14 80 13 01 00 00 00 00 00 E7 [23:37:57]Write i2c OK [23:37:57]MH_I2C_Read... [23:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:57]Read from MH i2c: E2 [23:37:57]MH_I2C_Read... [23:37:57]Read from MH i2c: E2 0E 00 [23:37:57]MH_I2C_Read... [23:37:57]Read from MH i2c: E2 0E 00 56 14 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 28 [23:37:57]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [23:37:57]wFMCommunicate OK [23:37:57]SAM_PROTO_GetShiftState done [23:37:57]FM_GetShiftState done [23:37:57]req_shift_opened done [23:37:57]requested_item shift.open_date is exist - process it [23:37:57]req_shift_open_date [23:37:57]req_shift_open_date done [23:37:57]produce_requested_data done [23:37:57]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115798,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [23:37:57]process_action_free close_receipt [23:37:57]json_value_free [23:37:57]json_value_free done [23:37:57]process_json_proto returns [23:37:57]Send response to host [23:37:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115798,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [23:37:57]free response buf [23:37:57]execute_script done [23:37:57]execute_script returns [23:37:57]free content buf [23:37:57]Sock 9.Close socket [23:37:57]Sock 9.Thread stoped [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:36]ConnectInit Can't connect to host [23:38:41]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:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:38]ConnectInit Can't connect to host [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]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:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:33]OFD Sender: No OFD packet to send [23:52:38]OFD Sender: No OFD packet to send [23:52:43]OFD Sender: No OFD packet to send [23:52:48]OFD Sender: No OFD packet to send [23:52:53]OFD Sender: No OFD packet to send [23:52:58]OFD Sender: No OFD packet to send [23:53:03]OFD Sender: No OFD packet to send [23:53:08]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:18]OFD Sender: No OFD packet to send [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:08]OFD Sender: No OFD packet to send [23:54:13]OFD Sender: No OFD packet to send [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:48]OFD Sender: No OFD packet to send [23:54:53]OFD Sender: No OFD packet to send [23:54:58]OFD Sender: No OFD packet to send [23:55:03]OFD Sender: No OFD packet to send [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:08]OFD Sender: No OFD packet to send [23:56:13]OFD Sender: No OFD packet to send [23:56:18]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:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [00:03:54]accept exits with 10 [00:03:54]New connection [00:03:54]New thread 3066867044 created [00:03:54]Thread 3067010404 joined [00:03:54]Waiting for new connection... [00:03:54] Sock 10.Parse request [00:03:54]Sock 10.Check first char [00:03:54]Sock 10.First char is OK [00:03:54]request: POST /json_proto HTTP/1.0 [00:03:54]Method: POST [00:03:54]URL: /json_proto [00:03:54]Method is POST - this is cgi request [00:03:54]url: /json_proto [00:03:54]query_string will be loaded in cgi processing [00:03:54]execute_cgi json_proto POST (null) [00:03:54]execute_cgi path=json_proto method=POST [00:03:54]POST find Content-Length [00:03:54]Host: 172.17.41.136:8080 [00:03:54]Content-Length: 622 [00:03:54]Content-Type: application/json [00:03:54] [00:03:54]POST finish read [00:03:54]Found Content-Length = 622 [00:03:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344112", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 3.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:54]execute_script... [00:03:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344112", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 3.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:54]POST & json_proto [00:03:54]process_json_proto [00:03:54]json parsed OK: [00:03:54]protocol is kg_v1.0 [00:03:54]action value=close_receipt [00:03:54]process_action close_receipt [00:03:54]cmd_close_receipt [00:03:54]MH_GetDate [00:03:54]Write to MH i2c: F0 00 00 57 14 5A [00:03:54]Write i2c OK [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: F0 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: F0 09 00 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: F0 09 00 57 14 00 EC 01 F2 66 1B D0 5A 64 51 [00:03:54]GetLastDocTimeStamp 1727134675 [00:03:54]current date 1727136236 [00:03:54]FM_GetShiftState [00:03:54]SAM_PROTO_GetShiftState [00:03:54]wFMCommunicate request_size=4 [00:03:54]MH_SAM_APDU [00:03:54]CAPDU: 80 13 01 00 [00:03:54]Write to MH i2c: E2 08 00 58 14 80 13 01 00 00 00 00 00 E9 [00:03:54]Write i2c OK [00:03:54]MH_I2C_Read... [00:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:54]Read from MH i2c: E2 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 0E 00 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 0E 00 58 14 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 2A [00:03:54]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [00:03:54]wFMCommunicate OK [00:03:54]SAM_PROTO_GetShiftState done [00:03:54]FM_GetShiftState done [00:03:54]opened in 1727052070 [00:03:54]opened+sec_in_day 1727138470 [00:03:54]quantity*price = 45000 [00:03:54]sum+1 = 45001 [00:03:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 282 24.09.2024 00:03 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115799 ФПД: 123543438819252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T000356&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115799&fm=123543438819252&tin=02508201610067®Number=0000000000091831&sum=45000 0 [00:03:55]StoreToDocumentArchive [00:03:55]shift 472 fd 115799 [00:03:55]save to /storage/0472/doc_00115799 [00:03:55]save last doc name /storage/0472/doc_00115799 to /storage/kkm_last_doc_name [00:03:55]save OK [00:03:55]Clear old archive folders... [00:03:55]ProcessDocumentItem done err = 0, tmpTLVsize=274 [00:03:55]tlvbuf is B6EE8350 [00:03:55]SAM_PROTO_ClearQueue [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 09 00 00 [00:03:55]Write to MH i2c: E2 08 00 65 14 80 09 00 00 00 00 00 00 EB [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 03 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 03 00 65 14 00 90 00 ED [00:03:55]RAPDU: 90 00 [00:03:55]wFMCommunicate OK [00:03:55]SAM_PROTO_ClearQueue done [00:03:55]KKMCreateOFDPacket [00:03:55]OFDProtocolAddRootSTLVToBuf [00:03:55]FM_MakeSignedData [00:03:55]FM_MakeSignedData [00:03:55]SAM_PROTO_SignData [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 0D 01 02 [00:03:55]Write to MH i2c: E2 08 00 66 14 80 0D 01 02 00 00 00 00 F3 [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 03 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 03 00 66 14 00 90 00 EE [00:03:55]RAPDU: 90 00 [00:03:55]wFMCommunicate OK [00:03:55]wFMCommunicate request_size=255 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 EC 01 F2 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 [00:03:55]Write to MH i2c: E2 02 01 67 14 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 EC 01 F2 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 00 00 15 [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 03 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 03 00 67 14 00 90 00 EF [00:03:55]RAPDU: 90 00 [00:03:55]wFMCommunicate OK [00:03:55]wFMCommunicate request_size=33 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 33 30 10 04 04 00 57 C4 01 00 35 04 06 00 70 5C B2 C8 FF B4 [00:03:55]Write to MH i2c: E2 24 00 68 14 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 33 30 10 04 04 00 57 C4 01 00 35 04 06 00 70 5C B2 C8 FF B4 00 00 95 [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 03 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 03 00 68 14 00 90 00 F0 [00:03:55]RAPDU: 90 00 [00:03:55]wFMCommunicate OK [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 0D 03 02 [00:03:55]Write to MH i2c: E2 08 00 69 14 80 0D 03 02 00 00 00 00 F8 [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 0B 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 0B 00 69 14 00 3D 71 77 F4 FB AA 96 0E 90 00 5B [00:03:55]RAPDU: 3D 71 77 F4 FB AA 96 0E 90 00 [00:03:55]wFMCommunicate OK [00:03:55]SAM_PROTO_SignData done [00:03:55]FM_MakeSignedData done [00:03:55]CreateOFDProtocolMessage [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 11 00 00 [00:03:55]Write to MH i2c: E2 08 00 6A 14 80 11 00 00 00 00 00 00 F8 [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 17 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 17 00 6A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 46 [00:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:03:55]wFMCommunicate OK [00:03:55]CreateOFDProtocolMessage done [00:03:55]OFDSenderStorePacket 115799 [00:03:55]StoreOFDPacket docnum=115799 [00:03:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 26 01 00 00 D7 40 1E 01 46 07 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 EC 01 F2 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 57 C4 01 00 35 04 06 00 70 5C B2 C8 FF B4 3D 71 77 F4 FB AA 96 0E [00:03:55]CheckFolder [00:03:55]dirname=/storage/ofd_packets [00:03:55]CheckFolder done [00:03:55]ProducePacketName [00:03:55]name=ofd_packets/00115799 [00:03:55]NVStorageSaveData ofd_packets/00115799 [00:03:55]File name is /storage/ofd_packets/00115799 [00:03:55]Write 324 bytes [00:03:55]NVStorageSaveData done [00:03:55]OFDSenderStorePacket done [00:03:55]KKMCreateOFDPacket done [00:03:55]NVStorageSaveData kkm_last_timestamp [00:03:55]File name is /storage/kkm_last_timestamp [00:03:55]Write 4 bytes [00:03:55]NVStorageSaveData done [00:03:55]ExternCall_PrintAddStr [00:03:55]wPrintStart [00:03:55]Write to MH i2c: 01 00 00 6B 14 7F [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: 01 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: 01 07 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: 01 07 00 6B 14 00 00 00 00 00 FF 0F 94 [00:03:55]RasterBufferAndPrint [00:03:55]line Счет N : (3)344112 [00:03:55]line ИНН: 02508201610067 [00:03:55]line Контрольно-Кассовый Чек [00:03:55]line ПРОДАЖА [00:03:55]line Товар: 4640030091645 [00:03:55]line Сигареты ESSE Exchange M [00:03:55]line 3.000 * 150.00 [00:03:55]line = 450.00 [00:03:55]line НДС 12% НСП 1% [00:03:55]line > о реализуемом товаре [00:03:55]line ИТОГО: 450.00 [00:03:55]line НСП 1% : 3.98 [00:03:55]line НДС 12% : 47.79 [00:03:55]line Наличными: 450.00 [00:03:55]line Безнал.: 0.00 [00:03:55]line Место: АЗС № 90 "Партнер Нефть" [00:03:55]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [00:03:55]line СНО: Общий режим [00:03:55]line Чек 282 24.09.2024 00:03 [00:03:55]line Смена: 472 ФФД: 1.0 [00:03:55]line ЗНМ: 0300000120 [00:03:55]line РНМ: 0000000000091831 [00:03:55]line Версия ККМ: 001 [00:03:55]line ФМ: 0000000000871830 [00:03:55]line ФД: 115799 [00:03:55]line ФПД: 123543438819252 [00:03:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T000356&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115799&fm=123543438819252&tin=02508201610067®Number=0000000000091831&sum=45000 [00:03:55]line 0 [00:03:55]written 0, free lines is 4095 [00:03:55]OFD Sender: Processing packet 115799 [packets to send 482, broken 481] [00:03:55]ProducePacketName [00:03:55]name=ofd_packets/00115799 [00:03:55]OFD Sender: To server: pG, [00:03:55]CommunicateWithHost lk.salyk.kg:30040 [00:03:55]ConnectInit lk.salyk.kg [00:03:56]Connected sock=9 [00:03: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 38 33 30 26 01 00 00 D7 40 1E 01 46 07 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 EC 01 F2 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 57 C4 01 00 35 04 06 00 70 5C B2 C8 FF B4 3D 71 77 F4 FB AA 96 0E [00:03:56]Write to MH i2c: 01 00 00 92 14 A6 [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: 01 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: 01 07 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: 01 07 00 92 14 00 00 00 00 00 6D 0C 26 [00:03:56]RasterBufferAndPrint [00:03:56]line [00:03:56]line [00:03:56]line [00:03:56]line [00:03:56]line [00:03:56]written 0, free lines is 3183 [00:03:56]MH_Cut [00:03:56]Write to MH i2c: D1 01 00 99 14 01 7F [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: D1 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: D1 01 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: D1 01 00 99 14 00 7E [00:03:56]Write to MH i2c: 01 00 00 9A 14 AE [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A5 DE 47 00 B9 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 38 33 30 10 04 04 00 57 C4 01 00 F4 03 04 00 2D A7 F1 66 B6 04 01 00 00 F5 13 A1 4C 91 EC BA BE [00:03:56]CommunicateWithHost err = 0 [00:03:56]CheckOFDResponse [00:03:56]1017 (14) - 77093643461234 [00:03:56]1041 (16) - 0000000000871830 [00:03:56]1040 (4) - 115799 [00:03:56]1012 (4) - 23.09.2024 17:36 [00:03:56]1206 (1) - 0 [00:03:56]OFD Sender: Remove packet 115799 [00:03:56]ProducePacketName [00:03:56]name=ofd_packets/00115799 [00:03:56]NVStorageDeleteData [00:03:57]OFD Sender: No OFD packet to send [00:03:57]*** Cut start [00:03:57]*** Partial cut [00:03:57]*** CUTSNS_PIN = 1 [00:03:57]*** CUTSNS_PIN = 0 [00:03:57]*** Brake cut motor [00:03:58]Read from MH i2c: 01 [00:03:58]MH_I2C_Read... [00:03:58]*** Stop cut motor [00:03:58]*** Cut end [00:03:58]Read from MH i2c: 01 07 00 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: 01 07 00 9A 14 00 00 00 00 00 FF 0F C3 [00:03:58]process_action close_receipt done [00:03:58]requested_data is exist [00:03:58]produce_requested_data [00:03:58]requested_item fm.sn is exist - process it [00:03:58]wFMCommunicate request_size=4 [00:03:58]MH_SAM_APDU [00:03:58]CAPDU: 80 11 00 00 [00:03:58]Write to MH i2c: E2 08 00 9B 14 80 11 00 00 00 00 00 00 29 [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:58]Read from MH i2c: E2 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 17 00 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 17 00 9B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 77 [00:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:03:58]wFMCommunicate OK [00:03:58]requested_item fd.num is exist - process it [00:03:58]SAM_PROTO_GetFieldsCounters [00:03:58]wFMCommunicate request_size=4 [00:03:58]MH_SAM_APDU [00:03:58]CAPDU: 80 13 00 00 [00:03:58]Write to MH i2c: E2 08 00 9C 14 80 13 00 00 00 00 00 00 2C [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:58]Read from MH i2c: E2 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 62 00 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 62 00 9C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 57 C4 01 00 0E 04 04 00 D8 01 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 8B [00:03: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 57 C4 01 00 0E 04 04 00 D8 01 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 [00:03:58]wFMCommunicate OK [00:03:58]SAM_PROTO_GetFieldsCounters done [00:03:58]requested_item shift.num is exist - process it [00:03:58]requested_item shift.opened is exist - process it [00:03:58]req_shift_opened [00:03:58]FM_GetShiftState [00:03:58]SAM_PROTO_GetShiftState [00:03:58]wFMCommunicate request_size=4 [00:03:58]MH_SAM_APDU [00:03:58]CAPDU: 80 13 01 00 [00:03:58]Write to MH i2c: E2 08 00 9D 14 80 13 01 00 00 00 00 00 2E [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:58]Read from MH i2c: E2 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 0E 00 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 0E 00 9D 14 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 6F [00:03:58]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [00:03:58]wFMCommunicate OK [00:03:58]SAM_PROTO_GetShiftState done [00:03:58]FM_GetShiftState done [00:03:58]req_shift_opened done [00:03:58]requested_item shift.open_date is exist - process it [00:03:58]req_shift_open_date [00:03:58]req_shift_open_date done [00:03:58]produce_requested_data done [00:03:58]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115799,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [00:03:58]process_action_free close_receipt [00:03:58]json_value_free [00:03:58]json_value_free done [00:03:58]process_json_proto returns [00:03:58]Send response to host [00:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115799,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [00:03:58]free response buf [00:03:58]execute_script done [00:03:58]execute_script returns [00:03:58]free content buf [00:03:58]Sock 10.Close socket [00:03:58]Sock 10.Thread stoped [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:35]accept exits with 8 [00:04:35]New connection [00:04:35]New thread 3067010404 created [00:04:35]Thread 3066867044 joined [00:04:35]Waiting for new connection... [00:04:35] Sock 8.Parse request [00:04:35]Sock 8.Check first char [00:04:35]Sock 8.First char is OK [00:04:35]request: POST /json_proto HTTP/1.0 [00:04:35]Method: POST [00:04:35]URL: /json_proto [00:04:35]Method is POST - this is cgi request [00:04:35]url: /json_proto [00:04:35]query_string will be loaded in cgi processing [00:04:35]execute_cgi json_proto POST (null) [00:04:35]execute_cgi path=json_proto method=POST [00:04:35]POST find Content-Length [00:04:35]Host: 172.17.41.136:8080 [00:04:35]Content-Length: 1324 [00:04:35]Content-Type: application/json [00:04:35] [00:04:35]POST finish read [00:04:35]Found Content-Length = 1324 [00:04:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344113", "tax_sys" : 0, "items" : [ { "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:35]execute_script... [00:04:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344113", "tax_sys" : 0, "items" : [ { "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:35]POST & json_proto [00:04:35]process_json_proto [00:04:35]json parsed OK: [00:04:35]protocol is kg_v1.0 [00:04:35]action value=close_receipt [00:04:35]process_action close_receipt [00:04:35]cmd_close_receipt [00:04:35]MH_GetDate [00:04:35]Write to MH i2c: F0 00 00 9E 14 A1 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: F0 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: F0 09 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: F0 09 00 9E 14 00 15 02 F2 66 1B D0 5A 64 C2 [00:04:35]GetLastDocTimeStamp 1727136236 [00:04:35]current date 1727136277 [00:04:35]FM_GetShiftState [00:04:35]SAM_PROTO_GetShiftState [00:04:35]wFMCommunicate request_size=4 [00:04:35]MH_SAM_APDU [00:04:35]CAPDU: 80 13 01 00 [00:04:35]Write to MH i2c: E2 08 00 9F 14 80 13 01 00 00 00 00 00 30 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:35]Read from MH i2c: E2 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 0E 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 0E 00 9F 14 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 71 [00:04:35]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [00:04:35]wFMCommunicate OK [00:04:35]SAM_PROTO_GetShiftState done [00:04:35]FM_GetShiftState done [00:04:35]opened in 1727052070 [00:04:35]opened+sec_in_day 1727138470 [00:04:35]quantity*price = 7000 [00:04:35]sum+1 = 7001 [00:04:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400969 Арахис жарен Караван орехов Стандарт 40 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4631150682851 Нап En Dragon Mojito лайм,клуб ж/б 0,45л 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 283 24.09.2024 00:04 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115800 ФПД: 168665659405494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T000438&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115800&fm=168665659405494&tin=02508201610067®Number=0000000000091831&sum=30000 0 [00:04:36]StoreToDocumentArchive [00:04:36]shift 472 fd 115800 [00:04:36]save to /storage/0472/doc_00115800 [00:04:36]save last doc name /storage/0472/doc_00115800 to /storage/kkm_last_doc_name [00:04:36]save OK [00:04:36]Clear old archive folders... [00:04:36]ProcessDocumentItem done err = 0, tmpTLVsize=553 [00:04:36]tlvbuf is 011B8A30 [00:04:36]SAM_PROTO_ClearQueue [00:04:36]wFMCommunicate request_size=4 [00:04:36]MH_SAM_APDU [00:04:36]CAPDU: 80 09 00 00 [00:04:36]Write to MH i2c: E2 08 00 AC 14 80 09 00 00 00 00 00 00 32 [00:04:36]Write i2c OK [00:04:36]MH_I2C_Read... [00:04:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:04:36]Read from MH i2c: E2 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 03 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 03 00 AC 14 00 90 00 34 [00:04:36]RAPDU: 90 00 [00:04:36]wFMCommunicate OK [00:04:36]SAM_PROTO_ClearQueue done [00:04:36]KKMCreateOFDPacket [00:04:36]OFDProtocolAddRootSTLVToBuf [00:04:36]FM_MakeSignedData [00:04:36]FM_MakeSignedData [00:04:36]SAM_PROTO_SignData [00:04:36]wFMCommunicate request_size=4 [00:04:36]MH_SAM_APDU [00:04:36]CAPDU: 80 0D 01 02 [00:04:36]Write to MH i2c: E2 08 00 AD 14 80 0D 01 02 00 00 00 00 3A [00:04:36]Write i2c OK [00:04:36]MH_I2C_Read... [00:04:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:04:36]Read from MH i2c: E2 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 03 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 03 00 AD 14 00 90 00 35 [00:04:36]RAPDU: 90 00 [00:04:36]wFMCommunicate OK [00:04:36]wFMCommunicate request_size=255 [00:04:36]MH_SAM_APDU [00:04:36]CAPDU: 80 0D 02 02 FA 03 00 29 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 [00:04:37]Write to MH i2c: E2 02 01 AE 14 80 0D 02 02 FA 00 03 00 29 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 00 1B [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]OFD Sender: No OFD packet to send [00:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:37]Read from MH i2c: E2 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 03 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 03 00 AE 14 00 90 00 36 [00:04:37]RAPDU: 90 00 [00:04:37]wFMCommunicate OK [00:04:37]wFMCommunicate request_size=255 [00:04:37]MH_SAM_APDU [00:04:37]CAPDU: 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 16 02 F2 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D [00:04:37]Write to MH i2c: E2 02 01 AF 14 80 0D 02 02 FA 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 16 02 F2 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 00 00 E5 [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:37]Read from MH i2c: E2 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 03 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 03 00 AF 14 00 90 00 37 [00:04:37]RAPDU: 90 00 [00:04:37]wFMCommunicate OK [00:04:37]wFMCommunicate request_size=62 [00:04:37]MH_SAM_APDU [00:04:37]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 58 C4 01 00 35 04 06 00 99 66 88 B6 F4 B6 [00:04:37]Write to MH i2c: E2 41 00 B0 14 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 58 C4 01 00 35 04 06 00 99 66 88 B6 F4 B6 00 00 75 [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:37]Read from MH i2c: E2 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 03 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 03 00 B0 14 00 90 00 38 [00:04:37]RAPDU: 90 00 [00:04:37]wFMCommunicate OK [00:04:37]wFMCommunicate request_size=4 [00:04:37]MH_SAM_APDU [00:04:37]CAPDU: 80 0D 03 02 [00:04:37]Write to MH i2c: E2 08 00 B1 14 80 0D 03 02 00 00 00 00 40 [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:04:37]Read from MH i2c: E2 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 0B 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 0B 00 B1 14 00 AB 07 20 EC 63 DA F8 B4 90 00 E8 [00:04:37]RAPDU: AB 07 20 EC 63 DA F8 B4 90 00 [00:04:37]wFMCommunicate OK [00:04:37]SAM_PROTO_SignData done [00:04:37]FM_MakeSignedData done [00:04:37]CreateOFDProtocolMessage [00:04:37]wFMCommunicate request_size=4 [00:04:37]MH_SAM_APDU [00:04:37]CAPDU: 80 11 00 00 [00:04:37]Write to MH i2c: E2 08 00 B2 14 80 11 00 00 00 00 00 00 40 [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:37]Read from MH i2c: E2 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 17 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 17 00 B2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8E [00:04:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:04:37]wFMCommunicate OK [00:04:37]CreateOFDProtocolMessage done [00:04:37]OFDSenderStorePacket 115800 [00:04:37]StoreOFDPacket docnum=115800 [00:04:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3D 02 00 00 54 8D 35 02 01 0A 5A 03 01 00 03 00 29 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 16 02 F2 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 58 C4 01 00 35 04 06 00 99 66 88 B6 F4 B6 AB 07 20 EC 63 DA F8 B4 [00:04:37]CheckFolder [00:04:37]dirname=/storage/ofd_packets [00:04:37]CheckFolder done [00:04:37]ProducePacketName [00:04:37]name=ofd_packets/00115800 [00:04:37]NVStorageSaveData ofd_packets/00115800 [00:04:37]File name is /storage/ofd_packets/00115800 [00:04:37]Write 603 bytes [00:04:37]NVStorageSaveData done [00:04:37]OFDSenderStorePacket done [00:04:37]KKMCreateOFDPacket done [00:04:37]NVStorageSaveData kkm_last_timestamp [00:04:37]File name is /storage/kkm_last_timestamp [00:04:37]Write 4 bytes [00:04:37]NVStorageSaveData done [00:04:37]ExternCall_PrintAddStr [00:04:37]wPrintStart [00:04:37]Write to MH i2c: 01 00 00 B3 14 C7 [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: 01 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: 01 07 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: 01 07 00 B3 14 00 00 00 00 00 FF 0F DC [00:04:37]RasterBufferAndPrint [00:04:37]line Счет N : (3)344113 [00:04:37]line ИНН: 02508201610067 [00:04:37]line Контрольно-Кассовый Чек [00:04:37]line ПРОДАЖА [00:04:37]line Товар: 4630007400655 [00:04:37]line Семечки ДЖИНН 70г синий [00:04:37]line 1.000 * 70.00 [00:04:37]line = 70.00 [00:04:37]line НДС 12% НСП 1% [00:04:37]line > о реализуемом товаре [00:04:37]line Товар: 4630007400969 [00:04:37]line Арахис жарен Караван орехов Стандарт 40 [00:04:37]line 1.000 * 40.00 [00:04:37]line = 40.00 [00:04:37]line НДС 12% НСП 1% [00:04:37]line > о реализуемом товаре [00:04:37]line Товар: 4631150682851 [00:04:37]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [00:04:37]line 2.000 * 95.00 [00:04:37]line = 190.00 [00:04:37]line НДС 12% НСП 1% [00:04:37]line > о реализуемом товаре [00:04:37]line ИТОГО: 300.00 [00:04:37]line НСП 1% : 2.65 [00:04:37]line НДС 12% : 31.86 [00:04:37]line Наличными: 300.00 [00:04:37]line Безнал.: 0.00 [00:04:37]line Место: АЗС № 90 "Партнер Нефть" [00:04:37]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [00:04:37]line СНО: Общий режим [00:04:37]line Чек 283 24.09.2024 00:04 [00:04:37]line Смена: 472 ФФД: 1.0 [00:04:37]line ЗНМ: 0300000120 [00:04:37]line РНМ: 0000000000091831 [00:04:37]line Версия ККМ: 001 [00:04:37]line ФМ: 0000000000871830 [00:04:37]line ФД: 115800 [00:04:37]line ФПД: 168665659405494 [00:04:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T000438&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115800&fm=168665659405494&tin=02508201610067®Number=0000000000091831&sum=30000 [00:04:38]line 0 [00:04:38]OFD Sender: Processing packet 115800 [packets to send 482, broken 481] [00:04:38]ProducePacketName [00:04:38]name=ofd_packets/00115800 [00:04:38]OFD Sender: To server: pG, [00:04:38]CommunicateWithHost lk.salyk.kg:30040 [00:04:38]ConnectInit lk.salyk.kg [00:04:38]written 0, free lines is 4095 [00:04:38]Connected sock=10 [00:04:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3D 02 00 00 54 8D 35 02 01 0A 5A 03 01 00 03 00 29 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 16 02 F2 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 58 C4 01 00 35 04 06 00 99 66 88 B6 F4 B6 AB 07 20 EC 63 DA F8 B4 [00:04:38]Write to MH i2c: 01 00 00 E8 14 FC [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: 01 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: 01 07 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: 01 07 00 E8 14 00 00 00 00 00 58 0B 66 [00:04:38]RasterBufferAndPrint [00:04:38]line [00:04:38]line [00:04:38]line [00:04:38]line [00:04:38]line [00:04:38]written 0, free lines is 2909 [00:04:38]MH_Cut [00:04:38]Write to MH i2c: D1 01 00 EF 14 01 D5 [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: D1 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: D1 01 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: D1 01 00 EF 14 00 D4 [00:04:38]Write to MH i2c: 01 00 00 F0 14 04 [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0B AB 47 00 C9 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 38 33 30 10 04 04 00 58 C4 01 00 F4 03 04 00 57 A7 F1 66 B6 04 01 00 00 97 9F 11 D1 F8 B0 79 26 [00:04:38]CommunicateWithHost err = 0 [00:04:38]CheckOFDResponse [00:04:38]1017 (14) - 77093643461234 [00:04:38]1041 (16) - 0000000000871830 [00:04:38]1040 (4) - 115800 [00:04:38]1012 (4) - 23.09.2024 17:37 [00:04:38]1206 (1) - 0 [00:04:38]OFD Sender: Remove packet 115800 [00:04:38]ProducePacketName [00:04:38]name=ofd_packets/00115800 [00:04:38]NVStorageDeleteData [00:04:39]OFD Sender: No OFD packet to send [00:04:40]*** Cut start [00:04:40]*** Partial cut [00:04:40]*** CUTSNS_PIN = 1 [00:04:40]*** CUTSNS_PIN = 0 [00:04:40]*** Brake cut motor [00:04:40]Read from MH i2c: 01 [00:04:41]MH_I2C_Read... [00:04:41]*** Stop cut motor [00:04:41]*** Cut end [00:04:41]Read from MH i2c: 01 07 00 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: 01 07 00 F0 14 00 00 00 00 00 FF 0F 19 [00:04:41]process_action close_receipt done [00:04:41]requested_data is exist [00:04:41]produce_requested_data [00:04:41]requested_item fm.sn is exist - process it [00:04:41]wFMCommunicate request_size=4 [00:04:41]MH_SAM_APDU [00:04:41]CAPDU: 80 11 00 00 [00:04:41]Write to MH i2c: E2 08 00 F1 14 80 11 00 00 00 00 00 00 7F [00:04:41]Write i2c OK [00:04:41]MH_I2C_Read... [00:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:41]Read from MH i2c: E2 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 17 00 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 17 00 F1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CD [00:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:04:41]wFMCommunicate OK [00:04:41]requested_item fd.num is exist - process it [00:04:41]SAM_PROTO_GetFieldsCounters [00:04:41]wFMCommunicate request_size=4 [00:04:41]MH_SAM_APDU [00:04:41]CAPDU: 80 13 00 00 [00:04:41]Write to MH i2c: E2 08 00 F2 14 80 13 00 00 00 00 00 00 82 [00:04:41]Write i2c OK [00:04:41]MH_I2C_Read... [00:04:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:41]Read from MH i2c: E2 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 62 00 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 62 00 F2 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 58 C4 01 00 0E 04 04 00 D8 01 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 E5 [00:04: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 58 C4 01 00 0E 04 04 00 D8 01 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 [00:04:41]wFMCommunicate OK [00:04:41]SAM_PROTO_GetFieldsCounters done [00:04:41]requested_item shift.num is exist - process it [00:04:41]requested_item shift.opened is exist - process it [00:04:41]req_shift_opened [00:04:41]FM_GetShiftState [00:04:41]SAM_PROTO_GetShiftState [00:04:41]wFMCommunicate request_size=4 [00:04:41]MH_SAM_APDU [00:04:41]CAPDU: 80 13 01 00 [00:04:41]Write to MH i2c: E2 08 00 F3 14 80 13 01 00 00 00 00 00 84 [00:04:41]Write i2c OK [00:04:41]MH_I2C_Read... [00:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:41]Read from MH i2c: E2 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 0E 00 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 0E 00 F3 14 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C5 [00:04:41]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [00:04:41]wFMCommunicate OK [00:04:41]SAM_PROTO_GetShiftState done [00:04:41]FM_GetShiftState done [00:04:41]req_shift_opened done [00:04:41]requested_item shift.open_date is exist - process it [00:04:41]req_shift_open_date [00:04:41]req_shift_open_date done [00:04:41]produce_requested_data done [00:04:41]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115800,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [00:04:41]process_action_free close_receipt [00:04:41]json_value_free [00:04:41]json_value_free done [00:04:41]process_json_proto returns [00:04:41]Send response to host [00:04:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115800,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [00:04:41]free response buf [00:04:41]execute_script done [00:04:41]execute_script returns [00:04:41]free content buf [00:04:41]Sock 8.Close socket [00:04:41]Sock 8.Thread stoped [00:04:44]OFD Sender: No OFD packet to send [00:04:49]OFD Sender: No OFD packet to send [00:04:54]OFD Sender: No OFD packet to send [00:04:59]OFD Sender: No OFD packet to send [00:05:04]OFD Sender: No OFD packet to send [00:05:09]OFD Sender: No OFD packet to send [00:05:14]OFD Sender: No OFD packet to send [00:05:19]OFD Sender: No OFD packet to send [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:14]OFD Sender: No OFD packet to send [00:07:19]OFD Sender: No OFD packet to send [00:07:24]OFD Sender: No OFD packet to send [00:07:29]OFD Sender: No OFD packet to send [00:07:34]OFD Sender: No OFD packet to send [00:07:39]OFD Sender: No OFD packet to send [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:35]OFD Sender: No OFD packet to send [00:09:40]OFD Sender: No OFD packet to send [00:09:45]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:35]OFD Sender: No OFD packet to send [00:10:40]OFD Sender: No OFD packet to send [00:10:45]OFD Sender: No OFD packet to send [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:40]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12: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:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:46]OFD Sender: No OFD packet to send [00:15:51]OFD Sender: No OFD packet to send [00:15:56]OFD Sender: No OFD packet to send [00:16:01]OFD Sender: No OFD packet to send [00:16:06]OFD Sender: No OFD packet to send [00:16:11]OFD Sender: No OFD packet to send [00:16:16]OFD Sender: No OFD packet to send [00:16:21]OFD Sender: No OFD packet to send [00:16:26]OFD Sender: No OFD packet to send [00:16:31]OFD Sender: No OFD packet to send [00:16:36]OFD Sender: No OFD packet to send [00:16:41]OFD Sender: No OFD packet to send [00:16:46]OFD Sender: No OFD packet to send [00:16:51]OFD Sender: No OFD packet to send [00:16:56]OFD Sender: No OFD packet to send [00:17:01]OFD Sender: No OFD packet to send [00:17:06]OFD Sender: No OFD packet to send [00:17:11]OFD Sender: No OFD packet to send [00:17:16]OFD Sender: No OFD packet to send [00:17:21]OFD Sender: No OFD packet to send [00:17:26]OFD Sender: No OFD packet to send [00:17:31]OFD Sender: No OFD packet to send [00:17:33]accept exits with 9 [00:17:33]New connection [00:17:33]New thread 3066867044 created [00:17:33]Thread 3067010404 joined [00:17:33]Waiting for new connection... [00:17:33] Sock 9.Parse request [00:17:33]Sock 9.Check first char [00:17:33]Sock 9.First char is OK [00:17:33]request: POST /json_proto HTTP/1.0 [00:17:33]Method: POST [00:17:33]URL: /json_proto [00:17:33]Method is POST - this is cgi request [00:17:33]url: /json_proto [00:17:33]query_string will be loaded in cgi processing [00:17:33]execute_cgi json_proto POST (null) [00:17:33]execute_cgi path=json_proto method=POST [00:17:33]POST find Content-Length [00:17:33]Host: 172.17.41.136:8080 [00:17:33]Content-Length: 880 [00:17:33]Content-Type: application/json [00:17:33] [00:17:33]POST finish read [00:17:33]Found Content-Length = 880 [00:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344114", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 203.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:33]execute_script... [00:17:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344114", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 203.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:33]POST & json_proto [00:17:33]process_json_proto [00:17:33]json parsed OK: [00:17:33]protocol is kg_v1.0 [00:17:33]action value=close_receipt [00:17:33]process_action close_receipt [00:17:33]cmd_close_receipt [00:17:33]MH_GetDate [00:17:33]Write to MH i2c: F0 00 00 F4 14 F7 [00:17:33]Write i2c OK [00:17:33]MH_I2C_Read... [00:17:33]Read from MH i2c: F0 [00:17:33]MH_I2C_Read... [00:17:33]Read from MH i2c: F0 09 00 [00:17:33]MH_I2C_Read... [00:17:33]Read from MH i2c: F0 09 00 F4 14 00 1F 05 F2 66 1B D0 5A 64 25 [00:17:33]GetLastDocTimeStamp 1727136278 [00:17:33]current date 1727137055 [00:17:33]FM_GetShiftState [00:17:33]SAM_PROTO_GetShiftState [00:17:33]wFMCommunicate request_size=4 [00:17:33]MH_SAM_APDU [00:17:33]CAPDU: 80 13 01 00 [00:17:33]Write to MH i2c: E2 08 00 F5 14 80 13 01 00 00 00 00 00 86 [00:17:33]Write i2c OK [00:17:33]MH_I2C_Read... [00:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:33]Read from MH i2c: E2 [00:17:33]MH_I2C_Read... [00:17:33]Read from MH i2c: E2 0E 00 [00:17:33]MH_I2C_Read... [00:17:33]Read from MH i2c: E2 0E 00 F5 14 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 C7 [00:17:33]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [00:17:33]wFMCommunicate OK [00:17:33]SAM_PROTO_GetShiftState done [00:17:33]FM_GetShiftState done [00:17:33]opened in 1727052070 [00:17:33]opened+sec_in_day 1727138470 [00:17:33]quantity*price = 14400 [00:17:33]sum+1 = 14401 [00:17:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 203.00 НСП 1% : 1.79 НДС 12% : 21.55 Наличными: 203.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 284 24.09.2024 00:17 Смена: 472 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115801 ФПД: 138181972420014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T001735&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115801&fm=138181972420014&tin=02508201610067®Number=0000000000091831&sum=20300 0 [00:17:34]StoreToDocumentArchive [00:17:34]shift 472 fd 115801 [00:17:34]save to /storage/0472/doc_00115801 [00:17:34]save last doc name /storage/0472/doc_00115801 to /storage/kkm_last_doc_name [00:17:34]save OK [00:17:34]Clear old archive folders... [00:17:34]ProcessDocumentItem done err = 0, tmpTLVsize=384 [00:17:34]tlvbuf is 0114B630 [00:17:34]SAM_PROTO_ClearQueue [00:17:34]wFMCommunicate request_size=4 [00:17:34]MH_SAM_APDU [00:17:34]CAPDU: 80 09 00 00 [00:17:34]Write to MH i2c: E2 08 00 02 15 80 09 00 00 00 00 00 00 89 [00:17:34]Write i2c OK [00:17:34]MH_I2C_Read... [00:17:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:17:34]Read from MH i2c: E2 [00:17:34]MH_I2C_Read... [00:17:34]Read from MH i2c: E2 03 00 [00:17:34]MH_I2C_Read... [00:17:34]Read from MH i2c: E2 03 00 02 15 00 90 00 8B [00:17:34]RAPDU: 90 00 [00:17:34]wFMCommunicate OK [00:17:34]SAM_PROTO_ClearQueue done [00:17:34]KKMCreateOFDPacket [00:17:34]OFDProtocolAddRootSTLVToBuf [00:17:34]FM_MakeSignedData [00:17:34]FM_MakeSignedData [00:17:34]SAM_PROTO_SignData [00:17:34]wFMCommunicate request_size=4 [00:17:34]MH_SAM_APDU [00:17:34]CAPDU: 80 0D 01 02 [00:17:34]Write to MH i2c: E2 08 00 03 15 80 0D 01 02 00 00 00 00 91 [00:17:34]Write i2c OK [00:17:34]MH_I2C_Read... [00:17:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:34]Read from MH i2c: E2 [00:17:34]MH_I2C_Read... [00:17:34]Read from MH i2c: E2 03 00 [00:17:34]MH_I2C_Read... [00:17:34]Read from MH i2c: E2 03 00 03 15 00 90 00 8C [00:17:34]RAPDU: 90 00 [00:17:34]wFMCommunicate OK [00:17:34]wFMCommunicate request_size=255 [00:17:34]MH_SAM_APDU [00:17:34]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [00:17:34]Write to MH i2c: E2 02 01 04 15 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 2E [00:17:34]Write i2c OK [00:17:34]MH_I2C_Read... [00:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:34]Read from MH i2c: E2 [00:17:34]MH_I2C_Read... [00:17:34]Read from MH i2c: E2 03 00 [00:17:34]MH_I2C_Read... [00:17:34]Read from MH i2c: E2 03 00 04 15 00 90 00 8D [00:17:34]RAPDU: 90 00 [00:17:34]wFMCommunicate OK [00:17:34]wFMCommunicate request_size=143 [00:17:34]MH_SAM_APDU [00:17:34]CAPDU: 80 0D 02 02 8A B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 08 00 00 00 00 07 04 06 00 4C 4F 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 1F 05 F2 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 59 C4 01 00 35 04 06 00 7D AC FF 61 65 AE [00:17:34]Write to MH i2c: E2 92 00 05 15 80 0D 02 02 8A 00 B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 08 00 00 00 00 07 04 06 00 4C 4F 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 1F 05 F2 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 59 C4 01 00 35 04 06 00 7D AC FF 61 65 AE 00 00 BA [00:17:34]Write i2c OK [00:17:34]MH_I2C_Read... [00:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:34]Read from MH i2c: E2 [00:17:34]MH_I2C_Read... [00:17:34]Read from MH i2c: E2 03 00 [00:17:34]MH_I2C_Read... [00:17:34]Read from MH i2c: E2 03 00 05 15 00 90 00 8E [00:17:34]RAPDU: 90 00 [00:17:34]wFMCommunicate OK [00:17:34]wFMCommunicate request_size=4 [00:17:34]MH_SAM_APDU [00:17:34]CAPDU: 80 0D 03 02 [00:17:34]Write to MH i2c: E2 08 00 06 15 80 0D 03 02 00 00 00 00 96 [00:17:34]Write i2c OK [00:17:34]MH_I2C_Read... [00:17:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:35]Read from MH i2c: E2 [00:17:35]MH_I2C_Read... [00:17:35]Read from MH i2c: E2 0B 00 [00:17:35]MH_I2C_Read... [00:17:35]Read from MH i2c: E2 0B 00 06 15 00 84 87 A4 5A 79 61 25 C2 90 00 61 [00:17:35]RAPDU: 84 87 A4 5A 79 61 25 C2 90 00 [00:17:35]wFMCommunicate OK [00:17:35]SAM_PROTO_SignData done [00:17:35]FM_MakeSignedData done [00:17:35]CreateOFDProtocolMessage [00:17:35]wFMCommunicate request_size=4 [00:17:35]MH_SAM_APDU [00:17:35]CAPDU: 80 11 00 00 [00:17:35]Write to MH i2c: E2 08 00 07 15 80 11 00 00 00 00 00 00 96 [00:17:35]Write i2c OK [00:17:35]MH_I2C_Read... [00:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:35]Read from MH i2c: E2 [00:17:35]MH_I2C_Read... [00:17:35]Read from MH i2c: E2 17 00 [00:17:35]MH_I2C_Read... [00:17:35]Read from MH i2c: E2 17 00 07 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E4 [00:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:17:35]wFMCommunicate OK [00:17:35]CreateOFDProtocolMessage done [00:17:35]OFDSenderStorePacket 115801 [00:17:35]StoreOFDPacket docnum=115801 [00:17:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 94 01 00 00 9E E7 8C 01 A2 FE 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 08 00 00 00 00 07 04 06 00 4C 4F 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 1F 05 F2 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 59 C4 01 00 35 04 06 00 7D AC FF 61 65 AE 84 87 A4 5A 79 61 25 C2 [00:17:35]CheckFolder [00:17:35]dirname=/storage/ofd_packets [00:17:35]CheckFolder done [00:17:35]ProducePacketName [00:17:35]name=ofd_packets/00115801 [00:17:35]NVStorageSaveData ofd_packets/00115801 [00:17:35]File name is /storage/ofd_packets/00115801 [00:17:35]Write 434 bytes [00:17:35]NVStorageSaveData done [00:17:35]OFDSenderStorePacket done [00:17:35]KKMCreateOFDPacket done [00:17:35]NVStorageSaveData kkm_last_timestamp [00:17:35]File name is /storage/kkm_last_timestamp [00:17:35]Write 4 bytes [00:17:35]NVStorageSaveData done [00:17:35]ExternCall_PrintAddStr [00:17:35]wPrintStart [00:17:35]Write to MH i2c: 01 00 00 08 15 1D [00:17:35]Write i2c OK [00:17:35]MH_I2C_Read... [00:17:35]Read from MH i2c: 01 [00:17:35]MH_I2C_Read... [00:17:35]Read from MH i2c: 01 07 00 [00:17:35]MH_I2C_Read... [00:17:35]Read from MH i2c: 01 07 00 08 15 00 00 00 00 00 FF 0F 32 [00:17:35]RasterBufferAndPrint [00:17:35]line Счет N : (3)344114 [00:17:35]line ИНН: 02508201610067 [00:17:35]line Контрольно-Кассовый Чек [00:17:35]line ПРОДАЖА [00:17:35]line Товар: 48743570 [00:17:35]line Сигареты Winston XStyle Blue [00:17:35]line 1.000 * 144.00 [00:17:35]line = 144.00 [00:17:35]line НДС 12% НСП 1% [00:17:35]line > о реализуемом товаре [00:17:35]line Товар: 4607065001445 [00:17:35]line Шок батончик Snickers 50,5г [00:17:35]line 1.000 * 59.00 [00:17:35]line = 59.00 [00:17:35]line НДС 12% НСП 1% [00:17:35]line > о реализуемом товаре [00:17:35]line ИТОГО: 203.00 [00:17:35]line НСП 1% : 1.79 [00:17:35]line НДС 12% : 21.55 [00:17:35]line Наличными: 203.00 [00:17:35]line Безнал.: 0.00 [00:17:35]line Место: АЗС № 90 "Партнер Нефть" [00:17:35]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [00:17:35]line СНО: Общий режим [00:17:35]line Чек 284 24.09.2024 00:17 [00:17:35]line Смена: 472 ФФД: 1.0 [00:17:35]line ЗНМ: 0300000120 [00:17:35]line РНМ: 0000000000091831 [00:17:35]line Версия ККМ: 001 [00:17:35]line ФМ: 0000000000871830 [00:17:35]line ФД: 115801 [00:17:35]line ФПД: 138181972420014 [00:17:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T001735&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115801&fm=138181972420014&tin=02508201610067®Number=0000000000091831&sum=20300 [00:17:35]line 0 [00:17:35]OFD Sender: Processing packet 115801 [packets to send 482, broken 481] [00:17:35]ProducePacketName [00:17:35]name=ofd_packets/00115801 [00:17:35]OFD Sender: To server: pG, [00:17:35]CommunicateWithHost lk.salyk.kg:30040 [00:17:35]ConnectInit lk.salyk.kg [00:17:35]written 0, free lines is 4095 [00:17:35]Connected sock=10 [00:17: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 38 33 30 94 01 00 00 9E E7 8C 01 A2 FE 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 08 00 00 00 00 07 04 06 00 4C 4F 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 1F 05 F2 66 0E 04 04 00 D8 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 59 C4 01 00 35 04 06 00 7D AC FF 61 65 AE 84 87 A4 5A 79 61 25 C2 [00:17:35]Write to MH i2c: 01 00 00 35 15 4A [00:17:35]Write i2c OK [00:17:35]MH_I2C_Read... [00:17:35]Read from MH i2c: 01 [00:17:35]MH_I2C_Read... [00:17:35]Read from MH i2c: 01 07 00 [00:17:35]MH_I2C_Read... [00:17:35]Read from MH i2c: 01 07 00 35 15 00 00 00 00 00 0A 0C 67 [00:17:35]RasterBufferAndPrint [00:17:35]line [00:17:35]line [00:17:35]line [00:17:35]line [00:17:35]line [00:17:35]written 0, free lines is 3084 [00:17:35]MH_Cut [00:17:35]Write to MH i2c: D1 01 00 3C 15 01 23 [00:17:35]Write i2c OK [00:17:35]MH_I2C_Read... [00:17:35]Read from MH i2c: D1 [00:17:35]MH_I2C_Read... [00:17:35]Read from MH i2c: D1 01 00 [00:17:35]MH_I2C_Read... [00:17:35]Read from MH i2c: D1 01 00 3C 15 00 22 [00:17:35]Write to MH i2c: 01 00 00 3D 15 52 [00:17:35]Write i2c OK [00:17:35]MH_I2C_Read... [00:17:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 09 82 47 00 62 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 38 33 30 10 04 04 00 59 C4 01 00 F4 03 04 00 61 AA F1 66 B6 04 01 00 00 10 86 2D 0A 21 CC 59 22 [00:17:36]CommunicateWithHost err = 0 [00:17:36]CheckOFDResponse [00:17:36]1017 (14) - 77093643461234 [00:17:36]1041 (16) - 0000000000871830 [00:17:36]1040 (4) - 115801 [00:17:36]1012 (4) - 23.09.2024 17:50 [00:17:36]1206 (1) - 0 [00:17:36]OFD Sender: Remove packet 115801 [00:17:36]ProducePacketName [00:17:36]name=ofd_packets/00115801 [00:17:36]NVStorageDeleteData [00:17:36]OFD Sender: No OFD packet to send [00:17:37]*** Cut start [00:17:37]*** Partial cut [00:17:37]*** CUTSNS_PIN = 1 [00:17:37]*** CUTSNS_PIN = 0 [00:17:37]*** Brake cut motor [00:17:37]Read from MH i2c: 01 [00:17:37]MH_I2C_Read... [00:17:37]*** Stop cut motor [00:17:37]*** Cut end [00:17:37]Read from MH i2c: 01 07 00 [00:17:37]MH_I2C_Read... [00:17:37]Read from MH i2c: 01 07 00 3D 15 00 00 00 00 00 FF 0F 67 [00:17:37]process_action close_receipt done [00:17:37]requested_data is exist [00:17:37]produce_requested_data [00:17:37]requested_item fm.sn is exist - process it [00:17:37]wFMCommunicate request_size=4 [00:17:37]MH_SAM_APDU [00:17:37]CAPDU: 80 11 00 00 [00:17:37]Write to MH i2c: E2 08 00 3E 15 80 11 00 00 00 00 00 00 CD [00:17:37]Write i2c OK [00:17:37]MH_I2C_Read... [00:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:38]Read from MH i2c: E2 [00:17:38]MH_I2C_Read... [00:17:38]Read from MH i2c: E2 17 00 [00:17:38]MH_I2C_Read... [00:17:38]Read from MH i2c: E2 17 00 3E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1B [00:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:17:38]wFMCommunicate OK [00:17:38]requested_item fd.num is exist - process it [00:17:38]SAM_PROTO_GetFieldsCounters [00:17:38]wFMCommunicate request_size=4 [00:17:38]MH_SAM_APDU [00:17:38]CAPDU: 80 13 00 00 [00:17:38]Write to MH i2c: E2 08 00 3F 15 80 13 00 00 00 00 00 00 D0 [00:17:38]Write i2c OK [00:17:38]MH_I2C_Read... [00:17:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:38]Read from MH i2c: E2 [00:17:38]MH_I2C_Read... [00:17:38]Read from MH i2c: E2 62 00 [00:17:38]MH_I2C_Read... [00:17:38]Read from MH i2c: E2 62 00 3F 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 59 C4 01 00 0E 04 04 00 D8 01 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 37 [00:17: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 59 C4 01 00 0E 04 04 00 D8 01 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 [00:17:38]wFMCommunicate OK [00:17:38]SAM_PROTO_GetFieldsCounters done [00:17:38]requested_item shift.num is exist - process it [00:17:38]requested_item shift.opened is exist - process it [00:17:38]req_shift_opened [00:17:38]FM_GetShiftState [00:17:38]SAM_PROTO_GetShiftState [00:17:38]wFMCommunicate request_size=4 [00:17:38]MH_SAM_APDU [00:17:38]CAPDU: 80 13 01 00 [00:17:38]Write to MH i2c: E2 08 00 40 15 80 13 01 00 00 00 00 00 D2 [00:17:38]Write i2c OK [00:17:38]MH_I2C_Read... [00:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:38]Read from MH i2c: E2 [00:17:38]MH_I2C_Read... [00:17:38]Read from MH i2c: E2 0E 00 [00:17:38]MH_I2C_Read... [00:17:38]Read from MH i2c: E2 0E 00 40 15 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 13 [00:17:38]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [00:17:38]wFMCommunicate OK [00:17:38]SAM_PROTO_GetShiftState done [00:17:38]FM_GetShiftState done [00:17:38]req_shift_opened done [00:17:38]requested_item shift.open_date is exist - process it [00:17:38]req_shift_open_date [00:17:38]req_shift_open_date done [00:17:38]produce_requested_data done [00:17:38]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115801,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [00:17:38]process_action_free close_receipt [00:17:38]json_value_free [00:17:38]json_value_free done [00:17:38]process_json_proto returns [00:17:38]Send response to host [00:17:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115801,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [00:17:38]free response buf [00:17:38]execute_script done [00:17:38]execute_script returns [00:17:38]free content buf [00:17:38]Sock 9.Close socket [00:17:38]Sock 9.Thread stoped [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:51]OFD Sender: No OFD packet to send [00:17:56]OFD Sender: No OFD packet to send [00:18:01]OFD Sender: No OFD packet to send [00:18:06]OFD Sender: No OFD packet to send [00:18:11]OFD Sender: No OFD packet to send [00:18:16]OFD Sender: No OFD packet to send [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:05]accept exits with 8 [00:34:05]New connection [00:34:05]New thread 3067010404 created [00:34:05]Thread 3066867044 joined [00:34:05]Waiting for new connection... [00:34:05] Sock 8.Parse request [00:34:05]Sock 8.Check first char [00:34:05]Sock 8.First char is OK [00:34:05]request: POST /json_proto HTTP/1.0 [00:34:05]Method: POST [00:34:05]URL: /json_proto [00:34:05]Method is POST - this is cgi request [00:34:05]url: /json_proto [00:34:05]query_string will be loaded in cgi processing [00:34:05]execute_cgi json_proto POST (null) [00:34:05]execute_cgi path=json_proto method=POST [00:34:05]POST find Content-Length [00:34:05]Host: 172.17.41.136:8080 [00:34:05]Content-Length: 215 [00:34:05]Content-Type: application/json [00:34:05] [00:34:05]POST finish read [00:34:05]Found Content-Length = 215 [00:34:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:05]execute_script... [00:34:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:05]POST & json_proto [00:34:05]process_json_proto [00:34:05]json parsed OK: [00:34:05]protocol is kg_v1.0 [00:34:05]action value=get_value [00:34:05]process_action get_value [00:34:05]cmd_get_value [00:34:05]process_action get_value done [00:34:05]requested_data is exist [00:34:05]produce_requested_data [00:34:05]requested_item kkm.sn is exist - process it [00:34:05]requested_item kkm.ver is exist - process it [00:34:05]requested_item fm.sn is exist - process it [00:34:05]wFMCommunicate request_size=4 [00:34:05]MH_SAM_APDU [00:34:05]CAPDU: 80 11 00 00 [00:34:05]Write to MH i2c: E2 08 00 41 15 80 11 00 00 00 00 00 00 D0 [00:34:05]Write i2c OK [00:34:05]MH_I2C_Read... [00:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:05]Read from MH i2c: E2 [00:34:05]MH_I2C_Read... [00:34:05]Read from MH i2c: E2 17 00 [00:34:05]MH_I2C_Read... [00:34:05]Read from MH i2c: E2 17 00 41 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1E [00:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:34:05]wFMCommunicate OK [00:34:05]requested_item fd.num is exist - process it [00:34:05]SAM_PROTO_GetFieldsCounters [00:34:05]wFMCommunicate request_size=4 [00:34:05]MH_SAM_APDU [00:34:05]CAPDU: 80 13 00 00 [00:34:05]Write to MH i2c: E2 08 00 42 15 80 13 00 00 00 00 00 00 D3 [00:34:05]Write i2c OK [00:34:05]MH_I2C_Read... [00:34:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:05]Read from MH i2c: E2 [00:34:05]MH_I2C_Read... [00:34:05]Read from MH i2c: E2 62 00 [00:34:05]MH_I2C_Read... [00:34:05]Read from MH i2c: E2 62 00 42 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 59 C4 01 00 0E 04 04 00 D8 01 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 3A [00:34:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 59 C4 01 00 0E 04 04 00 D8 01 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 [00:34:05]wFMCommunicate OK [00:34:05]SAM_PROTO_GetFieldsCounters done [00:34:05]requested_item shift.num is exist - process it [00:34:05]requested_item shift.opened is exist - process it [00:34:05]req_shift_opened [00:34:05]FM_GetShiftState [00:34:05]SAM_PROTO_GetShiftState [00:34:05]wFMCommunicate request_size=4 [00:34:05]MH_SAM_APDU [00:34:05]CAPDU: 80 13 01 00 [00:34:05]Write to MH i2c: E2 08 00 43 15 80 13 01 00 00 00 00 00 D5 [00:34:05]Write i2c OK [00:34:05]MH_I2C_Read... [00:34:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:05]Read from MH i2c: E2 [00:34:05]MH_I2C_Read... [00:34:05]Read from MH i2c: E2 0E 00 [00:34:05]MH_I2C_Read... [00:34:05]Read from MH i2c: E2 0E 00 43 15 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 16 [00:34:05]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [00:34:05]wFMCommunicate OK [00:34:05]SAM_PROTO_GetShiftState done [00:34:05]FM_GetShiftState done [00:34:05]req_shift_opened done [00:34:05]requested_item shift.open_date is exist - process it [00:34:05]req_shift_open_date [00:34:05]req_shift_open_date done [00:34:05]produce_requested_data done [00:34:05]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115801,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [00:34:05]process_action_free get_value [00:34:05]json_value_free [00:34:05]json_value_free done [00:34:05]process_json_proto returns [00:34:05]Send response to host [00:34:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115801,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [00:34:05]free response buf [00:34:05]execute_script done [00:34:05]execute_script returns [00:34:05]free content buf [00:34:05]Sock 8.Close socket [00:34:05]Sock 8.Thread stoped [00:34:05]accept exits with 9 [00:34:05]New connection [00:34:05]New thread 3066867044 created [00:34:05]Thread 3067010404 joined [00:34:05]Waiting for new connection... [00:34:05] Sock 9.Parse request [00:34:05]Sock 9.Check first char [00:34:05]Sock 9.First char is OK [00:34:05]request: POST /json_proto HTTP/1.0 [00:34:05]Method: POST [00:34:05]URL: /json_proto [00:34:05]Method is POST - this is cgi request [00:34:05]url: /json_proto [00:34:05]query_string will be loaded in cgi processing [00:34:05]execute_cgi json_proto POST (null) [00:34:05]execute_cgi path=json_proto method=POST [00:34:05]POST find Content-Length [00:34:05]Host: 172.17.41.136:8080 [00:34:05]Content-Length: 331 [00:34:05]Content-Type: application/json [00:34:05] [00:34:05]POST finish read [00:34:05]Found Content-Length = 331 [00:34:05]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:34:05]execute_script... [00:34:05]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:34:05]POST & json_proto [00:34:05]process_json_proto [00:34:05]json parsed OK: [00:34:05]protocol is kg_v1.0 [00:34:05]action value=get_value [00:34:05]process_action get_value [00:34:05]cmd_get_value [00:34:05]process_action get_value done [00:34:05]requested_data is exist [00:34:05]produce_requested_data [00:34:05]requested_item fm.sale.total is exist - process it [00:34:05]SAM_PROTO_GetFMData [00:34:05]wFMCommunicate request_size=4 [00:34:05]MH_SAM_APDU [00:34:05]CAPDU: 80 13 03 00 [00:34:05]Write to MH i2c: E2 08 00 44 15 80 13 03 00 00 00 00 00 D8 [00:34:05]Write i2c OK [00:34:05]MH_I2C_Read... [00:34:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:34:05]Read from MH i2c: E2 [00:34:05]MH_I2C_Read... [00:34:05]Read from MH i2c: E2 FD 00 [00:34:05]MH_I2C_Read... [00:34:06]Read from MH i2c: E2 FD 00 44 15 00 C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 39 [00:34:06]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 [00:34:06]wFMCommunicate OK [00:34:06]wFMCommunicate request_size=4 [00:34:06]MH_SAM_APDU [00:34:06]CAPDU: 80 17 00 00 [00:34:06]Write to MH i2c: E2 08 00 45 15 80 17 00 00 00 00 00 00 DA [00:34:06]Write i2c OK [00:34:06]MH_I2C_Read... [00:34:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:06]Read from MH i2c: E2 [00:34:06]MH_I2C_Read... [00:34:06]Read from MH i2c: E2 FD 00 [00:34:06]MH_I2C_Read... [00:34:06]Read from MH i2c: E2 FD 00 45 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 30 [00:34:06]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:34:06]wFMCommunicate OK [00:34:06]wFMCommunicate request_size=4 [00:34:06]MH_SAM_APDU [00:34:06]CAPDU: 80 17 00 00 [00:34:06]Write to MH i2c: E2 08 00 46 15 80 17 00 00 00 00 00 00 DB [00:34:06]Write i2c OK [00:34:06]MH_I2C_Read... [00:34:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:06]Read from MH i2c: E2 [00:34:06]MH_I2C_Read... [00:34:06]Read from MH i2c: E2 FD 00 [00:34:06]MH_I2C_Read... [00:34:06]Read from MH i2c: E2 FD 00 46 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 ED [00:34:06]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:34:06]wFMCommunicate OK [00:34:06]wFMCommunicate request_size=4 [00:34:06]MH_SAM_APDU [00:34:06]CAPDU: 80 17 00 00 [00:34:06]Write to MH i2c: E2 08 00 47 15 80 17 00 00 00 00 00 00 DC [00:34:06]Write i2c OK [00:34:06]MH_I2C_Read... [00:34:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:06]Read from MH i2c: E2 [00:34:06]MH_I2C_Read... [00:34:06]Read from MH i2c: E2 FD 00 [00:34:06]MH_I2C_Read... [00:34:06]Read from MH i2c: E2 FD 00 47 15 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 68 [00:34:06]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:34:06]wFMCommunicate OK [00:34:06]wFMCommunicate request_size=4 [00:34:06]MH_SAM_APDU [00:34:06]CAPDU: 80 17 00 00 [00:34:06]Write to MH i2c: E2 08 00 48 15 80 17 00 00 00 00 00 00 DD [00:34:06]Write i2c OK [00:34:06]MH_I2C_Read... [00:34:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:34:07]Read from MH i2c: E2 [00:34:07]MH_I2C_Read... [00:34:07]Read from MH i2c: E2 E2 00 [00:34:07]MH_I2C_Read... [00:34:07]Read from MH i2c: E2 E2 00 48 15 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BB [00:34:07]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:34:07]wFMCommunicate OK [00:34:07]SAM_PROTO_GetFMData done [00:34:07]requested_item fm.sale_refund.total is exist - process it [00:34:07]requested_item fm.buy.total is exist - process it [00:34:07]requested_item shift.sale.total is exist - process it [00:34:07]SAM_PROTO_GetShiftData [00:34:07]wFMCommunicate request_size=4 [00:34:07]MH_SAM_APDU [00:34:07]CAPDU: 80 13 02 00 [00:34:07]Write to MH i2c: E2 08 00 49 15 80 13 02 00 00 00 00 00 DC [00:34:07]Write i2c OK [00:34:07]MH_I2C_Read... [00:34:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:34:07]Read from MH i2c: E2 [00:34:07]MH_I2C_Read... [00:34:07]Read from MH i2c: E2 FD 00 [00:34:07]MH_I2C_Read... [00:34:07]Read from MH i2c: E2 FD 00 49 15 00 B9 04 AA 04 B5 04 6E 04 04 00 1C 01 00 00 69 04 9C 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 83 [00:34:07]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 1C 01 00 00 69 04 9C 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:34:07]wFMCommunicate OK [00:34:07]wFMCommunicate request_size=4 [00:34:07]MH_SAM_APDU [00:34:07]CAPDU: 80 17 00 00 [00:34:07]Write to MH i2c: E2 08 00 4A 15 80 17 00 00 00 00 00 00 DF [00:34:07]Write i2c OK [00:34:07]MH_I2C_Read... [00:34:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:07]Read from MH i2c: E2 [00:34:07]MH_I2C_Read... [00:34:07]Read from MH i2c: E2 FD 00 [00:34:07]MH_I2C_Read... [00:34:07]Read from MH i2c: E2 FD 00 4A 15 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 07 [00:34:07]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:34:07]wFMCommunicate OK [00:34:07]wFMCommunicate request_size=4 [00:34:07]MH_SAM_APDU [00:34:07]CAPDU: 80 17 00 00 [00:34:07]Write to MH i2c: E2 08 00 4B 15 80 17 00 00 00 00 00 00 E0 [00:34:07]Write i2c OK [00:34:07]MH_I2C_Read... [00:34:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:08]Read from MH i2c: E2 [00:34:08]MH_I2C_Read... [00:34:08]Read from MH i2c: E2 FD 00 [00:34:08]MH_I2C_Read... [00:34:08]Read from MH i2c: E2 FD 00 4B 15 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 08 [00:34:08]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:34:08]wFMCommunicate OK [00:34:08]wFMCommunicate request_size=4 [00:34:08]MH_SAM_APDU [00:34:08]CAPDU: 80 17 00 00 [00:34:08]Write to MH i2c: E2 08 00 4C 15 80 17 00 00 00 00 00 00 E1 [00:34:08]Write i2c OK [00:34:08]MH_I2C_Read... [00:34:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:08]Read from MH i2c: E2 [00:34:08]MH_I2C_Read... [00:34:08]Read from MH i2c: E2 FD 00 [00:34:08]MH_I2C_Read... [00:34:08]Read from MH i2c: E2 FD 00 4C 15 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 59 [00:34:08]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:34:08]wFMCommunicate OK [00:34:08]wFMCommunicate request_size=4 [00:34:08]MH_SAM_APDU [00:34:08]CAPDU: 80 17 00 00 [00:34:08]Write to MH i2c: E2 08 00 4D 15 80 17 00 00 00 00 00 00 E2 [00:34:08]Write i2c OK [00:34:08]MH_I2C_Read... [00:34:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:34:08]Read from MH i2c: E2 [00:34:08]MH_I2C_Read... [00:34:08]Read from MH i2c: E2 D6 00 [00:34:08]MH_I2C_Read... [00:34:08]Read from MH i2c: E2 D6 00 4D 15 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C4 [00:34:08]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:34:08]wFMCommunicate OK [00:34:08]SAM_PROTO_GetShiftData done [00:34:08]requested_item shift.sale.total_cash is exist - process it [00:34:08]requested_item shift.sale_refund.total is exist - process it [00:34:08]requested_item shift.sale_refund.total_cash is exist - process it [00:34:08]requested_item shift.buy.total is exist - process it [00:34:08]requested_item shift.buy.total_cash is exist - process it [00:34:08]produce_requested_data done [00:34:08]produce_requested_data return {"fm.sale.total":64740559.58,"fm.sale_refund.total":2651943.00,"fm.buy.total":0.00,"shift.sale.total":162165.81,"shift.sale.total_cash":113849.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:34:08]process_action_free get_value [00:34:08]json_value_free [00:34:08]json_value_free done [00:34:08]process_json_proto returns [00:34:08]Send response to host [00:34:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64740559.58,"fm.sale_refund.total":2651943.00,"fm.buy.total":0.00,"shift.sale.total":162165.81,"shift.sale.total_cash":113849.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:34:08]free response buf [00:34:08]execute_script done [00:34:08]execute_script returns [00:34:08]free content buf [00:34:08]Sock 9.Close socket [00:34:08]Sock 9.Thread stoped [00:34:08]accept exits with 8 [00:34:08]New connection [00:34:08]New thread 3067010404 created [00:34:08]Thread 3066867044 joined [00:34:08]Waiting for new connection... [00:34:08] Sock 8.Parse request [00:34:08]Sock 8.Check first char [00:34:08]Sock 8.First char is OK [00:34:08]request: POST /json_proto HTTP/1.0 [00:34:08]Method: POST [00:34:08]URL: /json_proto [00:34:08]Method is POST - this is cgi request [00:34:08]url: /json_proto [00:34:08]query_string will be loaded in cgi processing [00:34:08]execute_cgi json_proto POST (null) [00:34:08]execute_cgi path=json_proto method=POST [00:34:08]POST find Content-Length [00:34:08]Host: 172.17.41.136:8080 [00:34:08]Content-Length: 331 [00:34:08]Content-Type: application/json [00:34:08] [00:34:08]POST finish read [00:34:08]Found Content-Length = 331 [00:34:08]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:34:08]execute_script... [00:34:08]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:34:08]POST & json_proto [00:34:08]process_json_proto [00:34:08]json parsed OK: [00:34:08]protocol is kg_v1.0 [00:34:08]action value=get_value [00:34:08]process_action get_value [00:34:08]cmd_get_value [00:34:08]process_action get_value done [00:34:08]requested_data is exist [00:34:08]produce_requested_data [00:34:08]requested_item fm.sale.total is exist - process it [00:34:08]SAM_PROTO_GetFMData [00:34:08]wFMCommunicate request_size=4 [00:34:08]MH_SAM_APDU [00:34:08]CAPDU: 80 13 03 00 [00:34:08]Write to MH i2c: E2 08 00 4E 15 80 13 03 00 00 00 00 00 E2 [00:34:08]Write i2c OK [00:34:08]MH_I2C_Read... [00:34:08]OFD Sender: No OFD packet to send [00:34:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:34:09]Read from MH i2c: E2 [00:34:09]MH_I2C_Read... [00:34:09]Read from MH i2c: E2 FD 00 [00:34:09]MH_I2C_Read... [00:34:09]Read from MH i2c: E2 FD 00 4E 15 00 C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 43 [00:34:09]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 [00:34:09]wFMCommunicate OK [00:34:09]wFMCommunicate request_size=4 [00:34:09]MH_SAM_APDU [00:34:09]CAPDU: 80 17 00 00 [00:34:09]Write to MH i2c: E2 08 00 4F 15 80 17 00 00 00 00 00 00 E4 [00:34:09]Write i2c OK [00:34:09]MH_I2C_Read... [00:34:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:09]Read from MH i2c: E2 [00:34:09]MH_I2C_Read... [00:34:09]Read from MH i2c: E2 FD 00 [00:34:09]MH_I2C_Read... [00:34:09]Read from MH i2c: E2 FD 00 4F 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3A [00:34:09]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:34:09]wFMCommunicate OK [00:34:09]wFMCommunicate request_size=4 [00:34:09]MH_SAM_APDU [00:34:09]CAPDU: 80 17 00 00 [00:34:09]Write to MH i2c: E2 08 00 50 15 80 17 00 00 00 00 00 00 E5 [00:34:09]Write i2c OK [00:34:09]MH_I2C_Read... [00:34:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:09]Read from MH i2c: E2 [00:34:09]MH_I2C_Read... [00:34:09]Read from MH i2c: E2 FD 00 [00:34:09]MH_I2C_Read... [00:34:09]Read from MH i2c: E2 FD 00 50 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F7 [00:34:10]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:34:10]wFMCommunicate OK [00:34:10]wFMCommunicate request_size=4 [00:34:10]MH_SAM_APDU [00:34:10]CAPDU: 80 17 00 00 [00:34:10]Write to MH i2c: E2 08 00 51 15 80 17 00 00 00 00 00 00 E6 [00:34:10]Write i2c OK [00:34:10]MH_I2C_Read... [00:34:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:10]Read from MH i2c: E2 [00:34:10]MH_I2C_Read... [00:34:10]Read from MH i2c: E2 FD 00 [00:34:10]MH_I2C_Read... [00:34:10]Read from MH i2c: E2 FD 00 51 15 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 72 [00:34:10]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:34:10]wFMCommunicate OK [00:34:10]wFMCommunicate request_size=4 [00:34:10]MH_SAM_APDU [00:34:10]CAPDU: 80 17 00 00 [00:34:10]Write to MH i2c: E2 08 00 52 15 80 17 00 00 00 00 00 00 E7 [00:34:10]Write i2c OK [00:34:10]MH_I2C_Read... [00:34:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:34:10]Read from MH i2c: E2 [00:34:10]MH_I2C_Read... [00:34:10]Read from MH i2c: E2 E2 00 [00:34:10]MH_I2C_Read... [00:34:10]Read from MH i2c: E2 E2 00 52 15 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C5 [00:34:10]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:34:10]wFMCommunicate OK [00:34:10]SAM_PROTO_GetFMData done [00:34:10]requested_item fm.sale_refund.total is exist - process it [00:34:10]requested_item fm.buy.total is exist - process it [00:34:10]requested_item shift.sale.total is exist - process it [00:34:10]SAM_PROTO_GetShiftData [00:34:10]wFMCommunicate request_size=4 [00:34:10]MH_SAM_APDU [00:34:10]CAPDU: 80 13 02 00 [00:34:10]Write to MH i2c: E2 08 00 53 15 80 13 02 00 00 00 00 00 E6 [00:34:10]Write i2c OK [00:34:10]MH_I2C_Read... [00:34:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:34:11]Read from MH i2c: E2 [00:34:11]MH_I2C_Read... [00:34:11]Read from MH i2c: E2 FD 00 [00:34:11]MH_I2C_Read... [00:34:11]Read from MH i2c: E2 FD 00 53 15 00 B9 04 AA 04 B5 04 6E 04 04 00 1C 01 00 00 69 04 9C 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 8D [00:34:11]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 1C 01 00 00 69 04 9C 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:34:11]wFMCommunicate OK [00:34:11]wFMCommunicate request_size=4 [00:34:11]MH_SAM_APDU [00:34:11]CAPDU: 80 17 00 00 [00:34:11]Write to MH i2c: E2 08 00 54 15 80 17 00 00 00 00 00 00 E9 [00:34:11]Write i2c OK [00:34:11]MH_I2C_Read... [00:34:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:11]Read from MH i2c: E2 [00:34:11]MH_I2C_Read... [00:34:11]Read from MH i2c: E2 FD 00 [00:34:11]MH_I2C_Read... [00:34:11]Read from MH i2c: E2 FD 00 54 15 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 11 [00:34:11]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:34:11]wFMCommunicate OK [00:34:11]wFMCommunicate request_size=4 [00:34:11]MH_SAM_APDU [00:34:11]CAPDU: 80 17 00 00 [00:34:11]Write to MH i2c: E2 08 00 55 15 80 17 00 00 00 00 00 00 EA [00:34:11]Write i2c OK [00:34:11]MH_I2C_Read... [00:34:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:12]Read from MH i2c: E2 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 FD 00 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 FD 00 55 15 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 12 [00:34:12]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:34:12]wFMCommunicate OK [00:34:12]wFMCommunicate request_size=4 [00:34:12]MH_SAM_APDU [00:34:12]CAPDU: 80 17 00 00 [00:34:12]Write to MH i2c: E2 08 00 56 15 80 17 00 00 00 00 00 00 EB [00:34:12]Write i2c OK [00:34:12]MH_I2C_Read... [00:34:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:12]Read from MH i2c: E2 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 FD 00 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 FD 00 56 15 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 63 [00:34:12]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:34:12]wFMCommunicate OK [00:34:12]wFMCommunicate request_size=4 [00:34:12]MH_SAM_APDU [00:34:12]CAPDU: 80 17 00 00 [00:34:12]Write to MH i2c: E2 08 00 57 15 80 17 00 00 00 00 00 00 EC [00:34:12]Write i2c OK [00:34:12]MH_I2C_Read... [00:34:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:34:12]Read from MH i2c: E2 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 D6 00 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: E2 D6 00 57 15 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CE [00:34:12]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:34:13]wFMCommunicate OK [00:34:13]SAM_PROTO_GetShiftData done [00:34:13]requested_item shift.sale.total_cash is exist - process it [00:34:13]requested_item shift.sale_refund.total is exist - process it [00:34:13]requested_item shift.sale_refund.total_cash is exist - process it [00:34:13]requested_item shift.buy.total is exist - process it [00:34:13]requested_item shift.buy.total_cash is exist - process it [00:34:13]produce_requested_data done [00:34:13]produce_requested_data return {"fm.sale.total":64740559.58,"fm.sale_refund.total":2651943.00,"fm.buy.total":0.00,"shift.sale.total":162165.81,"shift.sale.total_cash":113849.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:34:13]process_action_free get_value [00:34:13]json_value_free [00:34:13]json_value_free done [00:34:13]process_json_proto returns [00:34:13]Send response to host [00:34:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64740559.58,"fm.sale_refund.total":2651943.00,"fm.buy.total":0.00,"shift.sale.total":162165.81,"shift.sale.total_cash":113849.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:34:13]free response buf [00:34:13]execute_script done [00:34:13]execute_script returns [00:34:13]free content buf [00:34:13]Sock 8.Close socket [00:34:13]Sock 8.Thread stoped [00:34:13]accept exits with 9 [00:34:13]New connection [00:34:13]New thread 3066867044 created [00:34:13]Thread 3067010404 joined [00:34:13]Waiting for new connection... [00:34:13] Sock 9.Parse request [00:34:13]Sock 9.Check first char [00:34:13]Sock 9.First char is OK [00:34:13]request: POST /json_proto HTTP/1.0 [00:34:13]Method: POST [00:34:13]URL: /json_proto [00:34:13]Method is POST - this is cgi request [00:34:13]url: /json_proto [00:34:13]query_string will be loaded in cgi processing [00:34:13]execute_cgi json_proto POST (null) [00:34:13]execute_cgi path=json_proto method=POST [00:34:13]POST find Content-Length [00:34:13]Host: 172.17.41.136:8080 [00:34:13]Content-Length: 288 [00:34:13]Content-Type: application/json [00:34:13] [00:34:13]POST finish read [00:34:13]Found Content-Length = 288 [00:34:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0443\u043B\u0442\u0430\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:13]execute_script... [00:34:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0443\u043B\u0442\u0430\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:13]POST & json_proto [00:34:13]process_json_proto [00:34:13]json parsed OK: [00:34:13]protocol is kg_v1.0 [00:34:13]action value=x_report [00:34:13]process_action x_report [00:34:13]cmd_x_report [00:34:13]MH_GetDate [00:34:13]Write to MH i2c: F0 00 00 58 15 5C [00:34:13]Write i2c OK [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: F0 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: F0 09 00 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: F0 09 00 58 15 00 07 09 F2 66 1B D0 5A 64 76 [00:34:13]GetLastDocTimeStamp 1727137055 [00:34:13]current date 1727138055 [00:34:13]FM_GetShiftState [00:34:13]SAM_PROTO_GetShiftState [00:34:13]wFMCommunicate request_size=4 [00:34:13]MH_SAM_APDU [00:34:13]CAPDU: 80 13 01 00 [00:34:13]Write to MH i2c: E2 08 00 59 15 80 13 01 00 00 00 00 00 EB [00:34:13]Write i2c OK [00:34:13]MH_I2C_Read... [00:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:13]Read from MH i2c: E2 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: E2 0E 00 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: E2 0E 00 59 15 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 2C [00:34:13]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [00:34:13]wFMCommunicate OK [00:34:13]SAM_PROTO_GetShiftState done [00:34:13]FM_GetShiftState done [00:34:13]KKMCreateXReportDocument [00:34:13]Load OK [00:34:13]Malloc new data [00:34:13]MH_GetDate [00:34:13]Write to MH i2c: F0 00 00 5A 15 5E [00:34:13]Write i2c OK [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: F0 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: F0 09 00 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: F0 09 00 5A 15 00 07 09 F2 66 1B D0 5A 64 78 [00:34:13]Malloc new data [00:34:13]Malloc new data [00:34:13]wFMCommunicate request_size=4 [00:34:13]MH_SAM_APDU [00:34:13]CAPDU: 80 11 00 00 [00:34:13]Write to MH i2c: E2 08 00 5B 15 80 11 00 00 00 00 00 00 EA [00:34:13]Write i2c OK [00:34:13]MH_I2C_Read... [00:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:13]Read from MH i2c: E2 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: E2 17 00 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: E2 17 00 5B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 38 [00:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:34:13]wFMCommunicate OK [00:34:13]SAM_PROTO_GetFieldsCounters [00:34:13]wFMCommunicate request_size=4 [00:34:13]MH_SAM_APDU [00:34:13]CAPDU: 80 13 00 00 [00:34:13]Write to MH i2c: E2 08 00 5C 15 80 13 00 00 00 00 00 00 ED [00:34:13]Write i2c OK [00:34:13]MH_I2C_Read... [00:34:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:13]Read from MH i2c: E2 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: E2 62 00 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: E2 62 00 5C 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 59 C4 01 00 0E 04 04 00 D8 01 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 54 [00: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 59 C4 01 00 0E 04 04 00 D8 01 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 [00:34:13]wFMCommunicate OK [00:34:13]SAM_PROTO_GetFieldsCounters done [00:34:13]Malloc new data [00:34:13]Malloc new data [00:34:13]Malloc new data [00:34:13]KKMCreateXReportDocument OK [00:34:13]KKMSetXReportData OK [00:34:13]KKMPrepareXReportFMData [00:34:13]SAM_PROTO_GetShiftData [00:34:13]wFMCommunicate request_size=4 [00:34:13]MH_SAM_APDU [00:34:13]CAPDU: 80 13 02 00 [00:34:13]Write to MH i2c: E2 08 00 5D 15 80 13 02 00 00 00 00 00 F0 [00:34:13]Write i2c OK [00:34:13]MH_I2C_Read... [00:34:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:34:13]Read from MH i2c: E2 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: E2 FD 00 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: E2 FD 00 5D 15 00 B9 04 AA 04 B5 04 6E 04 04 00 1C 01 00 00 69 04 9C 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 97 [00:34:14]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 1C 01 00 00 69 04 9C 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 OFD Sender: No OFD packet to send [00:34:14]01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:34:14]wFMCommunicate OK [00:34:14]wFMCommunicate request_size=4 [00:34:14]MH_SAM_APDU [00:34:14]CAPDU: 80 17 00 00 [00:34:14]Write to MH i2c: E2 08 00 5E 15 80 17 00 00 00 00 00 00 F3 [00:34:14]Write i2c OK [00:34:14]MH_I2C_Read... [00:34:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:14]Read from MH i2c: E2 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: E2 FD 00 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: E2 FD 00 5E 15 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 1B [00:34:14]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:34:14]wFMCommunicate OK [00:34:14]wFMCommunicate request_size=4 [00:34:14]MH_SAM_APDU [00:34:14]CAPDU: 80 17 00 00 [00:34:14]Write to MH i2c: E2 08 00 5F 15 80 17 00 00 00 00 00 00 F4 [00:34:14]Write i2c OK [00:34:14]MH_I2C_Read... [00:34:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:15]Read from MH i2c: E2 [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: E2 FD 00 [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: E2 FD 00 5F 15 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 1C [00:34:15]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:34:15]wFMCommunicate OK [00:34:15]wFMCommunicate request_size=4 [00:34:15]MH_SAM_APDU [00:34:15]CAPDU: 80 17 00 00 [00:34:15]Write to MH i2c: E2 08 00 60 15 80 17 00 00 00 00 00 00 F5 [00:34:15]Write i2c OK [00:34:15]MH_I2C_Read... [00:34:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:15]Read from MH i2c: E2 [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: E2 FD 00 [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: E2 FD 00 60 15 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 6D [00:34:15]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:34:15]wFMCommunicate OK [00:34:15]wFMCommunicate request_size=4 [00:34:15]MH_SAM_APDU [00:34:15]CAPDU: 80 17 00 00 [00:34:15]Write to MH i2c: E2 08 00 61 15 80 17 00 00 00 00 00 00 F6 [00:34:15]Write i2c OK [00:34:15]MH_I2C_Read... [00:34:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:34:16]Read from MH i2c: E2 [00:34:16]MH_I2C_Read... [00:34:16]Read from MH i2c: E2 D6 00 [00:34:16]MH_I2C_Read... [00:34:16]Read from MH i2c: E2 D6 00 61 15 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D8 [00:34:16]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:34:16]wFMCommunicate OK [00:34:16]SAM_PROTO_GetShiftData done [00:34:16]1194 (1205) - счетчики итогов смены [00:34:16] 1134 (4) - 284 - количество чеков со всеми признаками расчетов [00:34:16] 1129 (156) - счетчики операций «приход» [00:34:16] 1135 (4) - 283 - количество чеков по признаку расчетов [00:34:16] 1201 (3) - 162165.81 - общая итоговая сумма в чеках [00:34:16] 1136 (3) - 113849.00 - итоговая сумма в чеках наличными [00:34:16] 1138 (3) - 48316.81 - итоговая сумма в чеках безналичными [00:34:16] 1024 (123) - суммы налогов [00:34:16] 1006 (9) - суммы НДС [00:34:16] 1010 (1) - 0% - код ставки НДС [00:34:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:34:16] 1006 (12) - суммы НДС [00:34:16] 1010 (1) - 12% - код ставки НДС [00:34:16] 1011 (3) - 17222.83 - сумма НДС по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 0% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (12) - суммы НСП [00:34:16] 1014 (1) - 1% - код ставки НСП [00:34:16] 1015 (3) - 1434.85 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 2% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 3% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 5% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 0,50% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 1,50% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1130 (151) - счетчики операций «возврат прихода» [00:34:16] 1135 (4) - 1 - количество чеков по признаку расчетов [00:34:16] 1201 (3) - 3000.00 - общая итоговая сумма в чеках [00:34:16] 1136 (3) - 3000.00 - итоговая сумма в чеках наличными [00:34:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:34:16] 1024 (121) - суммы налогов [00:34:16] 1006 (9) - суммы НДС [00:34:16] 1010 (1) - 0% - код ставки НДС [00:34:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:34:16] 1006 (11) - суммы НДС [00:34:16] 1010 (1) - 12% - код ставки НДС [00:34:16] 1011 (2) - 318.65 - сумма НДС по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 0% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (11) - суммы НСП [00:34:16] 1014 (1) - 1% - код ставки НСП [00:34:16] 1015 (2) - 26.55 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 2% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 3% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 5% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 0,50% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 1,50% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1131 (141) - счетчики операций «расход» [00:34:16] 1135 (4) - 0 - количество чеков по признаку расчетов [00:34:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:34:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:34:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:34:16] 1024 (117) - суммы налогов [00:34:16] 1006 (9) - суммы НДС [00:34:16] 1010 (1) - 0% - код ставки НДС [00:34:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:34:16] 1006 (9) - суммы НДС [00:34:16] 1010 (1) - 12% - код ставки НДС [00:34:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 0% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 1% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 2% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 3% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 5% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 0,50% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 1,50% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1132 (141) - счетчики операций «возврат расхода» [00:34:16] 1135 (4) - 0 - количество чеков по признаку расчетов [00:34:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:34:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:34:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:34:16] 1024 (117) - суммы налогов [00:34:16] 1006 (9) - суммы НДС [00:34:16] 1010 (1) - 0% - код ставки НДС [00:34:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:34:16] 1006 (9) - суммы НДС [00:34:16] 1010 (1) - 12% - код ставки НДС [00:34:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 0% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 1% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 2% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 3% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 5% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 0,50% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1007 (9) - суммы НСП [00:34:16] 1014 (1) - 1,50% - код ставки НСП [00:34:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:34:16] 1133 (588) - - счетчики коррекции - не используются [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1194 (04AA) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1134 (046E) [00:34:16]Malloc new data [00:34:16]Processing tag 1129 (0469) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1135 (046F) [00:34:16]Malloc new data [00:34:16]Processing tag 1201 (04B1) [00:34:16]Malloc new data [00:34:16]Processing tag 1136 (0470) [00:34:16]Malloc new data [00:34:16]Processing tag 1138 (0472) [00:34:16]Malloc new data [00:34:16]Processing tag 1024 (0400) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1006 (03EE) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1010 (03F2) [00:34:16]Malloc new data [00:34:16]Processing tag 1011 (03F3) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1006 (03EE) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1010 (03F2) [00:34:16]Malloc new data [00:34:16]Processing tag 1011 (03F3) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]SetTLVBufToDocument err=0 [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1130 (046A) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1135 (046F) [00:34:16]Malloc new data [00:34:16]Processing tag 1201 (04B1) [00:34:16]Malloc new data [00:34:16]Processing tag 1136 (0470) [00:34:16]Malloc new data [00:34:16]Processing tag 1138 (0472) [00:34:16]Malloc new data [00:34:16]Processing tag 1024 (0400) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1006 (03EE) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1010 (03F2) [00:34:16]Malloc new data [00:34:16]Processing tag 1011 (03F3) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1006 (03EE) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1010 (03F2) [00:34:16]Malloc new data [00:34:16]Processing tag 1011 (03F3) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]SetTLVBufToDocument err=0 [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1131 (046B) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1135 (046F) [00:34:16]Malloc new data [00:34:16]Processing tag 1201 (04B1) [00:34:16]Malloc new data [00:34:16]Processing tag 1136 (0470) [00:34:16]Malloc new data [00:34:16]Processing tag 1138 (0472) [00:34:16]Malloc new data [00:34:16]Processing tag 1024 (0400) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1006 (03EE) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1010 (03F2) [00:34:16]Malloc new data [00:34:16]Processing tag 1011 (03F3) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1006 (03EE) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1010 (03F2) [00:34:16]Malloc new data [00:34:16]Processing tag 1011 (03F3) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:16]SetTLVBufToDocument err=0 [00:34:16]Processing tag 1007 (03EF) [00:34:16]Load OK [00:34:16]SetTLVBufToDocument [00:34:16]Processing tag 1014 (03F6) [00:34:16]Malloc new data [00:34:16]Processing tag 1015 (03F7) [00:34:16]Malloc new data [00:34:17]SetTLVBufToDocument err=0 [00:34:17]SetTLVBufToDocument err=0 [00:34:17]SetTLVBufToDocument err=0 [00:34:17]Processing tag 1132 (046C) [00:34:17]Load OK [00:34:17]SetTLVBufToDocument [00:34:17]Processing tag 1135 (046F) [00:34:17]Malloc new data [00:34:17]Processing tag 1201 (04B1) [00:34:17]Malloc new data [00:34:17]Processing tag 1136 (0470) [00:34:17]Malloc new data [00:34:17]Processing tag 1138 (0472) [00:34:17]Malloc new data [00:34:17]Processing tag 1024 (0400) [00:34:17]Load OK [00:34:17]SetTLVBufToDocument [00:34:17]Processing tag 1006 (03EE) [00:34:17]Load OK [00:34:17]SetTLVBufToDocument [00:34:17]Processing tag 1010 (03F2) [00:34:17]Malloc new data [00:34:17]Processing tag 1011 (03F3) [00:34:17]Malloc new data [00:34:17]SetTLVBufToDocument err=0 [00:34:17]Processing tag 1006 (03EE) [00:34:17]Load OK [00:34:17]SetTLVBufToDocument [00:34:17]Processing tag 1010 (03F2) [00:34:17]Malloc new data [00:34:17]Processing tag 1011 (03F3) [00:34:17]Malloc new data [00:34:17]SetTLVBufToDocument err=0 [00:34:17]Processing tag 1007 (03EF) [00:34:17]Load OK [00:34:17]SetTLVBufToDocument [00:34:17]Processing tag 1014 (03F6) [00:34:17]Malloc new data [00:34:17]Processing tag 1015 (03F7) [00:34:17]Malloc new data [00:34:17]SetTLVBufToDocument err=0 [00:34:17]Processing tag 1007 (03EF) [00:34:17]Load OK [00:34:17]SetTLVBufToDocument [00:34:17]Processing tag 1014 (03F6) [00:34:17]Malloc new data [00:34:17]Processing tag 1015 (03F7) [00:34:17]Malloc new data [00:34:17]SetTLVBufToDocument err=0 [00:34:17]Processing tag 1007 (03EF) [00:34:17]Load OK [00:34:17]SetTLVBufToDocument [00:34:17]Processing tag 1014 (03F6) [00:34:17]Malloc new data [00:34:17]Processing tag 1015 (03F7) [00:34:17]Malloc new data [00:34:17]SetTLVBufToDocument err=0 [00:34:17]Processing tag 1007 (03EF) [00:34:17]Load OK [00:34:17]SetTLVBufToDocument [00:34:17]Processing tag 1014 (03F6) [00:34:17]Malloc new data [00:34:17]Processing tag 1015 (03F7) [00:34:17]Malloc new data [00:34:17]SetTLVBufToDocument err=0 [00:34:17]Processing tag 1007 (03EF) [00:34:17]Load OK [00:34:17]SetTLVBufToDocument [00:34:17]Processing tag 1014 (03F6) [00:34:17]Malloc new data [00:34:17]Processing tag 1015 (03F7) [00:34:17]Malloc new data [00:34:17]SetTLVBufToDocument err=0 [00:34:17]Processing tag 1007 (03EF) [00:34:17]Load OK [00:34:17]SetTLVBufToDocument [00:34:17]Processing tag 1014 (03F6) [00:34:17]Malloc new data [00:34:17]Processing tag 1015 (03F7) [00:34:17]Malloc new data [00:34:17]SetTLVBufToDocument err=0 [00:34:17]Processing tag 1007 (03EF) [00:34:17]Load OK [00:34:17]SetTLVBufToDocument [00:34:17]Processing tag 1014 (03F6) [00:34:17]Malloc new data [00:34:17]Processing tag 1015 (03F7) [00:34:17]Malloc new data [00:34:17]SetTLVBufToDocument err=0 [00:34:17]SetTLVBufToDocument err=0 [00:34:17]SetTLVBufToDocument err=0 [00:34:17]Processing tag 1133 (046D) [00:34:17]Malloc new data [00:34:17]SetTLVBufToDocument err=0 [00:34:17]SetTLVBufToDocument err=0 [00:34:17]Malloc new data [00:34:17]SAM_PROTO_GetFMData [00:34:17]wFMCommunicate request_size=4 [00:34:17]MH_SAM_APDU [00:34:17]CAPDU: 80 13 03 00 [00:34:17]Write to MH i2c: E2 08 00 62 15 80 13 03 00 00 00 00 00 F6 [00:34:17]Write i2c OK [00:34:17]MH_I2C_Read... [00:34:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:34:17]Read from MH i2c: E2 [00:34:17]MH_I2C_Read... [00:34:17]Read from MH i2c: E2 FD 00 [00:34:17]MH_I2C_Read... [00:34:17]Read from MH i2c: E2 FD 00 62 15 00 C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 57 [00:34:17]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 [00:34:18]wFMCommunicate OK [00:34:18]wFMCommunicate request_size=4 [00:34:18]MH_SAM_APDU [00:34:18]CAPDU: 80 17 00 00 [00:34:18]Write to MH i2c: E2 08 00 63 15 80 17 00 00 00 00 00 00 F8 [00:34:18]Write i2c OK [00:34:18]MH_I2C_Read... [00:34:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:18]Read from MH i2c: E2 [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: E2 FD 00 [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: E2 FD 00 63 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [00:34:18]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:34:18]wFMCommunicate OK [00:34:18]wFMCommunicate request_size=4 [00:34:18]MH_SAM_APDU [00:34:18]CAPDU: 80 17 00 00 [00:34:18]Write to MH i2c: E2 08 00 64 15 80 17 00 00 00 00 00 00 F9 [00:34:18]Write i2c OK [00:34:18]MH_I2C_Read... [00:34:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:18]Read from MH i2c: E2 [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: E2 FD 00 [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: E2 FD 00 64 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0B [00:34:19]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:34:19]wFMCommunicate OK [00:34:19]wFMCommunicate request_size=4 [00:34:19]MH_SAM_APDU [00:34:19]CAPDU: 80 17 00 00 [00:34:19]Write to MH i2c: E2 08 00 65 15 80 17 00 00 00 00 00 00 FA [00:34:19]Write i2c OK [00:34:19]MH_I2C_Read... [00:34:19]OFD Sender: No OFD packet to send [00:34:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:19]Read from MH i2c: E2 [00:34:19]MH_I2C_Read... [00:34:19]Read from MH i2c: E2 FD 00 [00:34:19]MH_I2C_Read... [00:34:19]Read from MH i2c: E2 FD 00 65 15 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 86 [00:34:19]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:34:19]wFMCommunicate OK [00:34:19]wFMCommunicate request_size=4 [00:34:19]MH_SAM_APDU [00:34:19]CAPDU: 80 17 00 00 [00:34:19]Write to MH i2c: E2 08 00 66 15 80 17 00 00 00 00 00 00 FB [00:34:19]Write i2c OK [00:34:19]MH_I2C_Read... [00:34:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:34:19]Read from MH i2c: E2 [00:34:19]MH_I2C_Read... [00:34:19]Read from MH i2c: E2 E2 00 [00:34:19]MH_I2C_Read... [00:34:19]Read from MH i2c: E2 E2 00 66 15 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D9 [00:34:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:34:20]wFMCommunicate OK [00:34:20]SAM_PROTO_GetFMData done [00:34:20]FM_GetFMData:85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 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 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:34:21]oper:6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:34:21]total:16 41 E2 81 01 [00:34:21]Malloc new data [00:34:21]oper:6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 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 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:34:21]total:3C 8B CE 0F [00:34:21]Malloc new data [00:34:21]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:34:21]total: [00:34:21]Malloc new data [00:34:21]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:34:21]total: [00:34:21]Malloc new data [00:34:21]KKMPrepareXReportFMData err=0 [00:34:21]Х отчет ИНН: 02508201610067 Кассир: Султанбай уулу А. 24.09.2024 00:34 Смена: 266 РНМ: 0000000000091831 ЗНМ: 0300000120 СНО: Общий режим Всего чеков: 284 ИТОГИ ПРИХОД Чеков: 283 Общий итог: 162165.81 Итого наличными: 113849.00 Итого безнал.: 48316.81 НДС 0% : 0.00 НДС 12% : 17222.83 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1434.85 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 3000.00 Итого наличными: 3000.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 318.65 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 26.55 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 110849.00 НС Приход: 64740559.58 НС Возвр.Прихода: 2651943.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871830 [00:34:21]StoreToDocumentArchive [00:34:21]MH_GetDate [00:34:21]Write to MH i2c: F0 00 00 67 15 6B [00:34:21]Write i2c OK [00:34:21]MH_I2C_Read... [00:34:21]Read from MH i2c: F0 [00:34:21]MH_I2C_Read... [00:34:21]Read from MH i2c: F0 09 00 [00:34:21]MH_I2C_Read... [00:34:21]Read from MH i2c: F0 09 00 67 15 00 0F 09 F2 66 1B D0 5A 64 8D [00:34:21]shift 266 fd 1727138063 [00:34:21]Create dir for shift 0266 [00:34:21]save to /storage/0266/doc_1727138063 [00:34:21]save last doc name /storage/0266/doc_1727138063 to /storage/kkm_last_doc_name [00:34:21]save OK [00:34:21]Clear old archive folders... [00:34:21]NVStorageSaveData kkm_last_timestamp [00:34:21]File name is /storage/kkm_last_timestamp [00:34:21]Write 4 bytes [00:34:21]NVStorageSaveData done [00:34:21]ExternCall_PrintAddStr [00:34:21]wPrintStart [00:34:21]Write to MH i2c: 01 00 00 68 15 7D [00:34:21]Write i2c OK [00:34:21]MH_I2C_Read... [00:34:21]Read from MH i2c: 01 [00:34:21]MH_I2C_Read... [00:34:21]Read from MH i2c: 01 07 00 [00:34:21]MH_I2C_Read... [00:34:21]Read from MH i2c: 01 07 00 68 15 00 00 00 00 00 FF 0F 92 [00:34:21]RasterBufferAndPrint [00:34:21]line Х отчет [00:34:21]line ИНН: 02508201610067 [00:34:21]line Кассир: Султанбай уулу А. [00:34:21]line 24.09.2024 00:34 [00:34:21]line Смена: 266 [00:34:21]line РНМ: 0000000000091831 [00:34:21]line ЗНМ: 0300000120 [00:34:21]line СНО: Общий режим [00:34:21]line Всего чеков: 284 [00:34:21]line ИТОГИ ПРИХОД [00:34:21]line Чеков: 283 [00:34:21]line Общий итог: 162165.81 [00:34:21]line Итого наличными: 113849.00 [00:34:21]line Итого безнал.: 48316.81 [00:34:21]line НДС 0% : 0.00 [00:34:21]line НДС 12% : 17222.83 [00:34:21]line НСП 0% : 0.00 [00:34:21]line НСП 1,50% : 0.00 [00:34:21]line НСП 0,50% : 0.00 [00:34:21]line НСП 5% : 0.00 [00:34:21]line НСП 3% : 0.00 [00:34:21]line НСП 2% : 0.00 [00:34:21]line НСП 1% : 1434.85 [00:34:21]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:34:21]line Чеков: 1 [00:34:21]line Общий итог: 3000.00 [00:34:21]line Итого наличными: 3000.00 [00:34:21]line Итого безнал.: 0.00 [00:34:21]line НДС 0% : 0.00 [00:34:21]line НДС 12% : 318.65 [00:34:21]line НСП 0% : 0.00 [00:34:21]line НСП 1,50% : 0.00 [00:34:21]line НСП 0,50% : 0.00 [00:34:21]line НСП 5% : 0.00 [00:34:21]line НСП 3% : 0.00 [00:34:21]line НСП 2% : 0.00 [00:34:21]line НСП 1% : 26.55 [00:34:21]line ИТОГИ РАСХОД [00:34:21]line Чеков: 0 [00:34:21]line Общий итог: 0.00 [00:34:21]line Итого наличными: 0.00 [00:34:21]line Итого безнал.: 0.00 [00:34:21]line НДС 0% : 0.00 [00:34:21]line НДС 12% : 0.00 [00:34:21]line НСП 0% : 0.00 [00:34:21]line НСП 1,50% : 0.00 [00:34:21]line НСП 0,50% : 0.00 [00:34:21]line НСП 5% : 0.00 [00:34:21]line НСП 3% : 0.00 [00:34:21]line НСП 2% : 0.00 [00:34:21]line НСП 1% : 0.00 [00:34:21]line ИТОГИ ВОЗВРАТ РАСХОДА [00:34:21]line Чеков: 0 [00:34:21]line Общий итог: 0.00 [00:34:21]line Итого наличными: 0.00 [00:34:21]line Итого безнал.: 0.00 [00:34:21]line НДС 0% : 0.00 [00:34:21]line НДС 12% : 0.00 [00:34:21]line НСП 0% : 0.00 [00:34:21]line НСП 1,50% : 0.00 [00:34:21]line НСП 0,50% : 0.00 [00:34:21]line НСП 5% : 0.00 [00:34:21]line НСП 3% : 0.00 [00:34:21]line НСП 2% : 0.00 [00:34:21]line НСП 1% : 0.00 [00:34:21]line Сумма внесений: 0.00 [00:34:21]line Сумма выплат: 0.00 [00:34:21]line Нал. в кассе: 110849.00 [00:34:21]line НС Приход: 64740559.58 [00:34:21]line НС Возвр.Прихода: 2651943.00 [00:34:21]line НС Расход: 0.00 [00:34:21]line НС Возвр.Расхода: 0.00 [00:34:21]line ФМ: 0000000000871830 [00:34:21]written 0, free lines is 4095 [00:34:22]Write to MH i2c: 01 00 00 B3 15 C8 [00:34:22]Write i2c OK [00:34:22]MH_I2C_Read... [00:34:22]Read from MH i2c: 01 [00:34:22]MH_I2C_Read... [00:34:22]Read from MH i2c: 01 07 00 [00:34:22]MH_I2C_Read... [00:34:22]Read from MH i2c: 01 07 00 B3 15 00 00 00 00 00 65 09 3D [00:34:22]RasterBufferAndPrint [00:34:22]line [00:34:22]line [00:34:22]line [00:34:22]line [00:34:22]line [00:34:22]written 0, free lines is 2431 [00:34:22]MH_Cut [00:34:22]Write to MH i2c: D1 01 00 BA 15 01 A1 [00:34:22]Write i2c OK [00:34:22]MH_I2C_Read... [00:34:22]Read from MH i2c: D1 [00:34:22]MH_I2C_Read... [00:34:22]Read from MH i2c: D1 01 00 [00:34:22]MH_I2C_Read... [00:34:22]Read from MH i2c: D1 01 00 BA 15 00 A0 [00:34:22]Write to MH i2c: 01 00 00 BB 15 D0 [00:34:22]Write i2c OK [00:34:22]MH_I2C_Read... [00:34:24]OFD Sender: No OFD packet to send [00:34:24]*** Cut start [00:34:24]*** Partial cut [00:34:24]*** CUTSNS_PIN = 1 [00:34:24]*** CUTSNS_PIN = 0 [00:34:24]*** Brake cut motor [00:34:24]Read from MH i2c: 01 [00:34:24]MH_I2C_Read... [00:34:24]*** Stop cut motor [00:34:24]*** Cut end [00:34:24]Read from MH i2c: 01 07 00 [00:34:24]MH_I2C_Read... [00:34:24]Read from MH i2c: 01 07 00 BB 15 00 00 00 00 00 FF 0F E5 [00:34:24]process_action x_report done [00:34:24]requested_data is exist [00:34:24]produce_requested_data [00:34:24]requested_item fd.num is exist - process it [00:34:24]SAM_PROTO_GetFieldsCounters [00:34:24]wFMCommunicate request_size=4 [00:34:24]MH_SAM_APDU [00:34:24]CAPDU: 80 13 00 00 [00:34:24]Write to MH i2c: E2 08 00 BC 15 80 13 00 00 00 00 00 00 4D [00:34:25]Write i2c OK [00:34:25]MH_I2C_Read... [00:34:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:25]Read from MH i2c: E2 [00:34:25]MH_I2C_Read... [00:34:25]Read from MH i2c: E2 62 00 [00:34:25]MH_I2C_Read... [00:34:25]Read from MH i2c: E2 62 00 BC 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 59 C4 01 00 0E 04 04 00 D8 01 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 B4 [00:34:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 59 C4 01 00 0E 04 04 00 D8 01 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 [00:34:25]wFMCommunicate OK [00:34:25]SAM_PROTO_GetFieldsCounters done [00:34:25]requested_item shift.num is exist - process it [00:34:25]requested_item shift.opened is exist - process it [00:34:25]req_shift_opened [00:34:25]FM_GetShiftState [00:34:25]SAM_PROTO_GetShiftState [00:34:25]wFMCommunicate request_size=4 [00:34:25]MH_SAM_APDU [00:34:25]CAPDU: 80 13 01 00 [00:34:25]Write to MH i2c: E2 08 00 BD 15 80 13 01 00 00 00 00 00 4F [00:34:25]Write i2c OK [00:34:25]MH_I2C_Read... [00:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:25]Read from MH i2c: E2 [00:34:25]MH_I2C_Read... [00:34:25]Read from MH i2c: E2 0E 00 [00:34:25]MH_I2C_Read... [00:34:25]Read from MH i2c: E2 0E 00 BD 15 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 90 [00:34:25]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [00:34:25]wFMCommunicate OK [00:34:25]SAM_PROTO_GetShiftState done [00:34:25]FM_GetShiftState done [00:34:25]req_shift_opened done [00:34:25]requested_item shift.open_date is exist - process it [00:34:25]req_shift_open_date [00:34:25]req_shift_open_date done [00:34:25]produce_requested_data done [00:34:25]produce_requested_data return {"fd.num":115801,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [00:34:25]process_action_free x_report [00:34:25]json_value_free [00:34:25]json_value_free done [00:34:25]process_json_proto returns [00:34:25]Send response to host [00:34:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":115801,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [00:34:25]free response buf [00:34:25]execute_script done [00:34:25]execute_script returns [00:34:25]free content buf [00:34:25]Sock 9.Close socket [00:34:25]Sock 9.Thread stoped [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:06]accept exits with 8 [00:35:06]New connection [00:35:06]New thread 3067010404 created [00:35:06]Thread 3066867044 joined [00:35:06]Waiting for new connection... [00:35:06] Sock 8.Parse request [00:35:06]Sock 8.Check first char [00:35:06]Sock 8.First char is OK [00:35:06]request: POST /json_proto HTTP/1.0 [00:35:06]Method: POST [00:35:06]URL: /json_proto [00:35:06]Method is POST - this is cgi request [00:35:06]url: /json_proto [00:35:06]query_string will be loaded in cgi processing [00:35:06]execute_cgi json_proto POST (null) [00:35:06]execute_cgi path=json_proto method=POST [00:35:06]POST find Content-Length [00:35:06]Host: 172.17.41.136:8080 [00:35:06]Content-Length: 215 [00:35:06]Content-Type: application/json [00:35:06] [00:35:06]POST finish read [00:35:06]Found Content-Length = 215 [00:35:06]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:35:06]execute_script... [00:35:06]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:35:06]POST & json_proto [00:35:06]process_json_proto [00:35:06]json parsed OK: [00:35:06]protocol is kg_v1.0 [00:35:06]action value=get_value [00:35:06]process_action get_value [00:35:06]cmd_get_value [00:35:06]process_action get_value done [00:35:06]requested_data is exist [00:35:06]produce_requested_data [00:35:06]requested_item kkm.sn is exist - process it [00:35:06]requested_item kkm.ver is exist - process it [00:35:06]requested_item fm.sn is exist - process it [00:35:06]wFMCommunicate request_size=4 [00:35:06]MH_SAM_APDU [00:35:06]CAPDU: 80 11 00 00 [00:35:06]Write to MH i2c: E2 08 00 BE 15 80 11 00 00 00 00 00 00 4D [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:06]Read from MH i2c: E2 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 17 00 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 17 00 BE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9B [00:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:35:06]wFMCommunicate OK [00:35:06]requested_item fd.num is exist - process it [00:35:06]SAM_PROTO_GetFieldsCounters [00:35:06]wFMCommunicate request_size=4 [00:35:06]MH_SAM_APDU [00:35:06]CAPDU: 80 13 00 00 [00:35:06]Write to MH i2c: E2 08 00 BF 15 80 13 00 00 00 00 00 00 50 [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:06]Read from MH i2c: E2 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 62 00 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 62 00 BF 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 59 C4 01 00 0E 04 04 00 D8 01 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 B7 [00:35:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 59 C4 01 00 0E 04 04 00 D8 01 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 [00:35:06]wFMCommunicate OK [00:35:06]SAM_PROTO_GetFieldsCounters done [00:35:06]requested_item shift.num is exist - process it [00:35:06]requested_item shift.opened is exist - process it [00:35:06]req_shift_opened [00:35:06]FM_GetShiftState [00:35:06]SAM_PROTO_GetShiftState [00:35:06]wFMCommunicate request_size=4 [00:35:06]MH_SAM_APDU [00:35:06]CAPDU: 80 13 01 00 [00:35:06]Write to MH i2c: E2 08 00 C0 15 80 13 01 00 00 00 00 00 52 [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:06]Read from MH i2c: E2 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 0E 00 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 0E 00 C0 15 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 93 [00:35:06]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [00:35:06]wFMCommunicate OK [00:35:06]SAM_PROTO_GetShiftState done [00:35:06]FM_GetShiftState done [00:35:06]req_shift_opened done [00:35:06]requested_item shift.open_date is exist - process it [00:35:06]req_shift_open_date [00:35:06]req_shift_open_date done [00:35:06]produce_requested_data done [00:35:06]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115801,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070} [00:35:06]process_action_free get_value [00:35:06]json_value_free [00:35:06]json_value_free done [00:35:06]process_json_proto returns [00:35:06]Send response to host [00:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115801,"shift.num":472,"shift.opened":1,"shift.open_date":1727052070}}} [00:35:06]free response buf [00:35:06]execute_script done [00:35:06]execute_script returns [00:35:06]free content buf [00:35:06]Sock 8.Close socket [00:35:06]Sock 8.Thread stoped [00:35:06]accept exits with 9 [00:35:06]New connection [00:35:06]New thread 3066867044 created [00:35:06]Thread 3067010404 joined [00:35:06]Waiting for new connection... [00:35:06] Sock 9.Parse request [00:35:06]Sock 9.Check first char [00:35:06]Sock 9.First char is OK [00:35:06]request: POST /json_proto HTTP/1.0 [00:35:06]Method: POST [00:35:06]URL: /json_proto [00:35:06]Method is POST - this is cgi request [00:35:06]url: /json_proto [00:35:06]query_string will be loaded in cgi processing [00:35:06]execute_cgi json_proto POST (null) [00:35:06]execute_cgi path=json_proto method=POST [00:35:06]POST find Content-Length [00:35:06]Host: 172.17.41.136:8080 [00:35:06]Content-Length: 331 [00:35:06]Content-Type: application/json [00:35:06] [00:35:06]POST finish read [00:35:06]Found Content-Length = 331 [00:35:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:06]execute_script... [00:35:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:06]POST & json_proto [00:35:06]process_json_proto [00:35:06]json parsed OK: [00:35:06]protocol is kg_v1.0 [00:35:06]action value=get_value [00:35:06]process_action get_value [00:35:06]cmd_get_value [00:35:06]process_action get_value done [00:35:06]requested_data is exist [00:35:06]produce_requested_data [00:35:06]requested_item fm.sale.total is exist - process it [00:35:06]SAM_PROTO_GetFMData [00:35:06]wFMCommunicate request_size=4 [00:35:06]MH_SAM_APDU [00:35:06]CAPDU: 80 13 03 00 [00:35:06]Write to MH i2c: E2 08 00 C1 15 80 13 03 00 00 00 00 00 55 [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:07]Read from MH i2c: E2 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 FD 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 FD 00 C1 15 00 C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 B6 [00:35:07]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 [00:35:07]wFMCommunicate OK [00:35:07]wFMCommunicate request_size=4 [00:35:07]MH_SAM_APDU [00:35:07]CAPDU: 80 17 00 00 [00:35:07]Write to MH i2c: E2 08 00 C2 15 80 17 00 00 00 00 00 00 57 [00:35:07]Write i2c OK [00:35:07]MH_I2C_Read... [00:35:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:07]Read from MH i2c: E2 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 FD 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 FD 00 C2 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AD [00:35:07]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:07]wFMCommunicate OK [00:35:07]wFMCommunicate request_size=4 [00:35:07]MH_SAM_APDU [00:35:07]CAPDU: 80 17 00 00 [00:35:07]Write to MH i2c: E2 08 00 C3 15 80 17 00 00 00 00 00 00 58 [00:35:07]Write i2c OK [00:35:07]MH_I2C_Read... [00:35:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:07]Read from MH i2c: E2 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 FD 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 FD 00 C3 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6A [00:35:07]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:07]wFMCommunicate OK [00:35:07]wFMCommunicate request_size=4 [00:35:07]MH_SAM_APDU [00:35:07]CAPDU: 80 17 00 00 [00:35:07]Write to MH i2c: E2 08 00 C4 15 80 17 00 00 00 00 00 00 59 [00:35:07]Write i2c OK [00:35:07]MH_I2C_Read... [00:35:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:08]Read from MH i2c: E2 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 FD 00 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 FD 00 C4 15 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E5 [00:35:08]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:08]wFMCommunicate OK [00:35:08]wFMCommunicate request_size=4 [00:35:08]MH_SAM_APDU [00:35:08]CAPDU: 80 17 00 00 [00:35:08]Write to MH i2c: E2 08 00 C5 15 80 17 00 00 00 00 00 00 5A [00:35:08]Write i2c OK [00:35:08]MH_I2C_Read... [00:35:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:35:08]Read from MH i2c: E2 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 E2 00 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 E2 00 C5 15 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 38 [00:35:08]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35:08]wFMCommunicate OK [00:35:08]SAM_PROTO_GetFMData done [00:35:08]requested_item fm.sale_refund.total is exist - process it [00:35:08]requested_item fm.buy.total is exist - process it [00:35:08]requested_item shift.sale.total is exist - process it [00:35:08]SAM_PROTO_GetShiftData [00:35:08]wFMCommunicate request_size=4 [00:35:08]MH_SAM_APDU [00:35:08]CAPDU: 80 13 02 00 [00:35:08]Write to MH i2c: E2 08 00 C6 15 80 13 02 00 00 00 00 00 59 [00:35:08]Write i2c OK [00:35:08]MH_I2C_Read... [00:35:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:08]Read from MH i2c: E2 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 FD 00 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 FD 00 C6 15 00 B9 04 AA 04 B5 04 6E 04 04 00 1C 01 00 00 69 04 9C 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 00 [00:35:08]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 1C 01 00 00 69 04 9C 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:35:08]wFMCommunicate OK [00:35:08]wFMCommunicate request_size=4 [00:35:08]MH_SAM_APDU [00:35:08]CAPDU: 80 17 00 00 [00:35:08]Write to MH i2c: E2 08 00 C7 15 80 17 00 00 00 00 00 00 5C [00:35:08]Write i2c OK [00:35:08]MH_I2C_Read... [00:35:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:09]Read from MH i2c: E2 [00:35:09]MH_I2C_Read... [00:35:09]Read from MH i2c: E2 FD 00 [00:35:09]MH_I2C_Read... [00:35:09]Read from MH i2c: E2 FD 00 C7 15 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 84 [00:35:09]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:35:09]wFMCommunicate OK [00:35:09]wFMCommunicate request_size=4 [00:35:09]MH_SAM_APDU [00:35:09]CAPDU: 80 17 00 00 [00:35:09]Write to MH i2c: E2 08 00 C8 15 80 17 00 00 00 00 00 00 5D [00:35:09]Write i2c OK [00:35:09]MH_I2C_Read... [00:35:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:09]Read from MH i2c: E2 [00:35:09]MH_I2C_Read... [00:35:09]Read from MH i2c: E2 FD 00 [00:35:09]MH_I2C_Read... [00:35:09]Read from MH i2c: E2 FD 00 C8 15 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 85 [00:35:09]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:35:09]wFMCommunicate OK [00:35:09]wFMCommunicate request_size=4 [00:35:09]MH_SAM_APDU [00:35:09]CAPDU: 80 17 00 00 [00:35:09]Write to MH i2c: E2 08 00 C9 15 80 17 00 00 00 00 00 00 5E [00:35:09]OFD Sender: No OFD packet to send [00:35:09]Write i2c OK [00:35:09]MH_I2C_Read... [00:35:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:09]Read from MH i2c: E2 [00:35:09]MH_I2C_Read... [00:35:09]Read from MH i2c: E2 FD 00 [00:35:09]MH_I2C_Read... [00:35:09]Read from MH i2c: E2 FD 00 C9 15 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 D6 [00:35:09]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:35:09]wFMCommunicate OK [00:35:09]wFMCommunicate request_size=4 [00:35:09]MH_SAM_APDU [00:35:09]CAPDU: 80 17 00 00 [00:35:09]Write to MH i2c: E2 08 00 CA 15 80 17 00 00 00 00 00 00 5F [00:35:09]Write i2c OK [00:35:09]MH_I2C_Read... [00:35:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:35:10]Read from MH i2c: E2 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 D6 00 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 D6 00 CA 15 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 41 [00:35:10]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:10]wFMCommunicate OK [00:35:10]SAM_PROTO_GetShiftData done [00:35:10]requested_item shift.sale.total_cash is exist - process it [00:35:10]requested_item shift.sale_refund.total is exist - process it [00:35:10]requested_item shift.sale_refund.total_cash is exist - process it [00:35:10]requested_item shift.buy.total is exist - process it [00:35:10]requested_item shift.buy.total_cash is exist - process it [00:35:10]produce_requested_data done [00:35:10]produce_requested_data return {"fm.sale.total":64740559.58,"fm.sale_refund.total":2651943.00,"fm.buy.total":0.00,"shift.sale.total":162165.81,"shift.sale.total_cash":113849.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:35:10]process_action_free get_value [00:35:10]json_value_free [00:35:10]json_value_free done [00:35:10]process_json_proto returns [00:35:10]Send response to host [00:35:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64740559.58,"fm.sale_refund.total":2651943.00,"fm.buy.total":0.00,"shift.sale.total":162165.81,"shift.sale.total_cash":113849.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:35:10]free response buf [00:35:10]execute_script done [00:35:10]execute_script returns [00:35:10]free content buf [00:35:10]Sock 9.Close socket [00:35:10]Sock 9.Thread stoped [00:35:10]accept exits with 8 [00:35:10]New connection [00:35:10]New thread 3067010404 created [00:35:10]Thread 3066867044 joined [00:35:10]Waiting for new connection... [00:35:10] Sock 8.Parse request [00:35:10]Sock 8.Check first char [00:35:10]Sock 8.First char is OK [00:35:10]request: POST /json_proto HTTP/1.0 [00:35:10]Method: POST [00:35:10]URL: /json_proto [00:35:10]Method is POST - this is cgi request [00:35:10]url: /json_proto [00:35:10]query_string will be loaded in cgi processing [00:35:10]execute_cgi json_proto POST (null) [00:35:10]execute_cgi path=json_proto method=POST [00:35:10]POST find Content-Length [00:35:10]Host: 172.17.41.136:8080 [00:35:10]Content-Length: 331 [00:35:10]Content-Type: application/json [00:35:10] [00:35:10]POST finish read [00:35:10]Found Content-Length = 331 [00:35:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:10]execute_script... [00:35:10]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:35:10]POST & json_proto [00:35:10]process_json_proto [00:35:10]json parsed OK: [00:35:10]protocol is kg_v1.0 [00:35:10]action value=get_value [00:35:10]process_action get_value [00:35:10]cmd_get_value [00:35:10]process_action get_value done [00:35:10]requested_data is exist [00:35:10]produce_requested_data [00:35:10]requested_item fm.sale.total is exist - process it [00:35:10]SAM_PROTO_GetFMData [00:35:10]wFMCommunicate request_size=4 [00:35:10]MH_SAM_APDU [00:35:10]CAPDU: 80 13 03 00 [00:35:10]Write to MH i2c: E2 08 00 CB 15 80 13 03 00 00 00 00 00 5F [00:35:10]Write i2c OK [00:35:10]MH_I2C_Read... [00:35:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:10]Read from MH i2c: E2 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 FD 00 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 FD 00 CB 15 00 C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 C0 [00:35:10]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 [00:35:10]wFMCommunicate OK [00:35:10]wFMCommunicate request_size=4 [00:35:10]MH_SAM_APDU [00:35:10]CAPDU: 80 17 00 00 [00:35:10]Write to MH i2c: E2 08 00 CC 15 80 17 00 00 00 00 00 00 61 [00:35:10]Write i2c OK [00:35:10]MH_I2C_Read... [00:35:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:11]Read from MH i2c: E2 [00:35:11]MH_I2C_Read... [00:35:11]Read from MH i2c: E2 FD 00 [00:35:11]MH_I2C_Read... [00:35:11]Read from MH i2c: E2 FD 00 CC 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B7 [00:35:11]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:11]wFMCommunicate OK [00:35:11]wFMCommunicate request_size=4 [00:35:11]MH_SAM_APDU [00:35:11]CAPDU: 80 17 00 00 [00:35:11]Write to MH i2c: E2 08 00 CD 15 80 17 00 00 00 00 00 00 62 [00:35:11]Write i2c OK [00:35:11]MH_I2C_Read... [00:35:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:11]Read from MH i2c: E2 [00:35:11]MH_I2C_Read... [00:35:11]Read from MH i2c: E2 FD 00 [00:35:11]MH_I2C_Read... [00:35:11]Read from MH i2c: E2 FD 00 CD 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 74 [00:35:11]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:11]wFMCommunicate OK [00:35:11]wFMCommunicate request_size=4 [00:35:11]MH_SAM_APDU [00:35:11]CAPDU: 80 17 00 00 [00:35:11]Write to MH i2c: E2 08 00 CE 15 80 17 00 00 00 00 00 00 63 [00:35:11]Write i2c OK [00:35:11]MH_I2C_Read... [00:35:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:11]Read from MH i2c: E2 [00:35:11]MH_I2C_Read... [00:35:11]Read from MH i2c: E2 FD 00 [00:35:11]MH_I2C_Read... [00:35:11]Read from MH i2c: E2 FD 00 CE 15 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EF [00:35:12]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:12]wFMCommunicate OK [00:35:12]wFMCommunicate request_size=4 [00:35:12]MH_SAM_APDU [00:35:12]CAPDU: 80 17 00 00 [00:35:12]Write to MH i2c: E2 08 00 CF 15 80 17 00 00 00 00 00 00 64 [00:35:12]Write i2c OK [00:35:12]MH_I2C_Read... [00:35:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:35:12]Read from MH i2c: E2 [00:35:12]MH_I2C_Read... [00:35:12]Read from MH i2c: E2 E2 00 [00:35:12]MH_I2C_Read... [00:35:12]Read from MH i2c: E2 E2 00 CF 15 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 42 [00:35:12]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35:12]wFMCommunicate OK [00:35:12]SAM_PROTO_GetFMData done [00:35:12]requested_item fm.sale_refund.total is exist - process it [00:35:12]requested_item fm.buy.total is exist - process it [00:35:12]requested_item shift.sale.total is exist - process it [00:35:12]SAM_PROTO_GetShiftData [00:35:12]wFMCommunicate request_size=4 [00:35:12]MH_SAM_APDU [00:35:12]CAPDU: 80 13 02 00 [00:35:12]Write to MH i2c: E2 08 00 D0 15 80 13 02 00 00 00 00 00 63 [00:35:12]Write i2c OK [00:35:12]MH_I2C_Read... [00:35:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:12]Read from MH i2c: E2 [00:35:12]MH_I2C_Read... [00:35:12]Read from MH i2c: E2 FD 00 [00:35:12]MH_I2C_Read... [00:35:12]Read from MH i2c: E2 FD 00 D0 15 00 B9 04 AA 04 B5 04 6E 04 04 00 1C 01 00 00 69 04 9C 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0A [00:35:13]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 1C 01 00 00 69 04 9C 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:35:13]wFMCommunicate OK [00:35:13]wFMCommunicate request_size=4 [00:35:13]MH_SAM_APDU [00:35:13]CAPDU: 80 17 00 00 [00:35:13]Write to MH i2c: E2 08 00 D1 15 80 17 00 00 00 00 00 00 66 [00:35:13]Write i2c OK [00:35:13]MH_I2C_Read... [00:35:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:13]Read from MH i2c: E2 [00:35:13]MH_I2C_Read... [00:35:13]Read from MH i2c: E2 FD 00 [00:35:13]MH_I2C_Read... [00:35:13]Read from MH i2c: E2 FD 00 D1 15 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 8E [00:35:13]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:35:13]wFMCommunicate OK [00:35:13]wFMCommunicate request_size=4 [00:35:13]MH_SAM_APDU [00:35:13]CAPDU: 80 17 00 00 [00:35:13]Write to MH i2c: E2 08 00 D2 15 80 17 00 00 00 00 00 00 67 [00:35:13]Write i2c OK [00:35:13]MH_I2C_Read... [00:35:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:13]Read from MH i2c: E2 [00:35:13]MH_I2C_Read... [00:35:13]Read from MH i2c: E2 FD 00 [00:35:13]MH_I2C_Read... [00:35:13]Read from MH i2c: E2 FD 00 D2 15 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 8F [00:35:13]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:35:14]wFMCommunicate OK [00:35:14]wFMCommunicate request_size=4 [00:35:14]MH_SAM_APDU [00:35:14]CAPDU: 80 17 00 00 [00:35:14]Write to MH i2c: E2 08 00 D3 15 80 17 00 00 00 00 00 00 68 [00:35:14]Write i2c OK [00:35:14]MH_I2C_Read... [00:35:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:14]Read from MH i2c: E2 [00:35:14]MH_I2C_Read... [00:35:14]Read from MH i2c: E2 FD 00 [00:35:14]MH_I2C_Read... [00:35:14]Read from MH i2c: E2 FD 00 D3 15 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 E0 [00:35:14]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:35:14]wFMCommunicate OK [00:35:14]wFMCommunicate request_size=4 [00:35:14]MH_SAM_APDU [00:35:14]CAPDU: 80 17 00 00 [00:35:14]Write to MH i2c: E2 08 00 D4 15 80 17 00 00 00 00 00 00 69 [00:35:14]Write i2c OK [00:35:14]MH_I2C_Read... [00:35:14]OFD Sender: No OFD packet to send [00:35:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:35:14]Read from MH i2c: E2 [00:35:14]MH_I2C_Read... [00:35:14]Read from MH i2c: E2 D6 00 [00:35:14]MH_I2C_Read... [00:35:14]Read from MH i2c: E2 D6 00 D4 15 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4B [00:35:14]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:14]wFMCommunicate OK [00:35:14]SAM_PROTO_GetShiftData done [00:35:14]requested_item shift.sale.total_cash is exist - process it [00:35:14]requested_item shift.sale_refund.total is exist - process it [00:35:14]requested_item shift.sale_refund.total_cash is exist - process it [00:35:14]requested_item shift.buy.total is exist - process it [00:35:14]requested_item shift.buy.total_cash is exist - process it [00:35:14]produce_requested_data done [00:35:14]produce_requested_data return {"fm.sale.total":64740559.58,"fm.sale_refund.total":2651943.00,"fm.buy.total":0.00,"shift.sale.total":162165.81,"shift.sale.total_cash":113849.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:35:14]process_action_free get_value [00:35:14]json_value_free [00:35:14]json_value_free done [00:35:14]process_json_proto returns [00:35:14]Send response to host [00:35:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64740559.58,"fm.sale_refund.total":2651943.00,"fm.buy.total":0.00,"shift.sale.total":162165.81,"shift.sale.total_cash":113849.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:35:14]free response buf [00:35:14]execute_script done [00:35:14]execute_script returns [00:35:14]free content buf [00:35:14]Sock 8.Close socket [00:35:14]Sock 8.Thread stoped [00:35:14]accept exits with 9 [00:35:14]New connection [00:35:14]New thread 3066867044 created [00:35:14]Thread 3067010404 joined [00:35:14]Waiting for new connection... [00:35:14] Sock 9.Parse request [00:35:14]Sock 9.Check first char [00:35:14]Sock 9.First char is OK [00:35:14]request: POST /json_proto HTTP/1.0 [00:35:14]Method: POST [00:35:14]URL: /json_proto [00:35:14]Method is POST - this is cgi request [00:35:14]url: /json_proto [00:35:14]query_string will be loaded in cgi processing [00:35:14]execute_cgi json_proto POST (null) [00:35:14]execute_cgi path=json_proto method=POST [00:35:14]POST find Content-Length [00:35:14]Host: 172.17.41.136:8080 [00:35:14]Content-Length: 291 [00:35:14]Content-Type: application/json [00:35:14] [00:35:14]POST finish read [00:35:14]Found Content-Length = 291 [00:35:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0443\u043B\u0442\u0430\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:14]execute_script... [00:35:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0443\u043B\u0442\u0430\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:14]POST & json_proto [00:35:14]process_json_proto [00:35:14]json parsed OK: [00:35:14]protocol is kg_v1.0 [00:35:15]action value=close_shift [00:35:15]process_action close_shift [00:35:15]cmd_close_shift [00:35:15]MH_GetDate [00:35:15]Write to MH i2c: F0 00 00 D5 15 D9 [00:35:15]Write i2c OK [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: F0 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: F0 09 00 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: F0 09 00 D5 15 00 45 09 F2 66 1B D0 5A 64 31 [00:35:15]GetLastDocTimeStamp 1727138055 [00:35:15]current date 1727138117 [00:35:15]FM_GetShiftState [00:35:15]SAM_PROTO_GetShiftState [00:35:15]wFMCommunicate request_size=4 [00:35:15]MH_SAM_APDU [00:35:15]CAPDU: 80 13 01 00 [00:35:15]Write to MH i2c: E2 08 00 D6 15 80 13 01 00 00 00 00 00 68 [00:35:15]Write i2c OK [00:35:15]MH_I2C_Read... [00:35:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:15]Read from MH i2c: E2 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 0E 00 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 0E 00 D6 15 00 09 00 01 26 B9 F0 66 00 00 00 00 90 00 A9 [00:35:15]RAPDU: 09 00 01 26 B9 F0 66 00 00 00 00 90 00 [00:35:15]wFMCommunicate OK [00:35:15]SAM_PROTO_GetShiftState done [00:35:15]FM_GetShiftState done [00:35:15]KKMCreateCloseShiftDocument [00:35:15]Load OK [00:35:15]Malloc new data [00:35:15]MH_GetDate [00:35:15]Write to MH i2c: F0 00 00 D7 15 DB [00:35:15]Write i2c OK [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: F0 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: F0 09 00 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: F0 09 00 D7 15 00 45 09 F2 66 1B D0 5A 64 33 [00:35:15]Malloc new data [00:35:15]Malloc new data [00:35:15]Malloc new data [00:35:15]Malloc new data [00:35:15]KKMCreateCloseShiftDocument OK [00:35:15]KKMSetCloseShiftData OK [00:35:15]ProcessDocumentItem done err = 0, tmpTLVsize=82 [00:35:15]tlvbuf is 011F5520 [00:35:15]KKMLoadAndSignCloseShiftData [00:35:15]SAM_PROTO_ProcessDocument [00:35:15]wFMCommunicate request_size=9 [00:35:15]MH_SAM_APDU [00:35:15]CAPDU: 80 15 01 00 04 05 00 52 00 [00:35:15]Write to MH i2c: E2 0C 00 D8 15 80 15 01 00 04 00 05 00 52 00 00 00 CB [00:35:15]Write i2c OK [00:35:15]MH_I2C_Read... [00:35:15]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:35:15]Read from MH i2c: E2 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 03 00 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 03 00 D8 15 00 90 00 61 [00:35:15]RAPDU: 90 00 [00:35:15]wFMCommunicate OK [00:35:15]wFMCommunicate request_size=23 [00:35:15]MH_SAM_APDU [00:35:15]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:35:15]Write to MH i2c: E2 1A 00 D9 15 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 63 [00:35:15]Write i2c OK [00:35:15]MH_I2C_Read... [00:35:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:15]Read from MH i2c: E2 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 03 00 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 03 00 D9 15 00 90 00 62 [00:35:15]RAPDU: 90 00 [00:35:15]wFMCommunicate OK [00:35:15]wFMCommunicate request_size=41 [00:35:15]MH_SAM_APDU [00:35:15]CAPDU: 80 15 02 00 24 FD 03 20 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 90 2E 20 [00:35:15]Write to MH i2c: E2 2C 00 DA 15 80 15 02 00 24 00 FD 03 20 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 90 2E 20 00 00 86 [00:35:15]Write i2c OK [00:35:15]MH_I2C_Read... [00:35:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:15]Read from MH i2c: E2 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 03 00 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 03 00 DA 15 00 90 00 63 [00:35:15]RAPDU: 90 00 [00:35:15]wFMCommunicate OK [00:35:15]wFMCommunicate request_size=13 [00:35:15]MH_SAM_APDU [00:35:15]CAPDU: 80 15 02 00 08 F4 03 04 00 45 09 F2 66 [00:35:15]Write to MH i2c: E2 10 00 DB 15 80 15 02 00 08 00 F4 03 04 00 45 09 F2 66 00 00 21 [00:35:15]Write i2c OK [00:35:15]MH_I2C_Read... [00:35:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:15]Read from MH i2c: E2 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 03 00 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 03 00 DB 15 00 90 00 64 [00:35:15]RAPDU: 90 00 [00:35:15]wFMCommunicate OK [00:35:15]wFMCommunicate request_size=25 [00:35:15]MH_SAM_APDU [00:35:15]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [00:35:15]Write to MH i2c: E2 1C 00 DC 15 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 D0 [00:35:15]Write i2c OK [00:35:15]MH_I2C_Read... [00:35:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:15]Read from MH i2c: E2 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 03 00 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 03 00 DC 15 00 90 00 65 [00:35:15]RAPDU: 90 00 [00:35:15]wFMCommunicate OK [00:35:15]wFMCommunicate request_size=4 [00:35:15]MH_SAM_APDU [00:35:15]CAPDU: 80 15 03 00 [00:35:15]Write to MH i2c: E2 08 00 DD 15 80 15 03 00 00 00 00 00 73 [00:35:15]Write i2c OK [00:35:15]MH_I2C_Read... [00:35:16]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:35:16]Read from MH i2c: E2 [00:35:16]MH_I2C_Read... [00:35:16]Read from MH i2c: E2 FD 00 [00:35:16]MH_I2C_Read... [00:35:16]Read from MH i2c: E2 FD 00 DD 15 00 FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5A C4 01 00 0E 04 04 00 D8 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1E 01 00 00 AA 04 B5 04 6E 04 04 00 1C 01 00 00 69 04 9C 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 90 00 FB [00:35:16]RAPDU: FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5A C4 01 00 0E 04 04 00 D8 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1E 01 00 00 AA 04 B5 04 6E 04 04 00 1C 01 00 00 69 04 9C 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 90 00 [00:35:16]wFMCommunicate OK [00:35:16]SAM_PROTO_ProcessDocument answer len = 1276 [00:35:16]SAM_PROTO_ProcessDocument remain to read = 1028 [00:35:16]wFMCommunicate request_size=4 [00:35:16]MH_SAM_APDU [00:35:16]CAPDU: 80 17 00 00 [00:35:16]Write to MH i2c: E2 08 00 DE 15 80 17 00 00 00 00 00 00 73 [00:35:16]Write i2c OK [00:35:16]MH_I2C_Read... [00:35:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:16]Read from MH i2c: E2 [00:35:16]MH_I2C_Read... [00:35:16]Read from MH i2c: E2 FD 00 [00:35:16]MH_I2C_Read... [00:35:16]Read from MH i2c: E2 FD 00 DE 15 00 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C 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 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 22 [00:35:16]RAPDU: 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C 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 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:35:16]wFMCommunicate OK [00:35:16]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:35:16]SAM_PROTO_ProcessDocument remain to read = 778 [00:35:16]wFMCommunicate request_size=4 [00:35:16]MH_SAM_APDU [00:35:16]CAPDU: 80 17 00 00 [00:35:16]Write to MH i2c: E2 08 00 DF 15 80 17 00 00 00 00 00 00 74 [00:35:16]Write i2c OK [00:35:16]MH_I2C_Read... [00:35:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:17]Read from MH i2c: E2 [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 FD 00 [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 FD 00 DF 15 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 90 00 DA [00:35:17]RAPDU: 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:35:17]wFMCommunicate OK [00:35:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:35:17]SAM_PROTO_ProcessDocument remain to read = 528 [00:35:17]wFMCommunicate request_size=4 [00:35:17]MH_SAM_APDU [00:35:17]CAPDU: 80 17 00 00 [00:35:17]Write to MH i2c: E2 08 00 E0 15 80 17 00 00 00 00 00 00 75 [00:35:17]Write i2c OK [00:35:17]MH_I2C_Read... [00:35:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:17]Read from MH i2c: E2 [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 FD 00 [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 FD 00 E0 15 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 88 [00:35:17]RAPDU: 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [00:35:17]wFMCommunicate OK [00:35:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:35:17]SAM_PROTO_ProcessDocument remain to read = 278 [00:35:17]wFMCommunicate request_size=4 [00:35:17]MH_SAM_APDU [00:35:17]CAPDU: 80 17 00 00 [00:35:17]Write to MH i2c: E2 08 00 E1 15 80 17 00 00 00 00 00 00 76 [00:35:17]Write i2c OK [00:35:17]MH_I2C_Read... [00:35:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:18]Read from MH i2c: E2 [00:35:18]MH_I2C_Read... [00:35:18]Read from MH i2c: E2 FD 00 [00:35:18]MH_I2C_Read... [00:35:18]Read from MH i2c: E2 FD 00 E1 15 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B0 [00:35:18]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:35:18]wFMCommunicate OK [00:35:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:35:18]SAM_PROTO_ProcessDocument remain to read = 28 [00:35:18]wFMCommunicate request_size=4 [00:35:18]MH_SAM_APDU [00:35:18]CAPDU: 80 17 00 00 [00:35:18]Write to MH i2c: E2 08 00 E2 15 80 17 00 00 00 00 00 00 77 [00:35:18]Write i2c OK [00:35:18]MH_I2C_Read... [00:35:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 28! [00:35:18]Read from MH i2c: E2 [00:35:18]MH_I2C_Read... [00:35:18]Read from MH i2c: E2 1F 00 [00:35:18]MH_I2C_Read... [00:35:18]Read from MH i2c: E2 1F 00 E2 15 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 0A E6 39 97 6D 5E 90 00 45 [00:35:18]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 0A E6 39 97 6D 5E 90 00 [00:35:18]wFMCommunicate OK [00:35:18]SAM_PROTO_ProcessDocument received (without SW) 28 bytes [00:35:18]SAM_PROTO_ProcessDocument done [00:35:18]1209 (1) - 1.0 - номер версии ФФД [00:35:18]1041 (16) - 0000000000871830 - номер ФМ [00:35:18]1040 (4) - 115802 - номер ФД [00:35:18]1038 (4) - 472 - номер смены [00:35:18]1118 (4) - 284 - количество кассовых чеков за смену [00:35:18]1111 (4) - 286 - общее количество ФД за смену [00:35:18]1194 (1205) - счетчики итогов смены [00:35:18] 1134 (4) - 284 - количество чеков со всеми признаками расчетов [00:35:18] 1129 (156) - счетчики операций «приход» [00:35:18] 1135 (4) - 283 - количество чеков по признаку расчетов [00:35:18] 1201 (3) - 162165.81 - общая итоговая сумма в чеках [00:35:18] 1136 (3) - 113849.00 - итоговая сумма в чеках наличными [00:35:18] 1138 (3) - 48316.81 - итоговая сумма в чеках безналичными [00:35:18] 1024 (123) - суммы налогов [00:35:18] 1006 (9) - суммы НДС [00:35:18] 1010 (1) - 0% - код ставки НДС [00:35:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:35:18] 1006 (12) - суммы НДС [00:35:18] 1010 (1) - 12% - код ставки НДС [00:35:18] 1011 (3) - 17222.83 - сумма НДС по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 0% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (12) - суммы НСП [00:35:18] 1014 (1) - 1% - код ставки НСП [00:35:18] 1015 (3) - 1434.85 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 2% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 3% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 5% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 0,50% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 1,50% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1130 (151) - счетчики операций «возврат прихода» [00:35:18] 1135 (4) - 1 - количество чеков по признаку расчетов [00:35:18] 1201 (3) - 3000.00 - общая итоговая сумма в чеках [00:35:18] 1136 (3) - 3000.00 - итоговая сумма в чеках наличными [00:35:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:35:18] 1024 (121) - суммы налогов [00:35:18] 1006 (9) - суммы НДС [00:35:18] 1010 (1) - 0% - код ставки НДС [00:35:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:35:18] 1006 (11) - суммы НДС [00:35:18] 1010 (1) - 12% - код ставки НДС [00:35:18] 1011 (2) - 318.65 - сумма НДС по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 0% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (11) - суммы НСП [00:35:18] 1014 (1) - 1% - код ставки НСП [00:35:18] 1015 (2) - 26.55 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 2% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 3% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 5% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 0,50% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 1,50% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1131 (141) - счетчики операций «расход» [00:35:18] 1135 (4) - 0 - количество чеков по признаку расчетов [00:35:18] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:35:18] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:35:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:35:18] 1024 (117) - суммы налогов [00:35:18] 1006 (9) - суммы НДС [00:35:18] 1010 (1) - 0% - код ставки НДС [00:35:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:35:18] 1006 (9) - суммы НДС [00:35:18] 1010 (1) - 12% - код ставки НДС [00:35:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 0% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 1% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 2% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 3% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 5% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 0,50% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 1,50% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1132 (141) - счетчики операций «возврат расхода» [00:35:18] 1135 (4) - 0 - количество чеков по признаку расчетов [00:35:18] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:35:18] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:35:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:35:18] 1024 (117) - суммы налогов [00:35:18] 1006 (9) - суммы НДС [00:35:18] 1010 (1) - 0% - код ставки НДС [00:35:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:35:18] 1006 (9) - суммы НДС [00:35:18] 1010 (1) - 12% - код ставки НДС [00:35:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 0% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 1% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 2% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 3% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 5% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 0,50% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1007 (9) - суммы НСП [00:35:18] 1014 (1) - 1,50% - код ставки НСП [00:35:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:35:18] 1133 (588) - - счетчики коррекции - не используются [00:35:18]1077 (6) - 11983924981086 - ФПД [00:35:18]SetTLVBufToDocument [00:35:18]Processing tag 1209 (04B9) [00:35:18]Malloc new data [00:35:18]Processing tag 1041 (0411) [00:35:18]Processing tag 1040 (0410) [00:35:18]Malloc new data [00:35:18]Processing tag 1038 (040E) [00:35:18]Malloc new data [00:35:18]Processing tag 1118 (045E) [00:35:18]Malloc new data [00:35:18]Processing tag 1111 (0457) [00:35:18]Malloc new data [00:35:18]Processing tag 1194 (04AA) [00:35:18]Load OK [00:35:18]SetTLVBufToDocument [00:35:18]Processing tag 1134 (046E) [00:35:18]Malloc new data [00:35:18]Processing tag 1129 (0469) [00:35:18]Load OK [00:35:18]SetTLVBufToDocument [00:35:18]Processing tag 1135 (046F) [00:35:18]Malloc new data [00:35:18]Processing tag 1201 (04B1) [00:35:18]Malloc new data [00:35:18]Processing tag 1136 (0470) [00:35:18]Malloc new data [00:35:18]Processing tag 1138 (0472) [00:35:18]Malloc new data [00:35:18]Processing tag 1024 (0400) [00:35:18]Load OK [00:35:18]SetTLVBufToDocument [00:35:18]Processing tag 1006 (03EE) [00:35:18]Load OK [00:35:18]SetTLVBufToDocument [00:35:18]Processing tag 1010 (03F2) [00:35:18]Malloc new data [00:35:18]Processing tag 1011 (03F3) [00:35:18]Malloc new data [00:35:18]SetTLVBufToDocument err=0 [00:35:18]Processing tag 1006 (03EE) [00:35:18]Load OK [00:35:18]SetTLVBufToDocument [00:35:18]Processing tag 1010 (03F2) [00:35:18]Malloc new data [00:35:18]Processing tag 1011 (03F3) [00:35:18]Malloc new data [00:35:18]SetTLVBufToDocument err=0 [00:35:18]Processing tag 1007 (03EF) [00:35:18]Load OK [00:35:18]SetTLVBufToDocument [00:35:18]Processing tag 1014 (03F6) [00:35:18]Malloc new data [00:35:18]Processing tag 1015 (03F7) [00:35:18]Malloc new data [00:35:18]SetTLVBufToDocument err=0 [00:35:18]Processing tag 1007 (03EF) [00:35:18]Load OK [00:35:18]SetTLVBufToDocument [00:35:18]Processing tag 1014 (03F6) [00:35:18]Malloc new data [00:35:18]Processing tag 1015 (03F7) [00:35:18]Malloc new data [00:35:18]SetTLVBufToDocument err=0 [00:35:18]Processing tag 1007 (03EF) [00:35:18]Load OK [00:35:18]SetTLVBufToDocument [00:35:18]Processing tag 1014 (03F6) [00:35:18]Malloc new data [00:35:18]Processing tag 1015 (03F7) [00:35:18]Malloc new data [00:35:18]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]SetTLVBufToDocument err=0 [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1130 (046A) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1135 (046F) [00:35:19]Malloc new data [00:35:19]Processing tag 1201 (04B1) [00:35:19]Malloc new data [00:35:19]Processing tag 1136 (0470) [00:35:19]Malloc new data [00:35:19]Processing tag 1138 (0472) [00:35:19]Malloc new data [00:35:19]Processing tag 1024 (0400) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1006 (03EE) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1010 (03F2) [00:35:19]Malloc new data [00:35:19]Processing tag 1011 (03F3) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1006 (03EE) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1010 (03F2) [00:35:19]Malloc new data [00:35:19]Processing tag 1011 (03F3) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]SetTLVBufToDocument err=0 [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1131 (046B) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1135 (046F) [00:35:19]Malloc new data [00:35:19]Processing tag 1201 (04B1) [00:35:19]Malloc new data [00:35:19]Processing tag 1136 (0470) [00:35:19]Malloc new data [00:35:19]Processing tag 1138 (0472) [00:35:19]Malloc new data [00:35:19]Processing tag 1024 (0400) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1006 (03EE) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1010 (03F2) [00:35:19]Malloc new data [00:35:19]Processing tag 1011 (03F3) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1006 (03EE) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1010 (03F2) [00:35:19]Malloc new data [00:35:19]Processing tag 1011 (03F3) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]SetTLVBufToDocument err=0 [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1132 (046C) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1135 (046F) [00:35:19]Malloc new data [00:35:19]Processing tag 1201 (04B1) [00:35:19]Malloc new data [00:35:19]Processing tag 1136 (0470) [00:35:19]Malloc new data [00:35:19]Processing tag 1138 (0472) [00:35:19]Malloc new data [00:35:19]Processing tag 1024 (0400) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1006 (03EE) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1010 (03F2) [00:35:19]Malloc new data [00:35:19]Processing tag 1011 (03F3) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1006 (03EE) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1010 (03F2) [00:35:19]Malloc new data [00:35:19]Processing tag 1011 (03F3) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1007 (03EF) [00:35:19]Load OK [00:35:19]SetTLVBufToDocument [00:35:19]Processing tag 1014 (03F6) [00:35:19]Malloc new data [00:35:19]Processing tag 1015 (03F7) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]SetTLVBufToDocument err=0 [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1133 (046D) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Processing tag 1077 (0435) [00:35:19]Malloc new data [00:35:19]SetTLVBufToDocument err=0 [00:35:19]Malloc new data [00:35:19]SAM_PROTO_GetFMData [00:35:19]wFMCommunicate request_size=4 [00:35:19]MH_SAM_APDU [00:35:19]CAPDU: 80 13 03 00 [00:35:19]Write to MH i2c: E2 08 00 E3 15 80 13 03 00 00 00 00 00 77 [00:35:19]OFD Sender: No OFD packet to send [00:35:19]Write i2c OK [00:35:19]MH_I2C_Read... [00:35:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:20]Read from MH i2c: E2 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 FD 00 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 FD 00 E3 15 00 C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 D8 [00:35:20]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 [00:35:20]wFMCommunicate OK [00:35:20]wFMCommunicate request_size=4 [00:35:20]MH_SAM_APDU [00:35:20]CAPDU: 80 17 00 00 [00:35:20]Write to MH i2c: E2 08 00 E4 15 80 17 00 00 00 00 00 00 79 [00:35:20]Write i2c OK [00:35:20]MH_I2C_Read... [00:35:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:20]Read from MH i2c: E2 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 FD 00 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 FD 00 E4 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CF [00:35:21]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:21]wFMCommunicate OK [00:35:21]wFMCommunicate request_size=4 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 17 00 00 [00:35:21]Write to MH i2c: E2 08 00 E5 15 80 17 00 00 00 00 00 00 7A [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:21]Read from MH i2c: E2 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 FD 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 FD 00 E5 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8C [00:35:21]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:21]wFMCommunicate OK [00:35:21]wFMCommunicate request_size=4 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 17 00 00 [00:35:21]Write to MH i2c: E2 08 00 E6 15 80 17 00 00 00 00 00 00 7B [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:22]Read from MH i2c: E2 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: E2 FD 00 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: E2 FD 00 E6 15 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 07 [00:35:22]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:22]wFMCommunicate OK [00:35:22]wFMCommunicate request_size=4 [00:35:22]MH_SAM_APDU [00:35:22]CAPDU: 80 17 00 00 [00:35:22]Write to MH i2c: E2 08 00 E7 15 80 17 00 00 00 00 00 00 7C [00:35:22]Write i2c OK [00:35:22]MH_I2C_Read... [00:35:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:35:22]Read from MH i2c: E2 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: E2 E2 00 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: E2 E2 00 E7 15 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5A [00:35:22]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35:22]wFMCommunicate OK [00:35:22]SAM_PROTO_GetFMData done [00:35:22]Malloc new data [00:35:22]Malloc new data [00:35:22]Malloc new data [00:35:22]Malloc new data [00:35:22]KKMLoadAndSignCloseShiftData err=0 [00:35:22]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Султанбай уулу А. 24.09.2024 00:35 Смена: 472 РНМ: 0000000000091831 ЗНМ: 0300000120 СНО: Общий режим Чеков за смену: 284 ФД за смену: 286 Всего чеков: 284 ИТОГИ ПРИХОД Чеков: 283 Общий итог: 162165.81 Итого наличными: 113849.00 Итого безнал.: 48316.81 НДС 0% : 0.00 НДС 12% : 17222.83 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1434.85 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 3000.00 Итого наличными: 3000.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 318.65 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 26.55 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 110849.00 НС Приход: 64740559.58 НС Возвр.Прихода: 2651943.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 115802 ФМ: 0000000000871830 ФПД: 11983924981086 [00:35:22]StoreToDocumentArchive [00:35:22]shift 472 fd 115802 [00:35:22]save to /storage/0472/doc_00115802 [00:35:22]save last doc name /storage/0472/doc_00115802 to /storage/kkm_last_doc_name [00:35:22]save OK [00:35:22]Clear old archive folders... [00:35:22]Remove dir /storage/0266 [00:35:22]opendir ok [00:35:22]file . [00:35:22]file .. [00:35:22]file doc_1727138063 [00:35:22]remove file /storage/0266/doc_1727138063 [00:35:22]remove dir /storage/0266 [00:35:22]NVStorageSaveData kkm_registers [00:35:22]File name is /storage/kkm_registers [00:35:22]Write 24 bytes [00:35:22]NVStorageSaveData done [00:35:22]NVStorageSaveData kkm_registers [00:35:22]File name is /storage/kkm_registers [00:35:22]Write 24 bytes [00:35:22]NVStorageSaveData done [00:35:22]ProcessDocumentItem done err = 0, tmpTLVsize=1397 [00:35:22]tlvbuf is 0119BA30 [00:35:22]SAM_PROTO_ClearQueue [00:35:22]wFMCommunicate request_size=4 [00:35:22]MH_SAM_APDU [00:35:22]CAPDU: 80 09 00 00 [00:35:22]Write to MH i2c: E2 08 00 E8 15 80 09 00 00 00 00 00 00 6F [00:35:22]Write i2c OK [00:35:22]MH_I2C_Read... [00:35:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:23]Read from MH i2c: E2 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 03 00 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 03 00 E8 15 00 90 00 71 [00:35:23]RAPDU: 90 00 [00:35:23]wFMCommunicate OK [00:35:23]SAM_PROTO_ClearQueue done [00:35:23]KKMCreateOFDPacket [00:35:23]OFDProtocolAddRootSTLVToBuf [00:35:23]FM_MakeSignedData [00:35:23]FM_MakeSignedData [00:35:23]SAM_PROTO_SignData [00:35:23]wFMCommunicate request_size=4 [00:35:23]MH_SAM_APDU [00:35:23]CAPDU: 80 0D 01 02 [00:35:23]Write to MH i2c: E2 08 00 E9 15 80 0D 01 02 00 00 00 00 77 [00:35:23]Write i2c OK [00:35:23]MH_I2C_Read... [00:35:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:23]Read from MH i2c: E2 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 03 00 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 03 00 E9 15 00 90 00 72 [00:35:23]RAPDU: 90 00 [00:35:23]wFMCommunicate OK [00:35:23]wFMCommunicate request_size=255 [00:35:23]MH_SAM_APDU [00:35:23]CAPDU: 80 0D 02 02 FA 05 00 75 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 20 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 90 2E 20 F4 03 04 00 45 09 F2 66 0E 04 04 00 D8 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 5E 04 04 00 1C 01 00 00 57 04 04 00 1E 01 00 00 AA 04 DC 04 6E 04 04 00 1C 01 00 00 69 04 A3 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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:35:23]Write to MH i2c: E2 02 01 EA 15 80 0D 02 02 FA 00 05 00 75 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 20 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 90 2E 20 F4 03 04 00 45 09 F2 66 0E 04 04 00 D8 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 5E 04 04 00 1C 01 00 00 57 04 04 00 1E 01 00 00 AA 04 DC 04 6E 04 04 00 1C 01 00 00 69 04 A3 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 94 [00:35:23]Write i2c OK [00:35:23]MH_I2C_Read... [00:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:23]Read from MH i2c: E2 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 03 00 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 03 00 EA 15 00 90 00 73 [00:35:23]RAPDU: 90 00 [00:35:23]wFMCommunicate OK [00:35:23]wFMCommunicate request_size=255 [00:35:23]MH_SAM_APDU [00:35:23]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 7D 30 02 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A 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:35:23]Write to MH i2c: E2 02 01 EB 15 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 7D 30 02 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A 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 02 [00:35:24]Write i2c OK [00:35:24]MH_I2C_Read... [00:35:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:24]Read from MH i2c: E2 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 03 00 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 03 00 EB 15 00 90 00 74 [00:35:24]RAPDU: 90 00 [00:35:24]wFMCommunicate OK [00:35:24]wFMCommunicate request_size=255 [00:35:24]MH_SAM_APDU [00:35:24]CAPDU: 80 0D 02 02 FA 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:35:24]Write to MH i2c: E2 02 01 EC 15 80 0D 02 02 FA 00 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 00 37 [00:35:24]Write i2c OK [00:35:24]MH_I2C_Read... [00:35:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:24]Read from MH i2c: E2 [00:35:24]MH_I2C_Read... [00:35:24]OFD Sender: No OFD packet to send [00:35:24]Read from MH i2c: E2 03 00 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 03 00 EC 15 00 90 00 75 [00:35:24]RAPDU: 90 00 [00:35:24]wFMCommunicate OK [00:35:24]wFMCommunicate request_size=255 [00:35:24]MH_SAM_APDU [00:35:24]CAPDU: 80 0D 02 02 FA 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 [00:35:25]Write to MH i2c: E2 02 01 ED 15 80 0D 02 02 FA 00 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 00 00 40 [00:35:25]Write i2c OK [00:35:25]MH_I2C_Read... [00:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:25]Read from MH i2c: E2 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 03 00 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 03 00 ED 15 00 90 00 76 [00:35:25]RAPDU: 90 00 [00:35:25]wFMCommunicate OK [00:35:25]wFMCommunicate request_size=255 [00:35:25]MH_SAM_APDU [00:35:25]CAPDU: 80 0D 02 02 FA 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:35:25]Write to MH i2c: E2 02 01 EE 15 80 0D 02 02 FA 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 20 [00:35:25]Write i2c OK [00:35:25]MH_I2C_Read... [00:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:26]Read from MH i2c: E2 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 03 00 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 03 00 EE 15 00 90 00 77 [00:35:26]RAPDU: 90 00 [00:35:26]wFMCommunicate OK [00:35:26]wFMCommunicate request_size=156 [00:35:26]MH_SAM_APDU [00:35:26]CAPDU: 80 0D 02 02 97 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5A C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 0A E6 39 97 6D 5E [00:35:26]Write to MH i2c: E2 9F 00 EF 15 80 0D 02 02 97 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5A C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 0A E6 39 97 6D 5E 00 00 5E [00:35:26]Write i2c OK [00:35:26]MH_I2C_Read... [00:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:26]Read from MH i2c: E2 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 03 00 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 03 00 EF 15 00 90 00 78 [00:35:26]RAPDU: 90 00 [00:35:26]wFMCommunicate OK [00:35:26]wFMCommunicate request_size=4 [00:35:26]MH_SAM_APDU [00:35:26]CAPDU: 80 0D 03 02 [00:35:26]Write to MH i2c: E2 08 00 F0 15 80 0D 03 02 00 00 00 00 80 [00:35:26]Write i2c OK [00:35:26]MH_I2C_Read... [00:35:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:26]Read from MH i2c: E2 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 0B 00 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 0B 00 F0 15 00 70 46 60 6F C7 42 EB C1 90 00 BB [00:35:26]RAPDU: 70 46 60 6F C7 42 EB C1 90 00 [00:35:26]wFMCommunicate OK [00:35:26]SAM_PROTO_SignData done [00:35:26]FM_MakeSignedData done [00:35:26]CreateOFDProtocolMessage [00:35:26]wFMCommunicate request_size=4 [00:35:26]MH_SAM_APDU [00:35:26]CAPDU: 80 11 00 00 [00:35:26]Write to MH i2c: E2 08 00 F1 15 80 11 00 00 00 00 00 00 80 [00:35:26]Write i2c OK [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 [00:35:26]MH_I2C_Read... [00:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:26]Read from MH i2c: E2 17 00 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 17 00 F1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CE [00:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:35:26]wFMCommunicate OK [00:35:26]CreateOFDProtocolMessage done [00:35:26]OFDSenderStorePacket 115802 [00:35:26]StoreOFDPacket docnum=115802 [00:35:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 89 05 00 00 23 BF 81 05 BE 9C 5A 05 01 00 05 00 75 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 20 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 90 2E 20 F4 03 04 00 45 09 F2 66 0E 04 04 00 D8 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 5E 04 04 00 1C 01 00 00 57 04 04 00 1E 01 00 00 AA 04 DC 04 6E 04 04 00 1C 01 00 00 69 04 A3 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A 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 5A C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 0A E6 39 97 6D 5E 70 46 60 6F C7 42 EB C1 [00:35:27]CheckFolder [00:35:27]dirname=/storage/ofd_packets [00:35:27]CheckFolder done [00:35:27]ProducePacketName [00:35:27]name=ofd_packets/00115802 [00:35:27]NVStorageSaveData ofd_packets/00115802 [00:35:27]File name is /storage/ofd_packets/00115802 [00:35:27]Write 1447 bytes [00:35:27]NVStorageSaveData done [00:35:27]OFDSenderStorePacket done [00:35:27]KKMCreateOFDPacket done [00:35:27]NVStorageSaveData kkm_last_timestamp [00:35:27]File name is /storage/kkm_last_timestamp [00:35:27]Write 4 bytes [00:35:27]NVStorageSaveData done [00:35:27]ExternCall_PrintAddStr [00:35:27]wPrintStart [00:35:27]Write to MH i2c: 01 00 00 F2 15 07 [00:35:27]Write i2c OK [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: 01 [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: 01 07 00 [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: 01 07 00 F2 15 00 00 00 00 00 FF 0F 1C [00:35:27]RasterBufferAndPrint [00:35:27]line Отчет о закрытии смены [00:35:27]line ФФД: 1.0 [00:35:27]line ИНН: 02508201610067 [00:35:27]line Кассир: Султанбай уулу А. [00:35:27]line 24.09.2024 00:35 [00:35:27]line Смена: 472 [00:35:27]line РНМ: 0000000000091831 [00:35:27]line ЗНМ: 0300000120 [00:35:27]line СНО: Общий режим [00:35:27]line Чеков за смену: 284 [00:35:27]line ФД за смену: 286 [00:35:27]line Всего чеков: 284 [00:35:27]line ИТОГИ ПРИХОД [00:35:27]line Чеков: 283 [00:35:27]line Общий итог: 162165.81 [00:35:27]line Итого наличными: 113849.00 [00:35:27]line Итого безнал.: 48316.81 [00:35:27]line НДС 0% : 0.00 [00:35:27]line НДС 12% : 17222.83 [00:35:27]line НСП 0% : 0.00 [00:35:27]line НСП 1,50% : 0.00 [00:35:27]line НСП 0,50% : 0.00 [00:35:27]line НСП 5% : 0.00 [00:35:27]line НСП 3% : 0.00 [00:35:27]line НСП 2% : 0.00 [00:35:27]line НСП 1% : 1434.85 [00:35:27]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:35:27]line Чеков: 1 [00:35:27]line Общий итог: 3000.00 [00:35:27]line Итого наличными: 3000.00 [00:35:27]line Итого безнал.: 0.00 [00:35:27]line НДС 0% : 0.00 [00:35:27]line НДС 12% : 318.65 [00:35:27]line НСП 0% : 0.00 [00:35:27]line НСП 1,50% : 0.00 [00:35:27]line НСП 0,50% : 0.00 [00:35:27]line НСП 5% : 0.00 [00:35:27]line НСП 3% : 0.00 [00:35:27]line НСП 2% : 0.00 [00:35:27]line НСП 1% : 26.55 [00:35:27]line ИТОГИ РАСХОД [00:35:27]line Чеков: 0 [00:35:27]line Общий итог: 0.00 [00:35:27]line Итого наличными: 0.00 [00:35:27]line Итого безнал.: 0.00 [00:35:27]line НДС 0% : 0.00 [00:35:27]line НДС 12% : 0.00 [00:35:27]line НСП 0% : 0.00 [00:35:27]line НСП 1,50% : 0.00 [00:35:27]line НСП 0,50% : 0.00 [00:35:27]line НСП 5% : 0.00 [00:35:27]line НСП 3% : 0.00 [00:35:27]line НСП 2% : 0.00 [00:35:27]line НСП 1% : 0.00 [00:35:27]line ИТОГИ ВОЗВРАТ РАСХОДА [00:35:27]line Чеков: 0 [00:35:27]line Общий итог: 0.00 [00:35:27]line Итого наличными: 0.00 [00:35:27]line Итого безнал.: 0.00 [00:35:27]line НДС 0% : 0.00 [00:35:27]line НДС 12% : 0.00 [00:35:27]line НСП 0% : 0.00 [00:35:27]line НСП 1,50% : 0.00 [00:35:27]line НСП 0,50% : 0.00 [00:35:27]line НСП 5% : 0.00 [00:35:27]line НСП 3% : 0.00 [00:35:27]line НСП 2% : 0.00 [00:35:27]line НСП 1% : 0.00 [00:35:27]line Сумма внесений: 0.00 [00:35:27]line Сумма выплат: 0.00 [00:35:27]line Нал. в кассе: 110849.00 [00:35:27]line НС Приход: 64740559.58 [00:35:27]line НС Возвр.Прихода: 2651943.00 [00:35:27]line НС Расход: 0.00 [00:35:27]line НС Возвр.Расхода: 0.00 [00:35:27]line ФД: 115802 [00:35:27]line ФМ: 0000000000871830 [00:35:27]line ФПД: 11983924981086 [00:35:27]OFD Sender: Processing packet 115802 [packets to send 482, broken 481] [00:35:27]ProducePacketName [00:35:27]name=ofd_packets/00115802 [00:35:27]OFD Sender: To server: pG, [00:35:27]CommunicateWithHost lk.salyk.kg:30040 [00:35:27]ConnectInit lk.salyk.kg [00:35:27]written 0, free lines is 4095 [00:35:27]Connected sock=7 [00:35: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 38 33 30 89 05 00 00 23 BF 81 05 BE 9C 5A 05 01 00 05 00 75 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 20 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 90 2E 20 F4 03 04 00 45 09 F2 66 0E 04 04 00 D8 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 5E 04 04 00 1C 01 00 00 57 04 04 00 1E 01 00 00 AA 04 DC 04 6E 04 04 00 1C 01 00 00 69 04 A3 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A 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 Write to MH i2c: 01 01 00 00 00 00 F3 42 03 16 01 58 00 [00:35:28]00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 Write i2c OK [00:35:28]0A MH_I2C_Read... [00:35:28]00 Read from MH i2c: F6 01 03 [00:35:28]01 MH_I2C_Read... [00:35:28]00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 Read from MH i2c: 01 01 00 07 00 00 EF [00:35:28]03 MH_I2C_Read... [00:35:28]0A Read from MH i2c: 00 01 F6 07 03 00 01 42 00 16 05 00 F7 00 03 00 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 00 EF 00 03 5E 0A 09 00 C6 F6 [00:35:28]03 RasterBufferAndPrint [00:35:28]01 line [00:35:28]00 line [00:35:28]03 line [00:35:28]F7 line [00:35:28]03 line [00:35:28]01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 written 0, free lines is 2494 [00:35:28]01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 MH_Cut [00:35:28]00 Write to MH i2c: 00 D1 00 01 00 00 49 16 01 31 [00:35:28]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 Write i2c OK [00:35:28]03 MH_I2C_Read... [00:35:28]09 Read from MH i2c: 00 D1 F2 [00:35:28]03 MH_I2C_Read... [00:35:28]01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 Read from MH i2c: 00 D1 EF 01 03 00 09 [00:35:28]00 MH_I2C_Read... [00:35:28]F6 Read from MH i2c: 03 D1 01 01 00 00 00 49 F7 16 03 00 00 30 00 [00:35:28]EF Write to MH i2c: 03 01 09 00 00 00 4A 16 60 [00:35:28]F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 Write i2c OK [00:35:28]02 MH_I2C_Read... [00:35:28]F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5A C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 0A E6 39 97 6D 5E 70 46 60 6F C7 42 EB C1 [00: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 38 33 30 4F 00 00 00 58 8F 47 00 AA 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 38 33 30 10 04 04 00 5A C4 01 00 F4 03 04 00 92 AE F1 66 B6 04 01 00 00 88 BF EA 36 7A 90 44 54 [00:35:29]CommunicateWithHost err = 0 [00:35:29]CheckOFDResponse [00:35:29]1017 (14) - 77093643461234 [00:35:29]1041 (16) - 0000000000871830 [00:35:29]1040 (4) - 115802 [00:35:29]1012 (4) - 23.09.2024 18:08 [00:35:29]1206 (1) - 0 [00:35:29]OFD Sender: Remove packet 115802 [00:35:29]ProducePacketName [00:35:29]name=ofd_packets/00115802 [00:35:29]NVStorageDeleteData [00:35:30]*** Cut start [00:35:30]*** Partial cut [00:35:30]*** CUTSNS_PIN = 1 [00:35:30]*** CUTSNS_PIN = 0 [00:35:30]OFD Sender: No OFD packet to send [00:35:30]*** Brake cut motor [00:35:30]Read from MH i2c: 01 [00:35:30]MH_I2C_Read... [00:35:30]*** Stop cut motor [00:35:30]*** Cut end [00:35:30]Read from MH i2c: 01 07 00 [00:35:30]MH_I2C_Read... [00:35:30]Read from MH i2c: 01 07 00 4A 16 00 00 00 00 00 FF 0F 75 [00:35:30]process_action close_shift done [00:35:30]requested_data is exist [00:35:30]produce_requested_data [00:35:30]requested_item fd.num is exist - process it [00:35:30]SAM_PROTO_GetFieldsCounters [00:35:30]wFMCommunicate request_size=4 [00:35:30]MH_SAM_APDU [00:35:30]CAPDU: 80 13 00 00 [00:35:30]Write to MH i2c: E2 08 00 4B 16 80 13 00 00 00 00 00 00 DD [00:35:30]Write i2c OK [00:35:30]MH_I2C_Read... [00:35:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:31]Read from MH i2c: E2 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 62 00 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 62 00 4B 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5A C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [00:35: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5A C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:31]wFMCommunicate OK [00:35:31]SAM_PROTO_GetFieldsCounters done [00:35:31]requested_item shift.num is exist - process it [00:35:31]requested_item shift.opened is exist - process it [00:35:31]req_shift_opened [00:35:31]FM_GetShiftState [00:35:31]SAM_PROTO_GetShiftState [00:35:31]wFMCommunicate request_size=4 [00:35:31]MH_SAM_APDU [00:35:31]CAPDU: 80 13 01 00 [00:35:31]Write to MH i2c: E2 08 00 4C 16 80 13 01 00 00 00 00 00 DF [00:35:31]Write i2c OK [00:35:31]MH_I2C_Read... [00:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:31]Read from MH i2c: E2 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 0E 00 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 0E 00 4C 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 EA [00:35:31]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:31]wFMCommunicate OK [00:35:31]SAM_PROTO_GetShiftState done [00:35:31]FM_GetShiftState done [00:35:31]req_shift_opened done [00:35:31]requested_item shift.open_date is exist - process it [00:35:31]req_shift_open_date [00:35:31]FM_GetShiftState [00:35:31]SAM_PROTO_GetShiftState [00:35:31]wFMCommunicate request_size=4 [00:35:31]MH_SAM_APDU [00:35:31]CAPDU: 80 13 01 00 [00:35:31]Write to MH i2c: E2 08 00 4D 16 80 13 01 00 00 00 00 00 E0 [00:35:31]Write i2c OK [00:35:31]MH_I2C_Read... [00:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:31]Read from MH i2c: E2 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 0E 00 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 0E 00 4D 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 EB [00:35:31]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:31]wFMCommunicate OK [00:35:31]SAM_PROTO_GetShiftState done [00:35:31]FM_GetShiftState done [00:35:31]req_shift_open_date done [00:35:31]produce_requested_data done [00:35:31]produce_requested_data return {"fd.num":115802,"shift.num":472,"shift.opened":0,"shift.open_date":0} [00:35:31]process_action_free close_shift [00:35:31]json_value_free [00:35:31]json_value_free done [00:35:31]process_json_proto returns [00:35:31]Send response to host [00:35:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":115802,"shift.num":472,"shift.opened":0,"shift.open_date":0}}} [00:35:31]free response buf [00:35:31]execute_script done [00:35:31]execute_script returns [00:35:31]free content buf [00:35:31]Sock 9.Close socket [00:35:31]Sock 9.Thread stoped [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:39]accept exits with 8 [00:41:39]New connection [00:41:39]New thread 3067010404 created [00:41:39]Thread 3066867044 joined [00:41:39]Waiting for new connection... [00:41:39] Sock 8.Parse request [00:41:39]Sock 8.Check first char [00:41:39]Sock 8.First char is OK [00:41:39]request: POST /json_proto HTTP/1.0 [00:41:39]Method: POST [00:41:39]URL: /json_proto [00:41:39]Method is POST - this is cgi request [00:41:39]url: /json_proto [00:41:39]query_string will be loaded in cgi processing [00:41:39]execute_cgi json_proto POST (null) [00:41:39]execute_cgi path=json_proto method=POST [00:41:39]POST find Content-Length [00:41:39]Host: 172.17.41.136:8080 [00:41:39]Content-Length: 215 [00:41:39]Content-Type: application/json [00:41:39] [00:41:39]POST finish read [00:41:39]Found Content-Length = 215 [00:41:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:39]execute_script... [00:41:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:39]POST & json_proto [00:41:39]process_json_proto [00:41:39]json parsed OK: [00:41:39]protocol is kg_v1.0 [00:41:39]action value=get_value [00:41:39]process_action get_value [00:41:39]cmd_get_value [00:41:39]process_action get_value done [00:41:39]requested_data is exist [00:41:39]produce_requested_data [00:41:39]requested_item kkm.sn is exist - process it [00:41:39]requested_item kkm.ver is exist - process it [00:41:39]requested_item fm.sn is exist - process it [00:41:39]wFMCommunicate request_size=4 [00:41:39]MH_SAM_APDU [00:41:39]CAPDU: 80 11 00 00 [00:41:39]Write to MH i2c: E2 08 00 4E 16 80 11 00 00 00 00 00 00 DE [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:39]Read from MH i2c: E2 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 17 00 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 17 00 4E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2C [00:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:41:39]wFMCommunicate OK [00:41:39]requested_item fd.num is exist - process it [00:41:39]SAM_PROTO_GetFieldsCounters [00:41:39]wFMCommunicate request_size=4 [00:41:39]MH_SAM_APDU [00:41:39]CAPDU: 80 13 00 00 [00:41:39]Write to MH i2c: E2 08 00 4F 16 80 13 00 00 00 00 00 00 E1 [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:39]Read from MH i2c: E2 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 62 00 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 62 00 4F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5A C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [00:41: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5A C4 01 00 0E 04 04 00 D8 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:39]wFMCommunicate OK [00:41:39]SAM_PROTO_GetFieldsCounters done [00:41:39]requested_item shift.num is exist - process it [00:41:39]requested_item shift.opened is exist - process it [00:41:39]req_shift_opened [00:41:39]FM_GetShiftState [00:41:39]SAM_PROTO_GetShiftState [00:41:39]wFMCommunicate request_size=4 [00:41:39]MH_SAM_APDU [00:41:39]CAPDU: 80 13 01 00 [00:41:39]Write to MH i2c: E2 08 00 50 16 80 13 01 00 00 00 00 00 E3 [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:39]Read from MH i2c: E2 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 0E 00 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 0E 00 50 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 EE [00:41:39]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:41:39]wFMCommunicate OK [00:41:39]SAM_PROTO_GetShiftState done [00:41:39]FM_GetShiftState done [00:41:39]req_shift_opened done [00:41:39]requested_item shift.open_date is exist - process it [00:41:39]req_shift_open_date [00:41:39]FM_GetShiftState [00:41:39]SAM_PROTO_GetShiftState [00:41:39]wFMCommunicate request_size=4 [00:41:39]MH_SAM_APDU [00:41:39]CAPDU: 80 13 01 00 [00:41:39]Write to MH i2c: E2 08 00 51 16 80 13 01 00 00 00 00 00 E4 [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:40]Read from MH i2c: E2 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 0E 00 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 0E 00 51 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 EF [00:41:40]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:41:40]wFMCommunicate OK [00:41:40]SAM_PROTO_GetShiftState done [00:41:40]FM_GetShiftState done [00:41:40]req_shift_open_date done [00:41:40]produce_requested_data done [00:41:40]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115802,"shift.num":472,"shift.opened":0,"shift.open_date":0} [00:41:40]process_action_free get_value [00:41:40]json_value_free [00:41:40]json_value_free done [00:41:40]process_json_proto returns [00:41:40]Send response to host [00:41:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":115802,"shift.num":472,"shift.opened":0,"shift.open_date":0}}} [00:41:40]free response buf [00:41:40]execute_script done [00:41:40]execute_script returns [00:41:40]free content buf [00:41:40]Sock 8.Close socket [00:41:40]Sock 8.Thread stoped [00:41:40]accept exits with 9 [00:41:40]New connection [00:41:40]New thread 3066867044 created [00:41:40]Thread 3067010404 joined [00:41:40]Waiting for new connection... [00:41:40] Sock 9.Parse request [00:41:40]Sock 9.Check first char [00:41:40]Sock 9.First char is OK [00:41:40]request: POST /json_proto HTTP/1.0 [00:41:40]Method: POST [00:41:40]URL: /json_proto [00:41:40]Method is POST - this is cgi request [00:41:40]url: /json_proto [00:41:40]query_string will be loaded in cgi processing [00:41:40]execute_cgi json_proto POST (null) [00:41:40]execute_cgi path=json_proto method=POST [00:41:40]POST find Content-Length [00:41:40]Host: 172.17.41.136:8080 [00:41:40]Content-Length: 331 [00:41:40]Content-Type: application/json [00:41:40] [00:41:40]POST finish read [00:41:40]Found Content-Length = 331 [00:41:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:41:40]execute_script... [00:41:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:41:40]POST & json_proto [00:41:40]process_json_proto [00:41:40]json parsed OK: [00:41:40]protocol is kg_v1.0 [00:41:40]action value=get_value [00:41:40]process_action get_value [00:41:40]cmd_get_value [00:41:40]process_action get_value done [00:41:40]requested_data is exist [00:41:40]produce_requested_data [00:41:40]requested_item fm.sale.total is exist - process it [00:41:40]SAM_PROTO_GetFMData [00:41:40]wFMCommunicate request_size=4 [00:41:40]MH_SAM_APDU [00:41:40]CAPDU: 80 13 03 00 [00:41:40]Write to MH i2c: E2 08 00 52 16 80 13 03 00 00 00 00 00 E7 [00:41:40]Write i2c OK [00:41:40]MH_I2C_Read... [00:41:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:41:40]Read from MH i2c: E2 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 FD 00 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 FD 00 52 16 00 C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 48 [00:41:40]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 [00:41:40]wFMCommunicate OK [00:41:40]wFMCommunicate request_size=4 [00:41:40]MH_SAM_APDU [00:41:40]CAPDU: 80 17 00 00 [00:41:40]Write to MH i2c: E2 08 00 53 16 80 17 00 00 00 00 00 00 E9 [00:41:40]Write i2c OK [00:41:40]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 FD 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 FD 00 53 16 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [00:41:41]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:41:41]wFMCommunicate OK [00:41:41]wFMCommunicate request_size=4 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 17 00 00 [00:41:41]Write to MH i2c: E2 08 00 54 16 80 17 00 00 00 00 00 00 EA [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]OFD Sender: No OFD packet to send [00:41:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 FD 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 FD 00 54 16 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FC [00:41:41]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:41:41]wFMCommunicate OK [00:41:41]wFMCommunicate request_size=4 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 17 00 00 [00:41:41]Write to MH i2c: E2 08 00 55 16 80 17 00 00 00 00 00 00 EB [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 FD 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 FD 00 55 16 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 77 [00:41:41]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:41:41]wFMCommunicate OK [00:41:41]wFMCommunicate request_size=4 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 17 00 00 [00:41:41]Write to MH i2c: E2 08 00 56 16 80 17 00 00 00 00 00 00 EC [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 E2 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 E2 00 56 16 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CA [00:41:41]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:41:41]wFMCommunicate OK [00:41:41]SAM_PROTO_GetFMData done [00:41:41]requested_item fm.sale_refund.total is exist - process it [00:41:41]requested_item fm.buy.total is exist - process it [00:41:41]requested_item shift.sale.total is exist - process it [00:41:41]SAM_PROTO_GetShiftData [00:41:41]wFMCommunicate request_size=4 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 13 02 00 [00:41:41]Write to MH i2c: E2 08 00 57 16 80 13 02 00 00 00 00 00 EB [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:41:42]Read from MH i2c: E2 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 FD 00 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 FD 00 57 16 00 B9 04 AA 04 B5 04 6E 04 04 00 1C 01 00 00 69 04 9C 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 92 [00:41:42]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 1C 01 00 00 69 04 9C 00 6F 04 04 00 1B 01 00 00 B1 04 03 00 05 72 F7 70 04 03 00 44 B8 AD 72 04 03 00 C1 B9 49 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 AB 47 1A 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 7D 30 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 79 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:41:42]wFMCommunicate OK [00:41:42]wFMCommunicate request_size=4 [00:41:42]MH_SAM_APDU [00:41:42]CAPDU: 80 17 00 00 [00:41:42]Write to MH i2c: E2 08 00 58 16 80 17 00 00 00 00 00 00 EE [00:41:42]Write i2c OK [00:41:42]MH_I2C_Read... [00:41:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:42]Read from MH i2c: E2 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 FD 00 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 FD 00 58 16 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 16 [00:41:42]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:41:42]wFMCommunicate OK [00:41:42]wFMCommunicate request_size=4 [00:41:42]MH_SAM_APDU [00:41:42]CAPDU: 80 17 00 00 [00:41:42]Write to MH i2c: E2 08 00 59 16 80 17 00 00 00 00 00 00 EF [00:41:42]Write i2c OK [00:41:42]MH_I2C_Read... [00:41:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:42]Read from MH i2c: E2 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 FD 00 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 FD 00 59 16 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 17 [00:41:42]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:41:42]wFMCommunicate OK [00:41:42]wFMCommunicate request_size=4 [00:41:42]MH_SAM_APDU [00:41:42]CAPDU: 80 17 00 00 [00:41:42]Write to MH i2c: E2 08 00 5A 16 80 17 00 00 00 00 00 00 F0 [00:41:42]Write i2c OK [00:41:42]MH_I2C_Read... [00:41:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:43]Read from MH i2c: E2 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 FD 00 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 FD 00 5A 16 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 68 [00:41:43]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:41:43]wFMCommunicate OK [00:41:43]wFMCommunicate request_size=4 [00:41:43]MH_SAM_APDU [00:41:43]CAPDU: 80 17 00 00 [00:41:43]Write to MH i2c: E2 08 00 5B 16 80 17 00 00 00 00 00 00 F1 [00:41:43]Write i2c OK [00:41:43]MH_I2C_Read... [00:41:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:41:43]Read from MH i2c: E2 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 D6 00 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 D6 00 5B 16 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D3 [00:41:43]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:41:43]wFMCommunicate OK [00:41:43]SAM_PROTO_GetShiftData done [00:41:43]requested_item shift.sale.total_cash is exist - process it [00:41:43]requested_item shift.sale_refund.total is exist - process it [00:41:43]requested_item shift.sale_refund.total_cash is exist - process it [00:41:43]requested_item shift.buy.total is exist - process it [00:41:43]requested_item shift.buy.total_cash is exist - process it [00:41:43]produce_requested_data done [00:41:43]produce_requested_data return {"fm.sale.total":64740559.58,"fm.sale_refund.total":2651943.00,"fm.buy.total":0.00,"shift.sale.total":162165.81,"shift.sale.total_cash":113849.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:41:43]process_action_free get_value [00:41:43]json_value_free [00:41:43]json_value_free done [00:41:43]process_json_proto returns [00:41:43]Send response to host [00:41:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64740559.58,"fm.sale_refund.total":2651943.00,"fm.buy.total":0.00,"shift.sale.total":162165.81,"shift.sale.total_cash":113849.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:41:43]free response buf [00:41:43]execute_script done [00:41:43]execute_script returns [00:41:43]free content buf [00:41:43]Sock 9.Close socket [00:41:43]Sock 9.Thread stoped [00:41:43]accept exits with 8 [00:41:43]New connection [00:41:43]New thread 3067010404 created [00:41:43]Thread 3066867044 joined [00:41:43]Waiting for new connection... [00:41:43] Sock 8.Parse request [00:41:43]Sock 8.Check first char [00:41:43]Sock 8.First char is OK [00:41:43]request: POST /json_proto HTTP/1.0 [00:41:43]Method: POST [00:41:43]URL: /json_proto [00:41:43]Method is POST - this is cgi request [00:41:43]url: /json_proto [00:41:43]query_string will be loaded in cgi processing [00:41:43]execute_cgi json_proto POST (null) [00:41:43]execute_cgi path=json_proto method=POST [00:41:43]POST find Content-Length [00:41:43]Host: 172.17.41.136:8080 [00:41:43]Content-Length: 265 [00:41:43]Content-Type: application/json [00:41:43] [00:41:43]POST finish read [00:41:43]Found Content-Length = 265 [00:41:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0432\u0430\u0437\u0431\u0435\u043A\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:43]execute_script... [00:41:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0432\u0430\u0437\u0431\u0435\u043A\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:43]POST & json_proto [00:41:43]process_json_proto [00:41:43]json parsed OK: [00:41:43]protocol is kg_v1.0 [00:41:43]action value=open_shift [00:41:43]process_action open_shift [00:41:43]cmd_open_shift [00:41:43]MH_GetDate [00:41:43]Write to MH i2c: F0 00 00 5C 16 61 [00:41:43]Write i2c OK [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: F0 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: F0 09 00 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: F0 09 00 5C 16 00 CA 0A F2 66 1B D0 5A 64 3F [00:41:43]GetLastDocTimeStamp 1727138117 [00:41:43]current date 1727138506 [00:41:43]FM_GetShiftState [00:41:43]SAM_PROTO_GetShiftState [00:41:43]wFMCommunicate request_size=4 [00:41:43]MH_SAM_APDU [00:41:43]CAPDU: 80 13 01 00 [00:41:43]Write to MH i2c: E2 08 00 5D 16 80 13 01 00 00 00 00 00 F0 [00:41:43]Write i2c OK [00:41:43]MH_I2C_Read... [00:41:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:43]Read from MH i2c: E2 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 0E 00 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 0E 00 5D 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FB [00:41:43]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:41:43]wFMCommunicate OK [00:41:43]SAM_PROTO_GetShiftState done [00:41:43]FM_GetShiftState done [00:41:43]KKMCreateOpenShiftDocument [00:41:43]Load OK [00:41:43]Malloc new data [00:41:43]MH_GetDate [00:41:43]Write to MH i2c: F0 00 00 5E 16 63 [00:41:43]Write i2c OK [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: F0 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: F0 09 00 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: F0 09 00 5E 16 00 CA 0A F2 66 1B D0 5A 64 41 [00:41:43]Malloc new data [00:41:43]KKMCreateOpenShiftDocument OK [00:41:43]KKMSetOpenShiftData OK [00:41:43]ProcessDocumentItem done err = 0, tmpTLVsize=173 [00:41:43]tlvbuf is 011CA420 [00:41:43]KKMLoadAndSignOpenShiftData [00:41:43]SAM_PROTO_ProcessDocument [00:41:43]wFMCommunicate request_size=9 [00:41:43]MH_SAM_APDU [00:41:43]CAPDU: 80 15 01 00 04 02 00 AD 00 [00:41:43]Write to MH i2c: E2 0C 00 5F 16 80 15 01 00 04 00 02 00 AD 00 00 00 AB [00:41:43]Write i2c OK [00:41:43]MH_I2C_Read... [00:41:43]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:41:43]Read from MH i2c: E2 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 03 00 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 03 00 5F 16 00 90 00 E9 [00:41:43]RAPDU: 90 00 [00:41:43]wFMCommunicate OK [00:41:43]wFMCommunicate request_size=23 [00:41:43]MH_SAM_APDU [00:41:43]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:41:43]Write to MH i2c: E2 1A 00 60 16 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 EB [00:41:43]Write i2c OK [00:41:43]MH_I2C_Read... [00:41:43]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:43]Read from MH i2c: E2 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 03 00 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 03 00 60 16 00 90 00 EA [00:41:43]RAPDU: 90 00 [00:41:43]wFMCommunicate OK [00:41:43]wFMCommunicate request_size=32 [00:41:43]MH_SAM_APDU [00:41:43]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 90 D0 B2 D0 B0 D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 AD 2E 20 [00:41:43]Write to MH i2c: E2 23 00 61 16 80 15 02 00 1B 00 FD 03 17 00 D0 90 D0 B2 D0 B0 D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 AD 2E 20 00 00 B8 [00:41:43]Write i2c OK [00:41:43]MH_I2C_Read... [00:41:43]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:43]Read from MH i2c: E2 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 03 00 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 03 00 61 16 00 90 00 EB [00:41:43]RAPDU: 90 00 [00:41:43]wFMCommunicate OK [00:41:43]wFMCommunicate request_size=60 [00:41:43]MH_SAM_APDU [00:41:43]CAPDU: 80 15 02 00 37 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 96 D0 B0 D0 BD D1 8B 2D D0 90 D1 80 D1 8B D0 BA 2C 20 34 30 2E 36 35 38 35 32 33 2C 20 37 33 2E 31 32 35 33 33 36 [00:41:43]Write to MH i2c: E2 3F 00 62 16 80 15 02 00 37 00 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 96 D0 B0 D0 BD D1 8B 2D D0 90 D1 80 D1 8B D0 BA 2C 20 34 30 2E 36 35 38 35 32 33 2C 20 37 33 2E 31 32 35 33 33 36 00 00 69 [00:41:43]Write i2c OK [00:41:43]MH_I2C_Read... [00:41:43]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:43]Read from MH i2c: E2 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 03 00 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 03 00 62 16 00 90 00 EC [00:41:43]RAPDU: 90 00 [00:41:43]wFMCommunicate OK [00:41:43]wFMCommunicate request_size=50 [00:41:43]MH_SAM_APDU [00:41:43]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:41:43]Write to MH i2c: E2 35 00 63 16 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 71 [00:41:43]Write i2c OK [00:41:43]MH_I2C_Read... [00:41:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:44]Read from MH i2c: E2 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 03 00 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 03 00 63 16 00 90 00 ED [00:41:44]RAPDU: 90 00 [00:41:44]wFMCommunicate OK [00:41:44]wFMCommunicate request_size=13 [00:41:44]MH_SAM_APDU [00:41:44]CAPDU: 80 15 02 00 08 F4 03 04 00 CA 0A F2 66 [00:41:44]Write to MH i2c: E2 10 00 64 16 80 15 02 00 08 00 F4 03 04 00 CA 0A F2 66 00 00 31 [00:41:44]Write i2c OK [00:41:44]MH_I2C_Read... [00:41:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:44]Read from MH i2c: E2 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 03 00 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 03 00 64 16 00 90 00 EE [00:41:44]RAPDU: 90 00 [00:41:44]wFMCommunicate OK [00:41:44]wFMCommunicate request_size=25 [00:41:44]MH_SAM_APDU [00:41:44]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [00:41:44]Write to MH i2c: E2 1C 00 65 16 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 5A [00:41:44]Write i2c OK [00:41:44]MH_I2C_Read... [00:41:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:44]Read from MH i2c: E2 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 03 00 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 03 00 65 16 00 90 00 EF [00:41:44]RAPDU: 90 00 [00:41:44]wFMCommunicate OK [00:41:44]wFMCommunicate request_size=4 [00:41:44]MH_SAM_APDU [00:41:44]CAPDU: 80 15 03 00 [00:41:44]Write to MH i2c: E2 08 00 66 16 80 15 03 00 00 00 00 00 FD [00:41:44]Write i2c OK [00:41:44]MH_I2C_Read... [00:41:44]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:41:44]Read from MH i2c: E2 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 38 00 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 38 00 66 16 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 38 33 30 10 04 04 00 5B C4 01 00 0E 04 04 00 D9 01 00 00 35 04 06 00 25 C9 6A 6E 2E 07 90 00 B9 [00:41:44]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 38 33 30 10 04 04 00 5B C4 01 00 0E 04 04 00 D9 01 00 00 35 04 06 00 25 C9 6A 6E 2E 07 90 00 [00:41:44]wFMCommunicate OK [00:41:44]SAM_PROTO_ProcessDocument answer len = 51 [00:41:44]SAM_PROTO_ProcessDocument done [00:41:44]SetTLVBufToDocument [00:41:44]Processing tag 1209 (04B9) [00:41:44]Malloc new data [00:41:44]Processing tag 1041 (0411) [00:41:44]Processing tag 1040 (0410) [00:41:44]Malloc new data [00:41:44]Processing tag 1038 (040E) [00:41:44]Malloc new data [00:41:44]Processing tag 1077 (0435) [00:41:44]Malloc new data [00:41:44]SetTLVBufToDocument err=0 [00:41:44]KKMLoadAndSignOpenShiftData store KKM data [00:41:44]KKMLoadAndSignOpenShiftData err=0 [00:41:44]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Авазбеков Э. Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 Место: АЗС № 90 "Партнер Нефть" 24.09.2024 00:41 Смена: 473 РНМ: 0000000000091831 ЗНМ: 0300000120 ФД: 115803 ФМ: 0000000000871830 ФПД: 41547004259847 [00:41:44]StoreToDocumentArchive [00:41:44]shift 473 fd 115803 [00:41:44]Create dir for shift 0473 [00:41:44]save to /storage/0473/doc_00115803 [00:41:44]save last doc name /storage/0473/doc_00115803 to /storage/kkm_last_doc_name [00:41:44]save OK [00:41:44]Clear old archive folders... [00:41:44]Remove dir /storage/0472 [00:41:44]opendir ok [00:41:44]file . [00:41:44]file .. [00:41:44]file doc_00115517 [00:41:44]remove file /storage/0472/doc_00115517 [00:41:44]file doc_00115518 [00:41:44]remove file /storage/0472/doc_00115518 [00:41:44]file doc_00115519 [00:41:44]remove file /storage/0472/doc_00115519 [00:41:44]file doc_00115520 [00:41:44]remove file /storage/0472/doc_00115520 [00:41:44]file doc_00115521 [00:41:44]remove file /storage/0472/doc_00115521 [00:41:44]file doc_00115522 [00:41:44]remove file /storage/0472/doc_00115522 [00:41:44]file doc_00115523 [00:41:44]remove file /storage/0472/doc_00115523 [00:41:44]file doc_00115524 [00:41:44]remove file /storage/0472/doc_00115524 [00:41:44]file doc_00115525 [00:41:44]remove file /storage/0472/doc_00115525 [00:41:44]file doc_00115526 [00:41:44]remove file /storage/0472/doc_00115526 [00:41:44]file doc_00115527 [00:41:44]remove file /storage/0472/doc_00115527 [00:41:44]file doc_00115528 [00:41:44]remove file /storage/0472/doc_00115528 [00:41:44]file doc_00115529 [00:41:44]remove file /storage/0472/doc_00115529 [00:41:44]file doc_00115530 [00:41:44]remove file /storage/0472/doc_00115530 [00:41:44]file doc_00115531 [00:41:44]remove file /storage/0472/doc_00115531 [00:41:44]file doc_00115532 [00:41:44]remove file /storage/0472/doc_00115532 [00:41:44]file doc_00115533 [00:41:44]remove file /storage/0472/doc_00115533 [00:41:44]file doc_00115534 [00:41:44]remove file /storage/0472/doc_00115534 [00:41:44]file doc_00115535 [00:41:44]remove file /storage/0472/doc_00115535 [00:41:44]file doc_00115536 [00:41:44]remove file /storage/0472/doc_00115536 [00:41:44]file doc_00115537 [00:41:44]remove file /storage/0472/doc_00115537 [00:41:44]file doc_00115538 [00:41:44]remove file /storage/0472/doc_00115538 [00:41:44]file doc_00115539 [00:41:44]remove file /storage/0472/doc_00115539 [00:41:44]file doc_00115540 [00:41:44]remove file /storage/0472/doc_00115540 [00:41:44]file doc_00115541 [00:41:44]remove file /storage/0472/doc_00115541 [00:41:44]file doc_00115542 [00:41:44]remove file /storage/0472/doc_00115542 [00:41:44]file doc_00115543 [00:41:44]remove file /storage/0472/doc_00115543 [00:41:44]file doc_00115544 [00:41:44]remove file /storage/0472/doc_00115544 [00:41:44]file doc_00115545 [00:41:44]remove file /storage/0472/doc_00115545 [00:41:44]file doc_00115546 [00:41:44]remove file /storage/0472/doc_00115546 [00:41:44]file doc_00115547 [00:41:44]remove file /storage/0472/doc_00115547 [00:41:44]file doc_00115548 [00:41:44]remove file /storage/0472/doc_00115548 [00:41:44]file doc_00115549 [00:41:44]remove file /storage/0472/doc_00115549 [00:41:44]file doc_00115550 [00:41:44]remove file /storage/0472/doc_00115550 [00:41:44]file doc_00115551 [00:41:44]remove file /storage/0472/doc_00115551 [00:41:44]file doc_00115552 [00:41:44]remove file /storage/0472/doc_00115552 [00:41:44]file doc_00115553 [00:41:44]remove file /storage/0472/doc_00115553 [00:41:44]file doc_00115554 [00:41:44]remove file /storage/0472/doc_00115554 [00:41:44]file doc_00115555 [00:41:44]remove file /storage/0472/doc_00115555 [00:41:44]file doc_00115556 [00:41:44]remove file /storage/0472/doc_00115556 [00:41:44]file doc_00115557 [00:41:44]remove file /storage/0472/doc_00115557 [00:41:44]file doc_00115558 [00:41:44]remove file /storage/0472/doc_00115558 [00:41:44]file doc_00115559 [00:41:44]remove file /storage/0472/doc_00115559 [00:41:44]file doc_00115560 [00:41:44]remove file /storage/0472/doc_00115560 [00:41:44]file doc_00115561 [00:41:44]remove file /storage/0472/doc_00115561 [00:41:44]file doc_00115562 [00:41:44]remove file /storage/0472/doc_00115562 [00:41:44]file doc_00115563 [00:41:44]remove file /storage/0472/doc_00115563 [00:41:44]file doc_00115564 [00:41:44]remove file /storage/0472/doc_00115564 [00:41:44]file doc_00115565 [00:41:44]remove file /storage/0472/doc_00115565 [00:41:44]file doc_00115566 [00:41:44]remove file /storage/0472/doc_00115566 [00:41:44]file doc_00115567 [00:41:44]remove file /storage/0472/doc_00115567 [00:41:44]file doc_00115568 [00:41:44]remove file /storage/0472/doc_00115568 [00:41:44]file doc_00115569 [00:41:44]remove file /storage/0472/doc_00115569 [00:41:44]file doc_00115570 [00:41:44]remove file /storage/0472/doc_00115570 [00:41:44]file doc_00115571 [00:41:44]remove file /storage/0472/doc_00115571 [00:41:44]file doc_00115572 [00:41:44]remove file /storage/0472/doc_00115572 [00:41:44]file doc_00115573 [00:41:44]remove file /storage/0472/doc_00115573 [00:41:44]file doc_00115574 [00:41:44]remove file /storage/0472/doc_00115574 [00:41:44]file doc_00115575 [00:41:44]remove file /storage/0472/doc_00115575 [00:41:44]file doc_00115576 [00:41:44]remove file /storage/0472/doc_00115576 [00:41:44]file doc_00115577 [00:41:44]remove file /storage/0472/doc_00115577 [00:41:44]file doc_00115578 [00:41:44]remove file /storage/0472/doc_00115578 [00:41:44]file doc_00115579 [00:41:44]remove file /storage/0472/doc_00115579 [00:41:44]file doc_00115580 [00:41:44]remove file /storage/0472/doc_00115580 [00:41:44]file doc_00115581 [00:41:44]remove file /storage/0472/doc_00115581 [00:41:44]file doc_00115582 [00:41:44]remove file /storage/0472/doc_00115582 [00:41:44]file doc_00115583 [00:41:44]remove file /storage/0472/doc_00115583 [00:41:44]file doc_00115584 [00:41:44]remove file /storage/0472/doc_00115584 [00:41:44]file doc_00115585 [00:41:44]remove file /storage/0472/doc_00115585 [00:41:44]file doc_00115586 [00:41:44]remove file /storage/0472/doc_00115586 [00:41:44]file doc_00115587 [00:41:44]remove file /storage/0472/doc_00115587 [00:41:44]file doc_00115588 [00:41:44]remove file /storage/0472/doc_00115588 [00:41:44]file doc_00115589 [00:41:44]remove file /storage/0472/doc_00115589 [00:41:44]file doc_00115590 [00:41:44]remove file /storage/0472/doc_00115590 [00:41:44]file doc_00115591 [00:41:44]remove file /storage/0472/doc_00115591 [00:41:44]file doc_00115592 [00:41:44]remove file /storage/0472/doc_00115592 [00:41:44]file doc_00115593 [00:41:44]remove file /storage/0472/doc_00115593 [00:41:44]file doc_00115594 [00:41:44]remove file /storage/0472/doc_00115594 [00:41:44]file doc_00115595 [00:41:44]remove file /storage/0472/doc_00115595 [00:41:44]file doc_00115596 [00:41:44]remove file /storage/0472/doc_00115596 [00:41:44]file doc_00115597 [00:41:44]remove file /storage/0472/doc_00115597 [00:41:44]file doc_00115598 [00:41:44]remove file /storage/0472/doc_00115598 [00:41:44]file doc_00115599 [00:41:44]remove file /storage/0472/doc_00115599 [00:41:44]file doc_00115600 [00:41:44]remove file /storage/0472/doc_00115600 [00:41:44]file doc_00115601 [00:41:44]remove file /storage/0472/doc_00115601 [00:41:44]file doc_00115602 [00:41:44]remove file /storage/0472/doc_00115602 [00:41:44]file doc_00115603 [00:41:44]remove file /storage/0472/doc_00115603 [00:41:44]file doc_00115604 [00:41:44]remove file /storage/0472/doc_00115604 [00:41:44]file doc_00115605 [00:41:44]remove file /storage/0472/doc_00115605 [00:41:44]file doc_00115606 [00:41:45]remove file /storage/0472/doc_00115606 [00:41:45]file doc_00115607 [00:41:45]remove file /storage/0472/doc_00115607 [00:41:45]file doc_00115608 [00:41:45]remove file /storage/0472/doc_00115608 [00:41:45]file doc_00115609 [00:41:45]remove file /storage/0472/doc_00115609 [00:41:45]file doc_00115610 [00:41:45]remove file /storage/0472/doc_00115610 [00:41:45]file doc_00115611 [00:41:45]remove file /storage/0472/doc_00115611 [00:41:45]file doc_00115612 [00:41:45]remove file /storage/0472/doc_00115612 [00:41:45]file doc_00115613 [00:41:45]remove file /storage/0472/doc_00115613 [00:41:45]file doc_00115614 [00:41:45]remove file /storage/0472/doc_00115614 [00:41:45]file doc_00115615 [00:41:45]remove file /storage/0472/doc_00115615 [00:41:45]file doc_00115616 [00:41:45]remove file /storage/0472/doc_00115616 [00:41:45]file doc_00115617 [00:41:45]remove file /storage/0472/doc_00115617 [00:41:45]file doc_00115618 [00:41:45]remove file /storage/0472/doc_00115618 [00:41:45]file doc_00115619 [00:41:45]remove file /storage/0472/doc_00115619 [00:41:45]file doc_00115620 [00:41:45]remove file /storage/0472/doc_00115620 [00:41:45]file doc_00115621 [00:41:45]remove file /storage/0472/doc_00115621 [00:41:45]file doc_00115622 [00:41:45]remove file /storage/0472/doc_00115622 [00:41:45]file doc_00115623 [00:41:45]remove file /storage/0472/doc_00115623 [00:41:45]file doc_00115624 [00:41:45]remove file /storage/0472/doc_00115624 [00:41:45]file doc_00115625 [00:41:45]remove file /storage/0472/doc_00115625 [00:41:45]file doc_00115626 [00:41:45]remove file /storage/0472/doc_00115626 [00:41:45]file doc_00115627 [00:41:45]remove file /storage/0472/doc_00115627 [00:41:45]file doc_00115628 [00:41:45]remove file /storage/0472/doc_00115628 [00:41:45]file doc_00115629 [00:41:45]remove file /storage/0472/doc_00115629 [00:41:45]file doc_00115630 [00:41:45]remove file /storage/0472/doc_00115630 [00:41:45]file doc_00115631 [00:41:45]remove file /storage/0472/doc_00115631 [00:41:45]file doc_00115632 [00:41:45]remove file /storage/0472/doc_00115632 [00:41:45]file doc_00115633 [00:41:45]remove file /storage/0472/doc_00115633 [00:41:45]file doc_00115634 [00:41:45]remove file /storage/0472/doc_00115634 [00:41:45]file doc_00115635 [00:41:45]remove file /storage/0472/doc_00115635 [00:41:45]file doc_00115636 [00:41:45]remove file /storage/0472/doc_00115636 [00:41:45]file doc_00115637 [00:41:45]remove file /storage/0472/doc_00115637 [00:41:45]file doc_00115638 [00:41:45]remove file /storage/0472/doc_00115638 [00:41:45]file doc_00115639 [00:41:45]remove file /storage/0472/doc_00115639 [00:41:45]file doc_00115640 [00:41:45]remove file /storage/0472/doc_00115640 [00:41:45]file doc_00115641 [00:41:45]remove file /storage/0472/doc_00115641 [00:41:45]file doc_00115642 [00:41:45]remove file /storage/0472/doc_00115642 [00:41:45]file doc_00115643 [00:41:45]remove file /storage/0472/doc_00115643 [00:41:45]file doc_00115644 [00:41:45]remove file /storage/0472/doc_00115644 [00:41:45]file doc_00115645 [00:41:45]remove file /storage/0472/doc_00115645 [00:41:45]file doc_00115646 [00:41:45]remove file /storage/0472/doc_00115646 [00:41:45]file doc_00115647 [00:41:45]remove file /storage/0472/doc_00115647 [00:41:45]file doc_00115648 [00:41:45]remove file /storage/0472/doc_00115648 [00:41:45]file doc_00115649 [00:41:45]remove file /storage/0472/doc_00115649 [00:41:45]file doc_00115650 [00:41:45]remove file /storage/0472/doc_00115650 [00:41:45]file doc_00115651 [00:41:45]remove file /storage/0472/doc_00115651 [00:41:45]file doc_00115652 [00:41:45]remove file /storage/0472/doc_00115652 [00:41:45]file doc_00115653 [00:41:45]remove file /storage/0472/doc_00115653 [00:41:45]file doc_00115654 [00:41:45]remove file /storage/0472/doc_00115654 [00:41:45]file doc_00115655 [00:41:45]remove file /storage/0472/doc_00115655 [00:41:45]file doc_00115656 [00:41:45]remove file /storage/0472/doc_00115656 [00:41:45]file doc_00115657 [00:41:45]remove file /storage/0472/doc_00115657 [00:41:45]file doc_00115658 [00:41:45]remove file /storage/0472/doc_00115658 [00:41:45]file doc_00115659 [00:41:45]remove file /storage/0472/doc_00115659 [00:41:45]file doc_00115660 [00:41:45]remove file /storage/0472/doc_00115660 [00:41:45]file doc_00115661 [00:41:45]remove file /storage/0472/doc_00115661 [00:41:45]file doc_00115662 [00:41:45]remove file /storage/0472/doc_00115662 [00:41:45]file doc_00115663 [00:41:45]remove file /storage/0472/doc_00115663 [00:41:45]file doc_00115664 [00:41:45]remove file /storage/0472/doc_00115664 [00:41:45]file doc_00115665 [00:41:45]remove file /storage/0472/doc_00115665 [00:41:45]file doc_00115666 [00:41:45]remove file /storage/0472/doc_00115666 [00:41:45]file doc_00115667 [00:41:45]remove file /storage/0472/doc_00115667 [00:41:45]file doc_00115668 [00:41:45]remove file /storage/0472/doc_00115668 [00:41:45]file doc_00115669 [00:41:45]remove file /storage/0472/doc_00115669 [00:41:45]file doc_00115670 [00:41:45]remove file /storage/0472/doc_00115670 [00:41:45]file doc_00115671 [00:41:45]remove file /storage/0472/doc_00115671 [00:41:45]file doc_00115672 [00:41:45]remove file /storage/0472/doc_00115672 [00:41:45]file doc_00115673 [00:41:45]remove file /storage/0472/doc_00115673 [00:41:45]file doc_00115674 [00:41:45]remove file /storage/0472/doc_00115674 [00:41:45]file doc_00115675 [00:41:45]remove file /storage/0472/doc_00115675 [00:41:45]file doc_00115676 [00:41:45]remove file /storage/0472/doc_00115676 [00:41:45]file doc_00115677 [00:41:45]remove file /storage/0472/doc_00115677 [00:41:45]file doc_00115678 [00:41:45]remove file /storage/0472/doc_00115678 [00:41:45]file doc_00115679 [00:41:45]remove file /storage/0472/doc_00115679 [00:41:45]file doc_00115680 [00:41:45]remove file /storage/0472/doc_00115680 [00:41:45]file doc_00115681 [00:41:45]remove file /storage/0472/doc_00115681 [00:41:45]file doc_00115682 [00:41:45]remove file /storage/0472/doc_00115682 [00:41:45]file doc_00115683 [00:41:45]remove file /storage/0472/doc_00115683 [00:41:45]file doc_00115684 [00:41:45]remove file /storage/0472/doc_00115684 [00:41:45]file doc_00115685 [00:41:45]remove file /storage/0472/doc_00115685 [00:41:45]file doc_00115686 [00:41:45]remove file /storage/0472/doc_00115686 [00:41:45]file doc_00115687 [00:41:45]remove file /storage/0472/doc_00115687 [00:41:45]file doc_00115688 [00:41:45]remove file /storage/0472/doc_00115688 [00:41:45]file doc_00115689 [00:41:45]remove file /storage/0472/doc_00115689 [00:41:45]file doc_00115690 [00:41:45]remove file /storage/0472/doc_00115690 [00:41:45]file doc_00115691 [00:41:45]remove file /storage/0472/doc_00115691 [00:41:45]file doc_00115692 [00:41:45]remove file /storage/0472/doc_00115692 [00:41:45]file doc_00115693 [00:41:45]remove file /storage/0472/doc_00115693 [00:41:45]file doc_00115694 [00:41:45]remove file /storage/0472/doc_00115694 [00:41:45]file doc_00115695 [00:41:45]remove file /storage/0472/doc_00115695 [00:41:45]file doc_00115696 [00:41:45]remove file /storage/0472/doc_00115696 [00:41:45]file doc_00115697 [00:41:45]remove file /storage/0472/doc_00115697 [00:41:45]file doc_00115698 [00:41:45]remove file /storage/0472/doc_00115698 [00:41:45]file doc_00115699 [00:41:45]remove file /storage/0472/doc_00115699 [00:41:45]file doc_00115700 [00:41:45]remove file /storage/0472/doc_00115700 [00:41:45]file doc_00115701 [00:41:45]remove file /storage/0472/doc_00115701 [00:41:45]file doc_00115702 [00:41:45]remove file /storage/0472/doc_00115702 [00:41:45]file doc_00115703 [00:41:45]remove file /storage/0472/doc_00115703 [00:41:45]file doc_00115704 [00:41:45]remove file /storage/0472/doc_00115704 [00:41:45]file doc_00115705 [00:41:45]remove file /storage/0472/doc_00115705 [00:41:45]file doc_00115706 [00:41:45]remove file /storage/0472/doc_00115706 [00:41:45]file doc_00115707 [00:41:45]remove file /storage/0472/doc_00115707 [00:41:45]file doc_00115708 [00:41:45]remove file /storage/0472/doc_00115708 [00:41:45]file doc_00115709 [00:41:45]remove file /storage/0472/doc_00115709 [00:41:45]file doc_00115710 [00:41:45]remove file /storage/0472/doc_00115710 [00:41:45]file doc_00115711 [00:41:45]remove file /storage/0472/doc_00115711 [00:41:45]file doc_00115712 [00:41:45]remove file /storage/0472/doc_00115712 [00:41:45]file doc_00115713 [00:41:45]remove file /storage/0472/doc_00115713 [00:41:45]file doc_00115714 [00:41:45]remove file /storage/0472/doc_00115714 [00:41:45]file doc_00115715 [00:41:45]remove file /storage/0472/doc_00115715 [00:41:45]file doc_00115716 [00:41:45]remove file /storage/0472/doc_00115716 [00:41:45]file doc_00115717 [00:41:45]remove file /storage/0472/doc_00115717 [00:41:45]file doc_00115718 [00:41:45]remove file /storage/0472/doc_00115718 [00:41:45]file doc_00115719 [00:41:45]remove file /storage/0472/doc_00115719 [00:41:45]file doc_00115720 [00:41:45]remove file /storage/0472/doc_00115720 [00:41:45]file doc_00115721 [00:41:45]remove file /storage/0472/doc_00115721 [00:41:45]file doc_00115722 [00:41:45]remove file /storage/0472/doc_00115722 [00:41:45]file doc_00115723 [00:41:45]remove file /storage/0472/doc_00115723 [00:41:45]file doc_00115724 [00:41:45]remove file /storage/0472/doc_00115724 [00:41:45]file doc_00115725 [00:41:45]remove file /storage/0472/doc_00115725 [00:41:45]file doc_00115726 [00:41:45]remove file /storage/0472/doc_00115726 [00:41:45]file doc_00115727 [00:41:45]remove file /storage/0472/doc_00115727 [00:41:45]file doc_00115728 [00:41:45]remove file /storage/0472/doc_00115728 [00:41:45]file doc_00115729 [00:41:45]remove file /storage/0472/doc_00115729 [00:41:45]file doc_00115730 [00:41:45]remove file /storage/0472/doc_00115730 [00:41:45]file doc_00115731 [00:41:45]remove file /storage/0472/doc_00115731 [00:41:45]file doc_00115732 [00:41:45]remove file /storage/0472/doc_00115732 [00:41:45]file doc_00115733 [00:41:45]remove file /storage/0472/doc_00115733 [00:41:45]file doc_00115734 [00:41:45]remove file /storage/0472/doc_00115734 [00:41:45]file doc_00115735 [00:41:45]remove file /storage/0472/doc_00115735 [00:41:45]file doc_00115736 [00:41:45]remove file /storage/0472/doc_00115736 [00:41:45]file doc_00115737 [00:41:45]remove file /storage/0472/doc_00115737 [00:41:45]file doc_00115738 [00:41:45]remove file /storage/0472/doc_00115738 [00:41:45]file doc_00115739 [00:41:45]remove file /storage/0472/doc_00115739 [00:41:45]file doc_00115740 [00:41:45]remove file /storage/0472/doc_00115740 [00:41:45]file doc_00115741 [00:41:45]remove file /storage/0472/doc_00115741 [00:41:45]file doc_00115742 [00:41:45]remove file /storage/0472/doc_00115742 [00:41:45]file doc_00115743 [00:41:45]remove file /storage/0472/doc_00115743 [00:41:45]file doc_00115744 [00:41:45]remove file /storage/0472/doc_00115744 [00:41:45]file doc_00115745 [00:41:45]remove file /storage/0472/doc_00115745 [00:41:45]file doc_00115746 [00:41:45]remove file /storage/0472/doc_00115746 [00:41:45]file doc_00115747 [00:41:45]remove file /storage/0472/doc_00115747 [00:41:45]file doc_00115748 [00:41:45]remove file /storage/0472/doc_00115748 [00:41:45]file doc_00115749 [00:41:45]remove file /storage/0472/doc_00115749 [00:41:45]file doc_00115750 [00:41:45]remove file /storage/0472/doc_00115750 [00:41:45]file doc_00115751 [00:41:45]remove file /storage/0472/doc_00115751 [00:41:45]file doc_00115752 [00:41:45]remove file /storage/0472/doc_00115752 [00:41:45]file doc_00115753 [00:41:45]remove file /storage/0472/doc_00115753 [00:41:45]file doc_00115754 [00:41:45]remove file /storage/0472/doc_00115754 [00:41:45]file doc_00115755 [00:41:45]remove file /storage/0472/doc_00115755 [00:41:45]file doc_00115756 [00:41:45]remove file /storage/0472/doc_00115756 [00:41:45]file doc_00115757 [00:41:45]remove file /storage/0472/doc_00115757 [00:41:45]file doc_00115758 [00:41:45]remove file /storage/0472/doc_00115758 [00:41:45]file doc_00115759 [00:41:45]remove file /storage/0472/doc_00115759 [00:41:45]file doc_00115760 [00:41:45]remove file /storage/0472/doc_00115760 [00:41:45]file doc_00115761 [00:41:45]remove file /storage/0472/doc_00115761 [00:41:45]file doc_00115762 [00:41:45]remove file /storage/0472/doc_00115762 [00:41:45]file doc_00115763 [00:41:45]remove file /storage/0472/doc_00115763 [00:41:45]file doc_00115764 [00:41:45]remove file /storage/0472/doc_00115764 [00:41:45]file doc_00115765 [00:41:45]remove file /storage/0472/doc_00115765 [00:41:45]file doc_00115766 [00:41:45]remove file /storage/0472/doc_00115766 [00:41:45]file doc_00115767 [00:41:45]remove file /storage/0472/doc_00115767 [00:41:45]file doc_00115768 [00:41:45]remove file /storage/0472/doc_00115768 [00:41:45]file doc_00115769 [00:41:45]remove file /storage/0472/doc_00115769 [00:41:45]file doc_00115770 [00:41:45]remove file /storage/0472/doc_00115770 [00:41:45]file doc_00115771 [00:41:45]remove file /storage/0472/doc_00115771 [00:41:45]file doc_00115772 [00:41:45]remove file /storage/0472/doc_00115772 [00:41:45]file doc_00115773 [00:41:45]remove file /storage/0472/doc_00115773 [00:41:45]file doc_00115774 [00:41:45]remove file /storage/0472/doc_00115774 [00:41:45]file doc_00115775 [00:41:45]remove file /storage/0472/doc_00115775 [00:41:45]file doc_00115776 [00:41:45]remove file /storage/0472/doc_00115776 [00:41:45]file doc_00115777 [00:41:45]remove file /storage/0472/doc_00115777 [00:41:46]file doc_00115778 [00:41:46]remove file /storage/0472/doc_00115778 [00:41:46]file doc_00115779 [00:41:46]remove file /storage/0472/doc_00115779 [00:41:46]file doc_00115780 [00:41:46]remove file /storage/0472/doc_00115780 [00:41:46]file doc_00115781 [00:41:46]remove file /storage/0472/doc_00115781 [00:41:46]file doc_00115782 [00:41:46]remove file /storage/0472/doc_00115782 [00:41:46]file doc_00115783 [00:41:46]remove file /storage/0472/doc_00115783 [00:41:46]file doc_00115784 [00:41:46]remove file /storage/0472/doc_00115784 [00:41:46]file doc_00115785 [00:41:46]remove file /storage/0472/doc_00115785 [00:41:46]file doc_00115786 [00:41:46]remove file /storage/0472/doc_00115786 [00:41:46]file doc_00115787 [00:41:46]remove file /storage/0472/doc_00115787 [00:41:46]file doc_00115788 [00:41:46]remove file /storage/0472/doc_00115788 [00:41:46]file doc_00115789 [00:41:46]remove file /storage/0472/doc_00115789 [00:41:46]file doc_00115790 [00:41:46]remove file /storage/0472/doc_00115790 [00:41:46]file doc_00115791 [00:41:46]remove file /storage/0472/doc_00115791 [00:41:46]file doc_00115792 [00:41:46]remove file /storage/0472/doc_00115792 [00:41:46]file doc_00115793 [00:41:46]remove file /storage/0472/doc_00115793 [00:41:46]file doc_00115794 [00:41:46]remove file /storage/0472/doc_00115794 [00:41:46]file doc_00115795 [00:41:46]remove file /storage/0472/doc_00115795 [00:41:46]file doc_00115796 [00:41:46]remove file /storage/0472/doc_00115796 [00:41:46]file doc_00115797 [00:41:46]remove file /storage/0472/doc_00115797 [00:41:46]file doc_00115798 [00:41:46]remove file /storage/0472/doc_00115798 [00:41:46]file doc_00115799 [00:41:46]remove file /storage/0472/doc_00115799 [00:41:46]file doc_00115800 [00:41:46]remove file /storage/0472/doc_00115800 [00:41:46]file doc_00115801 [00:41:46]remove file /storage/0472/doc_00115801 [00:41:46]file doc_00115802 [00:41:46]remove file /storage/0472/doc_00115802 [00:41:46]remove dir /storage/0472 [00:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=224 [00:41:46]tlvbuf is 01208F00 [00:41:46]SAM_PROTO_ClearQueue [00:41:46]wFMCommunicate request_size=4 [00:41:46]MH_SAM_APDU [00:41:46]CAPDU: 80 09 00 00 [00:41:46]Write to MH i2c: E2 08 00 67 16 80 09 00 00 00 00 00 00 EF [00:41:46]Write i2c OK [00:41:46]MH_I2C_Read... [00:41:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:46]Read from MH i2c: E2 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 03 00 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 03 00 67 16 00 90 00 F1 [00:41:46]RAPDU: 90 00 [00:41:46]wFMCommunicate OK [00:41:46]SAM_PROTO_ClearQueue done [00:41:46]KKMCreateOFDPacket [00:41:46]OFDProtocolAddRootSTLVToBuf [00:41:46]FM_MakeSignedData [00:41:46]FM_MakeSignedData [00:41:46]SAM_PROTO_SignData [00:41:46]wFMCommunicate request_size=4 [00:41:46]MH_SAM_APDU [00:41:46]CAPDU: 80 0D 01 02 [00:41:46]Write to MH i2c: E2 08 00 68 16 80 0D 01 02 00 00 00 00 F7 [00:41:46]Write i2c OK [00:41:46]MH_I2C_Read... [00:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:46]Read from MH i2c: E2 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 03 00 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 03 00 68 16 00 90 00 F2 [00:41:46]RAPDU: 90 00 [00:41:46]wFMCommunicate OK [00:41:46]wFMCommunicate request_size=233 [00:41:46]MH_SAM_APDU [00:41:46]CAPDU: 80 0D 02 02 E4 02 00 E0 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 90 D0 B2 D0 B0 D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 AD 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 96 D0 B0 D0 BD D1 8B 2D D0 90 D1 80 D1 8B D0 BA 2C 20 34 30 2E 36 35 38 35 32 33 2C 20 37 33 2E 31 32 35 33 33 36 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 CA 0A F2 66 0E 04 04 00 D9 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5B C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 25 C9 6A 6E 2E 07 [00:41:46]Write to MH i2c: E2 EC 00 69 16 80 0D 02 02 E4 00 02 00 E0 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 90 D0 B2 D0 B0 D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 AD 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 96 D0 B0 D0 BD D1 8B 2D D0 90 D1 80 D1 8B D0 BA 2C 20 34 30 2E 36 35 38 35 32 33 2C 20 37 33 2E 31 32 35 33 33 36 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 CA 0A F2 66 0E 04 04 00 D9 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5B C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 25 C9 6A 6E 2E 07 00 00 DF [00:41:46]OFD Sender: No OFD packet to send [00:41:46]Write i2c OK [00:41:46]MH_I2C_Read... [00:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:46]Read from MH i2c: E2 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 03 00 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 03 00 69 16 00 90 00 F3 [00:41:46]RAPDU: 90 00 [00:41:46]wFMCommunicate OK [00:41:46]wFMCommunicate request_size=4 [00:41:46]MH_SAM_APDU [00:41:46]CAPDU: 80 0D 03 02 [00:41:46]Write to MH i2c: E2 08 00 6A 16 80 0D 03 02 00 00 00 00 FB [00:41:46]Write i2c OK [00:41:46]MH_I2C_Read... [00:41:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:46]Read from MH i2c: E2 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 0B 00 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 0B 00 6A 16 00 8F 01 88 15 D1 15 93 1F 90 00 C1 [00:41:46]RAPDU: 8F 01 88 15 D1 15 93 1F 90 00 [00:41:46]wFMCommunicate OK [00:41:46]SAM_PROTO_SignData done [00:41:46]FM_MakeSignedData done [00:41:46]CreateOFDProtocolMessage [00:41:46]wFMCommunicate request_size=4 [00:41:46]MH_SAM_APDU [00:41:46]CAPDU: 80 11 00 00 [00:41:46]Write to MH i2c: E2 08 00 6B 16 80 11 00 00 00 00 00 00 FB [00:41:46]Write i2c OK [00:41:46]MH_I2C_Read... [00:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:46]Read from MH i2c: E2 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 17 00 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 17 00 6B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 49 [00:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [00:41:46]wFMCommunicate OK [00:41:46]CreateOFDProtocolMessage done [00:41:46]OFDSenderStorePacket 115803 [00:41:46]StoreOFDPacket docnum=115803 [00:41:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F4 00 00 00 46 F4 EC 00 1D B9 5A 02 01 00 02 00 E0 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 90 D0 B2 D0 B0 D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 AD 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 96 D0 B0 D0 BD D1 8B 2D D0 90 D1 80 D1 8B D0 BA 2C 20 34 30 2E 36 35 38 35 32 33 2C 20 37 33 2E 31 32 35 33 33 36 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 CA 0A F2 66 0E 04 04 00 D9 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5B C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 25 C9 6A 6E 2E 07 8F 01 88 15 D1 15 93 1F [00:41:46]CheckFolder [00:41:46]dirname=/storage/ofd_packets [00:41:46]CheckFolder done [00:41:46]ProducePacketName [00:41:46]name=ofd_packets/00115803 [00:41:46]NVStorageSaveData ofd_packets/00115803 [00:41:46]File name is /storage/ofd_packets/00115803 [00:41:46]Write 274 bytes [00:41:46]NVStorageSaveData done [00:41:46]OFDSenderStorePacket done [00:41:46]KKMCreateOFDPacket done [00:41:46]NVStorageSaveData kkm_last_timestamp [00:41:46]File name is /storage/kkm_last_timestamp [00:41:46]Write 4 bytes [00:41:46]NVStorageSaveData done [00:41:46]ExternCall_PrintAddStr [00:41:46]wPrintStart [00:41:46]Write to MH i2c: 01 00 00 6C 16 82 [00:41:46]Write i2c OK [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: 01 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: 01 07 00 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: 01 07 00 6C 16 00 00 00 00 00 FF 0F 97 [00:41:46]RasterBufferAndPrint [00:41:46]line Отчет об открытии смены [00:41:46]line ФФД: 1.0 [00:41:46]line ИНН: 02508201610067 [00:41:46]line Кассир: Авазбеков Э. [00:41:46]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [00:41:46]line Место: АЗС № 90 "Партнер Нефть" [00:41:46]line 24.09.2024 00:41 [00:41:46]line Смена: 473 [00:41:46]line РНМ: 0000000000091831 [00:41:46]line ЗНМ: 0300000120 [00:41:46]line ФД: 115803 [00:41:46]line ФМ: 0000000000871830 [00:41:46]line ФПД: 41547004259847 [00:41:46]OFD Sender: Processing packet 115803 [packets to send 482, broken 481] [00:41:46]ProducePacketName [00:41:46]name=ofd_packets/00115803 [00:41:46]OFD Sender: To server: pG, [00:41:46]CommunicateWithHost lk.salyk.kg:30040 [00:41:46]ConnectInit lk.salyk.kg [00:41:46]written 0, free lines is 4095 [00:41:47]Write to MH i2c: 01 00 00 7D 16 93 [00:41:47]Write i2c OK [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: 01 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: 01 07 00 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: 01 07 00 7D 16 00 00 00 00 00 6B 0E 13 [00:41:47]RasterBufferAndPrint [00:41:47]line [00:41:47]line [00:41:47]line [00:41:47]line [00:41:47]line [00:41:47]written 0, free lines is 3701 [00:41:47]MH_Cut [00:41:47]Write to MH i2c: D1 01 00 84 16 01 6C [00:41:47]Write i2c OK [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: D1 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: D1 01 00 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: D1 01 00 84 16 00 6B [00:41:47]Write to MH i2c: 01 00 00 85 16 9B [00:41:47]Write i2c OK [00:41:47]MH_I2C_Read... [00:41:47]Connected sock=10 [00:41: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 38 33 30 F4 00 00 00 46 F4 EC 00 1D B9 5A 02 01 00 02 00 E0 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 90 D0 B2 D0 B0 D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 AD 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 96 D0 B0 D0 BD D1 8B 2D D0 90 D1 80 D1 8B D0 BA 2C 20 34 30 2E 36 35 38 35 32 33 2C 20 37 33 2E 31 32 35 33 33 36 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 CA 0A F2 66 0E 04 04 00 D9 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5B C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 25 C9 6A 6E 2E 07 8F 01 88 15 D1 15 93 1F [00:41:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F4 0D 47 00 3C 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 38 33 30 10 04 04 00 5B C4 01 00 F4 03 04 00 0C B0 F1 66 B6 04 01 00 00 B7 22 4A 90 04 29 A0 1B [00:41:47]CommunicateWithHost err = 0 [00:41:47]CheckOFDResponse [00:41:47]1017 (14) - 77093643461234 [00:41:47]1041 (16) - 0000000000871830 [00:41:47]1040 (4) - 115803 [00:41:47]1012 (4) - 23.09.2024 18:14 [00:41:47]1206 (1) - 0 [00:41:47]OFD Sender: Remove packet 115803 [00:41:47]ProducePacketName [00:41:47]name=ofd_packets/00115803 [00:41:47]NVStorageDeleteData [00:41:47]*** Cut start [00:41:47]*** Partial cut [00:41:47]*** CUTSNS_PIN = 1 [00:41:47]*** CUTSNS_PIN = 0 [00:41:48]*** Brake cut motor [00:41:48]OFD Sender: No OFD packet to send [00:41:48]Read from MH i2c: 01 [00:41:48]MH_I2C_Read... [00:41:48]*** Stop cut motor [00:41:48]*** Cut end [00:41:48]Read from MH i2c: 01 07 00 [00:41:48]MH_I2C_Read... [00:41:48]Read from MH i2c: 01 07 00 85 16 00 00 00 00 00 FF 0F B0 [00:41:48]process_action open_shift done [00:41:48]requested_data is exist [00:41:48]produce_requested_data [00:41:48]requested_item fd.num is exist - process it [00:41:48]SAM_PROTO_GetFieldsCounters [00:41:48]wFMCommunicate request_size=4 [00:41:48]MH_SAM_APDU [00:41:48]CAPDU: 80 13 00 00 [00:41:48]Write to MH i2c: E2 08 00 86 16 80 13 00 00 00 00 00 00 18 [00:41:48]Write i2c OK [00:41:48]MH_I2C_Read... [00:41:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:48]Read from MH i2c: E2 [00:41:48]MH_I2C_Read... [00:41:48]Read from MH i2c: E2 62 00 [00:41:48]MH_I2C_Read... [00:41:48]Read from MH i2c: E2 62 00 86 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5B C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [00:41: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5B C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:48]wFMCommunicate OK [00:41:48]SAM_PROTO_GetFieldsCounters done [00:41:48]requested_item shift.num is exist - process it [00:41:48]requested_item shift.opened is exist - process it [00:41:48]req_shift_opened [00:41:48]FM_GetShiftState [00:41:48]SAM_PROTO_GetShiftState [00:41:48]wFMCommunicate request_size=4 [00:41:48]MH_SAM_APDU [00:41:48]CAPDU: 80 13 01 00 [00:41:48]Write to MH i2c: E2 08 00 87 16 80 13 01 00 00 00 00 00 1A [00:41:48]Write i2c OK [00:41:48]MH_I2C_Read... [00:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:48]Read from MH i2c: E2 [00:41:48]MH_I2C_Read... [00:41:48]Read from MH i2c: E2 0E 00 [00:41:48]MH_I2C_Read... [00:41:48]Read from MH i2c: E2 0E 00 87 16 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 52 [00:41:48]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [00:41:48]wFMCommunicate OK [00:41:48]SAM_PROTO_GetShiftState done [00:41:48]FM_GetShiftState done [00:41:48]req_shift_opened done [00:41:48]requested_item shift.open_date is exist - process it [00:41:48]req_shift_open_date [00:41:48]req_shift_open_date done [00:41:48]produce_requested_data done [00:41:48]produce_requested_data return {"fd.num":115803,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506} [00:41:48]process_action_free open_shift [00:41:48]json_value_free [00:41:48]json_value_free done [00:41:48]process_json_proto returns [00:41:48]Send response to host [00:41:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":115803,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506}}} [00:41:48]free response buf [00:41:48]execute_script done [00:41:48]execute_script returns [00:41:48]free content buf [00:41:48]Sock 8.Close socket [00:41:48]Sock 8.Thread stoped [00:41:48]accept exits with 9 [00:41:48]New connection [00:41:48]New thread 3066867044 created [00:41:48]Thread 3067010404 joined [00:41:48]Waiting for new connection... [00:41:48] Sock 9.Parse request [00:41:48]Sock 9.Check first char [00:41:48]Sock 9.First char is OK [00:41:48]request: POST /json_proto HTTP/1.0 [00:41:48]Method: POST [00:41:48]URL: /json_proto [00:41:48]Method is POST - this is cgi request [00:41:48]url: /json_proto [00:41:48]query_string will be loaded in cgi processing [00:41:48]execute_cgi json_proto POST (null) [00:41:48]execute_cgi path=json_proto method=POST [00:41:48]POST find Content-Length [00:41:48]Host: 172.17.41.136:8080 [00:41:48]Content-Length: 331 [00:41:48]Content-Type: application/json [00:41:48] [00:41:48]POST finish read [00:41:48]Found Content-Length = 331 [00:41:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:41:48]execute_script... [00:41:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:41:48]POST & json_proto [00:41:48]process_json_proto [00:41:48]json parsed OK: [00:41:48]protocol is kg_v1.0 [00:41:48]action value=get_value [00:41:48]process_action get_value [00:41:48]cmd_get_value [00:41:48]process_action get_value done [00:41:48]requested_data is exist [00:41:48]produce_requested_data [00:41:48]requested_item fm.sale.total is exist - process it [00:41:48]SAM_PROTO_GetFMData [00:41:48]wFMCommunicate request_size=4 [00:41:48]MH_SAM_APDU [00:41:48]CAPDU: 80 13 03 00 [00:41:48]Write to MH i2c: E2 08 00 88 16 80 13 03 00 00 00 00 00 1D [00:41:48]Write i2c OK [00:41:48]MH_I2C_Read... [00:41:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:41:49]Read from MH i2c: E2 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 FD 00 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 FD 00 88 16 00 C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 7E [00:41:49]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A8 C0 01 00 69 04 A3 00 6F 04 04 00 2A BF 01 00 B1 04 05 00 16 41 E2 81 01 70 04 05 00 E1 D8 F3 47 01 72 04 04 00 35 68 EE 39 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 F0 75 FC 28 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 AA 28 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 7E 01 00 00 B1 04 04 00 3C 8B CE 0F 70 04 04 00 3C 8B CE 0F 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D BD AD 01 EF 03 09 90 00 [00:41:49]wFMCommunicate OK [00:41:49]wFMCommunicate request_size=4 [00:41:49]MH_SAM_APDU [00:41:49]CAPDU: 80 17 00 00 [00:41:49]Write to MH i2c: E2 08 00 89 16 80 17 00 00 00 00 00 00 1F [00:41:49]Write i2c OK [00:41:49]MH_I2C_Read... [00:41:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:49]Read from MH i2c: E2 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 FD 00 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 FD 00 89 16 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 75 [00:41:49]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE CF 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:41:49]wFMCommunicate OK [00:41:49]wFMCommunicate request_size=4 [00:41:49]MH_SAM_APDU [00:41:49]CAPDU: 80 17 00 00 [00:41:49]Write to MH i2c: E2 08 00 8A 16 80 17 00 00 00 00 00 00 20 [00:41:49]Write i2c OK [00:41:49]MH_I2C_Read... [00:41:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:49]Read from MH i2c: E2 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 FD 00 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 FD 00 8A 16 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 32 [00:41:49]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:41:50]wFMCommunicate OK [00:41:50]wFMCommunicate request_size=4 [00:41:50]MH_SAM_APDU [00:41:50]CAPDU: 80 17 00 00 [00:41:50]Write to MH i2c: E2 08 00 8B 16 80 17 00 00 00 00 00 00 21 [00:41:50]Write i2c OK [00:41:50]MH_I2C_Read... [00:41:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:50]Read from MH i2c: E2 [00:41:50]MH_I2C_Read... [00:41:50]Read from MH i2c: E2 FD 00 [00:41:50]MH_I2C_Read... [00:41:50]Read from MH i2c: E2 FD 00 8B 16 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AD [00:41:50]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:41:50]wFMCommunicate OK [00:41:50]wFMCommunicate request_size=4 [00:41:50]MH_SAM_APDU [00:41:50]CAPDU: 80 17 00 00 [00:41:50]Write to MH i2c: E2 08 00 8C 16 80 17 00 00 00 00 00 00 22 [00:41:50]Write i2c OK [00:41:50]MH_I2C_Read... [00:41:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:41:50]Read from MH i2c: E2 [00:41:50]MH_I2C_Read... [00:41:50]Read from MH i2c: E2 E2 00 [00:41:50]MH_I2C_Read... [00:41:50]Read from MH i2c: E2 E2 00 8C 16 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 00 [00:41:50]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:41:50]wFMCommunicate OK [00:41:50]SAM_PROTO_GetFMData done [00:41:50]requested_item fm.sale_refund.total is exist - process it [00:41:50]requested_item fm.buy.total is exist - process it [00:41:50]requested_item shift.sale.total is exist - process it [00:41:50]SAM_PROTO_GetShiftData [00:41:50]wFMCommunicate request_size=4 [00:41:50]MH_SAM_APDU [00:41:50]CAPDU: 80 13 02 00 [00:41:50]Write to MH i2c: E2 08 00 8D 16 80 13 02 00 00 00 00 00 21 [00:41:50]Write i2c OK [00:41:50]MH_I2C_Read... [00:41:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:41:51]Read from MH i2c: E2 [00:41:51]MH_I2C_Read... [00:41:51]Read from MH i2c: E2 FD 00 [00:41:51]MH_I2C_Read... [00:41:51]Read from MH i2c: E2 FD 00 8D 16 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 94 [00:41:51]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:41:51]wFMCommunicate OK [00:41:51]wFMCommunicate request_size=4 [00:41:51]MH_SAM_APDU [00:41:51]CAPDU: 80 17 00 00 [00:41:51]Write to MH i2c: E2 08 00 8E 16 80 17 00 00 00 00 00 00 24 [00:41:51]Write i2c OK [00:41:51]MH_I2C_Read... [00:41:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:51]Read from MH i2c: E2 [00:41:51]MH_I2C_Read... [00:41:51]Read from MH i2c: E2 FD 00 [00:41:51]MH_I2C_Read... [00:41:51]Read from MH i2c: E2 FD 00 8E 16 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 2C [00:41:51]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:41:51]wFMCommunicate OK [00:41:51]wFMCommunicate request_size=4 [00:41:51]MH_SAM_APDU [00:41:51]CAPDU: 80 17 00 00 [00:41:51]Write to MH i2c: E2 08 00 8F 16 80 17 00 00 00 00 00 00 25 [00:41:51]Write i2c OK [00:41:51]MH_I2C_Read... [00:41:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:52]Read from MH i2c: E2 [00:41:52]MH_I2C_Read... [00:41:52]Read from MH i2c: E2 FD 00 [00:41:52]MH_I2C_Read... [00:41:52]Read from MH i2c: E2 FD 00 8F 16 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 F7 [00:41:52]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:41:52]wFMCommunicate OK [00:41:52]wFMCommunicate request_size=4 [00:41:52]MH_SAM_APDU [00:41:52]CAPDU: 80 17 00 00 [00:41:52]Write to MH i2c: E2 08 00 90 16 80 17 00 00 00 00 00 00 26 [00:41:52]Write i2c OK [00:41:52]MH_I2C_Read... [00:41:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:52]Read from MH i2c: E2 [00:41:52]MH_I2C_Read... [00:41:52]Read from MH i2c: E2 FD 00 [00:41:52]MH_I2C_Read... [00:41:52]Read from MH i2c: E2 FD 00 90 16 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 98 [00:41:52]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:41:52]wFMCommunicate OK [00:41:52]wFMCommunicate request_size=4 [00:41:52]MH_SAM_APDU [00:41:52]CAPDU: 80 17 00 00 [00:41:52]Write to MH i2c: E2 08 00 91 16 80 17 00 00 00 00 00 00 27 [00:41:52]Write i2c OK [00:41:52]MH_I2C_Read... [00:41:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:41:53]Read from MH i2c: E2 [00:41:53]MH_I2C_Read... [00:41:53]Read from MH i2c: E2 BD 00 [00:41:53]MH_I2C_Read... [00:41:53]Read from MH i2c: E2 BD 00 91 16 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 0D [00:41:53]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:41:53]wFMCommunicate OK [00:41:53]SAM_PROTO_GetShiftData done [00:41:53]requested_item shift.sale.total_cash is exist - process it [00:41:53]requested_item shift.sale_refund.total is exist - process it [00:41:53]requested_item shift.sale_refund.total_cash is exist - process it [00:41:53]requested_item shift.buy.total is exist - process it [00:41:53]requested_item shift.buy.total_cash is exist - process it [00:41:53]produce_requested_data done [00:41:53]produce_requested_data return {"fm.sale.total":64740559.58,"fm.sale_refund.total":2651943.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:41:53]process_action_free get_value [00:41:53]json_value_free [00:41:53]json_value_free done [00:41:53]process_json_proto returns [00:41:53]Send response to host [00:41:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64740559.58,"fm.sale_refund.total":2651943.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:41:53]free response buf [00:41:53]execute_script done [00:41:53]execute_script returns [00:41:53]free content buf [00:41:53]Sock 9.Close socket [00:41:53]Sock 9.Thread stoped [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:35]OFD Sender: No OFD packet to send [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:51]OFD Sender: No OFD packet to send [01:05:56]OFD Sender: No OFD packet to send [01:06:01]OFD Sender: No OFD packet to send [01:06:06]OFD Sender: No OFD packet to send [01:06:11]OFD Sender: No OFD packet to send [01:06:16]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:08:22]OFD Sender: No OFD packet to send [01:08:27]OFD Sender: No OFD packet to send [01:08:32]OFD Sender: No OFD packet to send [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:10]accept exits with 8 [01:36:10]New connection [01:36:10]New thread 3067010404 created [01:36:10]Thread 3066867044 joined [01:36:10]Waiting for new connection... [01:36:10] Sock 8.Parse request [01:36:10]Sock 8.Check first char [01:36:10]Sock 8.First char is OK [01:36:10]request: POST /json_proto HTTP/1.0 [01:36:10]Method: POST [01:36:10]URL: /json_proto [01:36:10]Method is POST - this is cgi request [01:36:10]url: /json_proto [01:36:10]query_string will be loaded in cgi processing [01:36:10]execute_cgi json_proto POST (null) [01:36:10]execute_cgi path=json_proto method=POST [01:36:10]POST find Content-Length [01:36:10]Host: 172.17.41.136:8080 [01:36:10]Content-Length: 646 [01:36:10]Content-Type: application/json [01:36:10] [01:36:10]POST finish read [01:36:10]Found Content-Length = 646 [01:36:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344117", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:10]execute_script... [01:36:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344117", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:10]POST & json_proto [01:36:10]process_json_proto [01:36:10]json parsed OK: [01:36:10]protocol is kg_v1.0 [01:36:10]action value=close_receipt [01:36:10]process_action close_receipt [01:36:10]cmd_close_receipt [01:36:10]MH_GetDate [01:36:10]Write to MH i2c: F0 00 00 92 16 97 [01:36:10]Write i2c OK [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: F0 [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: F0 09 00 [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: F0 09 00 92 16 00 8D 17 F2 66 1B D0 5A 64 45 [01:36:10]GetLastDocTimeStamp 1727138506 [01:36:10]current date 1727141773 [01:36:10]FM_GetShiftState [01:36:10]SAM_PROTO_GetShiftState [01:36:10]wFMCommunicate request_size=4 [01:36:10]MH_SAM_APDU [01:36:10]CAPDU: 80 13 01 00 [01:36:10]Write to MH i2c: E2 08 00 93 16 80 13 01 00 00 00 00 00 26 [01:36:10]Write i2c OK [01:36:10]MH_I2C_Read... [01:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:10]Read from MH i2c: E2 [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: E2 0E 00 [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: E2 0E 00 93 16 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 5E [01:36:10]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [01:36:10]wFMCommunicate OK [01:36:10]SAM_PROTO_GetShiftState done [01:36:10]FM_GetShiftState done [01:36:10]opened in 1727138506 [01:36:10]opened+sec_in_day 1727224906 [01:36:10]quantity*price = 26000 [01:36:10]sum+1 = 26001 [01:36:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 1 24.09.2024 01:36 Смена: 473 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115804 ФПД: 24057667591495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T013613&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115804&fm=24057667591495&tin=02508201610067®Number=0000000000091831&sum=26000 0 [01:36:12]StoreToDocumentArchive [01:36:12]shift 473 fd 115804 [01:36:12]save to /storage/0473/doc_00115804 [01:36:12]save last doc name /storage/0473/doc_00115804 to /storage/kkm_last_doc_name [01:36:12]save OK [01:36:12]Clear old archive folders... [01:36:12]ProcessDocumentItem done err = 0, tmpTLVsize=282 [01:36:12]tlvbuf is 01162850 [01:36:12]SAM_PROTO_ClearQueue [01:36:12]wFMCommunicate request_size=4 [01:36:12]MH_SAM_APDU [01:36:12]CAPDU: 80 09 00 00 [01:36:12]Write to MH i2c: E2 08 00 A0 16 80 09 00 00 00 00 00 00 28 [01:36:12]Write i2c OK [01:36:12]MH_I2C_Read... [01:36:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:36:12]Read from MH i2c: E2 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: E2 03 00 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: E2 03 00 A0 16 00 90 00 2A [01:36:12]RAPDU: 90 00 [01:36:12]wFMCommunicate OK [01:36:12]SAM_PROTO_ClearQueue done [01:36:12]KKMCreateOFDPacket [01:36:12]OFDProtocolAddRootSTLVToBuf [01:36:12]FM_MakeSignedData [01:36:12]FM_MakeSignedData [01:36:12]SAM_PROTO_SignData [01:36:12]wFMCommunicate request_size=4 [01:36:12]MH_SAM_APDU [01:36:12]CAPDU: 80 0D 01 02 [01:36:12]Write to MH i2c: E2 08 00 A1 16 80 0D 01 02 00 00 00 00 30 [01:36:12]Write i2c OK [01:36:12]MH_I2C_Read... [01:36:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:36:12]Read from MH i2c: E2 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: E2 03 00 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: E2 03 00 A1 16 00 90 00 2B [01:36:12]RAPDU: 90 00 [01:36:12]wFMCommunicate OK [01:36:12]wFMCommunicate request_size=255 [01:36:12]MH_SAM_APDU [01:36:12]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 8D 17 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 [01:36:12]Write to MH i2c: E2 02 01 A2 16 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 8D 17 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 00 00 CD [01:36:12]Write i2c OK [01:36:12]MH_I2C_Read... [01:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:12]Read from MH i2c: E2 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: E2 03 00 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: E2 03 00 A2 16 00 90 00 2C [01:36:12]RAPDU: 90 00 [01:36:12]wFMCommunicate OK [01:36:12]wFMCommunicate request_size=41 [01:36:12]MH_SAM_APDU [01:36:12]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5C C4 01 00 35 04 06 00 15 E1 5C BB 1D 47 [01:36:12]Write to MH i2c: E2 2C 00 A3 16 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5C C4 01 00 35 04 06 00 15 E1 5C BB 1D 47 00 00 8F [01:36:12]Write i2c OK [01:36:12]MH_I2C_Read... [01:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:12]Read from MH i2c: E2 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: E2 03 00 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: E2 03 00 A3 16 00 90 00 2D [01:36:12]RAPDU: 90 00 [01:36:12]wFMCommunicate OK [01:36:12]wFMCommunicate request_size=4 [01:36:12]MH_SAM_APDU [01:36:12]CAPDU: 80 0D 03 02 [01:36:12]Write to MH i2c: E2 08 00 A4 16 80 0D 03 02 00 00 00 00 35 [01:36:12]Write i2c OK [01:36:12]MH_I2C_Read... [01:36:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:36:12]Read from MH i2c: E2 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: E2 0B 00 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: E2 0B 00 A4 16 00 4B 6E 17 E5 E5 10 24 A1 90 00 A5 [01:36:12]RAPDU: 4B 6E 17 E5 E5 10 24 A1 90 00 [01:36:12]wFMCommunicate OK [01:36:12]SAM_PROTO_SignData done [01:36:12]FM_MakeSignedData done [01:36:12]CreateOFDProtocolMessage [01:36:12]wFMCommunicate request_size=4 [01:36:12]MH_SAM_APDU [01:36:12]CAPDU: 80 11 00 00 [01:36:12]Write to MH i2c: E2 08 00 A5 16 80 11 00 00 00 00 00 00 35 [01:36:12]Write i2c OK [01:36:12]MH_I2C_Read... [01:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:12]Read from MH i2c: E2 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: E2 17 00 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: E2 17 00 A5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 83 [01:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:36:12]wFMCommunicate OK [01:36:12]CreateOFDProtocolMessage done [01:36:12]OFDSenderStorePacket 115804 [01:36:12]StoreOFDPacket docnum=115804 [01:36:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 01 00 00 8A CD 26 01 2B 3C 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 8D 17 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5C C4 01 00 35 04 06 00 15 E1 5C BB 1D 47 4B 6E 17 E5 E5 10 24 A1 [01:36:12]CheckFolder [01:36:12]dirname=/storage/ofd_packets [01:36:12]CheckFolder done [01:36:12]ProducePacketName [01:36:12]name=ofd_packets/00115804 [01:36:12]NVStorageSaveData ofd_packets/00115804 [01:36:12]File name is /storage/ofd_packets/00115804 [01:36:12]Write 332 bytes [01:36:12]NVStorageSaveData done [01:36:12]OFDSenderStorePacket done [01:36:12]KKMCreateOFDPacket done [01:36:12]NVStorageSaveData kkm_last_timestamp [01:36:12]File name is /storage/kkm_last_timestamp [01:36:12]Write 4 bytes [01:36:12]NVStorageSaveData done [01:36:12]ExternCall_PrintAddStr [01:36:12]wPrintStart [01:36:12]Write to MH i2c: 01 00 00 A6 16 BC [01:36:12]Write i2c OK [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: 01 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: 01 07 00 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: 01 07 00 A6 16 00 00 00 00 00 FF 0F D1 [01:36:12]RasterBufferAndPrint [01:36:12]line Счет N : (3)344117 [01:36:12]line ИНН: 02508201610067 [01:36:12]line Контрольно-Кассовый Чек [01:36:12]line ПРОДАЖА [01:36:12]line Товар: 2000036220012 [01:36:12]line Кофе Капучино XL(GABB TRADE) [01:36:12]line 2.000 * 130.00 [01:36:12]line = 260.00 [01:36:12]line НДС 12% НСП 1% [01:36:12]line > о реализуемом товаре [01:36:12]line ИТОГО: 260.00 [01:36:12]line НСП 1% : 2.30 [01:36:12]line НДС 12% : 27.61 [01:36:12]line Наличными: 260.00 [01:36:12]line Безнал.: 0.00 [01:36:12]line Место: АЗС № 90 "Партнер Нефть" [01:36:12]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [01:36:12]line СНО: Общий режим [01:36:12]line Чек 1 24.09.2024 01:36 [01:36:12]line Смена: 473 ФФД: 1.0 [01:36:12]line ЗНМ: 0300000120 [01:36:12]line РНМ: 0000000000091831 [01:36:12]line Версия ККМ: 001 [01:36:12]line ФМ: 0000000000871830 [01:36:12]line ФД: 115804 [01:36:12]line ФПД: 24057667591495 [01:36:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T013613&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115804&fm=24057667591495&tin=02508201610067®Number=0000000000091831&sum=26000 [01:36:12]line 0 [01:36:12]OFD Sender: Processing packet 115804 [packets to send 482, broken 481] [01:36:12]ProducePacketName [01:36:12]name=ofd_packets/00115804 [01:36:12]OFD Sender: To server: pG, [01:36:12]CommunicateWithHost lk.salyk.kg:30040 [01:36:12]ConnectInit lk.salyk.kg [01:36:12]written 0, free lines is 4095 [01:36:13]Connected sock=10 [01:36: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 38 33 30 2E 01 00 00 8A CD 26 01 2B 3C 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 8D 17 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5C C4 01 00 35 04 06 00 15 E1 5C BB 1D 47 4B 6E 17 E5 E5 10 24 A1 [01:36:13]Write to MH i2c: 01 00 00 CE 16 E4 [01:36:13]Write i2c OK [01:36:13]MH_I2C_Read... [01:36:13]Read from MH i2c: 01 [01:36:13]MH_I2C_Read... [01:36:13]Read from MH i2c: 01 07 00 [01:36:13]MH_I2C_Read... [01:36:13]Read from MH i2c: 01 07 00 CE 16 00 00 00 00 00 62 0C 59 [01:36:13]RasterBufferAndPrint [01:36:13]line [01:36:13]line [01:36:13]line [01:36:13]line [01:36:13]line [01:36:13]written 0, free lines is 3175 [01:36:13]MH_Cut [01:36:13]Write to MH i2c: D1 01 00 D5 16 01 BD [01:36:13]Write i2c OK [01:36:13]MH_I2C_Read... [01:36:13]Read from MH i2c: D1 [01:36:13]MH_I2C_Read... [01:36:13]Read from MH i2c: D1 01 00 [01:36:13]MH_I2C_Read... [01:36:13]Read from MH i2c: D1 01 00 D5 16 00 BC [01:36:13]Write to MH i2c: 01 00 00 D6 16 EC [01:36:13]Write i2c OK [01:36:13]MH_I2C_Read... [01:36:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 15 4C 47 00 2B 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 38 33 30 10 04 04 00 5C C4 01 00 F4 03 04 00 CE BC F1 66 B6 04 01 00 00 ED 39 35 3E D5 88 C9 6F [01:36:13]CommunicateWithHost err = 0 [01:36:13]CheckOFDResponse [01:36:13]1017 (14) - 77093643461234 [01:36:13]1041 (16) - 0000000000871830 [01:36:13]1040 (4) - 115804 [01:36:13]1012 (4) - 23.09.2024 19:09 [01:36:13]1206 (1) - 0 [01:36:13]OFD Sender: Remove packet 115804 [01:36:13]ProducePacketName [01:36:13]name=ofd_packets/00115804 [01:36:13]NVStorageDeleteData [01:36:14]OFD Sender: No OFD packet to send [01:36:14]*** Cut start [01:36:14]*** Partial cut [01:36:14]*** CUTSNS_PIN = 1 [01:36:14]*** CUTSNS_PIN = 0 [01:36:14]*** Brake cut motor [01:36:15]Read from MH i2c: 01 [01:36:15]MH_I2C_Read... [01:36:15]*** Stop cut motor [01:36:15]*** Cut end [01:36:15]Read from MH i2c: 01 07 00 [01:36:15]MH_I2C_Read... [01:36:15]Read from MH i2c: 01 07 00 D6 16 00 00 00 00 00 FF 0F 01 [01:36:15]process_action close_receipt done [01:36:15]requested_data is exist [01:36:15]produce_requested_data [01:36:15]requested_item fm.sn is exist - process it [01:36:15]wFMCommunicate request_size=4 [01:36:15]MH_SAM_APDU [01:36:15]CAPDU: 80 11 00 00 [01:36:15]Write to MH i2c: E2 08 00 D7 16 80 11 00 00 00 00 00 00 67 [01:36:15]Write i2c OK [01:36:15]MH_I2C_Read... [01:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:15]Read from MH i2c: E2 [01:36:15]MH_I2C_Read... [01:36:15]Read from MH i2c: E2 17 00 [01:36:15]MH_I2C_Read... [01:36:15]Read from MH i2c: E2 17 00 D7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B5 [01:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:36:15]wFMCommunicate OK [01:36:15]requested_item fd.num is exist - process it [01:36:15]SAM_PROTO_GetFieldsCounters [01:36:15]wFMCommunicate request_size=4 [01:36:15]MH_SAM_APDU [01:36:15]CAPDU: 80 13 00 00 [01:36:15]Write to MH i2c: E2 08 00 D8 16 80 13 00 00 00 00 00 00 6A [01:36:15]Write i2c OK [01:36:15]MH_I2C_Read... [01:36:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:36:15]Read from MH i2c: E2 [01:36:15]MH_I2C_Read... [01:36:15]Read from MH i2c: E2 62 00 [01:36:15]MH_I2C_Read... [01:36:15]Read from MH i2c: E2 62 00 D8 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5C C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [01:36: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5C C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:36:15]wFMCommunicate OK [01:36:15]SAM_PROTO_GetFieldsCounters done [01:36:15]requested_item shift.num is exist - process it [01:36:15]requested_item shift.opened is exist - process it [01:36:15]req_shift_opened [01:36:15]FM_GetShiftState [01:36:15]SAM_PROTO_GetShiftState [01:36:15]wFMCommunicate request_size=4 [01:36:15]MH_SAM_APDU [01:36:15]CAPDU: 80 13 01 00 [01:36:15]Write to MH i2c: E2 08 00 D9 16 80 13 01 00 00 00 00 00 6C [01:36:15]Write i2c OK [01:36:15]MH_I2C_Read... [01:36:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:15]Read from MH i2c: E2 [01:36:15]MH_I2C_Read... [01:36:15]Read from MH i2c: E2 0E 00 [01:36:15]MH_I2C_Read... [01:36:15]Read from MH i2c: E2 0E 00 D9 16 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 A4 [01:36:15]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [01:36:15]wFMCommunicate OK [01:36:15]SAM_PROTO_GetShiftState done [01:36:15]FM_GetShiftState done [01:36:15]req_shift_opened done [01:36:15]requested_item shift.open_date is exist - process it [01:36:15]req_shift_open_date [01:36:15]req_shift_open_date done [01:36:15]produce_requested_data done [01:36:15]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115804,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506} [01:36:15]process_action_free close_receipt [01:36:15]json_value_free [01:36:15]json_value_free done [01:36:15]process_json_proto returns [01:36:15]Send response to host [01:36:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115804,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506}}} [01:36:15]free response buf [01:36:15]execute_script done [01:36:15]execute_script returns [01:36:15]free content buf [01:36:15]Sock 8.Close socket [01:36:15]Sock 8.Thread stoped [01:36:19]OFD Sender: No OFD packet to send [01:36:24]OFD Sender: No OFD packet to send [01:36:29]OFD Sender: No OFD packet to send [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:49]OFD Sender: No OFD packet to send [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:00]accept exits with 9 [01:37:00]New connection [01:37:00]New thread 3066867044 created [01:37:00]Thread 3067010404 joined [01:37:00]Waiting for new connection... [01:37:00] Sock 9.Parse request [01:37:00]Sock 9.Check first char [01:37:00]Sock 9.First char is OK [01:37:00]request: POST /json_proto HTTP/1.0 [01:37:00]Method: POST [01:37:00]URL: /json_proto [01:37:00]Method is POST - this is cgi request [01:37:00]url: /json_proto [01:37:00]query_string will be loaded in cgi processing [01:37:00]execute_cgi json_proto POST (null) [01:37:00]execute_cgi path=json_proto method=POST [01:37:00]POST find Content-Length [01:37:00]Host: 172.17.41.136:8080 [01:37:00]Content-Length: 620 [01:37:00]Content-Type: application/json [01:37:00] [01:37:00]POST finish read [01:37:00]Found Content-Length = 620 [01:37:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344118", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:00]execute_script... [01:37: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 : (3)344118", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:00]POST & json_proto [01:37:00]process_json_proto [01:37:00]json parsed OK: [01:37:00]protocol is kg_v1.0 [01:37:00]action value=close_receipt [01:37:00]process_action close_receipt [01:37:00]cmd_close_receipt [01:37:00]MH_GetDate [01:37:00]Write to MH i2c: F0 00 00 DA 16 DF [01:37:00]Write i2c OK [01:37:00]MH_I2C_Read... [01:37:00]Read from MH i2c: F0 [01:37:00]MH_I2C_Read... [01:37:00]Read from MH i2c: F0 09 00 [01:37:00]MH_I2C_Read... [01:37:00]Read from MH i2c: F0 09 00 DA 16 00 BF 17 F2 66 1B D0 5A 64 BF [01:37:00]GetLastDocTimeStamp 1727141773 [01:37:00]current date 1727141823 [01:37:00]FM_GetShiftState [01:37:00]SAM_PROTO_GetShiftState [01:37:00]wFMCommunicate request_size=4 [01:37:00]MH_SAM_APDU [01:37:00]CAPDU: 80 13 01 00 [01:37:00]Write to MH i2c: E2 08 00 DB 16 80 13 01 00 00 00 00 00 6E [01:37:00]Write i2c OK [01:37:00]MH_I2C_Read... [01:37:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:37:00]Read from MH i2c: E2 [01:37:00]MH_I2C_Read... [01:37:00]Read from MH i2c: E2 0E 00 [01:37:00]MH_I2C_Read... [01:37:00]Read from MH i2c: E2 0E 00 DB 16 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 A6 [01:37:00]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [01:37:00]wFMCommunicate OK [01:37:00]SAM_PROTO_GetShiftState done [01:37:00]FM_GetShiftState done [01:37:00]opened in 1727138506 [01:37:00]opened+sec_in_day 1727224906 [01:37:00]quantity*price = 40500 [01:37:00]sum+1 = 40501 [01:37:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 2 24.09.2024 01:37 Смена: 473 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115805 ФПД: 74739100038649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T013703&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115805&fm=74739100038649&tin=02508201610067®Number=0000000000091831&sum=40500 0 [01:37:02]StoreToDocumentArchive [01:37:02]shift 473 fd 115805 [01:37:02]save to /storage/0473/doc_00115805 [01:37:02]save last doc name /storage/0473/doc_00115805 to /storage/kkm_last_doc_name [01:37:02]save OK [01:37:02]Clear old archive folders... [01:37:02]ProcessDocumentItem done err = 0, tmpTLVsize=280 [01:37:02]tlvbuf is B6EE8E30 [01:37:02]SAM_PROTO_ClearQueue [01:37:02]wFMCommunicate request_size=4 [01:37:02]MH_SAM_APDU [01:37:02]CAPDU: 80 09 00 00 [01:37:02]Write to MH i2c: E2 08 00 E8 16 80 09 00 00 00 00 00 00 70 [01:37:02]Write i2c OK [01:37:02]MH_I2C_Read... [01:37:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:37:02]Read from MH i2c: E2 [01:37:02]MH_I2C_Read... [01:37:02]Read from MH i2c: E2 03 00 [01:37:02]MH_I2C_Read... [01:37:02]Read from MH i2c: E2 03 00 E8 16 00 90 00 72 [01:37:02]RAPDU: 90 00 [01:37:02]wFMCommunicate OK [01:37:02]SAM_PROTO_ClearQueue done [01:37:02]KKMCreateOFDPacket [01:37:02]OFDProtocolAddRootSTLVToBuf [01:37:02]FM_MakeSignedData [01:37:02]FM_MakeSignedData [01:37:02]SAM_PROTO_SignData [01:37:02]wFMCommunicate request_size=4 [01:37:02]MH_SAM_APDU [01:37:02]CAPDU: 80 0D 01 02 [01:37:02]Write to MH i2c: E2 08 00 E9 16 80 0D 01 02 00 00 00 00 78 [01:37:02]Write i2c OK [01:37:02]MH_I2C_Read... [01:37:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:37:02]Read from MH i2c: E2 [01:37:02]MH_I2C_Read... [01:37:02]Read from MH i2c: E2 03 00 [01:37:02]MH_I2C_Read... [01:37:02]Read from MH i2c: E2 03 00 E9 16 00 90 00 73 [01:37:02]RAPDU: 90 00 [01:37:02]wFMCommunicate OK [01:37:02]wFMCommunicate request_size=255 [01:37:02]MH_SAM_APDU [01:37:02]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BF 17 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 [01:37:02]Write to MH i2c: E2 02 01 EA 16 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BF 17 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 00 00 7A [01:37:02]Write i2c OK [01:37:02]MH_I2C_Read... [01:37:02]Read from MH i2c: E2 [01:37:02]MH_I2C_Read... [01:37:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:37:02]Read from MH i2c: E2 03 00 [01:37:02]MH_I2C_Read... [01:37:02]Read from MH i2c: E2 03 00 EA 16 00 90 00 74 [01:37:02]RAPDU: 90 00 [01:37:02]wFMCommunicate OK [01:37:02]wFMCommunicate request_size=39 [01:37:02]MH_SAM_APDU [01:37:02]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5D C4 01 00 35 04 06 00 43 F9 8D 82 35 F9 [01:37:02]Write to MH i2c: E2 2A 00 EB 16 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5D C4 01 00 35 04 06 00 43 F9 8D 82 35 F9 00 00 CC [01:37:02]Write i2c OK [01:37:02]MH_I2C_Read... [01:37:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:37:02]Read from MH i2c: E2 [01:37:02]MH_I2C_Read... [01:37:02]Read from MH i2c: E2 03 00 [01:37:02]MH_I2C_Read... [01:37:02]Read from MH i2c: E2 03 00 EB 16 00 90 00 75 [01:37:02]RAPDU: 90 00 [01:37:02]wFMCommunicate OK [01:37:02]wFMCommunicate request_size=4 [01:37:02]MH_SAM_APDU [01:37:02]CAPDU: 80 0D 03 02 [01:37:02]Write to MH i2c: E2 08 00 EC 16 80 0D 03 02 00 00 00 00 7D [01:37:02]Write i2c OK [01:37:02]MH_I2C_Read... [01:37:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:37:02]Read from MH i2c: E2 [01:37:02]MH_I2C_Read... [01:37:02]Read from MH i2c: E2 0B 00 [01:37:02]MH_I2C_Read... [01:37:02]Read from MH i2c: E2 0B 00 EC 16 00 18 50 8B 57 27 0D 05 3B 90 00 3C [01:37:02]RAPDU: 18 50 8B 57 27 0D 05 3B 90 00 [01:37:02]wFMCommunicate OK [01:37:02]SAM_PROTO_SignData done [01:37:02]FM_MakeSignedData done [01:37:02]CreateOFDProtocolMessage [01:37:02]wFMCommunicate request_size=4 [01:37:02]MH_SAM_APDU [01:37:02]CAPDU: 80 11 00 00 [01:37:02]Write to MH i2c: E2 08 00 ED 16 80 11 00 00 00 00 00 00 7D [01:37:02]Write i2c OK [01:37:02]MH_I2C_Read... [01:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:02]Read from MH i2c: E2 [01:37:02]MH_I2C_Read... [01:37:02]Read from MH i2c: E2 17 00 [01:37:02]MH_I2C_Read... [01:37:02]Read from MH i2c: E2 17 00 ED 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CB [01:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:37:02]wFMCommunicate OK [01:37:02]CreateOFDProtocolMessage done [01:37:02]OFDSenderStorePacket 115805 [01:37:02]StoreOFDPacket docnum=115805 [01:37:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2C 01 00 00 90 38 24 01 80 01 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BF 17 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5D C4 01 00 35 04 06 00 43 F9 8D 82 35 F9 18 50 8B 57 27 0D 05 3B [01:37:02]CheckFolder [01:37:02]dirname=/storage/ofd_packets [01:37:02]CheckFolder done [01:37:02]ProducePacketName [01:37:02]name=ofd_packets/00115805 [01:37:02]NVStorageSaveData ofd_packets/00115805 [01:37:02]File name is /storage/ofd_packets/00115805 [01:37:02]Write 330 bytes [01:37:02]NVStorageSaveData done [01:37:02]OFDSenderStorePacket done [01:37:02]KKMCreateOFDPacket done [01:37:02]NVStorageSaveData kkm_last_timestamp [01:37:02]File name is /storage/kkm_last_timestamp [01:37:02]Write 4 bytes [01:37:02]NVStorageSaveData done [01:37:02]ExternCall_PrintAddStr [01:37:02]wPrintStart [01:37:02]Write to MH i2c: 01 00 00 EE 16 04 [01:37:02]Write i2c OK [01:37:02]MH_I2C_Read... [01:37:02]Read from MH i2c: 01 [01:37:02]MH_I2C_Read... [01:37:02]Read from MH i2c: 01 07 00 [01:37:02]MH_I2C_Read... [01:37:02]Read from MH i2c: 01 07 00 EE 16 00 00 00 00 00 FF 0F 19 [01:37:02]RasterBufferAndPrint [01:37:02]line Счет N : (3)344118 [01:37:02]line ИНН: 02508201610067 [01:37:02]line Контрольно-Кассовый Чек [01:37:02]line ПРОДАЖА [01:37:02]line Товар: 4650063110756 [01:37:02]line Масло Gazpromneft Super 10w40 1л [01:37:02]line 1.000 * 405.00 [01:37:02]line = 405.00 [01:37:02]line НДС 12% НСП 1% [01:37:02]line > о реализуемом товаре [01:37:02]line ИТОГО: 405.00 [01:37:02]line НСП 1% : 3.58 [01:37:02]line НДС 12% : 43.01 [01:37:02]line Наличными: 405.00 [01:37:02]line Безнал.: 0.00 [01:37:02]line Место: АЗС № 90 "Партнер Нефть" [01:37:02]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [01:37:02]line СНО: Общий режим [01:37:02]line Чек 2 24.09.2024 01:37 [01:37:02]line Смена: 473 ФФД: 1.0 [01:37:02]line ЗНМ: 0300000120 [01:37:02]line РНМ: 0000000000091831 [01:37:02]line Версия ККМ: 001 [01:37:02]line ФМ: 0000000000871830 [01:37:02]line ФД: 115805 [01:37:02]line ФПД: 74739100038649 [01:37:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T013703&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115805&fm=74739100038649&tin=02508201610067®Number=0000000000091831&sum=40500 [01:37:02]line 0 [01:37:02]OFD Sender: Processing packet 115805 [packets to send 482, broken 481] [01:37:02]ProducePacketName [01:37:02]name=ofd_packets/00115805 [01:37:02]OFD Sender: To server: pG, [01:37:02]CommunicateWithHost lk.salyk.kg:30040 [01:37:02]ConnectInit lk.salyk.kg [01:37:02]written 0, free lines is 4095 [01:37:02]Connected sock=10 [01:37: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 38 33 30 2C 01 00 00 90 38 24 01 80 01 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BF 17 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5D C4 01 00 35 04 06 00 43 F9 8D 82 35 F9 18 50 8B 57 27 0D 05 3B [01:37:03]Write to MH i2c: 01 00 00 16 17 2D [01:37:03]Write i2c OK [01:37:03]MH_I2C_Read... [01:37:03]Read from MH i2c: 01 [01:37:03]MH_I2C_Read... [01:37:03]Read from MH i2c: 01 07 00 [01:37:03]MH_I2C_Read... [01:37:03]Read from MH i2c: 01 07 00 16 17 00 00 00 00 00 5C 0C 9C [01:37:03]RasterBufferAndPrint [01:37:03]line [01:37:03]line [01:37:03]line [01:37:03]line [01:37:03]line [01:37:03]written 0, free lines is 3167 [01:37:03]MH_Cut [01:37:03]Write to MH i2c: D1 01 00 1D 17 01 06 [01:37:03]Write i2c OK [01:37:03]MH_I2C_Read... [01:37:03]Read from MH i2c: D1 [01:37:03]MH_I2C_Read... [01:37:03]Read from MH i2c: D1 01 00 [01:37:03]MH_I2C_Read... [01:37:03]Read from MH i2c: D1 01 00 1D 17 00 05 [01:37:03]Write to MH i2c: 01 00 00 1E 17 35 [01:37:03]Write i2c OK [01:37:03]MH_I2C_Read... [01:37:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 BC 29 47 00 77 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 38 33 30 10 04 04 00 5D C4 01 00 F4 03 04 00 00 BD F1 66 B6 04 01 00 00 AE 2A 67 AC BD BF FB 61 [01:37:03]CommunicateWithHost err = 0 [01:37:03]CheckOFDResponse [01:37:03]1017 (14) - 77093643461234 [01:37:03]1041 (16) - 0000000000871830 [01:37:03]1040 (4) - 115805 [01:37:03]1012 (4) - 23.09.2024 19:09 [01:37:03]1206 (1) - 0 [01:37:03]OFD Sender: Remove packet 115805 [01:37:03]ProducePacketName [01:37:03]name=ofd_packets/00115805 [01:37:03]NVStorageDeleteData [01:37:03]OFD Sender: No OFD packet to send [01:37:04]*** Cut start [01:37:04]*** Partial cut [01:37:04]*** CUTSNS_PIN = 1 [01:37:04]*** CUTSNS_PIN = 0 [01:37:04]*** Brake cut motor [01:37:05]Read from MH i2c: 01 [01:37:05]MH_I2C_Read... [01:37:05]*** Stop cut motor [01:37:05]*** Cut end [01:37:05]Read from MH i2c: 01 07 00 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: 01 07 00 1E 17 00 00 00 00 00 FF 0F 4A [01:37:05]process_action close_receipt done [01:37:05]requested_data is exist [01:37:05]produce_requested_data [01:37:05]requested_item fm.sn is exist - process it [01:37:05]wFMCommunicate request_size=4 [01:37:05]MH_SAM_APDU [01:37:05]CAPDU: 80 11 00 00 [01:37:05]Write to MH i2c: E2 08 00 1F 17 80 11 00 00 00 00 00 00 B0 [01:37:05]Write i2c OK [01:37:05]MH_I2C_Read... [01:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:05]Read from MH i2c: E2 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: E2 17 00 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: E2 17 00 1F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FE [01:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:37:05]wFMCommunicate OK [01:37:05]requested_item fd.num is exist - process it [01:37:05]SAM_PROTO_GetFieldsCounters [01:37:05]wFMCommunicate request_size=4 [01:37:05]MH_SAM_APDU [01:37:05]CAPDU: 80 13 00 00 [01:37:05]Write to MH i2c: E2 08 00 20 17 80 13 00 00 00 00 00 00 B3 [01:37:05]Write i2c OK [01:37:05]MH_I2C_Read... [01:37:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:37:05]Read from MH i2c: E2 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: E2 62 00 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: E2 62 00 20 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5D C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [01:37: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5D C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:37:05]wFMCommunicate OK [01:37:05]SAM_PROTO_GetFieldsCounters done [01:37:05]requested_item shift.num is exist - process it [01:37:05]requested_item shift.opened is exist - process it [01:37:05]req_shift_opened [01:37:05]FM_GetShiftState [01:37:05]SAM_PROTO_GetShiftState [01:37:05]wFMCommunicate request_size=4 [01:37:05]MH_SAM_APDU [01:37:05]CAPDU: 80 13 01 00 [01:37:05]Write to MH i2c: E2 08 00 21 17 80 13 01 00 00 00 00 00 B5 [01:37:05]Write i2c OK [01:37:05]MH_I2C_Read... [01:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:37:05]Read from MH i2c: E2 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: E2 0E 00 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: E2 0E 00 21 17 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 ED [01:37:05]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [01:37:05]wFMCommunicate OK [01:37:05]SAM_PROTO_GetShiftState done [01:37:05]FM_GetShiftState done [01:37:05]req_shift_opened done [01:37:05]requested_item shift.open_date is exist - process it [01:37:05]req_shift_open_date [01:37:05]req_shift_open_date done [01:37:05]produce_requested_data done [01:37:05]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115805,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506} [01:37:05]process_action_free close_receipt [01:37:05]json_value_free [01:37:05]json_value_free done [01:37:05]process_json_proto returns [01:37:05]Send response to host [01:37:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115805,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506}}} [01:37:05]free response buf [01:37:05]execute_script done [01:37:05]execute_script returns [01:37:05]free content buf [01:37:05]Sock 9.Close socket [01:37:05]Sock 9.Thread stoped [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:33]accept exits with 8 [01:39:33]New connection [01:39:33]New thread 3067010404 created [01:39:33]Thread 3066867044 joined [01:39:33]Waiting for new connection... [01:39:33] Sock 8.Parse request [01:39:33]Sock 8.Check first char [01:39:33]Sock 8.First char is OK [01:39:33]request: POST /json_proto HTTP/1.0 [01:39:33]Method: POST [01:39:33]URL: /json_proto [01:39:33]Method is POST - this is cgi request [01:39:33]url: /json_proto [01:39:33]query_string will be loaded in cgi processing [01:39:33]execute_cgi json_proto POST (null) [01:39:33]execute_cgi path=json_proto method=POST [01:39:33]POST find Content-Length [01:39:33]Host: 172.17.41.136:8080 [01:39:33]Content-Length: 1299 [01:39:33]Content-Type: application/json [01:39:33] [01:39:33]POST finish read [01:39:33]Found Content-Length = 1299 [01:39:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344119", "tax_sys" : 0, "items" : [ { "code": "4700028325357", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 0,5\u043B", "price" : 390.00, "quantity" : 1.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 644.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:33]execute_script... [01:39:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344119", "tax_sys" : 0, "items" : [ { "code": "4700028325357", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 0,5\u043B", "price" : 390.00, "quantity" : 1.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 644.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:33]POST & json_proto [01:39:33]process_json_proto [01:39:33]json parsed OK: [01:39:33]protocol is kg_v1.0 [01:39:33]action value=close_receipt [01:39:33]process_action close_receipt [01:39:33]cmd_close_receipt [01:39:33]MH_GetDate [01:39:33]Write to MH i2c: F0 00 00 22 17 28 [01:39:33]Write i2c OK [01:39:33]MH_I2C_Read... [01:39:33]Read from MH i2c: F0 [01:39:33]MH_I2C_Read... [01:39:33]Read from MH i2c: F0 09 00 [01:39:33]MH_I2C_Read... [01:39:33]Read from MH i2c: F0 09 00 22 17 00 58 18 F2 66 1B D0 5A 64 A2 [01:39:33]GetLastDocTimeStamp 1727141823 [01:39:33]current date 1727141976 [01:39:33]FM_GetShiftState [01:39:33]SAM_PROTO_GetShiftState [01:39:33]wFMCommunicate request_size=4 [01:39:33]MH_SAM_APDU [01:39:33]CAPDU: 80 13 01 00 [01:39:33]Write to MH i2c: E2 08 00 23 17 80 13 01 00 00 00 00 00 B7 [01:39:33]Write i2c OK [01:39:33]MH_I2C_Read... [01:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:33]Read from MH i2c: E2 [01:39:33]MH_I2C_Read... [01:39:33]Read from MH i2c: E2 0E 00 [01:39:33]MH_I2C_Read... [01:39:33]Read from MH i2c: E2 0E 00 23 17 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 EF [01:39:33]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [01:39:33]wFMCommunicate OK [01:39:33]SAM_PROTO_GetShiftState done [01:39:33]FM_GetShiftState done [01:39:33]opened in 1727138506 [01:39:33]opened+sec_in_day 1727224906 [01:39:33]quantity*price = 39000 [01:39:33]sum+1 = 39001 [01:39:33]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 644.00 НСП 1% : 5.69 НДС 12% : 68.39 Наличными: 0.00 Безнал.: 644.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 3 24.09.2024 01:39 Смена: 473 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115806 ФПД: 55220890239724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T013936&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115806&fm=55220890239724&tin=02508201610067®Number=0000000000091831&sum=64400 0 [01:39:34]StoreToDocumentArchive [01:39:34]shift 473 fd 115806 [01:39:34]save to /storage/0473/doc_00115806 [01:39:34]save last doc name /storage/0473/doc_00115806 to /storage/kkm_last_doc_name [01:39:34]save OK [01:39:34]Clear old archive folders... [01:39:34]ProcessDocumentItem done err = 0, tmpTLVsize=478 [01:39:34]tlvbuf is 0115CB90 [01:39:34]SAM_PROTO_ClearQueue [01:39:34]wFMCommunicate request_size=4 [01:39:34]MH_SAM_APDU [01:39:34]CAPDU: 80 09 00 00 [01:39:34]Write to MH i2c: E2 08 00 30 17 80 09 00 00 00 00 00 00 B9 [01:39:34]Write i2c OK [01:39:34]MH_I2C_Read... [01:39:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:39:34]Read from MH i2c: E2 [01:39:34]MH_I2C_Read... [01:39:34]Read from MH i2c: E2 03 00 [01:39:34]MH_I2C_Read... [01:39:34]Read from MH i2c: E2 03 00 30 17 00 90 00 BB [01:39:34]RAPDU: 90 00 [01:39:34]wFMCommunicate OK [01:39:34]SAM_PROTO_ClearQueue done [01:39:34]KKMCreateOFDPacket [01:39:34]OFDProtocolAddRootSTLVToBuf [01:39:34]FM_MakeSignedData [01:39:34]FM_MakeSignedData [01:39:34]SAM_PROTO_SignData [01:39:34]wFMCommunicate request_size=4 [01:39:34]MH_SAM_APDU [01:39:34]CAPDU: 80 0D 01 02 [01:39:34]Write to MH i2c: E2 08 00 31 17 80 0D 01 02 00 00 00 00 C1 [01:39:34]Write i2c OK [01:39:34]MH_I2C_Read... [01:39:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:39:34]Read from MH i2c: E2 [01:39:34]MH_I2C_Read... [01:39:34]Read from MH i2c: E2 03 00 [01:39:34]MH_I2C_Read... [01:39:34]Read from MH i2c: E2 03 00 31 17 00 90 00 BC [01:39:34]RAPDU: 90 00 [01:39:34]wFMCommunicate OK [01:39:34]wFMCommunicate request_size=255 [01:39:34]MH_SAM_APDU [01:39:34]CAPDU: 80 0D 02 02 FA 03 00 DE 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 [01:39:34]Write to MH i2c: E2 02 01 32 17 80 0D 02 02 FA 00 03 00 DE 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 00 00 C9 [01:39:34]Write i2c OK [01:39:34]MH_I2C_Read... [01:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:35]Read from MH i2c: E2 [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: E2 03 00 [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: E2 03 00 32 17 00 90 00 BD [01:39:35]RAPDU: 90 00 [01:39:35]wFMCommunicate OK [01:39:35]wFMCommunicate request_size=237 [01:39:35]MH_SAM_APDU [01:39:35]CAPDU: 80 0D 02 02 E8 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 58 18 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5E C4 01 00 35 04 06 00 32 39 1D 8C 02 EC [01:39:35]Write to MH i2c: E2 F0 00 33 17 80 0D 02 02 E8 00 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 58 18 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5E C4 01 00 35 04 06 00 32 39 1D 8C 02 EC 00 00 6D [01:39:35]Write i2c OK [01:39:35]MH_I2C_Read... [01:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:35]Read from MH i2c: E2 [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: E2 03 00 [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: E2 03 00 33 17 00 90 00 BE [01:39:35]RAPDU: 90 00 [01:39:35]wFMCommunicate OK [01:39:35]wFMCommunicate request_size=4 [01:39:35]MH_SAM_APDU [01:39:35]CAPDU: 80 0D 03 02 [01:39:35]Write to MH i2c: E2 08 00 34 17 80 0D 03 02 00 00 00 00 C6 [01:39:35]Write i2c OK [01:39:35]MH_I2C_Read... [01:39:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:39:35]Read from MH i2c: E2 [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: E2 0B 00 [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: E2 0B 00 34 17 00 32 50 92 62 ED DC E8 03 90 00 F1 [01:39:35]RAPDU: 32 50 92 62 ED DC E8 03 90 00 [01:39:35]wFMCommunicate OK [01:39:35]SAM_PROTO_SignData done [01:39:35]FM_MakeSignedData done [01:39:35]CreateOFDProtocolMessage [01:39:35]wFMCommunicate request_size=4 [01:39:35]MH_SAM_APDU [01:39:35]CAPDU: 80 11 00 00 [01:39:35]Write to MH i2c: E2 08 00 35 17 80 11 00 00 00 00 00 00 C6 [01:39:35]Write i2c OK [01:39:35]MH_I2C_Read... [01:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:35]Read from MH i2c: E2 [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: E2 17 00 [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: E2 17 00 35 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 14 [01:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:39:35]wFMCommunicate OK [01:39:35]CreateOFDProtocolMessage done [01:39:35]OFDSenderStorePacket 115806 [01:39:35]StoreOFDPacket docnum=115806 [01:39:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F2 01 00 00 7E 01 EA 01 0A BA 5A 03 01 00 03 00 DE 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 58 18 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5E C4 01 00 35 04 06 00 32 39 1D 8C 02 EC 32 50 92 62 ED DC E8 03 [01:39:35]CheckFolder [01:39:35]dirname=/storage/ofd_packets [01:39:35]CheckFolder done [01:39:35]ProducePacketName [01:39:35]name=ofd_packets/00115806 [01:39:35]NVStorageSaveData ofd_packets/00115806 [01:39:35]File name is /storage/ofd_packets/00115806 [01:39:35]Write 528 bytes [01:39:35]NVStorageSaveData done [01:39:35]OFDSenderStorePacket done [01:39:35]KKMCreateOFDPacket done [01:39:35]NVStorageSaveData kkm_last_timestamp [01:39:35]File name is /storage/kkm_last_timestamp [01:39:35]Write 4 bytes [01:39:35]NVStorageSaveData done [01:39:35]ExternCall_PrintAddStr [01:39:35]wPrintStart [01:39:35]Write to MH i2c: 01 00 00 36 17 4D [01:39:35]Write i2c OK [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: 01 [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: 01 07 00 [01:39:35]MH_I2C_Read... [01:39:35]Read from MH i2c: 01 07 00 36 17 00 00 00 00 00 FF 0F 62 [01:39:35]RasterBufferAndPrint [01:39:35]line Счет N : (3)344119 [01:39:35]line ИНН: 02508201610067 [01:39:35]line Контрольно-Кассовый Чек [01:39:35]line ПРОДАЖА [01:39:35]line Товар: 4700028325357 [01:39:35]line Водка Антивирус 0,5л [01:39:35]line 1.000 * 390.00 [01:39:35]line = 390.00 [01:39:35]line НДС 12% НСП 1% [01:39:35]line > о реализуемом товаре [01:39:35]line Товар: 4870001570071 [01:39:35]line Напиток Pepsi 1л [01:39:35]line 1.000 * 110.00 [01:39:35]line = 110.00 [01:39:35]line НДС 12% НСП 1% [01:39:35]line > о реализуемом товаре [01:39:35]line Товар: 48743587 [01:39:35]line Сигареты Winston XStyle Silver [01:39:35]line 1.000 * 144.00 [01:39:35]line = 144.00 [01:39:35]line НДС 12% НСП 1% [01:39:35]line > о реализуемом товаре [01:39:35]line ИТОГО: 644.00 [01:39:35]line НСП 1% : 5.69 [01:39:35]line НДС 12% : 68.39 [01:39:35]line Наличными: 0.00 [01:39:35]line Безнал.: 644.00 [01:39:35]line Место: АЗС № 90 "Партнер Нефть" [01:39:35]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [01:39:35]line СНО: Общий режим [01:39:35]line Чек 3 24.09.2024 01:39 [01:39:35]line Смена: 473 ФФД: 1.0 [01:39:35]line ЗНМ: 0300000120 [01:39:35]line РНМ: 0000000000091831 [01:39:35]line Версия ККМ: 001 [01:39:35]line Платежная система: Бакай Банк [01:39:35]line ФМ: 0000000000871830 [01:39:35]line ФД: 115806 [01:39:35]line ФПД: 55220890239724 [01:39:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T013936&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115806&fm=55220890239724&tin=02508201610067®Number=0000000000091831&sum=64400 [01:39:35]line 0 [01:39:35]written 0, free lines is 4095 [01:39:35]OFD Sender: Processing packet 115806 [packets to send 482, broken 481] [01:39:35]ProducePacketName [01:39:35]name=ofd_packets/00115806 [01:39:35]OFD Sender: To server: pG, [01:39:35]CommunicateWithHost lk.salyk.kg:30040 [01:39:35]ConnectInit lk.salyk.kg [01:39:35]Connected sock=10 [01:39: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 38 33 30 F2 01 00 00 7E 01 EA 01 0A BA 5A 03 01 00 03 00 DE 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 58 18 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5E C4 01 00 35 04 06 00 32 39 1D 8C 02 EC 32 50 92 62 ED DC E8 03 [01:39:36]Write to MH i2c: 01 00 00 6C 17 83 [01:39:36]Write i2c OK [01:39:36]MH_I2C_Read... [01:39:36]Read from MH i2c: 01 [01:39:36]MH_I2C_Read... [01:39:36]Read from MH i2c: 01 07 00 [01:39:36]MH_I2C_Read... [01:39:36]Read from MH i2c: 01 07 00 6C 17 00 00 00 00 00 34 0B C9 [01:39:36]RasterBufferAndPrint [01:39:36]line [01:39:36]line [01:39:36]line [01:39:36]line [01:39:36]line [01:39:36]written 0, free lines is 2872 [01:39:36]MH_Cut [01:39:36]Write to MH i2c: D1 01 00 73 17 01 5C [01:39:36]Write i2c OK [01:39:36]MH_I2C_Read... [01:39:36]Read from MH i2c: D1 [01:39:36]MH_I2C_Read... [01:39:36]Read from MH i2c: D1 01 00 [01:39:36]MH_I2C_Read... [01:39:36]Read from MH i2c: D1 01 00 73 17 00 5B [01:39:36]Write to MH i2c: 01 00 00 74 17 8B [01:39:36]Write i2c OK [01:39:36]MH_I2C_Read... [01:39:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 CF AF 47 00 72 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 38 33 30 10 04 04 00 5E C4 01 00 F4 03 04 00 99 BD F1 66 B6 04 01 00 00 06 8C 6B 34 5C 89 E7 1C [01:39:36]CommunicateWithHost err = 0 [01:39:36]CheckOFDResponse [01:39:36]1017 (14) - 77093643461234 [01:39:36]1041 (16) - 0000000000871830 [01:39:36]1040 (4) - 115806 [01:39:36]1012 (4) - 23.09.2024 19:12 [01:39:36]1206 (1) - 0 [01:39:36]OFD Sender: Remove packet 115806 [01:39:36]ProducePacketName [01:39:36]name=ofd_packets/00115806 [01:39:36]NVStorageDeleteData [01:39:36]OFD Sender: No OFD packet to send [01:39:37]*** Cut start [01:39:37]*** Partial cut [01:39:37]*** CUTSNS_PIN = 1 [01:39:37]*** CUTSNS_PIN = 0 [01:39:38]*** Brake cut motor [01:39:38]Read from MH i2c: 01 [01:39:38]MH_I2C_Read... [01:39:38]*** Stop cut motor [01:39:38]*** Cut end [01:39:38]Read from MH i2c: 01 07 00 [01:39:38]MH_I2C_Read... [01:39:38]Read from MH i2c: 01 07 00 74 17 00 00 00 00 00 FF 0F A0 [01:39:38]process_action close_receipt done [01:39:38]requested_data is exist [01:39:38]produce_requested_data [01:39:38]requested_item fm.sn is exist - process it [01:39:38]wFMCommunicate request_size=4 [01:39:38]MH_SAM_APDU [01:39:38]CAPDU: 80 11 00 00 [01:39:38]Write to MH i2c: E2 08 00 75 17 80 11 00 00 00 00 00 00 06 [01:39:38]Write i2c OK [01:39:38]MH_I2C_Read... [01:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:38]Read from MH i2c: E2 [01:39:38]MH_I2C_Read... [01:39:38]Read from MH i2c: E2 17 00 [01:39:38]MH_I2C_Read... [01:39:38]Read from MH i2c: E2 17 00 75 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 54 [01:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:39:38]wFMCommunicate OK [01:39:38]requested_item fd.num is exist - process it [01:39:38]SAM_PROTO_GetFieldsCounters [01:39:38]wFMCommunicate request_size=4 [01:39:38]MH_SAM_APDU [01:39:38]CAPDU: 80 13 00 00 [01:39:38]Write to MH i2c: E2 08 00 76 17 80 13 00 00 00 00 00 00 09 [01:39:38]Write i2c OK [01:39:38]MH_I2C_Read... [01:39:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:39:38]Read from MH i2c: E2 [01:39:38]MH_I2C_Read... [01:39:38]Read from MH i2c: E2 62 00 [01:39:38]MH_I2C_Read... [01:39:38]Read from MH i2c: E2 62 00 76 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5E C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [01:39: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5E C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:39:38]wFMCommunicate OK [01:39:38]SAM_PROTO_GetFieldsCounters done [01:39:38]requested_item shift.num is exist - process it [01:39:38]requested_item shift.opened is exist - process it [01:39:38]req_shift_opened [01:39:38]FM_GetShiftState [01:39:38]SAM_PROTO_GetShiftState [01:39:38]wFMCommunicate request_size=4 [01:39:38]MH_SAM_APDU [01:39:38]CAPDU: 80 13 01 00 [01:39:38]Write to MH i2c: E2 08 00 77 17 80 13 01 00 00 00 00 00 0B [01:39:38]Write i2c OK [01:39:38]MH_I2C_Read... [01:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:38]Read from MH i2c: E2 [01:39:38]MH_I2C_Read... [01:39:38]Read from MH i2c: E2 0E 00 [01:39:38]MH_I2C_Read... [01:39:38]Read from MH i2c: E2 0E 00 77 17 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 43 [01:39:38]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [01:39:38]wFMCommunicate OK [01:39:38]SAM_PROTO_GetShiftState done [01:39:38]FM_GetShiftState done [01:39:38]req_shift_opened done [01:39:38]requested_item shift.open_date is exist - process it [01:39:38]req_shift_open_date [01:39:38]req_shift_open_date done [01:39:38]produce_requested_data done [01:39:38]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115806,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506} [01:39:38]process_action_free close_receipt [01:39:38]json_value_free [01:39:38]json_value_free done [01:39:38]process_json_proto returns [01:39:38]Send response to host [01:39:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115806,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506}}} [01:39:38]free response buf [01:39:38]execute_script done [01:39:38]execute_script returns [01:39:38]free content buf [01:39:38]Sock 8.Close socket [01:39:38]Sock 8.Thread stoped [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:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:21]accept exits with 9 [01:43:21]New connection [01:43:21]New thread 3066867044 created [01:43:21]Thread 3067010404 joined [01:43:21]Waiting for new connection... [01:43:21] Sock 9.Parse request [01:43:21]Sock 9.Check first char [01:43:21]Sock 9.First char is OK [01:43:21]request: POST /json_proto HTTP/1.0 [01:43:21]Method: POST [01:43:21]URL: /json_proto [01:43:21]Method is POST - this is cgi request [01:43:21]url: /json_proto [01:43:21]query_string will be loaded in cgi processing [01:43:21]execute_cgi json_proto POST (null) [01:43:21]execute_cgi path=json_proto method=POST [01:43:21]POST find Content-Length [01:43:21]Host: 172.17.41.136:8080 [01:43:21]Content-Length: 1038 [01:43:21]Content-Type: application/json [01:43:21] [01:43:21]POST finish read [01:43:21]Found Content-Length = 1038 [01:43:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344120", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:43:21]execute_script... [01:43:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344120", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:43:21]POST & json_proto [01:43:21]process_json_proto [01:43:21]json parsed OK: [01:43:21]protocol is kg_v1.0 [01:43:21]action value=close_receipt [01:43:21]process_action close_receipt [01:43:21]cmd_close_receipt [01:43:21]MH_GetDate [01:43:21]Write to MH i2c: F0 00 00 78 17 7E [01:43:21]Write i2c OK [01:43:21]MH_I2C_Read... [01:43:21]Read from MH i2c: F0 [01:43:21]MH_I2C_Read... [01:43:21]Read from MH i2c: F0 09 00 [01:43:21]MH_I2C_Read... [01:43:21]Read from MH i2c: F0 09 00 78 17 00 3B 19 F2 66 1B D0 5A 64 DC [01:43:21]GetLastDocTimeStamp 1727141976 [01:43:21]current date 1727142203 [01:43:21]FM_GetShiftState [01:43:21]SAM_PROTO_GetShiftState [01:43:21]wFMCommunicate request_size=4 [01:43:21]MH_SAM_APDU [01:43:21]CAPDU: 80 13 01 00 [01:43:21]Write to MH i2c: E2 08 00 79 17 80 13 01 00 00 00 00 00 0D [01:43:21]Write i2c OK [01:43:21]MH_I2C_Read... [01:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:43:21]Read from MH i2c: E2 [01:43:21]MH_I2C_Read... [01:43:21]Read from MH i2c: E2 0E 00 [01:43:21]MH_I2C_Read... [01:43:21]Read from MH i2c: E2 0E 00 79 17 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 45 [01:43:21]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [01:43:21]wFMCommunicate OK [01:43:21]SAM_PROTO_GetShiftState done [01:43:21]FM_GetShiftState done [01:43:21]opened in 1727138506 [01:43:21]opened+sec_in_day 1727224906 [01:43:21]quantity*price = 13000 [01:43:21]sum+1 = 13001 [01:43:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.48 Наличными: 0.00 Безнал.: 240.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 4 24.09.2024 01:43 Смена: 473 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115807 ФПД: 184907401464212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T014323&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115807&fm=184907401464212&tin=02508201610067®Number=0000000000091831&sum=24000 0 [01:43:22]StoreToDocumentArchive [01:43:22]shift 473 fd 115807 [01:43:22]save to /storage/0473/doc_00115807 [01:43:22]save last doc name /storage/0473/doc_00115807 to /storage/kkm_last_doc_name [01:43:22]save OK [01:43:22]Clear old archive folders... [01:43:22]ProcessDocumentItem done err = 0, tmpTLVsize=368 [01:43:22]tlvbuf is 011B1270 [01:43:22]SAM_PROTO_ClearQueue [01:43:22]wFMCommunicate request_size=4 [01:43:22]MH_SAM_APDU [01:43:22]CAPDU: 80 09 00 00 [01:43:22]Write to MH i2c: E2 08 00 86 17 80 09 00 00 00 00 00 00 0F [01:43:22]OFD Sender: No OFD packet to send [01:43:22]Write i2c OK [01:43:22]MH_I2C_Read... [01:43:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:43:22]Read from MH i2c: E2 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 03 00 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 03 00 86 17 00 90 00 11 [01:43:22]RAPDU: 90 00 [01:43:22]wFMCommunicate OK [01:43:22]SAM_PROTO_ClearQueue done [01:43:22]KKMCreateOFDPacket [01:43:22]OFDProtocolAddRootSTLVToBuf [01:43:22]FM_MakeSignedData [01:43:22]FM_MakeSignedData [01:43:22]SAM_PROTO_SignData [01:43:22]wFMCommunicate request_size=4 [01:43:22]MH_SAM_APDU [01:43:22]CAPDU: 80 0D 01 02 [01:43:22]Write to MH i2c: E2 08 00 87 17 80 0D 01 02 00 00 00 00 17 [01:43:22]Write i2c OK [01:43:22]MH_I2C_Read... [01:43:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:43:22]Read from MH i2c: E2 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 03 00 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 03 00 87 17 00 90 00 12 [01:43:22]RAPDU: 90 00 [01:43:22]wFMCommunicate OK [01:43:22]wFMCommunicate request_size=255 [01:43:22]MH_SAM_APDU [01:43:22]CAPDU: 80 0D 02 02 FA 03 00 70 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 [01:43:22]Write to MH i2c: E2 02 01 88 17 80 0D 02 02 FA 00 03 00 70 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 00 00 7C [01:43:22]Write i2c OK [01:43:22]MH_I2C_Read... [01:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:43:22]Read from MH i2c: E2 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 03 00 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 03 00 88 17 00 90 00 13 [01:43:22]RAPDU: 90 00 [01:43:22]wFMCommunicate OK [01:43:22]wFMCommunicate request_size=127 [01:43:22]MH_SAM_APDU [01:43:22]CAPDU: 80 0D 02 02 7A 03 06 00 F4 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 3B 19 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5F C4 01 00 35 04 06 00 A8 2C 1B FB 09 94 [01:43:22]Write to MH i2c: E2 82 00 89 17 80 0D 02 02 7A 00 03 06 00 F4 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 3B 19 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5F C4 01 00 35 04 06 00 A8 2C 1B FB 09 94 00 00 98 [01:43:22]Write i2c OK [01:43:22]MH_I2C_Read... [01:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:43:22]Read from MH i2c: E2 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 03 00 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 03 00 89 17 00 90 00 14 [01:43:22]RAPDU: 90 00 [01:43:22]wFMCommunicate OK [01:43:22]wFMCommunicate request_size=4 [01:43:22]MH_SAM_APDU [01:43:22]CAPDU: 80 0D 03 02 [01:43:22]Write to MH i2c: E2 08 00 8A 17 80 0D 03 02 00 00 00 00 1C [01:43:22]Write i2c OK [01:43:22]MH_I2C_Read... [01:43:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:43:22]Read from MH i2c: E2 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 0B 00 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 0B 00 8A 17 00 06 24 B2 09 63 6E 56 59 90 00 82 [01:43:22]RAPDU: 06 24 B2 09 63 6E 56 59 90 00 [01:43:22]wFMCommunicate OK [01:43:22]SAM_PROTO_SignData done [01:43:22]FM_MakeSignedData done [01:43:22]CreateOFDProtocolMessage [01:43:22]wFMCommunicate request_size=4 [01:43:22]MH_SAM_APDU [01:43:22]CAPDU: 80 11 00 00 [01:43:22]Write to MH i2c: E2 08 00 8B 17 80 11 00 00 00 00 00 00 1C [01:43:22]Write i2c OK [01:43:22]MH_I2C_Read... [01:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:43:22]Read from MH i2c: E2 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 17 00 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 17 00 8B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6A [01:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:43:22]wFMCommunicate OK [01:43:22]CreateOFDProtocolMessage done [01:43:22]OFDSenderStorePacket 115807 [01:43:22]StoreOFDPacket docnum=115807 [01:43:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 84 01 00 00 EE D1 7C 01 45 11 5A 03 01 00 03 00 70 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 3B 19 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5F C4 01 00 35 04 06 00 A8 2C 1B FB 09 94 06 24 B2 09 63 6E 56 59 [01:43:22]CheckFolder [01:43:22]dirname=/storage/ofd_packets [01:43:22]CheckFolder done [01:43:22]ProducePacketName [01:43:22]name=ofd_packets/00115807 [01:43:22]NVStorageSaveData ofd_packets/00115807 [01:43:22]File name is /storage/ofd_packets/00115807 [01:43:22]Write 418 bytes [01:43:22]NVStorageSaveData done [01:43:22]OFDSenderStorePacket done [01:43:22]KKMCreateOFDPacket done [01:43:22]NVStorageSaveData kkm_last_timestamp [01:43:22]File name is /storage/kkm_last_timestamp [01:43:22]Write 4 bytes [01:43:22]NVStorageSaveData done [01:43:22]ExternCall_PrintAddStr [01:43:22]wPrintStart [01:43:22]Write to MH i2c: 01 00 00 8C 17 A3 [01:43:22]Write i2c OK [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: 01 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: 01 07 00 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: 01 07 00 8C 17 00 00 00 00 00 FF 0F B8 [01:43:22]RasterBufferAndPrint [01:43:22]line Счет N : (3)344120 [01:43:22]line ИНН: 02508201610067 [01:43:22]line Контрольно-Кассовый Чек [01:43:22]line ПРОДАЖА [01:43:22]line Товар: 47011656 [01:43:22]line Водка Пшеничная 0,1л [01:43:22]line 2.000 * 65.00 [01:43:23]line = 130.00 [01:43:23]line НДС 12% НСП 1% [01:43:23]line > о реализуемом товаре [01:43:23]line Товар: 4870001570071 [01:43:23]line Напиток Pepsi 1л [01:43:23]line 1.000 * 110.00 [01:43:23]line = 110.00 [01:43:23]line НДС 12% НСП 1% [01:43:23]line > о реализуемом товаре [01:43:23]line ИТОГО: 240.00 [01:43:23]line НСП 1% : 2.12 [01:43:23]line НДС 12% : 25.48 [01:43:23]line Наличными: 0.00 [01:43:23]line Безнал.: 240.00 [01:43:23]line Место: АЗС № 90 "Партнер Нефть" [01:43:23]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [01:43:23]line СНО: Общий режим [01:43:23]line Чек 4 24.09.2024 01:43 [01:43:23]line Смена: 473 ФФД: 1.0 [01:43:23]line ЗНМ: 0300000120 [01:43:23]line РНМ: 0000000000091831 [01:43:23]line Версия ККМ: 001 [01:43:23]line Платежная система: O! деньги [01:43:23]line ФМ: 0000000000871830 [01:43:23]line ФД: 115807 [01:43:23]line ФПД: 184907401464212 [01:43:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T014323&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115807&fm=184907401464212&tin=02508201610067®Number=0000000000091831&sum=24000 [01:43:23]line 0 [01:43:23]OFD Sender: Processing packet 115807 [packets to send 482, broken 481] [01:43:23]ProducePacketName [01:43:23]name=ofd_packets/00115807 [01:43:23]OFD Sender: To server: pG, [01:43:23]CommunicateWithHost lk.salyk.kg:30040 [01:43:23]ConnectInit lk.salyk.kg [01:43:23]written 0, free lines is 4095 [01:43:23]Connected sock=10 [01:43: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 38 33 30 84 01 00 00 EE D1 7C 01 45 11 5A 03 01 00 03 00 70 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 3B 19 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 5F C4 01 00 35 04 06 00 A8 2C 1B FB 09 94 06 24 B2 09 63 6E 56 59 [01:43:23]Write to MH i2c: 01 00 00 BB 17 D2 [01:43:23]Write i2c OK [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: 01 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: 01 07 00 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: 01 07 00 BB 17 00 00 00 00 00 E0 0B C4 [01:43:23]RasterBufferAndPrint [01:43:23]line [01:43:23]line [01:43:23]line [01:43:23]line [01:43:23]line [01:43:23]written 0, free lines is 3042 [01:43:23]MH_Cut [01:43:23]Write to MH i2c: D1 01 00 C2 17 01 AB [01:43:23]Write i2c OK [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: D1 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: D1 01 00 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: D1 01 00 C2 17 00 AA [01:43:23]Write to MH i2c: 01 00 00 C3 17 DA [01:43:23]Write i2c OK [01:43:23]MH_I2C_Read... [01:43:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 5E A2 47 00 E2 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 38 33 30 10 04 04 00 5F C4 01 00 F4 03 04 00 7D BE F1 66 B6 04 01 00 00 BB 43 94 2E B7 BD 32 5B [01:43:23]CommunicateWithHost err = 0 [01:43:23]CheckOFDResponse [01:43:23]1017 (14) - 77093643461234 [01:43:23]1041 (16) - 0000000000871830 [01:43:23]1040 (4) - 115807 [01:43:23]1012 (4) - 23.09.2024 19:16 [01:43:23]1206 (1) - 0 [01:43:23]OFD Sender: Remove packet 115807 [01:43:23]ProducePacketName [01:43:23]name=ofd_packets/00115807 [01:43:23]NVStorageDeleteData [01:43:24]OFD Sender: No OFD packet to send [01:43:25]*** Cut start [01:43:25]*** Partial cut [01:43:25]*** CUTSNS_PIN = 1 [01:43:25]*** CUTSNS_PIN = 0 [01:43:25]*** Brake cut motor [01:43:25]Read from MH i2c: 01 [01:43:25]MH_I2C_Read... [01:43:25]*** Stop cut motor [01:43:25]*** Cut end [01:43:25]Read from MH i2c: 01 07 00 [01:43:25]MH_I2C_Read... [01:43:25]Read from MH i2c: 01 07 00 C3 17 00 00 00 00 00 FF 0F EF [01:43:25]process_action close_receipt done [01:43:25]requested_data is exist [01:43:25]produce_requested_data [01:43:25]requested_item fm.sn is exist - process it [01:43:25]wFMCommunicate request_size=4 [01:43:25]MH_SAM_APDU [01:43:25]CAPDU: 80 11 00 00 [01:43:25]Write to MH i2c: E2 08 00 C4 17 80 11 00 00 00 00 00 00 55 [01:43:25]Write i2c OK [01:43:25]MH_I2C_Read... [01:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:43:25]Read from MH i2c: E2 [01:43:25]MH_I2C_Read... [01:43:25]Read from MH i2c: E2 17 00 [01:43:25]MH_I2C_Read... [01:43:25]Read from MH i2c: E2 17 00 C4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A3 [01:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:43:25]wFMCommunicate OK [01:43:25]requested_item fd.num is exist - process it [01:43:25]SAM_PROTO_GetFieldsCounters [01:43:25]wFMCommunicate request_size=4 [01:43:25]MH_SAM_APDU [01:43:25]CAPDU: 80 13 00 00 [01:43:25]Write to MH i2c: E2 08 00 C5 17 80 13 00 00 00 00 00 00 58 [01:43:25]Write i2c OK [01:43:25]MH_I2C_Read... [01:43:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:43:26]Read from MH i2c: E2 [01:43:26]MH_I2C_Read... [01:43:26]Read from MH i2c: E2 62 00 [01:43:26]MH_I2C_Read... [01:43:26]Read from MH i2c: E2 62 00 C5 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5F C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [01:43: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 5F C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:43:26]wFMCommunicate OK [01:43:26]SAM_PROTO_GetFieldsCounters done [01:43:26]requested_item shift.num is exist - process it [01:43:26]requested_item shift.opened is exist - process it [01:43:26]req_shift_opened [01:43:26]FM_GetShiftState [01:43:26]SAM_PROTO_GetShiftState [01:43:26]wFMCommunicate request_size=4 [01:43:26]MH_SAM_APDU [01:43:26]CAPDU: 80 13 01 00 [01:43:26]Write to MH i2c: E2 08 00 C6 17 80 13 01 00 00 00 00 00 5A [01:43:26]Write i2c OK [01:43:26]MH_I2C_Read... [01:43:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:43:26]Read from MH i2c: E2 [01:43:26]MH_I2C_Read... [01:43:26]Read from MH i2c: E2 0E 00 [01:43:26]MH_I2C_Read... [01:43:26]Read from MH i2c: E2 0E 00 C6 17 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 92 [01:43:26]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [01:43:26]wFMCommunicate OK [01:43:26]SAM_PROTO_GetShiftState done [01:43:26]FM_GetShiftState done [01:43:26]req_shift_opened done [01:43:26]requested_item shift.open_date is exist - process it [01:43:26]req_shift_open_date [01:43:26]req_shift_open_date done [01:43:26]produce_requested_data done [01:43:26]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115807,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506} [01:43:26]process_action_free close_receipt [01:43:26]json_value_free [01:43:26]json_value_free done [01:43:26]process_json_proto returns [01:43:26]Send response to host [01:43:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115807,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506}}} [01:43:26]free response buf [01:43:26]execute_script done [01:43:26]execute_script returns [01:43:26]free content buf [01:43:26]Sock 9.Close socket [01:43:26]Sock 9.Thread stoped [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:32]accept exits with 8 [01:56:32]New connection [01:56:32]New thread 3067010404 created [01:56:32]Thread 3066867044 joined [01:56:32]Waiting for new connection... [01:56:32] Sock 8.Parse request [01:56:32]Sock 8.Check first char [01:56:32]Sock 8.First char is OK [01:56:32]request: POST /json_proto HTTP/1.0 [01:56:32]Method: POST [01:56:32]URL: /json_proto [01:56:32]Method is POST - this is cgi request [01:56:32]url: /json_proto [01:56:32]query_string will be loaded in cgi processing [01:56:32]execute_cgi json_proto POST (null) [01:56:32]execute_cgi path=json_proto method=POST [01:56:32]POST find Content-Length [01:56:32]Host: 172.17.41.136:8080 [01:56:32]Content-Length: 614 [01:56:32]Content-Type: application/json [01:56:32] [01:56:32]POST finish read [01:56:32]Found Content-Length = 614 [01:56:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344121", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:56:32]execute_script... [01:56:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344121", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:56:32]POST & json_proto [01:56:32]process_json_proto [01:56:32]json parsed OK: [01:56:32]protocol is kg_v1.0 [01:56:32]action value=close_receipt [01:56:32]process_action close_receipt [01:56:32]cmd_close_receipt [01:56:32]MH_GetDate [01:56:32]Write to MH i2c: F0 00 00 C7 17 CD [01:56:32]Write i2c OK [01:56:32]MH_I2C_Read... [01:56:32]Read from MH i2c: F0 [01:56:32]MH_I2C_Read... [01:56:32]Read from MH i2c: F0 09 00 [01:56:32]MH_I2C_Read... [01:56:32]Read from MH i2c: F0 09 00 C7 17 00 53 1C F2 66 1B D0 5A 64 46 [01:56:32]GetLastDocTimeStamp 1727142203 [01:56:32]current date 1727142995 [01:56:32]FM_GetShiftState [01:56:32]SAM_PROTO_GetShiftState [01:56:32]wFMCommunicate request_size=4 [01:56:32]MH_SAM_APDU [01:56:32]CAPDU: 80 13 01 00 [01:56:32]Write to MH i2c: E2 08 00 C8 17 80 13 01 00 00 00 00 00 5C [01:56:32]Write i2c OK [01:56:32]MH_I2C_Read... [01:56:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:56:32]Read from MH i2c: E2 [01:56:32]MH_I2C_Read... [01:56:32]Read from MH i2c: E2 0E 00 [01:56:32]MH_I2C_Read... [01:56:32]Read from MH i2c: E2 0E 00 C8 17 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 94 [01:56:32]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [01:56:32]wFMCommunicate OK [01:56:32]SAM_PROTO_GetShiftState done [01:56:32]FM_GetShiftState done [01:56:32]opened in 1727138506 [01:56:32]opened+sec_in_day 1727224906 [01:56:32]quantity*price = 11000 [01:56:32]sum+1 = 11001 [01:56:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 5 24.09.2024 01:56 Смена: 473 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115808 ФПД: 234157923566518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T015635&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115808&fm=234157923566518&tin=02508201610067®Number=0000000000091831&sum=11000 0 [01:56:33]StoreToDocumentArchive [01:56:33]shift 473 fd 115808 [01:56:33]save to /storage/0473/doc_00115808 [01:56:33]save last doc name /storage/0473/doc_00115808 to /storage/kkm_last_doc_name [01:56:33]save OK [01:56:33]Clear old archive folders... [01:56:33]ProcessDocumentItem done err = 0, tmpTLVsize=266 [01:56:33]tlvbuf is 011C4180 [01:56:33]SAM_PROTO_ClearQueue [01:56:33]wFMCommunicate request_size=4 [01:56:33]MH_SAM_APDU [01:56:33]CAPDU: 80 09 00 00 [01:56:33]Write to MH i2c: E2 08 00 D5 17 80 09 00 00 00 00 00 00 5E [01:56:33]Write i2c OK [01:56:33]MH_I2C_Read... [01:56:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:56:33]Read from MH i2c: E2 [01:56:33]MH_I2C_Read... [01:56:33]Read from MH i2c: E2 03 00 [01:56:33]MH_I2C_Read... [01:56:33]Read from MH i2c: E2 03 00 D5 17 00 90 00 60 [01:56:33]RAPDU: 90 00 [01:56:33]wFMCommunicate OK [01:56:33]SAM_PROTO_ClearQueue done [01:56:33]KKMCreateOFDPacket [01:56:33]OFDProtocolAddRootSTLVToBuf [01:56:33]FM_MakeSignedData [01:56:33]FM_MakeSignedData [01:56:33]SAM_PROTO_SignData [01:56:33]wFMCommunicate request_size=4 [01:56:33]MH_SAM_APDU [01:56:33]CAPDU: 80 0D 01 02 [01:56:33]Write to MH i2c: E2 08 00 D6 17 80 0D 01 02 00 00 00 00 66 [01:56:33]Write i2c OK [01:56:33]MH_I2C_Read... [01:56:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:56:34]Read from MH i2c: E2 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: E2 03 00 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: E2 03 00 D6 17 00 90 00 61 [01:56:34]RAPDU: 90 00 [01:56:34]wFMCommunicate OK [01:56:34]wFMCommunicate request_size=255 [01:56:34]MH_SAM_APDU [01:56:34]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 53 1C F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [01:56:34]Write to MH i2c: E2 02 01 D7 17 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 53 1C F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 80 [01:56:34]Write i2c OK [01:56:34]MH_I2C_Read... [01:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:56:34]Read from MH i2c: E2 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: E2 03 00 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: E2 03 00 D7 17 00 90 00 62 [01:56:34]RAPDU: 90 00 [01:56:34]wFMCommunicate OK [01:56:34]wFMCommunicate request_size=25 [01:56:34]MH_SAM_APDU [01:56:34]CAPDU: 80 0D 02 02 14 33 30 10 04 04 00 60 C4 01 00 35 04 06 00 D4 F7 23 DB 03 B6 [01:56:34]Write to MH i2c: E2 1C 00 D8 17 80 0D 02 02 14 00 33 30 10 04 04 00 60 C4 01 00 35 04 06 00 D4 F7 23 DB 03 B6 00 00 F2 [01:56:34]Write i2c OK [01:56:34]MH_I2C_Read... [01:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:56:34]Read from MH i2c: E2 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: E2 03 00 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: E2 03 00 D8 17 00 90 00 63 [01:56:34]RAPDU: 90 00 [01:56:34]wFMCommunicate OK [01:56:34]wFMCommunicate request_size=4 [01:56:34]MH_SAM_APDU [01:56:34]CAPDU: 80 0D 03 02 [01:56:34]Write to MH i2c: E2 08 00 D9 17 80 0D 03 02 00 00 00 00 6B [01:56:34]Write i2c OK [01:56:34]MH_I2C_Read... [01:56:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:56:34]Read from MH i2c: E2 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: E2 0B 00 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: E2 0B 00 D9 17 00 ED 99 EB 14 CC 8D 62 CC 90 00 78 [01:56:34]RAPDU: ED 99 EB 14 CC 8D 62 CC 90 00 [01:56:34]wFMCommunicate OK [01:56:34]SAM_PROTO_SignData done [01:56:34]FM_MakeSignedData done [01:56:34]CreateOFDProtocolMessage [01:56:34]wFMCommunicate request_size=4 [01:56:34]MH_SAM_APDU [01:56:34]CAPDU: 80 11 00 00 [01:56:34]Write to MH i2c: E2 08 00 DA 17 80 11 00 00 00 00 00 00 6B [01:56:34]Write i2c OK [01:56:34]MH_I2C_Read... [01:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:56:34]Read from MH i2c: E2 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: E2 17 00 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: E2 17 00 DA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B9 [01:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:56:34]wFMCommunicate OK [01:56:34]CreateOFDProtocolMessage done [01:56:34]OFDSenderStorePacket 115808 [01:56:34]StoreOFDPacket docnum=115808 [01:56:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 EC BA 16 01 CC 74 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 53 1C F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 60 C4 01 00 35 04 06 00 D4 F7 23 DB 03 B6 ED 99 EB 14 CC 8D 62 CC [01:56:34]CheckFolder [01:56:34]dirname=/storage/ofd_packets [01:56:34]CheckFolder done [01:56:34]ProducePacketName [01:56:34]name=ofd_packets/00115808 [01:56:34]NVStorageSaveData ofd_packets/00115808 [01:56:34]File name is /storage/ofd_packets/00115808 [01:56:34]Write 316 bytes [01:56:34]NVStorageSaveData done [01:56:34]OFDSenderStorePacket done [01:56:34]KKMCreateOFDPacket done [01:56:34]NVStorageSaveData kkm_last_timestamp [01:56:34]File name is /storage/kkm_last_timestamp [01:56:34]Write 4 bytes [01:56:34]NVStorageSaveData done [01:56:34]ExternCall_PrintAddStr [01:56:34]wPrintStart [01:56:34]Write to MH i2c: 01 00 00 DB 17 F2 [01:56:34]Write i2c OK [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: 01 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: 01 07 00 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: 01 07 00 DB 17 00 00 00 00 00 FF 0F 07 [01:56:34]RasterBufferAndPrint [01:56:34]line Счет N : (3)344121 [01:56:34]line ИНН: 02508201610067 [01:56:34]line Контрольно-Кассовый Чек [01:56:34]line ПРОДАЖА [01:56:34]line Товар: 4870001570071 [01:56:34]line Напиток Pepsi 1л [01:56:34]line 1.000 * 110.00 [01:56:34]line = 110.00 [01:56:34]line НДС 12% НСП 1% [01:56:34]line > о реализуемом товаре [01:56:34]line ИТОГО: 110.00 [01:56:34]line НСП 1% : 0.97 [01:56:34]line НДС 12% : 11.68 [01:56:34]line Наличными: 110.00 [01:56:34]line Безнал.: 0.00 [01:56:34]line Место: АЗС № 90 "Партнер Нефть" [01:56:34]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [01:56:34]line СНО: Общий режим [01:56:34]line Чек 5 24.09.2024 01:56 [01:56:34]line Смена: 473 ФФД: 1.0 [01:56:34]line ЗНМ: 0300000120 [01:56:34]line РНМ: 0000000000091831 [01:56:34]line Версия ККМ: 001 [01:56:34]line ФМ: 0000000000871830 [01:56:34]line ФД: 115808 [01:56:34]line ФПД: 234157923566518 [01:56:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T015635&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115808&fm=234157923566518&tin=02508201610067®Number=0000000000091831&sum=11000 [01:56:34]line 0 [01:56:34]written 0, free lines is 4095 [01:56:34]OFD Sender: Processing packet 115808 [packets to send 482, broken 481] [01:56:34]ProducePacketName [01:56:34]name=ofd_packets/00115808 [01:56:34]OFD Sender: To server: pG, [01:56:34]CommunicateWithHost lk.salyk.kg:30040 [01:56:34]ConnectInit lk.salyk.kg [01:56:34]Connected sock=10 [01:56: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 38 33 30 1E 01 00 00 EC BA 16 01 CC 74 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 53 1C F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 60 C4 01 00 35 04 06 00 D4 F7 23 DB 03 B6 ED 99 EB 14 CC 8D 62 CC [01:56:34]Write to MH i2c: 01 00 00 02 18 1A [01:56:34]Write i2c OK [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: 01 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: 01 07 00 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: 01 07 00 02 18 00 00 00 00 00 80 0C AD [01:56:34]RasterBufferAndPrint [01:56:34]line [01:56:34]line [01:56:34]line [01:56:34]line [01:56:34]line [01:56:34]written 0, free lines is 3206 [01:56:34]MH_Cut [01:56:34]Write to MH i2c: D1 01 00 09 18 01 F3 [01:56:34]Write i2c OK [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: D1 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: D1 01 00 [01:56:34]MH_I2C_Read... [01:56:34]Read from MH i2c: D1 01 00 09 18 00 F2 [01:56:34]Write to MH i2c: 01 00 00 0A 18 22 [01:56:34]Write i2c OK [01:56:34]MH_I2C_Read... [01:56:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B7 3C 47 00 90 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 38 33 30 10 04 04 00 60 C4 01 00 F4 03 04 00 94 C1 F1 66 B6 04 01 00 00 0F 7D 02 CB DB C9 14 7B [01:56:35]CommunicateWithHost err = 0 [01:56:35]CheckOFDResponse [01:56:35]1017 (14) - 77093643461234 [01:56:35]1041 (16) - 0000000000871830 [01:56:35]1040 (4) - 115808 [01:56:35]1012 (4) - 23.09.2024 19:29 [01:56:35]1206 (1) - 0 [01:56:35]OFD Sender: Remove packet 115808 [01:56:35]ProducePacketName [01:56:35]name=ofd_packets/00115808 [01:56:35]NVStorageDeleteData [01:56:35]OFD Sender: No OFD packet to send [01:56:36]*** Cut start [01:56:36]*** Partial cut [01:56:36]*** CUTSNS_PIN = 1 [01:56:36]*** CUTSNS_PIN = 0 [01:56:36]*** Brake cut motor [01:56:36]Read from MH i2c: 01 [01:56:36]MH_I2C_Read... [01:56:36]*** Stop cut motor [01:56:36]*** Cut end [01:56:36]Read from MH i2c: 01 07 00 [01:56:36]MH_I2C_Read... [01:56:36]Read from MH i2c: 01 07 00 0A 18 00 00 00 00 00 FF 0F 37 [01:56:36]process_action close_receipt done [01:56:36]requested_data is exist [01:56:36]produce_requested_data [01:56:36]requested_item fm.sn is exist - process it [01:56:36]wFMCommunicate request_size=4 [01:56:36]MH_SAM_APDU [01:56:36]CAPDU: 80 11 00 00 [01:56:36]Write to MH i2c: E2 08 00 0B 18 80 11 00 00 00 00 00 00 9D [01:56:36]Write i2c OK [01:56:36]MH_I2C_Read... [01:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:56:36]Read from MH i2c: E2 [01:56:36]MH_I2C_Read... [01:56:36]Read from MH i2c: E2 17 00 [01:56:36]MH_I2C_Read... [01:56:36]Read from MH i2c: E2 17 00 0B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EB [01:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:56:36]wFMCommunicate OK [01:56:36]requested_item fd.num is exist - process it [01:56:36]SAM_PROTO_GetFieldsCounters [01:56:36]wFMCommunicate request_size=4 [01:56:36]MH_SAM_APDU [01:56:36]CAPDU: 80 13 00 00 [01:56:36]Write to MH i2c: E2 08 00 0C 18 80 13 00 00 00 00 00 00 A0 [01:56:36]Write i2c OK [01:56:36]MH_I2C_Read... [01:56:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:56:37]Read from MH i2c: E2 [01:56:37]MH_I2C_Read... [01:56:37]Read from MH i2c: E2 62 00 [01:56:37]MH_I2C_Read... [01:56:37]Read from MH i2c: E2 62 00 0C 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 60 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [01:56: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 60 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:56:37]wFMCommunicate OK [01:56:37]SAM_PROTO_GetFieldsCounters done [01:56:37]requested_item shift.num is exist - process it [01:56:37]requested_item shift.opened is exist - process it [01:56:37]req_shift_opened [01:56:37]FM_GetShiftState [01:56:37]SAM_PROTO_GetShiftState [01:56:37]wFMCommunicate request_size=4 [01:56:37]MH_SAM_APDU [01:56:37]CAPDU: 80 13 01 00 [01:56:37]Write to MH i2c: E2 08 00 0D 18 80 13 01 00 00 00 00 00 A2 [01:56:37]Write i2c OK [01:56:37]MH_I2C_Read... [01:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:56:37]Read from MH i2c: E2 [01:56:37]MH_I2C_Read... [01:56:37]Read from MH i2c: E2 0E 00 [01:56:37]MH_I2C_Read... [01:56:37]Read from MH i2c: E2 0E 00 0D 18 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 DA [01:56:37]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [01:56:37]wFMCommunicate OK [01:56:37]SAM_PROTO_GetShiftState done [01:56:37]FM_GetShiftState done [01:56:37]req_shift_opened done [01:56:37]requested_item shift.open_date is exist - process it [01:56:37]req_shift_open_date [01:56:37]req_shift_open_date done [01:56:37]produce_requested_data done [01:56:37]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115808,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506} [01:56:37]process_action_free close_receipt [01:56:37]json_value_free [01:56:37]json_value_free done [01:56:37]process_json_proto returns [01:56:37]Send response to host [01:56:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115808,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506}}} [01:56:37]free response buf [01:56:37]execute_script done [01:56:37]execute_script returns [01:56:37]free content buf [01:56:37]Sock 8.Close socket [01:56:37]Sock 8.Thread stoped [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:21]accept exits with 9 [01:57:21]New connection [01:57:21]New thread 3066867044 created [01:57:21]Thread 3067010404 joined [01:57:21]Waiting for new connection... [01:57:21] Sock 9.Parse request [01:57:21]Sock 9.Check first char [01:57:21]Sock 9.First char is OK [01:57:21]request: POST /json_proto HTTP/1.0 [01:57:21]Method: POST [01:57:21]URL: /json_proto [01:57:21]Method is POST - this is cgi request [01:57:21]url: /json_proto [01:57:21]query_string will be loaded in cgi processing [01:57:21]execute_cgi json_proto POST (null) [01:57:21]execute_cgi path=json_proto method=POST [01:57:21]POST find Content-Length [01:57:21]Host: 172.17.41.136:8080 [01:57:21]Content-Length: 919 [01:57:21]Content-Type: application/json [01:57:21] [01:57:21]POST finish read [01:57:21]Found Content-Length = 919 [01:57:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344122", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:57:21]execute_script... [01:57:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344122", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:57:21]POST & json_proto [01:57:21]process_json_proto [01:57:21]json parsed OK: [01:57:21]protocol is kg_v1.0 [01:57:21]action value=close_receipt [01:57:21]process_action close_receipt [01:57:21]cmd_close_receipt [01:57:21]MH_GetDate [01:57:21]Write to MH i2c: F0 00 00 0E 18 15 [01:57:21]Write i2c OK [01:57:21]MH_I2C_Read... [01:57:21]Read from MH i2c: F0 [01:57:21]MH_I2C_Read... [01:57:21]Read from MH i2c: F0 09 00 [01:57:21]MH_I2C_Read... [01:57:21]Read from MH i2c: F0 09 00 0E 18 00 83 1C F2 66 1B D0 5A 64 BE [01:57:21]GetLastDocTimeStamp 1727142995 [01:57:21]current date 1727143043 [01:57:21]FM_GetShiftState [01:57:21]SAM_PROTO_GetShiftState [01:57:21]wFMCommunicate request_size=4 [01:57:21]MH_SAM_APDU [01:57:21]CAPDU: 80 13 01 00 [01:57:21]Write to MH i2c: E2 08 00 0F 18 80 13 01 00 00 00 00 00 A4 [01:57:21]Write i2c OK [01:57:21]MH_I2C_Read... [01:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:57:21]Read from MH i2c: E2 [01:57:21]MH_I2C_Read... [01:57:21]Read from MH i2c: E2 0E 00 [01:57:21]MH_I2C_Read... [01:57:21]Read from MH i2c: E2 0E 00 0F 18 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 DC [01:57:21]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [01:57:21]wFMCommunicate OK [01:57:21]SAM_PROTO_GetShiftState done [01:57:21]FM_GetShiftState done [01:57:21]opened in 1727138506 [01:57:21]opened+sec_in_day 1727224906 [01:57:21]quantity*price = 3500 [01:57:21]sum+1 = 3501 [01:57:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 6 24.09.2024 01:57 Смена: 473 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115809 ФПД: 268318856258409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T015723&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115809&fm=268318856258409&tin=02508201610067®Number=0000000000091831&sum=14000 0 [01:57:22]StoreToDocumentArchive [01:57:22]shift 473 fd 115809 [01:57:22]save to /storage/0473/doc_00115809 [01:57:22]save last doc name /storage/0473/doc_00115809 to /storage/kkm_last_doc_name [01:57:22]save OK [01:57:22]Clear old archive folders... [01:57:22]ProcessDocumentItem done err = 0, tmpTLVsize=383 [01:57:22]tlvbuf is 011B0D40 [01:57:22]SAM_PROTO_ClearQueue [01:57:22]wFMCommunicate request_size=4 [01:57:22]MH_SAM_APDU [01:57:22]CAPDU: 80 09 00 00 [01:57:22]Write to MH i2c: E2 08 00 1C 18 80 09 00 00 00 00 00 00 A6 [01:57:22]Write i2c OK [01:57:22]MH_I2C_Read... [01:57:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:57:22]Read from MH i2c: E2 [01:57:22]MH_I2C_Read... [01:57:22]Read from MH i2c: E2 03 00 [01:57:22]MH_I2C_Read... [01:57:22]Read from MH i2c: E2 03 00 1C 18 00 90 00 A8 [01:57:22]RAPDU: 90 00 [01:57:22]wFMCommunicate OK [01:57:22]SAM_PROTO_ClearQueue done [01:57:22]KKMCreateOFDPacket [01:57:22]OFDProtocolAddRootSTLVToBuf [01:57:22]FM_MakeSignedData [01:57:22]FM_MakeSignedData [01:57:22]SAM_PROTO_SignData [01:57:22]wFMCommunicate request_size=4 [01:57:22]MH_SAM_APDU [01:57:22]CAPDU: 80 0D 01 02 [01:57:22]Write to MH i2c: E2 08 00 1D 18 80 0D 01 02 00 00 00 00 AE [01:57:22]Write i2c OK [01:57:22]MH_I2C_Read... [01:57:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:57:22]Read from MH i2c: E2 [01:57:22]MH_I2C_Read... [01:57:22]Read from MH i2c: E2 03 00 [01:57:22]MH_I2C_Read... [01:57:22]Read from MH i2c: E2 03 00 1D 18 00 90 00 A9 [01:57:22]RAPDU: 90 00 [01:57:22]wFMCommunicate OK [01:57:22]wFMCommunicate request_size=255 [01:57:22]MH_SAM_APDU [01:57:22]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C [01:57:22]Write to MH i2c: E2 02 01 1E 18 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 AB [01:57:22]Write i2c OK [01:57:22]MH_I2C_Read... [01:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:57:22]Read from MH i2c: E2 [01:57:22]MH_I2C_Read... [01:57:22]Read from MH i2c: E2 03 00 [01:57:22]MH_I2C_Read... [01:57:22]Read from MH i2c: E2 03 00 1E 18 00 90 00 AA [01:57:22]RAPDU: 90 00 [01:57:22]wFMCommunicate OK [01:57:22]wFMCommunicate request_size=142 [01:57:22]MH_SAM_APDU [01:57:22]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 83 1C F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 61 C4 01 00 35 04 06 00 F4 08 DA 1D 23 69 [01:57:22]Write to MH i2c: E2 91 00 1F 18 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 83 1C F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 61 C4 01 00 35 04 06 00 F4 08 DA 1D 23 69 00 00 1E [01:57:22]Write i2c OK [01:57:22]MH_I2C_Read... [01:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:57:22]Read from MH i2c: E2 [01:57:22]MH_I2C_Read... [01:57:22]Read from MH i2c: E2 03 00 [01:57:22]MH_I2C_Read... [01:57:22]Read from MH i2c: E2 03 00 1F 18 00 90 00 AB [01:57:22]RAPDU: 90 00 [01:57:22]wFMCommunicate OK [01:57:22]wFMCommunicate request_size=4 [01:57:22]MH_SAM_APDU [01:57:22]CAPDU: 80 0D 03 02 [01:57:22]Write to MH i2c: E2 08 00 20 18 80 0D 03 02 00 00 00 00 B3 [01:57:22]Write i2c OK [01:57:22]MH_I2C_Read... [01:57:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:57:22]Read from MH i2c: E2 [01:57:22]MH_I2C_Read... [01:57:22]Read from MH i2c: E2 0B 00 [01:57:22]MH_I2C_Read... [01:57:22]Read from MH i2c: E2 0B 00 20 18 00 D6 DF 06 52 78 E5 23 F4 90 00 35 [01:57:22]RAPDU: D6 DF 06 52 78 E5 23 F4 90 00 [01:57:22]wFMCommunicate OK [01:57:22]SAM_PROTO_SignData done [01:57:22]FM_MakeSignedData done [01:57:22]CreateOFDProtocolMessage [01:57:22]wFMCommunicate request_size=4 [01:57:22]MH_SAM_APDU [01:57:22]CAPDU: 80 11 00 00 [01:57:22]Write to MH i2c: E2 08 00 21 18 80 11 00 00 00 00 00 00 B3 [01:57:22]Write i2c OK [01:57:22]MH_I2C_Read... [01:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:57:22]Read from MH i2c: E2 [01:57:22]MH_I2C_Read... [01:57:22]Read from MH i2c: E2 17 00 [01:57:22]MH_I2C_Read... [01:57:22]Read from MH i2c: E2 17 00 21 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 01 [01:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:57:22]wFMCommunicate OK [01:57:22]CreateOFDProtocolMessage done [01:57:22]OFDSenderStorePacket 115809 [01:57:22]StoreOFDPacket docnum=115809 [01:57:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 93 01 00 00 5B B3 8B 01 1C FD 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 83 1C F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 61 C4 01 00 35 04 06 00 F4 08 DA 1D 23 69 D6 DF 06 52 78 E5 23 F4 [01:57:22]CheckFolder [01:57:22]dirname=/storage/ofd_packets [01:57:22]CheckFolder done [01:57:22]ProducePacketName [01:57:22]name=ofd_packets/00115809 [01:57:22]NVStorageSaveData ofd_packets/00115809 [01:57:22]File name is /storage/ofd_packets/00115809 [01:57:22]Write 433 bytes [01:57:22]NVStorageSaveData done [01:57:22]OFDSenderStorePacket done [01:57:22]KKMCreateOFDPacket done [01:57:22]NVStorageSaveData kkm_last_timestamp [01:57:22]File name is /storage/kkm_last_timestamp [01:57:22]Write 4 bytes [01:57:22]NVStorageSaveData done [01:57:22]ExternCall_PrintAddStr [01:57:22]wPrintStart [01:57:22]Write to MH i2c: 01 00 00 22 18 3A [01:57:22]Write i2c OK [01:57:22]MH_I2C_Read... [01:57:22]Read from MH i2c: 01 [01:57:22]MH_I2C_Read... [01:57:22]Read from MH i2c: 01 07 00 [01:57:22]MH_I2C_Read... [01:57:22]Read from MH i2c: 01 07 00 22 18 00 00 00 00 00 FF 0F 4F [01:57:22]RasterBufferAndPrint [01:57:22]line Счет N : (3)344122 [01:57:22]line ИНН: 02508201610067 [01:57:22]line Контрольно-Кассовый Чек [01:57:22]line ПРОДАЖА [01:57:22]line Товар: 4700000310326 [01:57:22]line Вода Адыгене 1л б/г [01:57:22]line 1.000 * 35.00 [01:57:22]line = 35.00 [01:57:22]line НДС 12% НСП 1% [01:57:23]line > о реализуемом товаре [01:57:23]line Товар: 5449000054227 [01:57:23]line Напиток Кока-Кола 1л [01:57:23]line 1.000 * 105.00 [01:57:23]line = 105.00 [01:57:23]line НДС 12% НСП 1% [01:57:23]line > о реализуемом товаре [01:57:23]line ИТОГО: 140.00 [01:57:23]line НСП 1% : 1.24 [01:57:23]line НДС 12% : 14.87 [01:57:23]line Наличными: 140.00 [01:57:23]line Безнал.: 0.00 [01:57:23]line Место: АЗС № 90 "Партнер Нефть" [01:57:23]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [01:57:23]line СНО: Общий режим [01:57:23]line Чек 6 24.09.2024 01:57 [01:57:23]line Смена: 473 ФФД: 1.0 [01:57:23]line ЗНМ: 0300000120 [01:57:23]line РНМ: 0000000000091831 [01:57:23]line Версия ККМ: 001 [01:57:23]line ФМ: 0000000000871830 [01:57:23]line ФД: 115809 [01:57:23]line ФПД: 268318856258409 [01:57:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T015723&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115809&fm=268318856258409&tin=02508201610067®Number=0000000000091831&sum=14000 [01:57:23]line 0 [01:57:23]OFD Sender: Processing packet 115809 [packets to send 482, broken 481] [01:57:23]ProducePacketName [01:57:23]name=ofd_packets/00115809 [01:57:23]OFD Sender: To server: pG, [01:57:23]CommunicateWithHost lk.salyk.kg:30040 [01:57:23]ConnectInit lk.salyk.kg [01:57:23]written 0, free lines is 4095 [01:57:23]Connected sock=8 [01:57: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 38 33 30 93 01 00 00 5B B3 8B 01 1C FD 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 83 1C F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 61 C4 01 00 35 04 06 00 F4 08 DA 1D 23 69 D6 DF 06 52 78 E5 23 F4 [01:57:23]Write to MH i2c: 01 00 00 4F 18 67 [01:57:23]Write i2c OK [01:57:23]MH_I2C_Read... [01:57:23]Read from MH i2c: 01 [01:57:23]MH_I2C_Read... [01:57:23]Read from MH i2c: 01 07 00 [01:57:23]MH_I2C_Read... [01:57:23]Read from MH i2c: 01 07 00 4F 18 00 00 00 00 00 0E 0C 88 [01:57:23]RasterBufferAndPrint [01:57:23]line [01:57:23]line [01:57:23]line [01:57:23]line [01:57:23]line [01:57:23]written 0, free lines is 3089 [01:57:23]MH_Cut [01:57:23]Write to MH i2c: D1 01 00 56 18 01 40 [01:57:23]Write i2c OK [01:57:23]MH_I2C_Read... [01:57:23]Read from MH i2c: D1 [01:57:23]MH_I2C_Read... [01:57:23]Read from MH i2c: D1 01 00 [01:57:23]MH_I2C_Read... [01:57:23]Read from MH i2c: D1 01 00 56 18 00 3F [01:57:23]Write to MH i2c: 01 00 00 57 18 6F [01:57:23]Write i2c OK [01:57:23]MH_I2C_Read... [01:57:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 30 AF 47 00 24 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 61 C4 01 00 F4 03 04 00 C5 C1 F1 66 B6 04 01 00 00 A4 B1 4B E3 9E 6C 1E F9 [01:57:23]CommunicateWithHost err = 0 [01:57:23]CheckOFDResponse [01:57:23]1017 (14) - 77093643461234 [01:57:23]1041 (16) - 0000000000871830 [01:57:23]1040 (4) - 115809 [01:57:23]1012 (4) - 23.09.2024 19:30 [01:57:23]1206 (1) - 0 [01:57:23]OFD Sender: Remove packet 115809 [01:57:23]ProducePacketName [01:57:23]name=ofd_packets/00115809 [01:57:23]NVStorageDeleteData [01:57:24]OFD Sender: No OFD packet to send [01:57:25]*** Cut start [01:57:25]*** Partial cut [01:57:25]*** CUTSNS_PIN = 1 [01:57:25]*** CUTSNS_PIN = 0 [01:57:25]*** Brake cut motor [01:57:25]Read from MH i2c: 01 [01:57:25]MH_I2C_Read... [01:57:25]*** Stop cut motor [01:57:25]*** Cut end [01:57:25]Read from MH i2c: 01 07 00 [01:57:25]MH_I2C_Read... [01:57:25]Read from MH i2c: 01 07 00 57 18 00 00 00 00 00 FF 0F 84 [01:57:25]process_action close_receipt done [01:57:25]requested_data is exist [01:57:25]produce_requested_data [01:57:25]requested_item fm.sn is exist - process it [01:57:25]wFMCommunicate request_size=4 [01:57:25]MH_SAM_APDU [01:57:25]CAPDU: 80 11 00 00 [01:57:25]Write to MH i2c: E2 08 00 58 18 80 11 00 00 00 00 00 00 EA [01:57:25]Write i2c OK [01:57:25]MH_I2C_Read... [01:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:57:25]Read from MH i2c: E2 [01:57:25]MH_I2C_Read... [01:57:25]Read from MH i2c: E2 17 00 [01:57:25]MH_I2C_Read... [01:57:25]Read from MH i2c: E2 17 00 58 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 38 [01:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [01:57:25]wFMCommunicate OK [01:57:25]requested_item fd.num is exist - process it [01:57:25]SAM_PROTO_GetFieldsCounters [01:57:25]wFMCommunicate request_size=4 [01:57:25]MH_SAM_APDU [01:57:25]CAPDU: 80 13 00 00 [01:57:25]Write to MH i2c: E2 08 00 59 18 80 13 00 00 00 00 00 00 ED [01:57:25]Write i2c OK [01:57:25]MH_I2C_Read... [01:57:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:57:26]Read from MH i2c: E2 [01:57:26]MH_I2C_Read... [01:57:26]Read from MH i2c: E2 62 00 [01:57:26]MH_I2C_Read... [01:57:26]Read from MH i2c: E2 62 00 59 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 61 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [01:57: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 61 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:57:26]wFMCommunicate OK [01:57:26]SAM_PROTO_GetFieldsCounters done [01:57:26]requested_item shift.num is exist - process it [01:57:26]requested_item shift.opened is exist - process it [01:57:26]req_shift_opened [01:57:26]FM_GetShiftState [01:57:26]SAM_PROTO_GetShiftState [01:57:26]wFMCommunicate request_size=4 [01:57:26]MH_SAM_APDU [01:57:26]CAPDU: 80 13 01 00 [01:57:26]Write to MH i2c: E2 08 00 5A 18 80 13 01 00 00 00 00 00 EF [01:57:26]Write i2c OK [01:57:26]MH_I2C_Read... [01:57:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:57:26]Read from MH i2c: E2 [01:57:26]MH_I2C_Read... [01:57:26]Read from MH i2c: E2 0E 00 [01:57:26]MH_I2C_Read... [01:57:26]Read from MH i2c: E2 0E 00 5A 18 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 27 [01:57:26]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [01:57:26]wFMCommunicate OK [01:57:26]SAM_PROTO_GetShiftState done [01:57:26]FM_GetShiftState done [01:57:26]req_shift_opened done [01:57:26]requested_item shift.open_date is exist - process it [01:57:26]req_shift_open_date [01:57:26]req_shift_open_date done [01:57:26]produce_requested_data done [01:57:26]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115809,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506} [01:57:26]process_action_free close_receipt [01:57:26]json_value_free [01:57:26]json_value_free done [01:57:26]process_json_proto returns [01:57:26]Send response to host [01:57:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115809,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506}}} [01:57:26]free response buf [01:57:26]execute_script done [01:57:26]execute_script returns [01:57:26]free content buf [01:57:26]Sock 9.Close socket [01:57:26]Sock 9.Thread stoped [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15: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:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:15]accept exits with 10 [02:18:15]New connection [02:18:15]New thread 3067010404 created [02:18:15]Thread 3066867044 joined [02:18:15]Waiting for new connection... [02:18:15] Sock 10.Parse request [02:18:15]Sock 10.Check first char [02:18:15]Sock 10.First char is OK [02:18:15]request: POST /json_proto HTTP/1.0 [02:18:15]Method: POST [02:18:15]URL: /json_proto [02:18:15]Method is POST - this is cgi request [02:18:15]url: /json_proto [02:18:15]query_string will be loaded in cgi processing [02:18:15]execute_cgi json_proto POST (null) [02:18:15]execute_cgi path=json_proto method=POST [02:18:15]POST find Content-Length [02:18:15]Host: 172.17.41.136:8080 [02:18:15]Content-Length: 1185 [02:18:15]Content-Type: application/json [02:18:15] [02:18:15]POST finish read [02:18:15]Found Content-Length = 1185 [02:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344123", "tax_sys" : 0, "items" : [ { "code": "4870145001790", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0433\u0443\u0441\u044C 0,5\u043B \u0441\u0442", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:18:15]execute_script... [02:18:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344123", "tax_sys" : 0, "items" : [ { "code": "4870145001790", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0433\u0443\u0441\u044C 0,5\u043B \u0441\u0442", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:18:15]POST & json_proto [02:18:15]process_json_proto [02:18:15]json parsed OK: [02:18:15]protocol is kg_v1.0 [02:18:15]action value=close_receipt [02:18:15]process_action close_receipt [02:18:15]cmd_close_receipt [02:18:15]MH_GetDate [02:18:15]Write to MH i2c: F0 00 00 5B 18 62 [02:18:15]Write i2c OK [02:18:15]MH_I2C_Read... [02:18:15]Read from MH i2c: F0 [02:18:15]MH_I2C_Read... [02:18:15]Read from MH i2c: F0 09 00 [02:18:15]MH_I2C_Read... [02:18:15]Read from MH i2c: F0 09 00 5B 18 00 6A 21 F2 66 1B D0 5A 64 F7 [02:18:15]GetLastDocTimeStamp 1727143043 [02:18:15]current date 1727144298 [02:18:15]FM_GetShiftState [02:18:15]SAM_PROTO_GetShiftState [02:18:15]wFMCommunicate request_size=4 [02:18:15]MH_SAM_APDU [02:18:15]CAPDU: 80 13 01 00 [02:18:15]Write to MH i2c: E2 08 00 5C 18 80 13 01 00 00 00 00 00 F1 [02:18:15]Write i2c OK [02:18:15]MH_I2C_Read... [02:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:18:15]Read from MH i2c: E2 [02:18:15]MH_I2C_Read... [02:18:15]Read from MH i2c: E2 0E 00 [02:18:15]MH_I2C_Read... [02:18:15]Read from MH i2c: E2 0E 00 5C 18 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 29 [02:18:15]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [02:18:15]wFMCommunicate OK [02:18:15]SAM_PROTO_GetShiftState done [02:18:15]FM_GetShiftState done [02:18:15]opened in 1727138506 [02:18:15]opened+sec_in_day 1727224906 [02:18:15]quantity*price = 22000 [02:18:15]sum+1 = 22001 [02:18:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 0.00 Безнал.: 280.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 7 24.09.2024 02:18 Смена: 473 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115810 ФПД: 45486305801423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T021818&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115810&fm=45486305801423&tin=02508201610067®Number=0000000000091831&sum=28000 0 [02:18:17]StoreToDocumentArchive [02:18:17]shift 473 fd 115810 [02:18:17]save to /storage/0473/doc_00115810 [02:18:17]save last doc name /storage/0473/doc_00115810 to /storage/kkm_last_doc_name [02:18:17]save OK [02:18:17]Clear old archive folders... [02:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=420 [02:18:17]tlvbuf is B6EB6620 [02:18:17]SAM_PROTO_ClearQueue [02:18:17]wFMCommunicate request_size=4 [02:18:17]MH_SAM_APDU [02:18:17]CAPDU: 80 09 00 00 [02:18:17]Write to MH i2c: E2 08 00 69 18 80 09 00 00 00 00 00 00 F3 [02:18:17]Write i2c OK [02:18:17]MH_I2C_Read... [02:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:18:17]Read from MH i2c: E2 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 03 00 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 03 00 69 18 00 90 00 F5 [02:18:17]RAPDU: 90 00 [02:18:17]wFMCommunicate OK [02:18:17]SAM_PROTO_ClearQueue done [02:18:17]KKMCreateOFDPacket [02:18:17]OFDProtocolAddRootSTLVToBuf [02:18:17]FM_MakeSignedData [02:18:17]FM_MakeSignedData [02:18:17]SAM_PROTO_SignData [02:18:17]wFMCommunicate request_size=4 [02:18:17]MH_SAM_APDU [02:18:17]CAPDU: 80 0D 01 02 [02:18:17]Write to MH i2c: E2 08 00 6A 18 80 0D 01 02 00 00 00 00 FB [02:18:17]Write i2c OK [02:18:17]MH_I2C_Read... [02:18:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:18:17]Read from MH i2c: E2 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 03 00 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 03 00 6A 18 00 90 00 F6 [02:18:17]RAPDU: 90 00 [02:18:17]wFMCommunicate OK [02:18:17]wFMCommunicate request_size=255 [02:18:17]MH_SAM_APDU [02:18:17]CAPDU: 80 0D 02 02 FA 03 00 A4 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 [02:18:17]Write to MH i2c: E2 02 01 6B 18 80 0D 02 02 FA 00 03 00 A4 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 00 00 31 [02:18:17]Write i2c OK [02:18:17]MH_I2C_Read... [02:18:17]OFD Sender: No OFD packet to send [02:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:18:17]Read from MH i2c: E2 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 03 00 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 03 00 6B 18 00 90 00 F7 [02:18:17]RAPDU: 90 00 [02:18:17]wFMCommunicate OK [02:18:17]wFMCommunicate request_size=179 [02:18:17]MH_SAM_APDU [02:18:17]CAPDU: 80 0D 02 02 AE 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6A 21 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 62 C4 01 00 35 04 06 00 29 5E 9B 19 74 CF [02:18:17]Write to MH i2c: E2 B6 00 6C 18 80 0D 02 02 AE 00 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6A 21 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 62 C4 01 00 35 04 06 00 29 5E 9B 19 74 CF 00 00 FE [02:18:17]Write i2c OK [02:18:17]MH_I2C_Read... [02:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:18:17]Read from MH i2c: E2 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 03 00 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 03 00 6C 18 00 90 00 F8 [02:18:17]RAPDU: 90 00 [02:18:17]wFMCommunicate OK [02:18:17]wFMCommunicate request_size=4 [02:18:17]MH_SAM_APDU [02:18:17]CAPDU: 80 0D 03 02 [02:18:17]Write to MH i2c: E2 08 00 6D 18 80 0D 03 02 00 00 00 00 00 [02:18:17]Write i2c OK [02:18:17]MH_I2C_Read... [02:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:18:17]Read from MH i2c: E2 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 0B 00 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 0B 00 6D 18 00 CC 82 60 FD 96 DD 7A BC 90 00 55 [02:18:17]RAPDU: CC 82 60 FD 96 DD 7A BC 90 00 [02:18:17]wFMCommunicate OK [02:18:17]SAM_PROTO_SignData done [02:18:17]FM_MakeSignedData done [02:18:17]CreateOFDProtocolMessage [02:18:17]wFMCommunicate request_size=4 [02:18:17]MH_SAM_APDU [02:18:17]CAPDU: 80 11 00 00 [02:18:17]Write to MH i2c: E2 08 00 6E 18 80 11 00 00 00 00 00 00 00 [02:18:17]Write i2c OK [02:18:17]MH_I2C_Read... [02:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:18:17]Read from MH i2c: E2 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 17 00 [02:18:17]MH_I2C_Read... [02:18:17]Read from MH i2c: E2 17 00 6E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 4E [02:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:18:17]wFMCommunicate OK [02:18:17]CreateOFDProtocolMessage done [02:18:17]OFDSenderStorePacket 115810 [02:18:17]StoreOFDPacket docnum=115810 [02:18:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B8 01 00 00 52 61 B0 01 61 64 5A 03 01 00 03 00 A4 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6A 21 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 62 C4 01 00 35 04 06 00 29 5E 9B 19 74 CF CC 82 60 FD 96 DD 7A BC [02:18:17]CheckFolder [02:18:17]dirname=/storage/ofd_packets [02:18:17]CheckFolder done [02:18:17]ProducePacketName [02:18:17]name=ofd_packets/00115810 [02:18:17]NVStorageSaveData ofd_packets/00115810 [02:18:17]File name is /storage/ofd_packets/00115810 [02:18:17]Write 470 bytes [02:18:17]NVStorageSaveData done [02:18:17]OFDSenderStorePacket done [02:18:18]KKMCreateOFDPacket done [02:18:18]NVStorageSaveData kkm_last_timestamp [02:18:18]File name is /storage/kkm_last_timestamp [02:18:18]Write 4 bytes [02:18:18]NVStorageSaveData done [02:18:18]OFD Sender: Processing packet 115810 [packets to send 482, broken 481] [02:18:18]ProducePacketName [02:18:18]name=ofd_packets/00115810 [02:18:18]OFD Sender: To server: pG, [02:18:18]CommunicateWithHost lk.salyk.kg:30040 [02:18:18]ConnectInit lk.salyk.kg [02:18:18]ExternCall_PrintAddStr [02:18:18]wPrintStart [02:18:18]Write to MH i2c: 01 00 00 6F 18 87 [02:18:18]Write i2c OK [02:18:18]MH_I2C_Read... [02:18:18]Read from MH i2c: 01 [02:18:18]MH_I2C_Read... [02:18:18]Read from MH i2c: 01 07 00 [02:18:18]MH_I2C_Read... [02:18:18]Read from MH i2c: 01 07 00 6F 18 00 00 00 00 00 FF 0F 9C [02:18:18]RasterBufferAndPrint [02:18:18]line Счет N : (3)344123 [02:18:18]line ИНН: 02508201610067 [02:18:18]line Контрольно-Кассовый Чек [02:18:18]line ПРОДАЖА [02:18:18]line Товар: 4870145001790 [02:18:18]line Пиво Жатецкий гусь 0,5л ст [02:18:18]line 2.000 * 110.00 [02:18:18]line = 220.00 [02:18:18]line НДС 12% НСП 1% [02:18:18]line > о реализуемом товаре [02:18:18]line Товар: 4700000160792 [02:18:18]line Снек Курут классический (круглый) [02:18:18]line 1.000 * 60.00 [02:18:18]line = 60.00 [02:18:18]line НДС 12% НСП 1% [02:18:18]line > о реализуемом товаре [02:18:18]line ИТОГО: 280.00 [02:18:18]line НСП 1% : 2.48 [02:18:18]line НДС 12% : 29.73 [02:18:18]line Наличными: 0.00 [02:18:18]line Безнал.: 280.00 [02:18:18]line Место: АЗС № 90 "Партнер Нефть" [02:18:18]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [02:18:18]line СНО: Общий режим [02:18:18]line Чек 7 24.09.2024 02:18 [02:18:18]line Смена: 473 ФФД: 1.0 [02:18:18]line ЗНМ: 0300000120 [02:18:18]line РНМ: 0000000000091831 [02:18:18]line Версия ККМ: 001 [02:18:18]line Платежная система: O! деньги [02:18:18]line ФМ: 0000000000871830 [02:18:18]line ФД: 115810 [02:18:18]line ФПД: 45486305801423 [02:18:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T021818&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115810&fm=45486305801423&tin=02508201610067®Number=0000000000091831&sum=28000 [02:18:18]line 0 [02:18:18]written 0, free lines is 4095 [02:18:18]Connected sock=11 [02: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 38 33 30 B8 01 00 00 52 61 B0 01 61 64 5A 03 01 00 03 00 A4 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6A 21 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 62 C4 01 00 35 04 06 00 29 5E 9B 19 74 CF CC 82 60 FD 96 DD 7A BC [02:18:18]Write to MH i2c: 01 00 00 9F 18 B7 [02:18:18]Write i2c OK [02:18:18]MH_I2C_Read... [02:18:18]Read from MH i2c: 01 [02:18:18]MH_I2C_Read... [02:18:18]Read from MH i2c: 01 07 00 [02:18:18]MH_I2C_Read... [02:18:18]Read from MH i2c: 01 07 00 9F 18 00 00 00 00 00 BD 0B 86 [02:18:18]RasterBufferAndPrint [02:18:18]line [02:18:18]line [02:18:18]line [02:18:18]line [02:18:18]line [02:18:18]written 0, free lines is 3007 [02:18:18]MH_Cut [02:18:18]Write to MH i2c: D1 01 00 A6 18 01 90 [02:18:18]Write i2c OK [02:18:18]MH_I2C_Read... [02:18:18]Read from MH i2c: D1 [02:18:18]MH_I2C_Read... [02:18:18]Read from MH i2c: D1 01 00 [02:18:18]MH_I2C_Read... [02:18:18]Read from MH i2c: D1 01 00 A6 18 00 8F [02:18:18]Write to MH i2c: 01 00 00 A7 18 BF [02:18:18]Write i2c OK [02:18:18]MH_I2C_Read... [02: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 38 33 30 4F 00 00 00 32 86 47 00 C9 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 38 33 30 10 04 04 00 62 C4 01 00 F4 03 04 00 AB C6 F1 66 B6 04 01 00 00 83 18 20 D2 45 DD 8E C0 [02:18:18]CommunicateWithHost err = 0 [02:18:18]CheckOFDResponse [02:18:18]1017 (14) - 77093643461234 [02:18:18]1041 (16) - 0000000000871830 [02:18:18]1040 (4) - 115810 [02:18:18]1012 (4) - 23.09.2024 19:51 [02:18:18]1206 (1) - 0 [02:18:18]OFD Sender: Remove packet 115810 [02:18:18]ProducePacketName [02:18:18]name=ofd_packets/00115810 [02:18:18]NVStorageDeleteData [02:18:19]OFD Sender: No OFD packet to send [02:18:20]*** Cut start [02:18:20]*** Partial cut [02:18:20]*** CUTSNS_PIN = 1 [02:18:20]*** CUTSNS_PIN = 0 [02:18:20]*** Brake cut motor [02:18:20]Read from MH i2c: 01 [02:18:20]MH_I2C_Read... [02:18:20]*** Stop cut motor [02:18:20]*** Cut end [02:18:20]Read from MH i2c: 01 07 00 [02:18:20]MH_I2C_Read... [02:18:20]Read from MH i2c: 01 07 00 A7 18 00 00 00 00 00 FF 0F D4 [02:18:20]process_action close_receipt done [02:18:20]requested_data is exist [02:18:20]produce_requested_data [02:18:20]requested_item fm.sn is exist - process it [02:18:20]wFMCommunicate request_size=4 [02:18:20]MH_SAM_APDU [02:18:20]CAPDU: 80 11 00 00 [02:18:20]Write to MH i2c: E2 08 00 A8 18 80 11 00 00 00 00 00 00 3A [02:18:20]Write i2c OK [02:18:20]MH_I2C_Read... [02:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:18:20]Read from MH i2c: E2 [02:18:20]MH_I2C_Read... [02:18:20]Read from MH i2c: E2 17 00 [02:18:20]MH_I2C_Read... [02:18:20]Read from MH i2c: E2 17 00 A8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 88 [02:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:18:20]wFMCommunicate OK [02:18:20]requested_item fd.num is exist - process it [02:18:20]SAM_PROTO_GetFieldsCounters [02:18:20]wFMCommunicate request_size=4 [02:18:20]MH_SAM_APDU [02:18:20]CAPDU: 80 13 00 00 [02:18:20]Write to MH i2c: E2 08 00 A9 18 80 13 00 00 00 00 00 00 3D [02:18:20]Write i2c OK [02:18:20]MH_I2C_Read... [02:18:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:18:21]Read from MH i2c: E2 [02:18:21]MH_I2C_Read... [02:18:21]Read from MH i2c: E2 62 00 [02:18:21]MH_I2C_Read... [02:18:21]Read from MH i2c: E2 62 00 A9 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 62 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [02:18: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 62 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:18:21]wFMCommunicate OK [02:18:21]SAM_PROTO_GetFieldsCounters done [02:18:21]requested_item shift.num is exist - process it [02:18:21]requested_item shift.opened is exist - process it [02:18:21]req_shift_opened [02:18:21]FM_GetShiftState [02:18:21]SAM_PROTO_GetShiftState [02:18:21]wFMCommunicate request_size=4 [02:18:21]MH_SAM_APDU [02:18:21]CAPDU: 80 13 01 00 [02:18:21]Write to MH i2c: E2 08 00 AA 18 80 13 01 00 00 00 00 00 3F [02:18:21]Write i2c OK [02:18:21]MH_I2C_Read... [02:18:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:18:21]Read from MH i2c: E2 [02:18:21]MH_I2C_Read... [02:18:21]Read from MH i2c: E2 0E 00 [02:18:21]MH_I2C_Read... [02:18:21]Read from MH i2c: E2 0E 00 AA 18 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 77 [02:18:21]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [02:18:21]wFMCommunicate OK [02:18:21]SAM_PROTO_GetShiftState done [02:18:21]FM_GetShiftState done [02:18:21]req_shift_opened done [02:18:21]requested_item shift.open_date is exist - process it [02:18:21]req_shift_open_date [02:18:21]req_shift_open_date done [02:18:21]produce_requested_data done [02:18:21]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115810,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506} [02:18:21]process_action_free close_receipt [02:18:21]json_value_free [02:18:21]json_value_free done [02:18:21]process_json_proto returns [02:18:21]Send response to host [02:18:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115810,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506}}} [02:18:21]free response buf [02:18:21]execute_script done [02:18:21]execute_script returns [02:18:21]free content buf [02:18:21]Sock 10.Close socket [02:18:21]Sock 10.Thread stoped [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:23]accept exits with 8 [02:19:23]New connection [02:19:23]New thread 3066867044 created [02:19:23]Thread 3067010404 joined [02:19:23]Waiting for new connection... [02:19:23] Sock 8.Parse request [02:19:23]Sock 8.Check first char [02:19:23]Sock 8.First char is OK [02:19:23]request: POST /json_proto HTTP/1.0 [02:19:23]Method: POST [02:19:23]URL: /json_proto [02:19:23]Method is POST - this is cgi request [02:19:23]url: /json_proto [02:19:23]query_string will be loaded in cgi processing [02:19:23]execute_cgi json_proto POST (null) [02:19:23]execute_cgi path=json_proto method=POST [02:19:23]POST find Content-Length [02:19:23]Host: 172.17.41.136:8080 [02:19:23]Content-Length: 718 [02:19:23]Content-Type: application/json [02:19:23] [02:19:23]POST finish read [02:19:23]Found Content-Length = 718 [02:19:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344125", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:19:23]execute_script... [02:19:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344125", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:19:23]POST & json_proto [02:19:23]process_json_proto [02:19:23]json parsed OK: [02:19:23]protocol is kg_v1.0 [02:19:23]action value=close_receipt [02:19:23]process_action close_receipt [02:19:23]cmd_close_receipt [02:19:23]MH_GetDate [02:19:23]Write to MH i2c: F0 00 00 AB 18 B2 [02:19:23]Write i2c OK [02:19:23]MH_I2C_Read... [02:19:23]Read from MH i2c: F0 [02:19:23]MH_I2C_Read... [02:19:23]Read from MH i2c: F0 09 00 [02:19:23]MH_I2C_Read... [02:19:23]Read from MH i2c: F0 09 00 AB 18 00 AE 21 F2 66 1B D0 5A 64 8B [02:19:23]GetLastDocTimeStamp 1727144298 [02:19:23]current date 1727144366 [02:19:23]FM_GetShiftState [02:19:23]SAM_PROTO_GetShiftState [02:19:23]wFMCommunicate request_size=4 [02:19:23]MH_SAM_APDU [02:19:23]CAPDU: 80 13 01 00 [02:19:23]Write to MH i2c: E2 08 00 AC 18 80 13 01 00 00 00 00 00 41 [02:19:23]Write i2c OK [02:19:23]MH_I2C_Read... [02:19:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:23]Read from MH i2c: E2 [02:19:23]MH_I2C_Read... [02:19:23]Read from MH i2c: E2 0E 00 [02:19:23]MH_I2C_Read... [02:19:23]Read from MH i2c: E2 0E 00 AC 18 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 79 [02:19:23]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [02:19:23]wFMCommunicate OK [02:19:23]SAM_PROTO_GetShiftState done [02:19:23]FM_GetShiftState done [02:19:23]opened in 1727138506 [02:19:23]opened+sec_in_day 1727224906 [02:19:23]quantity*price = 25000 [02:19:23]sum+1 = 25001 [02:19:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 8 24.09.2024 02:19 Смена: 473 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115811 ФПД: 16879983154172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T021926&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115811&fm=16879983154172&tin=02508201610067®Number=0000000000091831&sum=25000 0 [02:19:24]StoreToDocumentArchive [02:19:24]shift 473 fd 115811 [02:19:24]save to /storage/0473/doc_00115811 [02:19:24]save last doc name /storage/0473/doc_00115811 to /storage/kkm_last_doc_name [02:19:24]save OK [02:19:24]Clear old archive folders... [02:19:24]ProcessDocumentItem done err = 0, tmpTLVsize=302 [02:19:24]tlvbuf is B6F639F0 [02:19:24]SAM_PROTO_ClearQueue [02:19:24]wFMCommunicate request_size=4 [02:19:24]MH_SAM_APDU [02:19:24]CAPDU: 80 09 00 00 [02:19:24]Write to MH i2c: E2 08 00 B9 18 80 09 00 00 00 00 00 00 43 [02:19:24]Write i2c OK [02:19:24]MH_I2C_Read... [02:19:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:19:24]Read from MH i2c: E2 [02:19:24]MH_I2C_Read... [02:19:24]Read from MH i2c: E2 03 00 [02:19:24]MH_I2C_Read... [02:19:24]Read from MH i2c: E2 03 00 B9 18 00 90 00 45 [02:19:24]RAPDU: 90 00 [02:19:24]wFMCommunicate OK [02:19:24]SAM_PROTO_ClearQueue done [02:19:24]KKMCreateOFDPacket [02:19:24]OFDProtocolAddRootSTLVToBuf [02:19:24]FM_MakeSignedData [02:19:24]FM_MakeSignedData [02:19:24]SAM_PROTO_SignData [02:19:24]wFMCommunicate request_size=4 [02:19:24]MH_SAM_APDU [02:19:24]CAPDU: 80 0D 01 02 [02:19:24]Write to MH i2c: E2 08 00 BA 18 80 0D 01 02 00 00 00 00 4B [02:19:24]Write i2c OK [02:19:24]MH_I2C_Read... [02:19:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:19:25]Read from MH i2c: E2 [02:19:25]MH_I2C_Read... [02:19:25]Read from MH i2c: E2 03 00 [02:19:25]MH_I2C_Read... [02:19:25]Read from MH i2c: E2 03 00 BA 18 00 90 00 46 [02:19:25]RAPDU: 90 00 [02:19:25]wFMCommunicate OK [02:19:25]wFMCommunicate request_size=255 [02:19:25]MH_SAM_APDU [02:19:25]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 AE 21 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 [02:19:25]Write to MH i2c: E2 02 01 BB 18 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 AE 21 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 00 00 1E [02:19:25]Write i2c OK [02:19:25]MH_I2C_Read... [02:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:25]Read from MH i2c: E2 [02:19:25]MH_I2C_Read... [02:19:25]Read from MH i2c: E2 03 00 [02:19:25]MH_I2C_Read... [02:19:25]Read from MH i2c: E2 03 00 BB 18 00 90 00 47 [02:19:25]RAPDU: 90 00 [02:19:25]wFMCommunicate OK [02:19:25]wFMCommunicate request_size=61 [02:19:25]MH_SAM_APDU [02:19:25]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 63 C4 01 00 35 04 06 00 0F 5A 2D 66 53 FC [02:19:25]Write to MH i2c: E2 40 00 BC 18 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 63 C4 01 00 35 04 06 00 0F 5A 2D 66 53 FC 00 00 EE [02:19:25]Write i2c OK [02:19:25]MH_I2C_Read... [02:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:25]Read from MH i2c: E2 [02:19:25]MH_I2C_Read... [02:19:25]Read from MH i2c: E2 03 00 [02:19:25]MH_I2C_Read... [02:19:25]Read from MH i2c: E2 03 00 BC 18 00 90 00 48 [02:19:25]RAPDU: 90 00 [02:19:25]wFMCommunicate OK [02:19:25]wFMCommunicate request_size=4 [02:19:25]MH_SAM_APDU [02:19:25]CAPDU: 80 0D 03 02 [02:19:25]Write to MH i2c: E2 08 00 BD 18 80 0D 03 02 00 00 00 00 50 [02:19:25]Write i2c OK [02:19:25]MH_I2C_Read... [02:19:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:19:25]Read from MH i2c: E2 [02:19:25]MH_I2C_Read... [02:19:25]Read from MH i2c: E2 0B 00 [02:19:25]MH_I2C_Read... [02:19:25]Read from MH i2c: E2 0B 00 BD 18 00 8B E8 FB DB 08 3A 6A BC 90 00 02 [02:19:25]RAPDU: 8B E8 FB DB 08 3A 6A BC 90 00 [02:19:25]wFMCommunicate OK [02:19:25]SAM_PROTO_SignData done [02:19:25]FM_MakeSignedData done [02:19:25]CreateOFDProtocolMessage [02:19:25]wFMCommunicate request_size=4 [02:19:25]MH_SAM_APDU [02:19:25]CAPDU: 80 11 00 00 [02:19:25]Write to MH i2c: E2 08 00 BE 18 80 11 00 00 00 00 00 00 50 [02:19:25]Write i2c OK [02:19:25]MH_I2C_Read... [02:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:25]Read from MH i2c: E2 [02:19:25]MH_I2C_Read... [02:19:25]Read from MH i2c: E2 17 00 [02:19:25]MH_I2C_Read... [02:19:25]Read from MH i2c: E2 17 00 BE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9E [02:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:19:25]wFMCommunicate OK [02:19:25]CreateOFDProtocolMessage done [02:19:25]OFDSenderStorePacket 115811 [02:19:25]StoreOFDPacket docnum=115811 [02:19:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 42 01 00 00 67 DF 3A 01 17 55 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 AE 21 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 63 C4 01 00 35 04 06 00 0F 5A 2D 66 53 FC 8B E8 FB DB 08 3A 6A BC [02:19:25]CheckFolder [02:19:25]dirname=/storage/ofd_packets [02:19:25]CheckFolder done [02:19:25]ProducePacketName [02:19:25]name=ofd_packets/00115811 [02:19:25]NVStorageSaveData ofd_packets/00115811 [02:19:25]File name is /storage/ofd_packets/00115811 [02:19:25]Write 352 bytes [02:19:25]NVStorageSaveData done [02:19:25]OFDSenderStorePacket done [02:19:25]KKMCreateOFDPacket done [02:19:25]NVStorageSaveData kkm_last_timestamp [02:19:25]File name is /storage/kkm_last_timestamp [02:19:25]Write 4 bytes [02:19:25]NVStorageSaveData done [02:19:25]ExternCall_PrintAddStr [02:19:25]wPrintStart [02:19:25]Write to MH i2c: 01 00 00 BF 18 D7 [02:19:25]OFD Sender: Processing packet 115811 [packets to send 482, broken 481] [02:19:25]ProducePacketName [02:19:25]name=ofd_packets/00115811 [02:19:25]OFD Sender: To server: pG, [02:19:25]CommunicateWithHost lk.salyk.kg:30040 [02:19:25]ConnectInit lk.salyk.kg [02:19:25]Write i2c OK [02:19:25]MH_I2C_Read... [02:19:25]Read from MH i2c: 01 [02:19:25]MH_I2C_Read... [02:19:25]Read from MH i2c: 01 07 00 [02:19:25]MH_I2C_Read... [02:19:25]Read from MH i2c: 01 07 00 BF 18 00 00 00 00 00 FF 0F EC [02:19:25]RasterBufferAndPrint [02:19:25]line Счет N : (3)344125 [02:19:25]line ИНН: 02508201610067 [02:19:25]line Контрольно-Кассовый Чек [02:19:25]line ПРОДАЖА [02:19:25]line Товар: 4606532000189 [02:19:25]line Тормозная жидкость РосДот-4 0,455кг [02:19:25]line 1.000 * 250.00 [02:19:25]line = 250.00 [02:19:25]line НДС 12% НСП 1% [02:19:25]line > о реализуемом товаре [02:19:25]line ИТОГО: 250.00 [02:19:25]line НСП 1% : 2.21 [02:19:25]line НДС 12% : 26.55 [02:19:25]line Наличными: 250.00 [02:19:25]line Безнал.: 0.00 [02:19:25]line Место: АЗС № 90 "Партнер Нефть" [02:19:25]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [02:19:25]line СНО: Общий режим [02:19:25]line Чек 8 24.09.2024 02:19 [02:19:25]line Смена: 473 ФФД: 1.0 [02:19:25]line ЗНМ: 0300000120 [02:19:25]line РНМ: 0000000000091831 [02:19:25]line Версия ККМ: 001 [02:19:25]line ФМ: 0000000000871830 [02:19:25]line ФД: 115811 [02:19:25]line ФПД: 16879983154172 [02:19:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T021926&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115811&fm=16879983154172&tin=02508201610067®Number=0000000000091831&sum=25000 [02:19:25]line 0 [02:19:25]Connected sock=10 [02:19: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 38 33 30 42 01 00 00 67 DF 3A 01 17 55 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 AE 21 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 63 C4 01 00 35 04 06 00 0F 5A 2D 66 53 FC 8B E8 FB DB 08 3A 6A BC [02:19:25]written 0, free lines is 4095 [02:19:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6E A8 47 00 4F 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 63 C4 01 00 F4 03 04 00 EF C6 F1 66 B6 04 01 00 00 F5 9E 00 0E 01 C2 41 D0 [02:19:26]CommunicateWithHost err = 0 [02:19:26]CheckOFDResponse [02:19:26]1017 (14) - 77093643461234 [02:19:26]1041 (16) - 0000000000871830 [02:19:26]1040 (4) - 115811 [02:19:26]1012 (4) - 23.09.2024 19:52 [02:19:26]1206 (1) - 0 [02:19:26]OFD Sender: Remove packet 115811 [02:19:26]ProducePacketName [02:19:26]name=ofd_packets/00115811 [02:19:26]NVStorageDeleteData [02:19:26]Write to MH i2c: 01 00 00 E7 18 FF [02:19:26]Write i2c OK [02:19:26]MH_I2C_Read... [02:19:26]Read from MH i2c: 01 [02:19:26]MH_I2C_Read... [02:19:26]Read from MH i2c: 01 07 00 [02:19:26]MH_I2C_Read... [02:19:26]Read from MH i2c: 01 07 00 E7 18 00 00 00 00 00 5C 0C 6E [02:19:26]RasterBufferAndPrint [02:19:26]line [02:19:26]line [02:19:26]line [02:19:26]line [02:19:26]line [02:19:26]written 0, free lines is 3168 [02:19:26]MH_Cut [02:19:26]Write to MH i2c: D1 01 00 EE 18 01 D8 [02:19:26]Write i2c OK [02:19:26]MH_I2C_Read... [02:19:26]Read from MH i2c: D1 [02:19:26]MH_I2C_Read... [02:19:26]Read from MH i2c: D1 01 00 [02:19:26]MH_I2C_Read... [02:19:26]Read from MH i2c: D1 01 00 EE 18 00 D7 [02:19:26]Write to MH i2c: 01 00 00 EF 18 07 [02:19:26]Write i2c OK [02:19:26]MH_I2C_Read... [02:19:26]OFD Sender: No OFD packet to send [02:19:27]*** Cut start [02:19:27]*** Partial cut [02:19:27]*** CUTSNS_PIN = 1 [02:19:27]*** CUTSNS_PIN = 0 [02:19:27]*** Brake cut motor [02:19:28]Read from MH i2c: 01 [02:19:28]MH_I2C_Read... [02:19:28]*** Stop cut motor [02:19:28]*** Cut end [02:19:28]Read from MH i2c: 01 07 00 [02:19:28]MH_I2C_Read... [02:19:28]Read from MH i2c: 01 07 00 EF 18 00 00 00 00 00 FF 0F 1C [02:19:28]process_action close_receipt done [02:19:28]requested_data is exist [02:19:28]produce_requested_data [02:19:28]requested_item fm.sn is exist - process it [02:19:28]wFMCommunicate request_size=4 [02:19:28]MH_SAM_APDU [02:19:28]CAPDU: 80 11 00 00 [02:19:28]Write to MH i2c: E2 08 00 F0 18 80 11 00 00 00 00 00 00 82 [02:19:28]Write i2c OK [02:19:28]MH_I2C_Read... [02:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:28]Read from MH i2c: E2 [02:19:28]MH_I2C_Read... [02:19:28]Read from MH i2c: E2 17 00 [02:19:28]MH_I2C_Read... [02:19:28]Read from MH i2c: E2 17 00 F0 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D0 [02:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:19:28]wFMCommunicate OK [02:19:28]requested_item fd.num is exist - process it [02:19:28]SAM_PROTO_GetFieldsCounters [02:19:28]wFMCommunicate request_size=4 [02:19:28]MH_SAM_APDU [02:19:28]CAPDU: 80 13 00 00 [02:19:28]Write to MH i2c: E2 08 00 F1 18 80 13 00 00 00 00 00 00 85 [02:19:28]Write i2c OK [02:19:28]MH_I2C_Read... [02:19:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:19:28]Read from MH i2c: E2 [02:19:28]MH_I2C_Read... [02:19:28]Read from MH i2c: E2 62 00 [02:19:28]MH_I2C_Read... [02:19:28]Read from MH i2c: E2 62 00 F1 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 63 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [02:19: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 63 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:19:28]wFMCommunicate OK [02:19:28]SAM_PROTO_GetFieldsCounters done [02:19:28]requested_item shift.num is exist - process it [02:19:28]requested_item shift.opened is exist - process it [02:19:28]req_shift_opened [02:19:28]FM_GetShiftState [02:19:28]SAM_PROTO_GetShiftState [02:19:28]wFMCommunicate request_size=4 [02:19:28]MH_SAM_APDU [02:19:28]CAPDU: 80 13 01 00 [02:19:28]Write to MH i2c: E2 08 00 F2 18 80 13 01 00 00 00 00 00 87 [02:19:28]Write i2c OK [02:19:28]MH_I2C_Read... [02:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:28]Read from MH i2c: E2 [02:19:28]MH_I2C_Read... [02:19:28]Read from MH i2c: E2 0E 00 [02:19:28]MH_I2C_Read... [02:19:28]Read from MH i2c: E2 0E 00 F2 18 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 BF [02:19:28]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [02:19:28]wFMCommunicate OK [02:19:28]SAM_PROTO_GetShiftState done [02:19:28]FM_GetShiftState done [02:19:28]req_shift_opened done [02:19:28]requested_item shift.open_date is exist - process it [02:19:28]req_shift_open_date [02:19:28]req_shift_open_date done [02:19:28]produce_requested_data done [02:19:28]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115811,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506} [02:19:28]process_action_free close_receipt [02:19:28]json_value_free [02:19:28]json_value_free done [02:19:28]process_json_proto returns [02:19:28]Send response to host [02:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115811,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506}}} [02:19:28]free response buf [02:19:28]execute_script done [02:19:28]execute_script returns [02:19:28]free content buf [02:19:28]Sock 8.Close socket [02:19:28]Sock 8.Thread stoped [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:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]accept exits with 9 [02:23:17]New connection [02:23:17]New thread 3067010404 created [02:23:17]Thread 3066867044 joined [02:23:17]Waiting for new connection... [02:23:17] Sock 9.Parse request [02:23:17]Sock 9.Check first char [02:23:17]Sock 9.First char is OK [02:23:17]request: POST /json_proto HTTP/1.0 [02:23:17]Method: POST [02:23:17]URL: /json_proto [02:23:17]Method is POST - this is cgi request [02:23:17]url: /json_proto [02:23:17]query_string will be loaded in cgi processing [02:23:17]execute_cgi json_proto POST (null) [02:23:17]execute_cgi path=json_proto method=POST [02:23:17]POST find Content-Length [02:23:17]Host: 172.17.41.136:8080 [02:23:17]Content-Length: 1130 [02:23:17]Content-Type: application/json [02:23:17] [02:23:17]POST finish read [02:23:17]Found Content-Length = 1130 [02:23:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344126", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:23:17]execute_script... [02:23:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344126", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:23:17]POST & json_proto [02:23:17]process_json_proto [02:23:17]json parsed OK: [02:23:17]protocol is kg_v1.0 [02:23:17]action value=close_receipt [02:23:17]process_action close_receipt [02:23:17]cmd_close_receipt [02:23:17]MH_GetDate [02:23:17]Write to MH i2c: F0 00 00 F3 18 FA [02:23:17]Write i2c OK [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: F0 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: F0 09 00 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: F0 09 00 F3 18 00 97 22 F2 66 1B D0 5A 64 BD [02:23:17]GetLastDocTimeStamp 1727144366 [02:23:17]current date 1727144599 [02:23:17]FM_GetShiftState [02:23:17]SAM_PROTO_GetShiftState [02:23:17]wFMCommunicate request_size=4 [02:23:17]MH_SAM_APDU [02:23:17]CAPDU: 80 13 01 00 [02:23:17]Write to MH i2c: E2 08 00 F4 18 80 13 01 00 00 00 00 00 89 [02:23:17]Write i2c OK [02:23:17]MH_I2C_Read... [02:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:23:17]Read from MH i2c: E2 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: E2 0E 00 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: E2 0E 00 F4 18 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 C1 [02:23:17]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [02:23:17]wFMCommunicate OK [02:23:17]SAM_PROTO_GetShiftState done [02:23:17]FM_GetShiftState done [02:23:17]opened in 1727138506 [02:23:17]opened+sec_in_day 1727224906 [02:23:17]quantity*price = 10500 [02:23:17]sum+1 = 10501 [02:23:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 0.00 Безнал.: 155.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 9 24.09.2024 02:23 Смена: 473 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115812 ФПД: 224061938960765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T022319&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115812&fm=224061938960765&tin=02508201610067®Number=0000000000091831&sum=15500 0 [02:23:18]StoreToDocumentArchive [02:23:18]shift 473 fd 115812 [02:23:18]save to /storage/0473/doc_00115812 [02:23:18]save last doc name /storage/0473/doc_00115812 to /storage/kkm_last_doc_name [02:23:18]save OK [02:23:18]Clear old archive folders... [02:23:18]ProcessDocumentItem done err = 0, tmpTLVsize=397 [02:23:18]tlvbuf is 011B66C0 [02:23:18]SAM_PROTO_ClearQueue [02:23:18]wFMCommunicate request_size=4 [02:23:18]MH_SAM_APDU [02:23:18]CAPDU: 80 09 00 00 [02:23:18]Write to MH i2c: E2 08 00 01 19 80 09 00 00 00 00 00 00 8C [02:23:18]Write i2c OK [02:23:18]MH_I2C_Read... [02:23:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:23:18]Read from MH i2c: E2 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 03 00 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 03 00 01 19 00 90 00 8E [02:23:18]RAPDU: 90 00 [02:23:18]wFMCommunicate OK [02:23:18]SAM_PROTO_ClearQueue done [02:23:18]KKMCreateOFDPacket [02:23:18]OFDProtocolAddRootSTLVToBuf [02:23:18]FM_MakeSignedData [02:23:18]FM_MakeSignedData [02:23:18]SAM_PROTO_SignData [02:23:18]wFMCommunicate request_size=4 [02:23:18]MH_SAM_APDU [02:23:18]CAPDU: 80 0D 01 02 [02:23:18]Write to MH i2c: E2 08 00 02 19 80 0D 01 02 00 00 00 00 94 [02:23:18]Write i2c OK [02:23:18]MH_I2C_Read... [02:23:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:23:18]Read from MH i2c: E2 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 03 00 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 03 00 02 19 00 90 00 8F [02:23:18]RAPDU: 90 00 [02:23:18]wFMCommunicate OK [02:23:18]wFMCommunicate request_size=255 [02:23:18]MH_SAM_APDU [02:23:18]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 [02:23:18]Write to MH i2c: E2 02 01 03 19 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 00 00 34 [02:23:18]Write i2c OK [02:23:18]MH_I2C_Read... [02:23:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:23:18]Read from MH i2c: E2 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 03 00 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 03 00 03 19 00 90 00 90 [02:23:18]RAPDU: 90 00 [02:23:18]wFMCommunicate OK [02:23:18]wFMCommunicate request_size=156 [02:23:18]MH_SAM_APDU [02:23:18]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 97 22 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 64 C4 01 00 35 04 06 00 CB C8 7C 47 89 7D [02:23:18]Write to MH i2c: E2 9F 00 04 19 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 97 22 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 64 C4 01 00 35 04 06 00 CB C8 7C 47 89 7D 00 00 24 [02:23:18]Write i2c OK [02:23:18]MH_I2C_Read... [02:23:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:23:18]Read from MH i2c: E2 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 03 00 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 03 00 04 19 00 90 00 91 [02:23:18]RAPDU: 90 00 [02:23:18]wFMCommunicate OK [02:23:18]wFMCommunicate request_size=4 [02:23:18]MH_SAM_APDU [02:23:18]CAPDU: 80 0D 03 02 [02:23:18]Write to MH i2c: E2 08 00 05 19 80 0D 03 02 00 00 00 00 99 [02:23:18]Write i2c OK [02:23:18]MH_I2C_Read... [02:23:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:23:18]Read from MH i2c: E2 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 0B 00 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 0B 00 05 19 00 F2 D8 67 8B 91 09 33 1C 90 00 3F [02:23:18]RAPDU: F2 D8 67 8B 91 09 33 1C 90 00 [02:23:18]wFMCommunicate OK [02:23:18]SAM_PROTO_SignData done [02:23:18]FM_MakeSignedData done [02:23:18]CreateOFDProtocolMessage [02:23:18]wFMCommunicate request_size=4 [02:23:18]MH_SAM_APDU [02:23:18]CAPDU: 80 11 00 00 [02:23:18]Write to MH i2c: E2 08 00 06 19 80 11 00 00 00 00 00 00 99 [02:23:18]Write i2c OK [02:23:18]MH_I2C_Read... [02:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:23:18]Read from MH i2c: E2 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 17 00 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 17 00 06 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E7 [02:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:23:18]wFMCommunicate OK [02:23:18]CreateOFDProtocolMessage done [02:23:18]OFDSenderStorePacket 115812 [02:23:18]StoreOFDPacket docnum=115812 [02:23:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A1 01 00 00 26 BB 99 01 19 C6 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 97 22 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 64 C4 01 00 35 04 06 00 CB C8 7C 47 89 7D F2 D8 67 8B 91 09 33 1C [02:23:18]CheckFolder [02:23:18]dirname=/storage/ofd_packets [02:23:18]CheckFolder done [02:23:18]ProducePacketName [02:23:18]name=ofd_packets/00115812 [02:23:18]NVStorageSaveData ofd_packets/00115812 [02:23:18]File name is /storage/ofd_packets/00115812 [02:23:18]Write 447 bytes [02:23:19]NVStorageSaveData done [02:23:19]OFDSenderStorePacket done [02:23:19]KKMCreateOFDPacket done [02:23:19]NVStorageSaveData kkm_last_timestamp [02:23:19]File name is /storage/kkm_last_timestamp [02:23:19]Write 4 bytes [02:23:19]NVStorageSaveData done [02:23:19]ExternCall_PrintAddStr [02:23:19]wPrintStart [02:23:19]Write to MH i2c: 01 00 00 07 19 20 [02:23:19]Write i2c OK [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: 01 [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: 01 07 00 [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: 01 07 00 07 19 00 00 00 00 00 FF 0F 35 [02:23:19]RasterBufferAndPrint [02:23:19]line Счет N : (3)344126 [02:23:19]line ИНН: 02508201610067 [02:23:19]line Контрольно-Кассовый Чек [02:23:19]line ПРОДАЖА [02:23:19]line Товар: 5449000189356 [02:23:19]line Холодный чай Fuse манго ананас 1л [02:23:19]line 1.000 * 105.00 [02:23:19]line = 105.00 [02:23:19]line НДС 12% НСП 1% [02:23:19]line > о реализуемом товаре [02:23:19]line Товар: 4700000160358 [02:23:19]line Вода Легенда 1л [02:23:19]line 1.000 * 50.00 [02:23:19]line = 50.00 [02:23:19]line НДС 12% НСП 1% [02:23:19]line > о реализуемом товаре [02:23:19]line ИТОГО: 155.00 [02:23:19]line НСП 1% : 1.37 [02:23:19]line НДС 12% : 16.46 [02:23:19]line Наличными: 0.00 [02:23:19]line Безнал.: 155.00 [02:23:19]line Место: АЗС № 90 "Партнер Нефть" [02:23:19]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [02:23:19]line СНО: Общий режим [02:23:19]line Чек 9 24.09.2024 02:23 [02:23:19]line Смена: 473 ФФД: 1.0 [02:23:19]line ЗНМ: 0300000120 [02:23:19]line РНМ: 0000000000091831 [02:23:19]line Версия ККМ: 001 [02:23:19]line Платежная система: Бакай Банк [02:23:19]line ФМ: 0000000000871830 [02:23:19]line ФД: 115812 [02:23:19]line ФПД: 224061938960765 [02:23:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T022319&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115812&fm=224061938960765&tin=02508201610067®Number=0000000000091831&sum=15500 [02:23:19]line 0 [02:23:19]written 0, free lines is 4095 [02:23:19]OFD Sender: Processing packet 115812 [packets to send 482, broken 481] [02:23:19]ProducePacketName [02:23:19]name=ofd_packets/00115812 [02:23:19]OFD Sender: To server: pG, [02:23:19]CommunicateWithHost lk.salyk.kg:30040 [02:23:19]ConnectInit lk.salyk.kg [02:23:19]Connected sock=10 [02:23:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A1 01 00 00 26 BB 99 01 19 C6 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 97 22 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 64 C4 01 00 35 04 06 00 CB C8 7C 47 89 7D F2 D8 67 8B 91 09 33 1C [02:23:19]Write to MH i2c: 01 00 00 37 19 50 [02:23:19]Write i2c OK [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: 01 [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: 01 07 00 [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: 01 07 00 37 19 00 00 00 00 00 BA 0B 1C [02:23:19]RasterBufferAndPrint [02:23:19]line [02:23:19]line [02:23:19]line [02:23:19]line [02:23:19]line [02:23:19]written 0, free lines is 3007 [02:23:19]MH_Cut [02:23:19]Write to MH i2c: D1 01 00 3E 19 01 29 [02:23:19]Write i2c OK [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: D1 [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: D1 01 00 [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: D1 01 00 3E 19 00 28 [02:23:19]Write to MH i2c: 01 00 00 3F 19 58 [02:23:19]Write i2c OK [02:23:19]MH_I2C_Read... [02:23:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9F 2D 47 00 73 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 38 33 30 10 04 04 00 64 C4 01 00 F4 03 04 00 D9 C7 F1 66 B6 04 01 00 00 CB E1 1F DD 2F 65 3E C6 [02:23:19]CommunicateWithHost err = 0 [02:23:19]CheckOFDResponse [02:23:19]1017 (14) - 77093643461234 [02:23:19]1041 (16) - 0000000000871830 [02:23:19]1040 (4) - 115812 [02:23:19]1012 (4) - 23.09.2024 19:56 [02:23:19]1206 (1) - 0 [02:23:19]OFD Sender: Remove packet 115812 [02:23:19]ProducePacketName [02:23:19]name=ofd_packets/00115812 [02:23:19]NVStorageDeleteData [02:23:20]OFD Sender: No OFD packet to send [02:23:21]*** Cut start [02:23:21]*** Partial cut [02:23:21]*** CUTSNS_PIN = 1 [02:23:21]*** CUTSNS_PIN = 0 [02:23:21]*** Brake cut motor [02:23:21]Read from MH i2c: 01 [02:23:21]MH_I2C_Read... [02:23:21]*** Stop cut motor [02:23:21]*** Cut end [02:23:21]Read from MH i2c: 01 07 00 [02:23:21]MH_I2C_Read... [02:23:21]Read from MH i2c: 01 07 00 3F 19 00 00 00 00 00 FF 0F 6D [02:23:21]process_action close_receipt done [02:23:21]requested_data is exist [02:23:21]produce_requested_data [02:23:21]requested_item fm.sn is exist - process it [02:23:21]wFMCommunicate request_size=4 [02:23:21]MH_SAM_APDU [02:23:21]CAPDU: 80 11 00 00 [02:23:21]Write to MH i2c: E2 08 00 40 19 80 11 00 00 00 00 00 00 D3 [02:23:21]Write i2c OK [02:23:21]MH_I2C_Read... [02:23:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:23:21]Read from MH i2c: E2 [02:23:21]MH_I2C_Read... [02:23:21]Read from MH i2c: E2 17 00 [02:23:21]MH_I2C_Read... [02:23:21]Read from MH i2c: E2 17 00 40 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 21 [02:23:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:23:21]wFMCommunicate OK [02:23:21]requested_item fd.num is exist - process it [02:23:21]SAM_PROTO_GetFieldsCounters [02:23:21]wFMCommunicate request_size=4 [02:23:21]MH_SAM_APDU [02:23:21]CAPDU: 80 13 00 00 [02:23:21]Write to MH i2c: E2 08 00 41 19 80 13 00 00 00 00 00 00 D6 [02:23:21]Write i2c OK [02:23:21]MH_I2C_Read... [02:23:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:23:22]Read from MH i2c: E2 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 62 00 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 62 00 41 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 64 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [02:23: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 64 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:23:22]wFMCommunicate OK [02:23:22]SAM_PROTO_GetFieldsCounters done [02:23:22]requested_item shift.num is exist - process it [02:23:22]requested_item shift.opened is exist - process it [02:23:22]req_shift_opened [02:23:22]FM_GetShiftState [02:23:22]SAM_PROTO_GetShiftState [02:23:22]wFMCommunicate request_size=4 [02:23:22]MH_SAM_APDU [02:23:22]CAPDU: 80 13 01 00 [02:23:22]Write to MH i2c: E2 08 00 42 19 80 13 01 00 00 00 00 00 D8 [02:23:22]Write i2c OK [02:23:22]MH_I2C_Read... [02:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:23:22]Read from MH i2c: E2 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 0E 00 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 0E 00 42 19 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 10 [02:23:22]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [02:23:22]wFMCommunicate OK [02:23:22]SAM_PROTO_GetShiftState done [02:23:22]FM_GetShiftState done [02:23:22]req_shift_opened done [02:23:22]requested_item shift.open_date is exist - process it [02:23:22]req_shift_open_date [02:23:22]req_shift_open_date done [02:23:22]produce_requested_data done [02:23:22]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115812,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506} [02:23:22]process_action_free close_receipt [02:23:22]json_value_free [02:23:22]json_value_free done [02:23:22]process_json_proto returns [02:23:22]Send response to host [02:23:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115812,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506}}} [02:23:22]free response buf [02:23:22]execute_script done [02:23:22]execute_script returns [02:23:22]free content buf [02:23:22]Sock 9.Close socket [02:23:22]Sock 9.Thread stoped [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:50]accept exits with 8 [02:38:50]New connection [02:38:50]New thread 3066867044 created [02:38:50]Thread 3067010404 joined [02:38:50]Waiting for new connection... [02:38:50] Sock 8.Parse request [02:38:50]Sock 8.Check first char [02:38:50]Sock 8.First char is OK [02:38:50]request: POST /json_proto HTTP/1.0 [02:38:50]Method: POST [02:38:50]URL: /json_proto [02:38:50]Method is POST - this is cgi request [02:38:50]url: /json_proto [02:38:50]query_string will be loaded in cgi processing [02:38:50]execute_cgi json_proto POST (null) [02:38:50]execute_cgi path=json_proto method=POST [02:38:50]POST find Content-Length [02:38:50]Host: 172.17.41.136:8080 [02:38:50]Content-Length: 641 [02:38:50]Content-Type: application/json [02:38:50] [02:38:50]POST finish read [02:38:50]Found Content-Length = 641 [02:38:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344127", "tax_sys" : 0, "items" : [ { "code": "4700001060152", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,5\u043B", "price" : 660.00, "quantity" : 1.000, "sum" : 660.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 660.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:38:50]execute_script... [02: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 : (3)344127", "tax_sys" : 0, "items" : [ { "code": "4700001060152", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,5\u043B", "price" : 660.00, "quantity" : 1.000, "sum" : 660.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 660.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:38:50]POST & json_proto [02:38:50]process_json_proto [02:38:50]json parsed OK: [02:38:50]protocol is kg_v1.0 [02:38:50]action value=close_receipt [02:38:50]process_action close_receipt [02:38:50]cmd_close_receipt [02:38:50]MH_GetDate [02:38:50]Write to MH i2c: F0 00 00 43 19 4B [02:38:50]Write i2c OK [02:38:50]MH_I2C_Read... [02:38:50]Read from MH i2c: F0 [02:38:50]MH_I2C_Read... [02:38:50]Read from MH i2c: F0 09 00 [02:38:50]MH_I2C_Read... [02:38:50]Read from MH i2c: F0 09 00 43 19 00 3D 26 F2 66 1B D0 5A 64 B8 [02:38:50]GetLastDocTimeStamp 1727144599 [02:38:50]current date 1727145533 [02:38:50]FM_GetShiftState [02:38:50]SAM_PROTO_GetShiftState [02:38:50]wFMCommunicate request_size=4 [02:38:50]MH_SAM_APDU [02:38:50]CAPDU: 80 13 01 00 [02:38:50]Write to MH i2c: E2 08 00 44 19 80 13 01 00 00 00 00 00 DA [02:38:50]Write i2c OK [02:38:50]MH_I2C_Read... [02:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:50]Read from MH i2c: E2 [02:38:50]MH_I2C_Read... [02:38:50]Read from MH i2c: E2 0E 00 [02:38:50]MH_I2C_Read... [02:38:50]Read from MH i2c: E2 0E 00 44 19 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 12 [02:38:50]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [02:38:50]wFMCommunicate OK [02:38:50]SAM_PROTO_GetShiftState done [02:38:50]FM_GetShiftState done [02:38:50]opened in 1727138506 [02:38:50]opened+sec_in_day 1727224906 [02:38:50]quantity*price = 66000 [02:38:50]sum+1 = 66001 [02:38:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 660.00 НСП 1% : 5.84 НДС 12% : 70.09 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 10 24.09.2024 02:38 Смена: 473 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115813 ФПД: 113904114191095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T023853&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115813&fm=113904114191095&tin=02508201610067®Number=0000000000091831&sum=66000 0 [02:38:51]StoreToDocumentArchive [02:38:51]shift 473 fd 115813 [02:38:51]save to /storage/0473/doc_00115813 [02:38:51]save last doc name /storage/0473/doc_00115813 to /storage/kkm_last_doc_name [02:38:51]save OK [02:38:51]Clear old archive folders... [02:38:51]ProcessDocumentItem done err = 0, tmpTLVsize=273 [02:38:51]tlvbuf is 011B0EB0 [02:38:51]SAM_PROTO_ClearQueue [02:38:51]wFMCommunicate request_size=4 [02:38:51]MH_SAM_APDU [02:38:51]CAPDU: 80 09 00 00 [02:38:51]Write to MH i2c: E2 08 00 51 19 80 09 00 00 00 00 00 00 DC [02:38:51]Write i2c OK [02:38:51]MH_I2C_Read... [02:38:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:38:52]Read from MH i2c: E2 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: E2 03 00 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: E2 03 00 51 19 00 90 00 DE [02:38:52]RAPDU: 90 00 [02:38:52]wFMCommunicate OK [02:38:52]SAM_PROTO_ClearQueue done [02:38:52]KKMCreateOFDPacket [02:38:52]OFDProtocolAddRootSTLVToBuf [02:38:52]FM_MakeSignedData [02:38:52]FM_MakeSignedData [02:38:52]SAM_PROTO_SignData [02:38:52]wFMCommunicate request_size=4 [02:38:52]MH_SAM_APDU [02:38:52]CAPDU: 80 0D 01 02 [02:38:52]Write to MH i2c: E2 08 00 52 19 80 0D 01 02 00 00 00 00 E4 [02:38:52]Write i2c OK [02:38:52]MH_I2C_Read... [02:38:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:38:52]Read from MH i2c: E2 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: E2 03 00 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: E2 03 00 52 19 00 90 00 DF [02:38:52]RAPDU: 90 00 [02:38:52]wFMCommunicate OK [02:38:52]wFMCommunicate request_size=255 [02:38:52]MH_SAM_APDU [02:38:52]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3D 26 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 [02:38:52]Write to MH i2c: E2 02 01 53 19 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3D 26 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 BE [02:38:52]Write i2c OK [02:38:52]MH_I2C_Read... [02:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:52]Read from MH i2c: E2 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: E2 03 00 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: E2 03 00 53 19 00 90 00 E0 [02:38:52]RAPDU: 90 00 [02:38:52]wFMCommunicate OK [02:38:52]wFMCommunicate request_size=32 [02:38:52]MH_SAM_APDU [02:38:52]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 33 30 10 04 04 00 65 C4 01 00 35 04 06 00 67 98 5E 43 CA F7 [02:38:52]Write to MH i2c: E2 23 00 54 19 80 0D 02 02 1B 00 30 30 30 38 37 31 38 33 30 10 04 04 00 65 C4 01 00 35 04 06 00 67 98 5E 43 CA F7 00 00 CA [02:38:52]Write i2c OK [02:38:52]MH_I2C_Read... [02:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:52]Read from MH i2c: E2 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: E2 03 00 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: E2 03 00 54 19 00 90 00 E1 [02:38:52]RAPDU: 90 00 [02:38:52]wFMCommunicate OK [02:38:52]wFMCommunicate request_size=4 [02:38:52]MH_SAM_APDU [02:38:52]CAPDU: 80 0D 03 02 [02:38:52]Write to MH i2c: E2 08 00 55 19 80 0D 03 02 00 00 00 00 E9 [02:38:52]Write i2c OK [02:38:52]MH_I2C_Read... [02:38:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:38:52]Read from MH i2c: E2 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: E2 0B 00 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: E2 0B 00 55 19 00 18 65 9D 01 03 E7 0E D7 90 00 D4 [02:38:52]RAPDU: 18 65 9D 01 03 E7 0E D7 90 00 [02:38:52]wFMCommunicate OK [02:38:52]SAM_PROTO_SignData done [02:38:52]FM_MakeSignedData done [02:38:52]CreateOFDProtocolMessage [02:38:52]wFMCommunicate request_size=4 [02:38:52]MH_SAM_APDU [02:38:52]CAPDU: 80 11 00 00 [02:38:52]Write to MH i2c: E2 08 00 56 19 80 11 00 00 00 00 00 00 E9 [02:38:52]Write i2c OK [02:38:52]MH_I2C_Read... [02:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:52]Read from MH i2c: E2 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: E2 17 00 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: E2 17 00 56 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 37 [02:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:38:52]wFMCommunicate OK [02:38:52]CreateOFDProtocolMessage done [02:38:52]OFDSenderStorePacket 115813 [02:38:52]StoreOFDPacket docnum=115813 [02:38:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 6A 83 1D 01 31 74 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3D 26 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 65 C4 01 00 35 04 06 00 67 98 5E 43 CA F7 18 65 9D 01 03 E7 0E D7 [02:38:52]CheckFolder [02:38:52]dirname=/storage/ofd_packets [02:38:52]CheckFolder done [02:38:52]ProducePacketName [02:38:52]name=ofd_packets/00115813 [02:38:52]NVStorageSaveData ofd_packets/00115813 [02:38:52]File name is /storage/ofd_packets/00115813 [02:38:52]Write 323 bytes [02:38:52]NVStorageSaveData done [02:38:52]OFDSenderStorePacket done [02:38:52]KKMCreateOFDPacket done [02:38:52]NVStorageSaveData kkm_last_timestamp [02:38:52]File name is /storage/kkm_last_timestamp [02:38:52]Write 4 bytes [02:38:52]NVStorageSaveData done [02:38:52]ExternCall_PrintAddStr [02:38:52]wPrintStart [02:38:52]Write to MH i2c: 01 00 00 57 19 70 [02:38:52]Write i2c OK [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: 01 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: 01 07 00 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: 01 07 00 57 19 00 00 00 00 00 FF 0F 85 [02:38:52]RasterBufferAndPrint [02:38:52]line Счет N : (3)344127 [02:38:52]line ИНН: 02508201610067 [02:38:52]line Контрольно-Кассовый Чек [02:38:52]line ПРОДАЖА [02:38:52]line Товар: 4700001060152 [02:38:52]line Коньяк Бишкек 0,5л [02:38:52]line 1.000 * 660.00 [02:38:52]line = 660.00 [02:38:52]line НДС 12% НСП 1% [02:38:52]line > о реализуемом товаре [02:38:52]line ИТОГО: 660.00 [02:38:52]line НСП 1% : 5.84 [02:38:52]line НДС 12% : 70.09 [02:38:52]line Наличными: 660.00 [02:38:52]line Безнал.: 0.00 [02:38:52]line Место: АЗС № 90 "Партнер Нефть" [02:38:52]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [02:38:52]line СНО: Общий режим [02:38:52]line Чек 10 24.09.2024 02:38 [02:38:52]line Смена: 473 ФФД: 1.0 [02:38:52]line ЗНМ: 0300000120 [02:38:52]line РНМ: 0000000000091831 [02:38:52]line Версия ККМ: 001 [02:38:52]line ФМ: 0000000000871830 [02:38:52]line ФД: 115813 [02:38:52]line ФПД: 113904114191095 [02:38:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T023853&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115813&fm=113904114191095&tin=02508201610067®Number=0000000000091831&sum=66000 [02:38:52]line 0 [02:38:52]written 0, free lines is 4095 [02:38:52]OFD Sender: Processing packet 115813 [packets to send 482, broken 481] [02:38:52]ProducePacketName [02:38:52]name=ofd_packets/00115813 [02:38:52]OFD Sender: To server: pG, [02:38:52]CommunicateWithHost lk.salyk.kg:30040 [02:38:52]ConnectInit lk.salyk.kg [02:38:52]Connected sock=10 [02: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 38 33 30 25 01 00 00 6A 83 1D 01 31 74 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3D 26 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 65 C4 01 00 35 04 06 00 67 98 5E 43 CA F7 18 65 9D 01 03 E7 0E D7 [02:38:52]Write to MH i2c: 01 00 00 7E 19 97 [02:38:52]Write i2c OK [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: 01 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: 01 07 00 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: 01 07 00 7E 19 00 00 00 00 00 79 0C 23 [02:38:52]RasterBufferAndPrint [02:38:52]line [02:38:52]line [02:38:52]line [02:38:52]line [02:38:52]line [02:38:52]written 0, free lines is 3197 [02:38:52]MH_Cut [02:38:52]Write to MH i2c: D1 01 00 85 19 01 70 [02:38:52]Write i2c OK [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: D1 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: D1 01 00 [02:38:52]MH_I2C_Read... [02:38:52]Read from MH i2c: D1 01 00 85 19 00 6F [02:38:52]Write to MH i2c: 01 00 00 86 19 9F [02:38:52]Write i2c OK [02:38:52]MH_I2C_Read... [02: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 38 33 30 4F 00 00 00 AA 11 47 00 B6 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 38 33 30 10 04 04 00 65 C4 01 00 F4 03 04 00 7E CB F1 66 B6 04 01 00 00 D6 A4 40 DF 0E 02 06 F5 [02:38:53]CommunicateWithHost err = 0 [02:38:53]CheckOFDResponse [02:38:53]1017 (14) - 77093643461234 [02:38:53]1041 (16) - 0000000000871830 [02:38:53]1040 (4) - 115813 [02:38:53]1012 (4) - 23.09.2024 20:11 [02:38:53]1206 (1) - 0 [02:38:53]OFD Sender: Remove packet 115813 [02:38:53]ProducePacketName [02:38:53]name=ofd_packets/00115813 [02:38:53]NVStorageDeleteData [02:38:53]OFD Sender: No OFD packet to send [02:38:54]*** Cut start [02:38:54]*** Partial cut [02:38:54]*** CUTSNS_PIN = 1 [02:38:54]*** CUTSNS_PIN = 0 [02:38:54]*** Brake cut motor [02:38:54]Read from MH i2c: 01 [02:38:54]MH_I2C_Read... [02:38:54]*** Stop cut motor [02:38:54]*** Cut end [02:38:54]Read from MH i2c: 01 07 00 [02:38:54]MH_I2C_Read... [02:38:54]Read from MH i2c: 01 07 00 86 19 00 00 00 00 00 FF 0F B4 [02:38:54]process_action close_receipt done [02:38:54]requested_data is exist [02:38:54]produce_requested_data [02:38:54]requested_item fm.sn is exist - process it [02:38:54]wFMCommunicate request_size=4 [02:38:54]MH_SAM_APDU [02:38:54]CAPDU: 80 11 00 00 [02:38:54]Write to MH i2c: E2 08 00 87 19 80 11 00 00 00 00 00 00 1A [02:38:54]Write i2c OK [02:38:54]MH_I2C_Read... [02:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:54]Read from MH i2c: E2 [02:38:54]MH_I2C_Read... [02:38:54]Read from MH i2c: E2 17 00 [02:38:54]MH_I2C_Read... [02:38:54]Read from MH i2c: E2 17 00 87 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 68 [02:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:38:54]wFMCommunicate OK [02:38:54]requested_item fd.num is exist - process it [02:38:54]SAM_PROTO_GetFieldsCounters [02:38:54]wFMCommunicate request_size=4 [02:38:54]MH_SAM_APDU [02:38:54]CAPDU: 80 13 00 00 [02:38:54]Write to MH i2c: E2 08 00 88 19 80 13 00 00 00 00 00 00 1D [02:38:54]Write i2c OK [02:38:54]MH_I2C_Read... [02:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:38:55]Read from MH i2c: E2 [02:38:55]MH_I2C_Read... [02:38:55]Read from MH i2c: E2 62 00 [02:38:55]MH_I2C_Read... [02:38:55]Read from MH i2c: E2 62 00 88 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 65 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [02:38: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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 65 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:38:55]wFMCommunicate OK [02:38:55]SAM_PROTO_GetFieldsCounters done [02:38:55]requested_item shift.num is exist - process it [02:38:55]requested_item shift.opened is exist - process it [02:38:55]req_shift_opened [02:38:55]FM_GetShiftState [02:38:55]SAM_PROTO_GetShiftState [02:38:55]wFMCommunicate request_size=4 [02:38:55]MH_SAM_APDU [02:38:55]CAPDU: 80 13 01 00 [02:38:55]Write to MH i2c: E2 08 00 89 19 80 13 01 00 00 00 00 00 1F [02:38:55]Write i2c OK [02:38:55]MH_I2C_Read... [02:38:55]Read from MH i2c: E2 [02:38:55]MH_I2C_Read... [02:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:55]Read from MH i2c: E2 0E 00 [02:38:55]MH_I2C_Read... [02:38:55]Read from MH i2c: E2 0E 00 89 19 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 57 [02:38:55]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [02:38:55]wFMCommunicate OK [02:38:55]SAM_PROTO_GetShiftState done [02:38:55]FM_GetShiftState done [02:38:55]req_shift_opened done [02:38:55]requested_item shift.open_date is exist - process it [02:38:55]req_shift_open_date [02:38:55]req_shift_open_date done [02:38:55]produce_requested_data done [02:38:55]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115813,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506} [02:38:55]process_action_free close_receipt [02:38:55]json_value_free [02:38:55]json_value_free done [02:38:55]process_json_proto returns [02:38:55]Send response to host [02:38:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115813,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506}}} [02:38:55]free response buf [02:38:55]execute_script done [02:38:55]execute_script returns [02:38:55]free content buf [02:38:55]Sock 8.Close socket [02:38:55]Sock 8.Thread stoped [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47: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:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:55:59]accept exits with 9 [02:55:59]New connection [02:55:59]New thread 3067010404 created [02:55:59]Thread 3066867044 joined [02:55:59]Waiting for new connection... [02:55:59] Sock 9.Parse request [02:55:59]Sock 9.Check first char [02:55:59]Sock 9.First char is OK [02:55:59]request: POST /json_proto HTTP/1.0 [02:55:59]Method: POST [02:55:59]URL: /json_proto [02:55:59]Method is POST - this is cgi request [02:55:59]url: /json_proto [02:55:59]query_string will be loaded in cgi processing [02:55:59]execute_cgi json_proto POST (null) [02:55:59]execute_cgi path=json_proto method=POST [02:55:59]POST find Content-Length [02:55:59]Host: 172.17.41.136:8080 [02:55:59]Content-Length: 1077 [02:55:59]Content-Type: application/json [02:55:59] [02:55:59]POST finish read [02:55:59]Found Content-Length = 1077 [02:55:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344128", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 314.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:55:59]execute_script... [02:55:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344128", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 314.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:55:59]POST & json_proto [02:55:59]process_json_proto [02:55:59]json parsed OK: [02:55:59]protocol is kg_v1.0 [02:55:59]action value=close_receipt [02:55:59]process_action close_receipt [02:55:59]cmd_close_receipt [02:55:59]MH_GetDate [02:55:59]Write to MH i2c: F0 00 00 8A 19 92 [02:55:59]Write i2c OK [02:55:59]MH_I2C_Read... [02:55:59]Read from MH i2c: F0 [02:55:59]MH_I2C_Read... [02:55:59]Read from MH i2c: F0 09 00 [02:55:59]MH_I2C_Read... [02:55:59]Read from MH i2c: F0 09 00 8A 19 00 42 2A F2 66 1B D0 5A 64 08 [02:55:59]GetLastDocTimeStamp 1727145533 [02:55:59]current date 1727146562 [02:55:59]FM_GetShiftState [02:55:59]SAM_PROTO_GetShiftState [02:55:59]wFMCommunicate request_size=4 [02:55:59]MH_SAM_APDU [02:55:59]CAPDU: 80 13 01 00 [02:55:59]Write to MH i2c: E2 08 00 8B 19 80 13 01 00 00 00 00 00 21 [02:55:59]Write i2c OK [02:55:59]MH_I2C_Read... [02:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:55:59]Read from MH i2c: E2 [02:55:59]MH_I2C_Read... [02:55:59]Read from MH i2c: E2 0E 00 [02:55:59]MH_I2C_Read... [02:55:59]Read from MH i2c: E2 0E 00 8B 19 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 59 [02:55:59]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [02:55:59]wFMCommunicate OK [02:55:59]SAM_PROTO_GetShiftState done [02:55:59]FM_GetShiftState done [02:55:59]opened in 1727138506 [02:55:59]opened+sec_in_day 1727224906 [02:55:59]quantity*price = 17000 [02:55:59]sum+1 = 17001 [02:55:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 314.00 НСП 1% : 2.77 НДС 12% : 33.34 Наличными: 0.00 Безнал.: 314.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 11 24.09.2024 02:56 Смена: 473 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 115814 ФПД: 188561544178235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T025602&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115814&fm=188561544178235&tin=02508201610067®Number=0000000000091831&sum=31400 0 [02:56:01]StoreToDocumentArchive [02:56:01]shift 473 fd 115814 [02:56:01]save to /storage/0473/doc_00115814 [02:56:01]save last doc name /storage/0473/doc_00115814 to /storage/kkm_last_doc_name [02:56:01]save OK [02:56:01]Clear old archive folders... [02:56:01]ProcessDocumentItem done err = 0, tmpTLVsize=390 [02:56:01]tlvbuf is B6DB6B00 [02:56:01]SAM_PROTO_ClearQueue [02:56:01]wFMCommunicate request_size=4 [02:56:01]MH_SAM_APDU [02:56:01]CAPDU: 80 09 00 00 [02:56:01]Write to MH i2c: E2 08 00 98 19 80 09 00 00 00 00 00 00 23 [02:56:01]Write i2c OK [02:56:01]MH_I2C_Read... [02:56:01]Read from MH i2c: E2 [02:56:01]MH_I2C_Read... [02:56:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:56:01]Read from MH i2c: E2 03 00 [02:56:01]MH_I2C_Read... [02:56:01]Read from MH i2c: E2 03 00 98 19 00 90 00 25 [02:56:01]RAPDU: 90 00 [02:56:01]wFMCommunicate OK [02:56:01]SAM_PROTO_ClearQueue done [02:56:01]KKMCreateOFDPacket [02:56:01]OFDProtocolAddRootSTLVToBuf [02:56:01]FM_MakeSignedData [02:56:01]FM_MakeSignedData [02:56:01]SAM_PROTO_SignData [02:56:01]wFMCommunicate request_size=4 [02:56:01]MH_SAM_APDU [02:56:01]CAPDU: 80 0D 01 02 [02:56:01]Write to MH i2c: E2 08 00 99 19 80 0D 01 02 00 00 00 00 2B [02:56:01]Write i2c OK [02:56:01]MH_I2C_Read... [02:56:01]OFD Sender: No OFD packet to send [02:56:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:56:01]Read from MH i2c: E2 [02:56:01]MH_I2C_Read... [02:56:01]Read from MH i2c: E2 03 00 [02:56:01]MH_I2C_Read... [02:56:01]Read from MH i2c: E2 03 00 99 19 00 90 00 26 [02:56:01]RAPDU: 90 00 [02:56:01]wFMCommunicate OK [02:56:01]wFMCommunicate request_size=255 [02:56:01]MH_SAM_APDU [02:56:01]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [02:56:01]Write to MH i2c: E2 02 01 9A 19 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 F7 [02:56:01]Write i2c OK [02:56:01]MH_I2C_Read... [02:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:56:01]Read from MH i2c: E2 [02:56:01]MH_I2C_Read... [02:56:01]Read from MH i2c: E2 03 00 [02:56:01]MH_I2C_Read... [02:56:01]Read from MH i2c: E2 03 00 9A 19 00 90 00 27 [02:56:01]RAPDU: 90 00 [02:56:01]wFMCommunicate OK [02:56:01]wFMCommunicate request_size=149 [02:56:01]MH_SAM_APDU [02:56:01]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 42 2A F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 66 C4 01 00 35 04 06 00 AB 7E E7 DB EA 3B [02:56:01]Write to MH i2c: E2 98 00 9B 19 80 0D 02 02 90 00 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 42 2A F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 66 C4 01 00 35 04 06 00 AB 7E E7 DB EA 3B 00 00 A3 [02:56:01]Write i2c OK [02:56:01]MH_I2C_Read... [02:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:56:01]Read from MH i2c: E2 [02:56:01]MH_I2C_Read... [02:56:01]Read from MH i2c: E2 03 00 [02:56:01]MH_I2C_Read... [02:56:01]Read from MH i2c: E2 03 00 9B 19 00 90 00 28 [02:56:01]RAPDU: 90 00 [02:56:01]wFMCommunicate OK [02:56:01]wFMCommunicate request_size=4 [02:56:01]MH_SAM_APDU [02:56:01]CAPDU: 80 0D 03 02 [02:56:01]Write to MH i2c: E2 08 00 9C 19 80 0D 03 02 00 00 00 00 30 [02:56:01]Write i2c OK [02:56:01]MH_I2C_Read... [02:56:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:56:01]Read from MH i2c: E2 [02:56:01]MH_I2C_Read... [02:56:01]Read from MH i2c: E2 0B 00 [02:56:01]MH_I2C_Read... [02:56:01]Read from MH i2c: E2 0B 00 9C 19 00 D1 BA DA 44 5E 87 28 07 90 00 EE [02:56:01]RAPDU: D1 BA DA 44 5E 87 28 07 90 00 [02:56:01]wFMCommunicate OK [02:56:01]SAM_PROTO_SignData done [02:56:01]FM_MakeSignedData done [02:56:01]CreateOFDProtocolMessage [02:56:01]wFMCommunicate request_size=4 [02:56:01]MH_SAM_APDU [02:56:01]CAPDU: 80 11 00 00 [02:56:01]Write to MH i2c: E2 08 00 9D 19 80 11 00 00 00 00 00 00 30 [02:56:01]Write i2c OK [02:56:01]MH_I2C_Read... [02:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:56:01]Read from MH i2c: E2 [02:56:01]MH_I2C_Read... [02:56:01]Read from MH i2c: E2 17 00 [02:56:01]MH_I2C_Read... [02:56:01]Read from MH i2c: E2 17 00 9D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7E [02:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:56:01]wFMCommunicate OK [02:56:01]CreateOFDProtocolMessage done [02:56:01]OFDSenderStorePacket 115814 [02:56:01]StoreOFDPacket docnum=115814 [02:56:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9A 01 00 00 75 3B 92 01 54 79 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 42 2A F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 66 C4 01 00 35 04 06 00 AB 7E E7 DB EA 3B D1 BA DA 44 5E 87 28 07 [02:56:01]CheckFolder [02:56:01]dirname=/storage/ofd_packets [02:56:01]CheckFolder done [02:56:01]ProducePacketName [02:56:01]name=ofd_packets/00115814 [02:56:02]NVStorageSaveData ofd_packets/00115814 [02:56:02]File name is /storage/ofd_packets/00115814 [02:56:02]Write 440 bytes [02:56:02]NVStorageSaveData done [02:56:02]OFDSenderStorePacket done [02:56:02]KKMCreateOFDPacket done [02:56:02]NVStorageSaveData kkm_last_timestamp [02:56:02]File name is /storage/kkm_last_timestamp [02:56:02]Write 4 bytes [02:56:02]NVStorageSaveData done [02:56:02]ExternCall_PrintAddStr [02:56:02]wPrintStart [02:56:02]Write to MH i2c: 01 00 00 9E 19 B7 [02:56:02]Write i2c OK [02:56:02]MH_I2C_Read... [02:56:02]Read from MH i2c: 01 [02:56:02]MH_I2C_Read... [02:56:02]Read from MH i2c: 01 07 00 [02:56:02]MH_I2C_Read... [02:56:02]Read from MH i2c: 01 07 00 9E 19 00 00 00 00 00 FF 0F CC [02:56:02]RasterBufferAndPrint [02:56:02]line Счет N : (3)344128 [02:56:02]line ИНН: 02508201610067 [02:56:02]line Контрольно-Кассовый Чек [02:56:02]line ПРОДАЖА [02:56:02]line Товар: 5449000176448 [02:56:02]line Сок Piko Pulpy апельсин ПЭТ 1л [02:56:02]line 1.000 * 170.00 [02:56:02]line = 170.00 [02:56:02]line НДС 12% НСП 1% [02:56:02]line > о реализуемом товаре [02:56:02]line Товар: 48743570 [02:56:02]line Сигареты Winston XStyle Blue [02:56:02]line 1.000 * 144.00 [02:56:02]line = 144.00 [02:56:02]line НДС 12% НСП 1% [02:56:02]line > о реализуемом товаре [02:56:02]line ИТОГО: 314.00 [02:56:02]line НСП 1% : 2.77 [02:56:02]line НДС 12% : 33.34 [02:56:02]line Наличными: 0.00 [02:56:02]line Безнал.: 314.00 [02:56:02]line Место: АЗС № 90 "Партнер Нефть" [02:56:02]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [02:56:02]line СНО: Общий режим [02:56:02]line Чек 11 24.09.2024 02:56 [02:56:02]line Смена: 473 ФФД: 1.0 [02:56:02]line ЗНМ: 0300000120 [02:56:02]line РНМ: 0000000000091831 [02:56:02]line Версия ККМ: 001 [02:56:02]line Платежная система: Бакай Банк [02:56:02]line ФМ: 0000000000871830 [02:56:02]line ФД: 115814 [02:56:02]line ФПД: 188561544178235 [02:56:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T025602&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115814&fm=188561544178235&tin=02508201610067®Number=0000000000091831&sum=31400 [02:56:02]line 0 [02:56:02]written 0, free lines is 4095 [02:56:02]OFD Sender: Processing packet 115814 [packets to send 482, broken 481] [02:56:02]ProducePacketName [02:56:02]name=ofd_packets/00115814 [02:56:02]OFD Sender: To server: pG, [02:56:02]CommunicateWithHost lk.salyk.kg:30040 [02:56:02]ConnectInit lk.salyk.kg [02:56:02]Connected sock=10 [02:56:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 9A 01 00 00 75 3B 92 01 54 79 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 42 2A F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 66 C4 01 00 35 04 06 00 AB 7E E7 DB EA 3B D1 BA DA 44 5E 87 28 07 [02:56:02]Write to MH i2c: 01 00 00 CE 19 E7 [02:56:02]Write i2c OK [02:56:02]MH_I2C_Read... [02:56:02]Read from MH i2c: 01 [02:56:02]MH_I2C_Read... [02:56:02]Read from MH i2c: 01 07 00 [02:56:02]MH_I2C_Read... [02:56:02]Read from MH i2c: 01 07 00 CE 19 00 00 00 00 00 D2 0B CB [02:56:02]RasterBufferAndPrint [02:56:02]line [02:56:02]line [02:56:02]line [02:56:02]line [02:56:02]line [02:56:02]written 0, free lines is 3029 [02:56:02]MH_Cut [02:56:02]Write to MH i2c: D1 01 00 D5 19 01 C0 [02:56:02]Write i2c OK [02:56:02]MH_I2C_Read... [02:56:02]Read from MH i2c: D1 [02:56:02]MH_I2C_Read... [02:56:02]Read from MH i2c: D1 01 00 [02:56:02]MH_I2C_Read... [02:56:02]Read from MH i2c: D1 01 00 D5 19 00 BF [02:56:02]Write to MH i2c: 01 00 00 D6 19 EF [02:56:02]Write i2c OK [02:56:02]MH_I2C_Read... [02:56:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 47 7E 47 00 A1 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 38 33 30 10 04 04 00 66 C4 01 00 F4 03 04 00 84 CF F1 66 B6 04 01 00 00 53 5E 70 1F 24 97 44 CB [02:56:02]CommunicateWithHost err = 0 [02:56:02]CheckOFDResponse [02:56:02]1017 (14) - 77093643461234 [02:56:02]1041 (16) - 0000000000871830 [02:56:02]1040 (4) - 115814 [02:56:02]1012 (4) - 23.09.2024 20:28 [02:56:02]1206 (1) - 0 [02:56:02]OFD Sender: Remove packet 115814 [02:56:02]ProducePacketName [02:56:02]name=ofd_packets/00115814 [02:56:02]NVStorageDeleteData [02:56:03]OFD Sender: No OFD packet to send [02:56:04]*** Cut start [02:56:04]*** Partial cut [02:56:04]*** CUTSNS_PIN = 1 [02:56:04]*** CUTSNS_PIN = 0 [02:56:04]*** Brake cut motor [02:56:04]Read from MH i2c: 01 [02:56:04]MH_I2C_Read... [02:56:04]*** Stop cut motor [02:56:04]*** Cut end [02:56:04]Read from MH i2c: 01 07 00 [02:56:04]MH_I2C_Read... [02:56:04]Read from MH i2c: 01 07 00 D6 19 00 00 00 00 00 FF 0F 04 [02:56:04]process_action close_receipt done [02:56:04]requested_data is exist [02:56:04]produce_requested_data [02:56:04]requested_item fm.sn is exist - process it [02:56:04]wFMCommunicate request_size=4 [02:56:04]MH_SAM_APDU [02:56:04]CAPDU: 80 11 00 00 [02:56:04]Write to MH i2c: E2 08 00 D7 19 80 11 00 00 00 00 00 00 6A [02:56:04]Write i2c OK [02:56:04]MH_I2C_Read... [02:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:56:04]Read from MH i2c: E2 [02:56:04]MH_I2C_Read... [02:56:04]Read from MH i2c: E2 17 00 [02:56:04]MH_I2C_Read... [02:56:04]Read from MH i2c: E2 17 00 D7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B8 [02:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [02:56:04]wFMCommunicate OK [02:56:04]requested_item fd.num is exist - process it [02:56:04]SAM_PROTO_GetFieldsCounters [02:56:04]wFMCommunicate request_size=4 [02:56:04]MH_SAM_APDU [02:56:04]CAPDU: 80 13 00 00 [02:56:04]Write to MH i2c: E2 08 00 D8 19 80 13 00 00 00 00 00 00 6D [02:56:04]Write i2c OK [02:56:04]MH_I2C_Read... [02:56:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:56:04]Read from MH i2c: E2 [02:56:04]MH_I2C_Read... [02:56:04]Read from MH i2c: E2 62 00 [02:56:04]MH_I2C_Read... [02:56:04]Read from MH i2c: E2 62 00 D8 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 66 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [02:56:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 66 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:56:04]wFMCommunicate OK [02:56:04]SAM_PROTO_GetFieldsCounters done [02:56:04]requested_item shift.num is exist - process it [02:56:04]requested_item shift.opened is exist - process it [02:56:04]req_shift_opened [02:56:04]FM_GetShiftState [02:56:04]SAM_PROTO_GetShiftState [02:56:04]wFMCommunicate request_size=4 [02:56:04]MH_SAM_APDU [02:56:04]CAPDU: 80 13 01 00 [02:56:04]Write to MH i2c: E2 08 00 D9 19 80 13 01 00 00 00 00 00 6F [02:56:04]Write i2c OK [02:56:04]MH_I2C_Read... [02:56:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:56:05]Read from MH i2c: E2 [02:56:05]MH_I2C_Read... [02:56:05]Read from MH i2c: E2 0E 00 [02:56:05]MH_I2C_Read... [02:56:05]Read from MH i2c: E2 0E 00 D9 19 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 A7 [02:56:05]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [02:56:05]wFMCommunicate OK [02:56:05]SAM_PROTO_GetShiftState done [02:56:05]FM_GetShiftState done [02:56:05]req_shift_opened done [02:56:05]requested_item shift.open_date is exist - process it [02:56:05]req_shift_open_date [02:56:05]req_shift_open_date done [02:56:05]produce_requested_data done [02:56:05]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115814,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506} [02:56:05]process_action_free close_receipt [02:56:05]json_value_free [02:56:05]json_value_free done [02:56:05]process_json_proto returns [02:56:05]Send response to host [02:56:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115814,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506}}} [02:56:05]free response buf [02:56:05]execute_script done [02:56:05]execute_script returns [02:56:05]free content buf [02:56:05]Sock 9.Close socket [02:56:05]Sock 9.Thread stoped [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08: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:17]accept exits with 8 [03:09:17]New connection [03:09:17]New thread 3066867044 created [03:09:17]Thread 3067010404 joined [03:09:17]Waiting for new connection... [03:09:17] Sock 8.Parse request [03:09:17]Sock 8.Check first char [03:09:17]Sock 8.First char is OK [03:09:17]request: POST /json_proto HTTP/1.0 [03:09:17]Method: POST [03:09:17]URL: /json_proto [03:09:17]Method is POST - this is cgi request [03:09:17]url: /json_proto [03:09:17]query_string will be loaded in cgi processing [03:09:17]execute_cgi json_proto POST (null) [03:09:17]execute_cgi path=json_proto method=POST [03:09:17]POST find Content-Length [03:09:17]Host: 172.17.41.136:8080 [03:09:17]Content-Length: 1030 [03:09:17]Content-Type: application/json [03:09:17] [03:09:17]POST finish read [03:09:17]Found Content-Length = 1030 [03:09:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344129", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 414.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:09:17]execute_script... [03:09:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344129", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 414.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:09:17]POST & json_proto [03:09:17]process_json_proto [03:09:17]json parsed OK: [03:09:17]protocol is kg_v1.0 [03:09:17]action value=close_receipt [03:09:17]process_action close_receipt [03:09:17]cmd_close_receipt [03:09:17]MH_GetDate [03:09:17]Write to MH i2c: F0 00 00 DA 19 E2 [03:09:17]Write i2c OK [03:09:17]MH_I2C_Read... [03:09:17]Read from MH i2c: F0 [03:09:17]MH_I2C_Read... [03:09:17]Read from MH i2c: F0 09 00 [03:09:17]MH_I2C_Read... [03:09:17]Read from MH i2c: F0 09 00 DA 19 00 60 2D F2 66 1B D0 5A 64 79 [03:09:17]GetLastDocTimeStamp 1727146562 [03:09:17]current date 1727147360 [03:09:17]FM_GetShiftState [03:09:17]SAM_PROTO_GetShiftState [03:09:17]wFMCommunicate request_size=4 [03:09:17]MH_SAM_APDU [03:09:17]CAPDU: 80 13 01 00 [03:09:17]Write to MH i2c: E2 08 00 DB 19 80 13 01 00 00 00 00 00 71 [03:09:17]Write i2c OK [03:09:17]MH_I2C_Read... [03:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:09:17]Read from MH i2c: E2 [03:09:17]MH_I2C_Read... [03:09:17]Read from MH i2c: E2 0E 00 [03:09:17]MH_I2C_Read... [03:09:17]Read from MH i2c: E2 0E 00 DB 19 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 A9 [03:09:17]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [03:09:17]wFMCommunicate OK [03:09:17]SAM_PROTO_GetShiftState done [03:09:17]FM_GetShiftState done [03:09:17]opened in 1727138506 [03:09:17]opened+sec_in_day 1727224906 [03:09:17]quantity*price = 15400 [03:09:17]sum+1 = 15401 [03:09:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 414.00 НСП 1% : 3.66 НДС 12% : 43.96 Наличными: 0.00 Безнал.: 414.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 12 24.09.2024 03:09 Смена: 473 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 115815 ФПД: 228018236308439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T030920&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115815&fm=228018236308439&tin=02508201610067®Number=0000000000091831&sum=41400 0 [03:09:18]StoreToDocumentArchive [03:09:18]shift 473 fd 115815 [03:09:18]save to /storage/0473/doc_00115815 [03:09:18]save last doc name /storage/0473/doc_00115815 to /storage/kkm_last_doc_name [03:09:18]save OK [03:09:18]Clear old archive folders... [03:09:18]ProcessDocumentItem done err = 0, tmpTLVsize=383 [03:09:18]tlvbuf is B6DB64F0 [03:09:18]SAM_PROTO_ClearQueue [03:09:18]wFMCommunicate request_size=4 [03:09:18]MH_SAM_APDU [03:09:18]CAPDU: 80 09 00 00 [03:09:18]Write to MH i2c: E2 08 00 E8 19 80 09 00 00 00 00 00 00 73 [03:09:18]Write i2c OK [03:09:18]MH_I2C_Read... [03:09:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:09:18]Read from MH i2c: E2 [03:09:18]MH_I2C_Read... [03:09:18]Read from MH i2c: E2 03 00 [03:09:18]MH_I2C_Read... [03:09:18]Read from MH i2c: E2 03 00 E8 19 00 90 00 75 [03:09:18]RAPDU: 90 00 [03:09:18]wFMCommunicate OK [03:09:18]SAM_PROTO_ClearQueue done [03:09:18]KKMCreateOFDPacket [03:09:18]OFDProtocolAddRootSTLVToBuf [03:09:18]FM_MakeSignedData [03:09:18]FM_MakeSignedData [03:09:18]SAM_PROTO_SignData [03:09:18]wFMCommunicate request_size=4 [03:09:18]MH_SAM_APDU [03:09:18]CAPDU: 80 0D 01 02 [03:09:18]Write to MH i2c: E2 08 00 E9 19 80 0D 01 02 00 00 00 00 7B [03:09:18]Write i2c OK [03:09:18]MH_I2C_Read... [03:09:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:09:18]Read from MH i2c: E2 [03:09:18]MH_I2C_Read... [03:09:18]Read from MH i2c: E2 03 00 [03:09:18]MH_I2C_Read... [03:09:18]Read from MH i2c: E2 03 00 E9 19 00 90 00 76 [03:09:18]RAPDU: 90 00 [03:09:18]wFMCommunicate OK [03:09:18]wFMCommunicate request_size=255 [03:09:18]MH_SAM_APDU [03:09:18]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E [03:09:18]Write to MH i2c: E2 02 01 EA 19 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 7E [03:09:18]Write i2c OK [03:09:18]MH_I2C_Read... [03:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:09:18]Read from MH i2c: E2 [03:09:18]MH_I2C_Read... [03:09:18]Read from MH i2c: E2 03 00 [03:09:18]MH_I2C_Read... [03:09:18]Read from MH i2c: E2 03 00 EA 19 00 90 00 77 [03:09:18]RAPDU: 90 00 [03:09:18]wFMCommunicate OK [03:09:18]wFMCommunicate request_size=142 [03:09:18]MH_SAM_APDU [03:09:18]CAPDU: 80 0D 02 02 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 A1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 60 2D F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 67 C4 01 00 35 04 06 00 CF 61 A1 FA 3B D7 [03:09:18]Write to MH i2c: E2 91 00 EB 19 80 0D 02 02 89 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 A1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 60 2D F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 67 C4 01 00 35 04 06 00 CF 61 A1 FA 3B D7 00 00 20 [03:09:18]Write i2c OK [03:09:18]MH_I2C_Read... [03:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:09:18]Read from MH i2c: E2 [03:09:18]MH_I2C_Read... [03:09:18]Read from MH i2c: E2 03 00 [03:09:18]MH_I2C_Read... [03:09:18]Read from MH i2c: E2 03 00 EB 19 00 90 00 78 [03:09:18]RAPDU: 90 00 [03:09:18]wFMCommunicate OK [03:09:18]wFMCommunicate request_size=4 [03:09:18]MH_SAM_APDU [03:09:18]CAPDU: 80 0D 03 02 [03:09:18]Write to MH i2c: E2 08 00 EC 19 80 0D 03 02 00 00 00 00 80 [03:09:18]Write i2c OK [03:09:18]MH_I2C_Read... [03:09:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:09:18]Read from MH i2c: E2 [03:09:18]MH_I2C_Read... [03:09:18]Read from MH i2c: E2 0B 00 [03:09:18]MH_I2C_Read... [03:09:18]Read from MH i2c: E2 0B 00 EC 19 00 62 45 44 B8 56 FD 61 8C 90 00 64 [03:09:18]RAPDU: 62 45 44 B8 56 FD 61 8C 90 00 [03:09:18]wFMCommunicate OK [03:09:18]SAM_PROTO_SignData done [03:09:18]FM_MakeSignedData done [03:09:18]CreateOFDProtocolMessage [03:09:18]wFMCommunicate request_size=4 [03:09:18]MH_SAM_APDU [03:09:18]CAPDU: 80 11 00 00 [03:09:18]Write to MH i2c: E2 08 00 ED 19 80 11 00 00 00 00 00 00 80 [03:09:18]Write i2c OK [03:09:18]MH_I2C_Read... [03:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:09:18]Read from MH i2c: E2 [03:09:18]MH_I2C_Read... [03:09:18]Read from MH i2c: E2 17 00 [03:09:18]MH_I2C_Read... [03:09:18]Read from MH i2c: E2 17 00 ED 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CE [03:09:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:09:18]wFMCommunicate OK [03:09:18]CreateOFDProtocolMessage done [03:09:18]OFDSenderStorePacket 115815 [03:09:18]StoreOFDPacket docnum=115815 [03:09:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 93 01 00 00 C1 9D 8B 01 DB FF 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 A1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 60 2D F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 67 C4 01 00 35 04 06 00 CF 61 A1 FA 3B D7 62 45 44 B8 56 FD 61 8C [03:09:18]CheckFolder [03:09:18]dirname=/storage/ofd_packets [03:09:18]CheckFolder done [03:09:18]ProducePacketName [03:09:18]name=ofd_packets/00115815 [03:09:18]NVStorageSaveData ofd_packets/00115815 [03:09:18]File name is /storage/ofd_packets/00115815 [03:09:18]Write 433 bytes [03:09:18]NVStorageSaveData done [03:09:18]OFDSenderStorePacket done [03:09:18]KKMCreateOFDPacket done [03:09:18]NVStorageSaveData kkm_last_timestamp [03:09:18]File name is /storage/kkm_last_timestamp [03:09:18]Write 4 bytes [03:09:18]NVStorageSaveData done [03:09:18]ExternCall_PrintAddStr [03:09:18]wPrintStart [03:09:18]Write to MH i2c: 01 00 00 EE 19 07 [03:09:18]Write i2c OK [03:09:18]MH_I2C_Read... [03:09:18]Read from MH i2c: 01 [03:09:18]MH_I2C_Read... [03:09:18]Read from MH i2c: 01 07 00 [03:09:18]MH_I2C_Read... [03:09:18]Read from MH i2c: 01 07 00 EE 19 00 00 00 00 00 FF 0F 1C [03:09:18]RasterBufferAndPrint [03:09:19]line Счет N : (3)344129 [03:09:19]line ИНН: 02508201610067 [03:09:19]line Контрольно-Кассовый Чек [03:09:19]line ПРОДАЖА [03:09:19]line Товар: 46230607 [03:09:19]line Сигареты Richmond Bronze Edition [03:09:19]line 1.000 * 154.00 [03:09:19]line = 154.00 [03:09:19]line НДС 12% НСП 1% [03:09:19]line > о реализуемом товаре [03:09:19]line Товар: 2000036230011 [03:09:19]line Кофе Латте XL(GABB TRADE) [03:09:19]line 2.000 * 130.00 [03:09:19]line = 260.00 [03:09:19]line НДС 12% НСП 1% [03:09:19]line > о реализуемом товаре [03:09:19]line ИТОГО: 414.00 [03:09:19]line НСП 1% : 3.66 [03:09:19]line НДС 12% : 43.96 [03:09:19]line Наличными: 0.00 [03:09:19]line Безнал.: 414.00 [03:09:19]line Место: АЗС № 90 "Партнер Нефть" [03:09:19]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [03:09:19]line СНО: Общий режим [03:09:19]line Чек 12 24.09.2024 03:09 [03:09:19]line Смена: 473 ФФД: 1.0 [03:09:19]line ЗНМ: 0300000120 [03:09:19]line РНМ: 0000000000091831 [03:09:19]line Версия ККМ: 001 [03:09:19]line Платежная система: O! деньги [03:09:19]line ФМ: 0000000000871830 [03:09:19]line ФД: 115815 [03:09:19]line ФПД: 228018236308439 [03:09:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T030920&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115815&fm=228018236308439&tin=02508201610067®Number=0000000000091831&sum=41400 [03:09:19]line 0 [03:09:19]OFD Sender: Processing packet 115815 [packets to send 482, broken 481] [03:09:19]ProducePacketName [03:09:19]name=ofd_packets/00115815 [03:09:19]OFD Sender: To server: pG, [03:09:19]CommunicateWithHost lk.salyk.kg:30040 [03:09:19]ConnectInit lk.salyk.kg [03:09:19]written 0, free lines is 4095 [03:09:19]Connected sock=10 [03:09: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 38 33 30 93 01 00 00 C1 9D 8B 01 DB FF 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 A1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 60 2D F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 67 C4 01 00 35 04 06 00 CF 61 A1 FA 3B D7 62 45 44 B8 56 FD 61 8C [03:09:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 CE BA 47 00 6F 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 38 33 30 10 04 04 00 67 C4 01 00 F4 03 04 00 A0 D2 F1 66 B6 04 01 00 00 57 D7 14 95 77 80 1B 26 [03:09:19]CommunicateWithHost err = 0 [03:09:19]CheckOFDResponse [03:09:19]1017 (14) - 77093643461234 [03:09:19]1041 (16) - 0000000000871830 [03:09:19]1040 (4) - 115815 [03:09:19]1012 (4) - 23.09.2024 20:42 [03:09:19]1206 (1) - 0 [03:09:19]OFD Sender: Remove packet 115815 [03:09:19]ProducePacketName [03:09:19]name=ofd_packets/00115815 [03:09:19]NVStorageDeleteData [03:09:19]Write to MH i2c: 01 00 00 1E 1A 38 [03:09:19]Write i2c OK [03:09:19]MH_I2C_Read... [03:09:19]Read from MH i2c: 01 [03:09:19]MH_I2C_Read... [03:09:19]Read from MH i2c: 01 07 00 [03:09:19]MH_I2C_Read... [03:09:19]Read from MH i2c: 01 07 00 1E 1A 00 00 00 00 00 C1 0B 0B [03:09:19]RasterBufferAndPrint [03:09:19]line [03:09:19]line [03:09:19]line [03:09:19]line [03:09:19]line [03:09:19]written 0, free lines is 3012 [03:09:19]MH_Cut [03:09:19]Write to MH i2c: D1 01 00 25 1A 01 11 [03:09:19]Write i2c OK [03:09:19]MH_I2C_Read... [03:09:19]Read from MH i2c: D1 [03:09:19]MH_I2C_Read... [03:09:19]Read from MH i2c: D1 01 00 [03:09:19]MH_I2C_Read... [03:09:19]Read from MH i2c: D1 01 00 25 1A 00 10 [03:09:19]Write to MH i2c: 01 00 00 26 1A 40 [03:09:19]Write i2c OK [03:09:19]MH_I2C_Read... [03:09:20]OFD Sender: No OFD packet to send [03:09:21]*** Cut start [03:09:21]*** Partial cut [03:09:21]*** CUTSNS_PIN = 1 [03:09:21]*** CUTSNS_PIN = 0 [03:09:21]*** Brake cut motor [03:09:21]Read from MH i2c: 01 [03:09:21]MH_I2C_Read... [03:09:21]*** Stop cut motor [03:09:21]*** Cut end [03:09:21]Read from MH i2c: 01 07 00 [03:09:21]MH_I2C_Read... [03:09:21]Read from MH i2c: 01 07 00 26 1A 00 00 00 00 00 FF 0F 55 [03:09:21]process_action close_receipt done [03:09:21]requested_data is exist [03:09:21]produce_requested_data [03:09:21]requested_item fm.sn is exist - process it [03:09:21]wFMCommunicate request_size=4 [03:09:21]MH_SAM_APDU [03:09:21]CAPDU: 80 11 00 00 [03:09:21]Write to MH i2c: E2 08 00 27 1A 80 11 00 00 00 00 00 00 BB [03:09:21]Write i2c OK [03:09:21]MH_I2C_Read... [03:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:09:21]Read from MH i2c: E2 [03:09:21]MH_I2C_Read... [03:09:21]Read from MH i2c: E2 17 00 [03:09:21]MH_I2C_Read... [03:09:21]Read from MH i2c: E2 17 00 27 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 09 [03:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:09:21]wFMCommunicate OK [03:09:21]requested_item fd.num is exist - process it [03:09:21]SAM_PROTO_GetFieldsCounters [03:09:21]wFMCommunicate request_size=4 [03:09:21]MH_SAM_APDU [03:09:21]CAPDU: 80 13 00 00 [03:09:21]Write to MH i2c: E2 08 00 28 1A 80 13 00 00 00 00 00 00 BE [03:09:21]Write i2c OK [03:09:21]MH_I2C_Read... [03:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:09:22]Read from MH i2c: E2 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 62 00 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 62 00 28 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 67 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [03:09:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 67 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:09:22]wFMCommunicate OK [03:09:22]SAM_PROTO_GetFieldsCounters done [03:09:22]requested_item shift.num is exist - process it [03:09:22]requested_item shift.opened is exist - process it [03:09:22]req_shift_opened [03:09:22]FM_GetShiftState [03:09:22]SAM_PROTO_GetShiftState [03:09:22]wFMCommunicate request_size=4 [03:09:22]MH_SAM_APDU [03:09:22]CAPDU: 80 13 01 00 [03:09:22]Write to MH i2c: E2 08 00 29 1A 80 13 01 00 00 00 00 00 C0 [03:09:22]Write i2c OK [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 [03:09:22]MH_I2C_Read... [03:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:09:22]Read from MH i2c: E2 0E 00 [03:09:22]MH_I2C_Read... [03:09:22]Read from MH i2c: E2 0E 00 29 1A 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 F8 [03:09:22]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [03:09:22]wFMCommunicate OK [03:09:22]SAM_PROTO_GetShiftState done [03:09:22]FM_GetShiftState done [03:09:22]req_shift_opened done [03:09:22]requested_item shift.open_date is exist - process it [03:09:22]req_shift_open_date [03:09:22]req_shift_open_date done [03:09:22]produce_requested_data done [03:09:22]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115815,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506} [03:09:22]process_action_free close_receipt [03:09:22]json_value_free [03:09:22]json_value_free done [03:09:22]process_json_proto returns [03:09:22]Send response to host [03:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115815,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506}}} [03:09:22]free response buf [03:09:22]execute_script done [03:09:22]execute_script returns [03:09:22]free content buf [03:09:22]Sock 8.Close socket [03:09:22]Sock 8.Thread stoped [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:40]accept exits with 9 [03:26:40]New connection [03:26:40]New thread 3067010404 created [03:26:40]Thread 3066867044 joined [03:26:40]Waiting for new connection... [03:26:40] Sock 9.Parse request [03:26:40]Sock 9.Check first char [03:26:40]Sock 9.First char is OK [03:26:40]request: POST /json_proto HTTP/1.0 [03:26:40]Method: POST [03:26:40]URL: /json_proto [03:26:40]Method is POST - this is cgi request [03:26:40]url: /json_proto [03:26:40]query_string will be loaded in cgi processing [03:26:40]execute_cgi json_proto POST (null) [03:26:40]execute_cgi path=json_proto method=POST [03:26:40]POST find Content-Length [03:26:40]Host: 172.17.41.136:8080 [03:26:40]Content-Length: 641 [03:26:40]Content-Type: application/json [03:26:40] [03:26:40]POST finish read [03:26:40]Found Content-Length = 641 [03:26:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344130", "tax_sys" : 0, "items" : [ { "code": "4700001060152", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,5\u043B", "price" : 660.00, "quantity" : 1.000, "sum" : 660.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 660.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:26:40]execute_script... [03:26:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344130", "tax_sys" : 0, "items" : [ { "code": "4700001060152", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,5\u043B", "price" : 660.00, "quantity" : 1.000, "sum" : 660.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 660.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:26:40]POST & json_proto [03:26:40]process_json_proto [03:26:40]json parsed OK: [03:26:40]protocol is kg_v1.0 [03:26:40]action value=close_receipt [03:26:40]process_action close_receipt [03:26:40]cmd_close_receipt [03:26:40]MH_GetDate [03:26:40]Write to MH i2c: F0 00 00 2A 1A 33 [03:26:40]Write i2c OK [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: F0 [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: F0 09 00 [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: F0 09 00 2A 1A 00 73 31 F2 66 1B D0 5A 64 E1 [03:26:40]GetLastDocTimeStamp 1727147360 [03:26:40]current date 1727148403 [03:26:40]FM_GetShiftState [03:26:40]SAM_PROTO_GetShiftState [03:26:40]wFMCommunicate request_size=4 [03:26:40]MH_SAM_APDU [03:26:40]CAPDU: 80 13 01 00 [03:26:40]Write to MH i2c: E2 08 00 2B 1A 80 13 01 00 00 00 00 00 C2 [03:26:40]Write i2c OK [03:26:40]MH_I2C_Read... [03:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:26:40]Read from MH i2c: E2 [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: E2 0E 00 [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: E2 0E 00 2B 1A 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 FA [03:26:40]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [03:26:40]wFMCommunicate OK [03:26:40]SAM_PROTO_GetShiftState done [03:26:40]FM_GetShiftState done [03:26:40]opened in 1727138506 [03:26:40]opened+sec_in_day 1727224906 [03:26:40]quantity*price = 66000 [03:26:40]sum+1 = 66001 [03:26:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 660.00 НСП 1% : 5.84 НДС 12% : 70.09 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 13 24.09.2024 03:26 Смена: 473 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 115816 ФПД: 199788377776616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T032643&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115816&fm=199788377776616&tin=02508201610067®Number=0000000000091831&sum=66000 0 [03:26:41]StoreToDocumentArchive [03:26:41]shift 473 fd 115816 [03:26:41]save to /storage/0473/doc_00115816 [03:26:41]save last doc name /storage/0473/doc_00115816 to /storage/kkm_last_doc_name [03:26:41]save OK [03:26:41]Clear old archive folders... [03:26:41]ProcessDocumentItem done err = 0, tmpTLVsize=273 [03:26:41]tlvbuf is 011628F0 [03:26:41]SAM_PROTO_ClearQueue [03:26:41]wFMCommunicate request_size=4 [03:26:41]MH_SAM_APDU [03:26:41]CAPDU: 80 09 00 00 [03:26:41]Write to MH i2c: E2 08 00 38 1A 80 09 00 00 00 00 00 00 C4 [03:26:41]Write i2c OK [03:26:41]MH_I2C_Read... [03:26:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:26:41]Read from MH i2c: E2 [03:26:41]MH_I2C_Read... [03:26:41]Read from MH i2c: E2 03 00 [03:26:41]MH_I2C_Read... [03:26:41]Read from MH i2c: E2 03 00 38 1A 00 90 00 C6 [03:26:41]RAPDU: 90 00 [03:26:41]wFMCommunicate OK [03:26:41]SAM_PROTO_ClearQueue done [03:26:41]KKMCreateOFDPacket [03:26:41]OFDProtocolAddRootSTLVToBuf [03:26:41]FM_MakeSignedData [03:26:41]FM_MakeSignedData [03:26:41]SAM_PROTO_SignData [03:26:41]wFMCommunicate request_size=4 [03:26:41]MH_SAM_APDU [03:26:41]CAPDU: 80 0D 01 02 [03:26:41]Write to MH i2c: E2 08 00 39 1A 80 0D 01 02 00 00 00 00 CC [03:26:41]Write i2c OK [03:26:41]MH_I2C_Read... [03:26:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:26:41]Read from MH i2c: E2 [03:26:41]MH_I2C_Read... [03:26:41]Read from MH i2c: E2 03 00 [03:26:41]MH_I2C_Read... [03:26:41]Read from MH i2c: E2 03 00 39 1A 00 90 00 C7 [03:26:41]RAPDU: 90 00 [03:26:41]wFMCommunicate OK [03:26:41]wFMCommunicate request_size=255 [03:26:41]MH_SAM_APDU [03:26:41]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 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 73 31 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 [03:26:41]Write to MH i2c: E2 02 01 3A 1A 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 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 73 31 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 EA [03:26:41]Write i2c OK [03:26:41]MH_I2C_Read... [03:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:26:42]Read from MH i2c: E2 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 03 00 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 03 00 3A 1A 00 90 00 C8 [03:26:42]RAPDU: 90 00 [03:26:42]wFMCommunicate OK [03:26:42]wFMCommunicate request_size=32 [03:26:42]MH_SAM_APDU [03:26:42]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 33 30 10 04 04 00 68 C4 01 00 35 04 06 00 B5 B4 DB 49 A1 E8 [03:26:42]Write to MH i2c: E2 23 00 3B 1A 80 0D 02 02 1B 00 30 30 30 38 37 31 38 33 30 10 04 04 00 68 C4 01 00 35 04 06 00 B5 B4 DB 49 A1 E8 00 00 6A [03:26:42]Write i2c OK [03:26:42]MH_I2C_Read... [03:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:26:42]Read from MH i2c: E2 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 03 00 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 03 00 3B 1A 00 90 00 C9 [03:26:42]RAPDU: 90 00 [03:26:42]wFMCommunicate OK [03:26:42]wFMCommunicate request_size=4 [03:26:42]MH_SAM_APDU [03:26:42]CAPDU: 80 0D 03 02 [03:26:42]Write to MH i2c: E2 08 00 3C 1A 80 0D 03 02 00 00 00 00 D1 [03:26:42]Write i2c OK [03:26:42]MH_I2C_Read... [03:26:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:26:42]Read from MH i2c: E2 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 0B 00 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 0B 00 3C 1A 00 42 BF D1 B8 3B 91 C9 2E 90 00 1F [03:26:42]RAPDU: 42 BF D1 B8 3B 91 C9 2E 90 00 [03:26:42]wFMCommunicate OK [03:26:42]SAM_PROTO_SignData done [03:26:42]FM_MakeSignedData done [03:26:42]CreateOFDProtocolMessage [03:26:42]wFMCommunicate request_size=4 [03:26:42]MH_SAM_APDU [03:26:42]CAPDU: 80 11 00 00 [03:26:42]Write to MH i2c: E2 08 00 3D 1A 80 11 00 00 00 00 00 00 D1 [03:26:42]Write i2c OK [03:26:42]MH_I2C_Read... [03:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:26:42]Read from MH i2c: E2 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 17 00 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 17 00 3D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1F [03:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:26:42]wFMCommunicate OK [03:26:42]CreateOFDProtocolMessage done [03:26:42]OFDSenderStorePacket 115816 [03:26:42]StoreOFDPacket docnum=115816 [03:26:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 D2 16 1D 01 D8 8F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 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 73 31 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 68 C4 01 00 35 04 06 00 B5 B4 DB 49 A1 E8 42 BF D1 B8 3B 91 C9 2E [03:26:42]CheckFolder [03:26:42]dirname=/storage/ofd_packets [03:26:42]CheckFolder done [03:26:42]ProducePacketName [03:26:42]name=ofd_packets/00115816 [03:26:42]NVStorageSaveData ofd_packets/00115816 [03:26:42]File name is /storage/ofd_packets/00115816 [03:26:42]Write 323 bytes [03:26:42]NVStorageSaveData done [03:26:42]OFDSenderStorePacket done [03:26:42]KKMCreateOFDPacket done [03:26:42]NVStorageSaveData kkm_last_timestamp [03:26:42]File name is /storage/kkm_last_timestamp [03:26:42]Write 4 bytes [03:26:42]NVStorageSaveData done [03:26:42]ExternCall_PrintAddStr [03:26:42]wPrintStart [03:26:42]Write to MH i2c: 01 00 00 3E 1A 58 [03:26:42]Write i2c OK [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: 01 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: 01 07 00 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: 01 07 00 3E 1A 00 00 00 00 00 FF 0F 6D [03:26:42]RasterBufferAndPrint [03:26:42]line Счет N : (3)344130 [03:26:42]line ИНН: 02508201610067 [03:26:42]line Контрольно-Кассовый Чек [03:26:42]line ПРОДАЖА [03:26:42]line Товар: 4700001060152 [03:26:42]line Коньяк Бишкек 0,5л [03:26:42]line 1.000 * 660.00 [03:26:42]line = 660.00 [03:26:42]line НДС 12% НСП 1% [03:26:42]line > о реализуемом товаре [03:26:42]line ИТОГО: 660.00 [03:26:42]line НСП 1% : 5.84 [03:26:42]line НДС 12% : 70.09 [03:26:42]line Наличными: 660.00 [03:26:42]line Безнал.: 0.00 [03:26:42]line Место: АЗС № 90 "Партнер Нефть" [03:26:42]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [03:26:42]line СНО: Общий режим [03:26:42]line Чек 13 24.09.2024 03:26 [03:26:42]line Смена: 473 ФФД: 1.0 [03:26:42]line ЗНМ: 0300000120 [03:26:42]line РНМ: 0000000000091831 [03:26:42]line Версия ККМ: 001 [03:26:42]line ФМ: 0000000000871830 [03:26:42]line ФД: 115816 [03:26:42]line ФПД: 199788377776616 [03:26:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T032643&type=1&operation_type=1&fn_number=0000000000871830&fd_number=115816&fm=199788377776616&tin=02508201610067®Number=0000000000091831&sum=66000 [03:26:42]line 0 [03:26:42]written 0, free lines is 4095 [03:26:42]OFD Sender: Processing packet 115816 [packets to send 482, broken 481] [03:26:42]ProducePacketName [03:26:42]name=ofd_packets/00115816 [03:26:42]OFD Sender: To server: pG, [03:26:42]CommunicateWithHost lk.salyk.kg:30040 [03:26:42]ConnectInit lk.salyk.kg [03:26:42]Connected sock=10 [03:26: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 38 33 30 25 01 00 00 D2 16 1D 01 D8 8F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 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 73 31 F2 66 0E 04 04 00 D9 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 68 C4 01 00 35 04 06 00 B5 B4 DB 49 A1 E8 42 BF D1 B8 3B 91 C9 2E [03:26:42]Write to MH i2c: 01 00 00 65 1A 7F [03:26:42]Write i2c OK [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: 01 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: 01 07 00 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: 01 07 00 65 1A 00 00 00 00 00 86 0C 18 [03:26:42]RasterBufferAndPrint [03:26:42]line [03:26:42]line [03:26:42]line [03:26:42]line [03:26:42]line [03:26:42]written 0, free lines is 3212 [03:26:42]MH_Cut [03:26:42]Write to MH i2c: D1 01 00 6C 1A 01 58 [03:26:42]Write i2c OK [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: D1 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: D1 01 00 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: D1 01 00 6C 1A 00 57 [03:26:42]Write to MH i2c: 01 00 00 6D 1A 87 [03:26:42]Write i2c OK [03:26:42]MH_I2C_Read... [03:26:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1D 56 47 00 A4 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 38 33 30 10 04 04 00 68 C4 01 00 F4 03 04 00 B4 D6 F1 66 B6 04 01 00 00 3C 7D 42 75 DD D8 D0 C4 [03:26:43]CommunicateWithHost err = 0 [03:26:43]CheckOFDResponse [03:26:43]1017 (14) - 77093643461234 [03:26:43]1041 (16) - 0000000000871830 [03:26:43]1040 (4) - 115816 [03:26:43]1012 (4) - 23.09.2024 20:59 [03:26:43]1206 (1) - 0 [03:26:43]OFD Sender: Remove packet 115816 [03:26:43]ProducePacketName [03:26:43]name=ofd_packets/00115816 [03:26:43]NVStorageDeleteData [03:26:43]OFD Sender: No OFD packet to send [03:26:44]*** Cut start [03:26:44]*** Partial cut [03:26:44]*** CUTSNS_PIN = 1 [03:26:44]*** CUTSNS_PIN = 0 [03:26:44]*** Brake cut motor [03:26:44]Read from MH i2c: 01 [03:26:44]MH_I2C_Read... [03:26:44]*** Stop cut motor [03:26:44]*** Cut end [03:26:44]Read from MH i2c: 01 07 00 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: 01 07 00 6D 1A 00 00 00 00 00 FF 0F 9C [03:26:44]process_action close_receipt done [03:26:44]requested_data is exist [03:26:44]produce_requested_data [03:26:44]requested_item fm.sn is exist - process it [03:26:44]wFMCommunicate request_size=4 [03:26:44]MH_SAM_APDU [03:26:44]CAPDU: 80 11 00 00 [03:26:44]Write to MH i2c: E2 08 00 6E 1A 80 11 00 00 00 00 00 00 02 [03:26:44]Write i2c OK [03:26:44]MH_I2C_Read... [03:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:26:44]Read from MH i2c: E2 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 17 00 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 17 00 6E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 50 [03:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:26:44]wFMCommunicate OK [03:26:44]requested_item fd.num is exist - process it [03:26:44]SAM_PROTO_GetFieldsCounters [03:26:44]wFMCommunicate request_size=4 [03:26:44]MH_SAM_APDU [03:26:44]CAPDU: 80 13 00 00 [03:26:44]Write to MH i2c: E2 08 00 6F 1A 80 13 00 00 00 00 00 00 05 [03:26:44]Write i2c OK [03:26:44]MH_I2C_Read... [03:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:26:44]Read from MH i2c: E2 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 62 00 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 62 00 6F 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 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 68 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [03:26:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 68 C4 01 00 0E 04 04 00 D9 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:26:44]wFMCommunicate OK [03:26:44]SAM_PROTO_GetFieldsCounters done [03:26:44]requested_item shift.num is exist - process it [03:26:44]requested_item shift.opened is exist - process it [03:26:44]req_shift_opened [03:26:44]FM_GetShiftState [03:26:44]SAM_PROTO_GetShiftState [03:26:44]wFMCommunicate request_size=4 [03:26:44]MH_SAM_APDU [03:26:44]CAPDU: 80 13 01 00 [03:26:44]Write to MH i2c: E2 08 00 70 1A 80 13 01 00 00 00 00 00 07 [03:26:44]Write i2c OK [03:26:44]MH_I2C_Read... [03:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:26:45]Read from MH i2c: E2 [03:26:45]MH_I2C_Read... [03:26:45]Read from MH i2c: E2 0E 00 [03:26:45]MH_I2C_Read... [03:26:45]Read from MH i2c: E2 0E 00 70 1A 00 09 00 01 CA 0A F2 66 00 00 00 00 90 00 3F [03:26:45]RAPDU: 09 00 01 CA 0A F2 66 00 00 00 00 90 00 [03:26:45]wFMCommunicate OK [03:26:45]SAM_PROTO_GetShiftState done [03:26:45]FM_GetShiftState done [03:26:45]req_shift_opened done [03:26:45]requested_item shift.open_date is exist - process it [03:26:45]req_shift_open_date [03:26:45]req_shift_open_date done [03:26:45]produce_requested_data done [03:26:45]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":115816,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506} [03:26:45]process_action_free close_receipt [03:26:45]json_value_free [03:26:45]json_value_free done [03:26:45]process_json_proto returns [03:26:45]Send response to host [03:26:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":115816,"shift.num":473,"shift.opened":1,"shift.open_date":1727138506}}} [03:26:45]free response buf [03:26:45]execute_script done [03:26:45]execute_script returns [03:26:45]free content buf [03:26:45]Sock 9.Close socket [03:26:45]Sock 9.Thread stoped [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send